/* Oak Hill / Livingston Weddings: site styles
   Palette taken from the original artwork: sage #5e7a51, pale green #e3f0d6, white paper. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #2c4230;
  --deep: #2c4230;
  --paper: #ffffff;
  --soft: #f3f7ee;
  --panel: #e3f0d6;
  --sage: #5e7a51;
  --ink: #1c271d;
  --muted: #46543f;
  --link: #2b5a22;
  --bar: #3b5c3f;
  --on-deep: #eef5e8;
  --gutter: clamp(20px, 6.2vw, 60px);
  --s-small: 0.9375rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --s-head: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--s-body) / 1.65 "Newsreader", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #86b86f; outline-offset: 3px; }
p { margin: 0 0 1.1em; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  background: var(--deep); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- The sheet ---------- */
.sheet {
  max-width: 970px;
  margin: clamp(0px, 3vw, 36px) auto;
  background: var(--paper);
}

.mast { padding: 30px var(--gutter) 22px; }
.brand { display: block; max-width: 850px; }
.brand img { width: 100%; }

/* ---------- Navigation ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bar);
  padding: 0 calc(var(--gutter) - 14px);
  transition: box-shadow 0.25s;
}
.bar.is-stuck { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); /* taste-skill-ignore: sticky bar floats */ }
.nav { display: flex; justify-content: space-between; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: 15px 14px;
  color: var(--on-deep);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav a[aria-current="page"] { background: var(--panel); color: var(--deep); }

/* ---------- Lead block: photo + title card ---------- */
.lead {
  display: grid;
  grid-template-columns: 518px 1fr;
  margin: 34px var(--gutter) 0;
  background: var(--panel);
}
.lead-photo { margin: 0; overflow: hidden; background: var(--panel); }
.lead-photo img { width: 518px; max-width: none; height: 308px; object-fit: cover; transition: transform 0.9s var(--ease); }
.lead-photo:hover img { transform: scale(1.03); }
.lead-title { display: grid; place-items: center; padding: 20px; }
.lead-title h1 { margin: 0; line-height: 0; }
.lead-title img { width: 289px; }

.lead--home .lead-title { place-items: start center; align-content: start; padding: 26px 26px 24px; gap: 14px; }
.lead--home .lead-title h1 { justify-self: start; }
.lead--home .lead-title p { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.flash { width: 518px; max-width: 100%; aspect-ratio: 518 / 387; background: var(--soft); }
.flash object, .flash embed, .flash ruffle-object, .flash ruffle-embed { display: block; width: 100% !important; height: 100% !important; }

.lead--note { display: block; padding: clamp(28px, 5vw, 56px); }
.lead--note p { margin: 0 0 1em; font-size: var(--s-lead); line-height: 1.5; max-width: 34em; }
.lead--note p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 5.5vw, 64px) var(--gutter); }
.section + .section { padding-top: 0; }
.col { max-width: 42rem; margin-inline: auto; }
.col--wide { max-width: 100%; }
.sub { margin: 0 0 28px; line-height: 0; }
.sub img { height: auto; }

.prose p { max-width: 42rem; }
.prose .lead-p { font-size: var(--s-lead); line-height: 1.55; }
.prose strong, .prose b { font-weight: 600; }
.prose .note { color: var(--muted); }

.cta-links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 1.6em 0 0; }
.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--deep);
  color: #fff;
  font: 600 1.0625rem / 1.2 "Newsreader", Georgia, serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.btn:hover { background: #3f5f44; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--soft { background: var(--panel); color: var(--deep); }
.btn--soft:hover { background: #d3e7c1; color: var(--deep); }

/* Home: trio of photos, document links */
.trio { display: grid; grid-template-columns: 244fr 299fr 307fr; gap: 10px; margin: 10px var(--gutter) 0; }
.trio figure { margin: 0; overflow: hidden; background: var(--panel); }
.trio img { width: 100%; transition: transform 0.9s var(--ease); }
.trio figure:hover img { transform: scale(1.04); }
.docs { padding: 34px var(--gutter) 56px; text-align: center; color: var(--muted); }
.docs a { font-weight: 500; }
.docs .sep { padding: 0 0.7em; color: var(--sage); }

/* Weddings: videos, quote, links panel */
.videos { display: grid; gap: 26px; margin: 0 0 44px; }
.video { margin: 0; text-align: center; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: var(--soft); }
.video figcaption { margin-top: 10px; color: var(--muted); font-size: var(--s-small); }
.pull { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; margin: 0 0 44px; }
.pull .quote-copy p { margin: 0; font-size: 1.125rem; font-style: italic; }
.pull ul { margin: 0; padding: 22px 26px; list-style: none; background: var(--soft); }
.pull li { padding: 6px 0; line-height: 1.4; }
.testimonial { margin: 2.2em 0; padding: 30px clamp(22px, 4vw, 40px); background: var(--panel); }
.testimonial p { margin: 0; max-width: none; color: var(--deep); font-size: var(--s-lead); font-weight: 600; line-height: 1.4; }
.testimonial .by { display: block; margin-top: 12px; font-size: var(--s-small); font-weight: 400; font-style: normal; color: var(--sage); }
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 0 0 1.6em; padding: 24px 30px; list-style: none; background: var(--soft); font-weight: 600; }
.svc li { padding: 5px 0; line-height: 1.4; }
.svc li.plain { font-weight: 400; grid-column: 1 / -1; }
.svc li.plain strong { font-weight: 600; }
.svc li.full { grid-column: 1 / -1; }

/* Events: lists */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin: 4px 0 36px; padding: 28px 32px; list-style: none; background: var(--soft); font-weight: 600; font-style: italic; }
.chips ul { margin: 0; padding: 0; list-style: none; }
.chips li { padding: 5px 0; line-height: 1.35; }
.chips .more { grid-column: 1 / -1; padding-top: 14px; }

/* Directions */
.mapline { display: grid; grid-template-columns: 1fr 518px; gap: 28px; align-items: center; margin-bottom: 40px; }
.mapline p { margin: 0; font-size: var(--s-lead); line-height: 1.5; }
.mapline figure { margin: 0; overflow: hidden; background: var(--soft); }
.mapline img { width: 518px; max-width: 100%; height: auto; }
.route { margin: 0 0 28px; padding: clamp(22px, 4vw, 36px); background: var(--soft); }
.route h2 { margin: 0 0 16px; font-size: var(--s-head); font-weight: 600; font-style: italic; color: var(--sage); line-height: 1.2; }
.route ol { margin: 0; padding-left: 1.4em; }
.route li { padding: 4px 0 4px 6px; line-height: 1.5; }
.route li::marker { color: var(--sage); font-weight: 600; }

/* Calendar */
.agenda { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.agenda li { padding: 22px 28px; background: var(--soft); font-size: var(--s-lead); line-height: 1.4; transition: background-color 0.2s, transform 0.2s var(--ease); }
.agenda li:hover { background: var(--panel); transform: translateX(4px); }

/* Links: vendor directory */
.vendors { columns: 2 340px; column-gap: 24px; }
.cat { break-inside: avoid; margin: 0 0 24px; padding: 26px clamp(20px, 3vw, 30px) 22px; background: var(--soft); }
.cat h2 { margin: 0 0 12px; font-size: var(--s-head); font-weight: 600; font-style: italic; color: var(--sage); line-height: 1.2; }
.cat .line { padding: 5px 0; line-height: 1.45; overflow-wrap: anywhere; }
.intro-line { margin: 0 0 32px; font-size: var(--s-lead); line-height: 1.5; max-width: 40rem; }

/* Contact form */
.form { padding: clamp(24px, 4vw, 44px); background: var(--soft); }
.fields { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; }
.field { position: relative; display: grid; gap: 6px; align-content: start; grid-column: span 6; }
.field--full { grid-column: 1 / -1; }
.field--3 { grid-column: span 3; }
.field .req { position: absolute; right: 12px; bottom: 14px; font-size: var(--s-small); }
.field label { font-weight: 600; font-size: 1.0625rem; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem / 1.4 "Newsreader", Georgia, serif;
  box-shadow: inset 0 0 0 1.5px #c9d8bf; /* taste-skill-ignore: form field */
  transition: box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2.5px var(--sage); /* taste-skill-ignore: focus ring */ }
.field textarea { min-height: 150px; resize: vertical; }
.form-actions { grid-column: 1 / -1; padding-top: 6px; }
.form .btn { min-width: 220px; padding: 16px 28px; }

/* ---------- Footer ---------- */
.foot { background: var(--bar); color: var(--on-deep); padding: 44px var(--gutter) 38px; margin-top: clamp(24px, 4vw, 40px); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 34px; }
.foot nav a { color: var(--on-deep); text-decoration: none; font-weight: 500; padding: 4px 0; text-underline-offset: 0.25em; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: var(--s-small); color: #c5d8b8; }
.foot-base a { color: #dcefce; }
.foot-base a:hover { color: #fff; }

/* ---------- Motion (content is visible without JS) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .lead-photo img, .trio img, .agenda li, .btn { transition: none; }
  .lead-photo:hover img, .trio figure:hover img, .agenda li:hover { transform: none; }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .lead-photo img { width: 100%; height: auto; aspect-ratio: 518 / 308; }
  .flash { width: 100%; }
  .lead-title { padding: 28px 20px; }
  .mapline { grid-template-columns: 1fr; }
  .mapline img { width: 100%; }
  .pull { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bar { padding: 0; }
  .nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .nav a { text-align: center; padding: 13px 6px; font-size: 1rem; }
  .trio { grid-template-columns: 1fr; }
  .trio figure { aspect-ratio: 16 / 10; }
  .trio img { height: 100%; object-fit: cover; }
  .chips { grid-template-columns: 1fr; padding: 22px 24px; }
  .svc { grid-template-columns: 1fr; padding: 22px 24px; }
  .fields { grid-template-columns: 1fr; }
  .field, .field--3 { grid-column: 1 / -1; }
  .foot nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .mast { padding-top: 20px; }
}
@media (max-width: 420px) {
  .agenda li { padding: 18px 20px; }
}

.nw { white-space: nowrap; }
.prose p + .sub, .prose ul + .sub { margin-top: 40px; }
