/* Vow Barn — first-party wedding / events venue template (S114).
   All imagery is authored CSS. No media, fonts, icons, embeds, CDNs, analytics or tracking.

   Voice: EDITORIAL. Where the trades template is condensed uppercase sans on slate, this is a
   serif page on deckle cream with hairline rules, wide letter-spaced small-caps and a blush
   accent. Section shapes are alternating prose/plate rows rather than a uniform card grid. */

:root {
  --ink: #23201d;
  --ink-soft: #4a443d;
  --blush: #c98b83;
  --blush-deep: #a6655d;
  --cream: #f7f2e9;
  --cream-deep: #efe7d9;
  --card: #fffdf8;
  --rule: #ddd2bf;
  --muted: #6d655b;
  --radius: 2px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; }
ul, ol { list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 0.5rem 1rem;
  text-decoration: none; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; }

/* ---------- Header + navigation ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 1.5rem; background: var(--cream);
  border-bottom: 1px solid var(--rule); position: relative;
}
.wordmark {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); white-space: nowrap;
}
.wordmark span[aria-hidden] { color: var(--blush-deep); }
.nav-disclosure summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border: 1px solid var(--ink); color: var(--ink);
}
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure[open] summary { background: var(--ink); color: var(--cream); }
.nav-disclosure nav {
  position: absolute; right: 1.5rem; left: 1.5rem; top: calc(100% + 1px); z-index: 9;
  display: flex; flex-direction: column; gap: 0.1rem;
  background: var(--card); border: 1px solid var(--rule);
  padding: 1rem; box-shadow: 0 18px 40px rgba(35, 32, 29, 0.13);
}
.nav-disclosure nav a:not(.button) {
  text-decoration: none; padding: 0.6rem 0.5rem; color: var(--ink);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-disclosure nav a:not(.button):hover { color: var(--blush-deep); }

/* Desktop inline nav is OPTED INTO by main.js (matchMedia adds .nav-inline and sets [open]).
   A closed <details> does not render its children, so pure CSS cannot inline this menu at desktop
   widths — without JavaScript the summary button stays visible and usable instead. */
.nav-disclosure.nav-inline summary { display: none; }
.nav-disclosure.nav-inline nav {
  position: static; flex-direction: row; align-items: center; gap: 1.6rem;
  background: none; border: 0; padding: 0; box-shadow: none;
}
.nav-disclosure.nav-inline nav a { padding: 0.2rem 0; }

.header-call { display: none; }
@media (max-width: 799px) {
  .site-header { gap: 0.6rem; padding: 1.1rem 1.1rem; }
  .header-call { display: inline-block; margin-left: auto; }
}
@media (max-width: 479px) {
  .site-header { padding: 0.9rem 0.9rem; gap: 0.45rem; }
  .wordmark { font-size: 1.05rem; letter-spacing: 0.14em; }
  .header-call { font-size: 0.85rem; }
  .nav-disclosure summary { padding: 0.42rem 0.7rem; font-size: 0.7rem; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--serif); font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 0.95rem 2.1rem; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.button:hover { background: var(--blush-deep); border-color: var(--blush-deep); color: var(--cream); }
.button-small { padding: 0.55rem 1.1rem; font-size: 0.74rem; letter-spacing: 0.14em; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--cream); }
.button-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.button-light:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.call-link { color: var(--blush-deep); text-decoration: none; white-space: nowrap; letter-spacing: 0.04em; }
.call-link:hover { text-decoration: underline; }

/* ---------- Hero — centred editorial title page ---------- */
.hero { background: var(--cream); padding: 4.5rem 1.5rem 3.5rem; text-align: center; }
.hero-inner { max-width: 46rem; margin: 0 auto; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blush-deep); margin-bottom: 1.75rem;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--blush-deep); }
.hero-sub { margin: 1.5rem auto 0; font-size: 1.15rem; max-width: 38ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; justify-content: center; }
.rule-ornament { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 2.75rem; }
.rule-ornament::before, .rule-ornament::after { content: ""; height: 1px; width: 4.5rem; background: var(--rule); }
.rule-ornament span { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

/* The hero plate — a wide authored-art band under the title. */
.hero-plate { height: clamp(220px, 34vw, 400px); margin-top: 2.75rem; border: 1px solid var(--rule); display: block; width: 100%; object-fit: cover;}

/* ---------- Section frame ---------- */
.section { max-width: 62rem; margin: 0 auto; padding: 3.5rem 1.5rem; }
.section-head { text-align: center; }
.section-head h2, .band h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section-intro { margin: 0.9rem auto 0; max-width: 50ch; color: var(--muted); text-align: center; }
.filter-count { color: var(--ink); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* Alternating prose / plate rows — the editorial answer to a card grid. */
.spread { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-top: 2.5rem; }
@media (min-width: 820px) {
  .spread { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .spread.reverse .spread-plate { order: -1; }
}
.spread-plate { height: clamp(240px, 30vw, 340px); border: 1px solid var(--rule); }
.spread h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.spread p { margin-top: 1rem; color: var(--muted); }
.spread .marker { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blush-deep); display: block; margin-bottom: 0.9rem; }

/* ---------- Filter strip ---------- */
.strip { background: var(--cream-deep); padding: 1.75rem 1.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filter-form {
  max-width: 62rem; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: end;
}
@media (min-width: 700px) { .filter-form { grid-template-columns: 1fr 1fr auto; } }
.filter-form .field label { color: var(--ink); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.filter-form select {
  width: 100%; margin-top: 0.5rem; padding: 0.7rem 0.75rem;
  font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--radius);
}

/* ---------- Space cards ---------- */
.item-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .item-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .item-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* No boxy card here — a plate with a hairline and text beneath it. */
.card { background: none; border: 0; }
.card-art { height: 240px; border: 1px solid var(--rule); background-color: var(--cream-deep); background-repeat: no-repeat; display: block; width: 100%; object-fit: cover;}
.card-body { padding: 1.1rem 0 0; }
.card-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
.card-title { font-size: 1.35rem; }
.card-where { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blush-deep); white-space: nowrap; }
.card-meta { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; }
.card-tags li { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.filter-empty { margin-top: 2.5rem; padding: 2rem; background: var(--card); border: 1px solid var(--rule); text-align: center; color: var(--muted); }

/* ---------- CSS artwork (all imagery is authored gradients) ----------
   Each plate is drawn so that a stranger can NAME the thing.

   TWO construction rules, both learned by looking at renders rather than at source:
   1. `background-repeat: no-repeat` is declared HERE, on the shared .art-* selector, not on the
      container. Sizing a layer to a fraction of the box (a gable, a row of candles) tiles that
      layer across the whole plate unless repeat is off — which turned one barn into a row of
      pentagons and a candlelit table into scribbles the first time these were rendered.
   2. Gable roofs are two HALF-WIDTH gradients meeting at an apex. A pair of full-box diagonals
      crosses into an "X" instead of a roof (the defect judged out of the trades template, S113).
   Repeating-* gradients still repeat WITHIN their own layer, so cladding and paving are unaffected. */

.art-barn, .art-ceremony, .art-reception, .art-garden, .art-courtyard, .art-loft {
  background-repeat: no-repeat;
  background-color: var(--cream-deep);
}

/* The barn at dusk: warm sky, one broad gable, timber body, lit doorway. */
/* Ceremony: a floral arch over an aisle, with a block of seating either side. */
.art-ceremony {
  background-image:
    /* the arch: a blush ring, only its upper half showing above the aisle */
    radial-gradient(circle at 50% 100%, transparent 0 58%, #c98b83 58% 68%, transparent 68%),
    /* foliage clustered along the arch — deliberately asymmetric and mixed in size, because
       three evenly-spaced circles on an arc read as a face rather than as flowers */
    radial-gradient(circle at 24% 62%, #7d8b6a 0 13%, transparent 13%),
    radial-gradient(circle at 38% 24%, #8d9a76 0 10%, transparent 10%),
    radial-gradient(circle at 63% 19%, #7d8b6a 0 12%, transparent 12%),
    radial-gradient(circle at 81% 55%, #8d9a76 0 9%, transparent 9%),
    /* seating rows, left and right of the aisle */
    repeating-linear-gradient(180deg, #57504733 0 6px, transparent 6px 8px, #4a443d 8px 15px, transparent 15px 22px),
    repeating-linear-gradient(180deg, #57504733 0 6px, transparent 6px 8px, #4a443d 8px 15px, transparent 15px 22px),
    linear-gradient(180deg, #fffdf8 0%, #efe7d9 100%);
  background-size: 46% 52%, 46% 52%, 46% 52%, 46% 52%, 46% 52%, 26% 42%, 26% 42%, 100% 100%;
  background-position: center 6%, center 6%, center 6%, center 6%, center 6%, 4% bottom, 96% bottom, center;
}

/* Reception: a long candlelit table under a string of hanging bulbs. */
.art-reception {
  background-image:
    /* table top and its shadowed edge */
    linear-gradient(180deg, #efe7d9 0 62%, #cbbda4 62% 100%),
    /* candles standing on the table */
    repeating-linear-gradient(90deg, transparent 0 22px, #fffdf8 22px 28px, transparent 28px 50px),
    /* their flames */
    repeating-linear-gradient(90deg, transparent 0 23px, #f5c56a 23px 27px, transparent 27px 50px),
    /* hanging bulbs */
    repeating-linear-gradient(90deg, transparent 0 30px, #f0c98a 30px 38px, transparent 38px 68px),
    /* the string they hang from */
    linear-gradient(180deg, rgba(255,255,255,0.28) 0 100%),
    /* dim room */
    linear-gradient(180deg, #2b2420 0%, #3d332c 100%);
  background-size: 84% 18%, 66% 11%, 66% 4%, 78% 7%, 78% 1px, 100% 100%;
  background-position: center 74%, center 63%, center 59%, center 16%, center 16%, center;
}

/* Walled garden: tree canopies behind an old brick wall, over lawn.
   The canopies are DISCRETE radial-gradients, not a repeating one — a repeating radial clipped
   into a short band stacks into vertical pillars rather than round treetops. */
.art-garden {
  background-image:
    radial-gradient(circle at 50% 58%, #5f7150 0 46%, transparent 46%),
    radial-gradient(circle at 50% 58%, #6d7d5b 0 44%, transparent 44%),
    radial-gradient(circle at 50% 58%, #55684a 0 47%, transparent 47%),
    radial-gradient(circle at 50% 58%, #6d7d5b 0 43%, transparent 43%),
    /* the old brick wall */
    repeating-linear-gradient(180deg, #b28e77 0 8px, #9d7c68 8px 10px),
    /* lawn */
    linear-gradient(180deg, #8fa36c 0 100%),
    /* sky */
    linear-gradient(180deg, #cfe0ea 0%, #eef1e6 100%);
  background-size: 30% 44%, 25% 37%, 27% 41%, 22% 33%, 100% 13%, 100% 33%, 100% 100%;
  background-position: 4% 36%, 31% 42%, 63% 34%, 92% 43%, center 61%, center bottom, center;
}

/* Courtyard: flagstones under a swag of festoon lights. */
.art-courtyard {
  background-image:
    /* the bulbs, and the wire they hang from */
    repeating-linear-gradient(90deg, transparent 0 26px, #f5c56a 26px 33px, transparent 33px 58px),
    linear-gradient(180deg, rgba(35,32,29,0.4) 0 100%),
    /* flagstone grid */
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(35,32,29,0.16) 52px 56px),
    repeating-linear-gradient(180deg, #cfc6b4 0 38px, #bdb2a0 38px 42px),
    /* dusk wall behind */
    linear-gradient(180deg, #6f6a72 0%, #9c8f83 100%);
  background-size: 84% 8%, 84% 1px, 100% 56%, 100% 56%, 100% 100%;
  background-position: center 12%, center 12%, center bottom, center bottom, center;
}

/* The loft: exposed A-frame rafters and a tie beam against a pale gable wall. */
/* ---------- Included list ---------- */
.included { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem 3.5rem; }
.included ul { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 760px) { .included ul { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.included li { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1.25rem; align-items: baseline; }
.included .n { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--blush-deep); min-width: 2rem; }
.included h3 { font-size: 1.1rem; }
.included p { color: var(--muted); font-size: 0.96rem; margin-top: 0.2rem; }

/* ---------- Bands ---------- */
.band { background: var(--ink); color: var(--cream); padding: 4.5rem 1.5rem; text-align: center; }
.band p { max-width: 44ch; margin: 1rem auto 1.9rem; color: #c3b8ab; }

.quote-block { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.quote-block p { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.45; font-style: italic; color: var(--ink); }
.quote-block .attrib { margin-top: 1.5rem; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- Interior pages ---------- */
.page { max-width: 62rem; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.breadcrumb a { text-decoration: none; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--blush-deep); }
.page-hero { padding: 2rem 0 0.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.page-hero p { margin: 1rem auto 0; max-width: 50ch; color: var(--muted); }

/* ---------- Forms (preview-safe) ---------- */
.form-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 880px) { .form-layout { grid-template-columns: 1.35fr 1fr; } }
.book-form {
  background: var(--card); border: 1px solid var(--rule);
  padding: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-self: start;
}
@media (min-width: 620px) { .book-form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.label-optional { letter-spacing: 0.08em; color: var(--muted); text-transform: none; }
.field input, .field textarea, .field select {
  width: 100%; margin-top: 0.5rem; padding: 0.75rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.book-form .button { justify-self: start; }
.form-status { grid-column: 1 / -1; color: var(--ink); min-height: 1.4em; font-style: italic; }

.panel { background: var(--cream-deep); border: 1px solid var(--rule); padding: 2rem; align-self: start; }
.panel h2 { font-size: 1.4rem; }
.steps { counter-reset: step; margin-top: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.15rem;
  font-size: 0.72rem; letter-spacing: 0.14em; color: var(--blush-deep);
}
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: 0.96rem; margin-top: 0.15rem; }
.note { margin-top: 2rem; color: var(--muted); font-size: 0.94rem; max-width: 58ch; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: #a89d92;
  padding: 3rem 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
}
.wordmark-footer { font-size: 1.2rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.6rem; }
footer .call-link { color: var(--blush); }
.footer-truth { max-width: 34ch; font-size: 0.85rem; color: #786d63; align-self: end; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Build credit — carried by every template in this library, matching the deployed demos.
   Colour is inherited rather than fixed so this single rule works on every footer palette. */
.footer-powered { margin-top: 0.9rem; font-size: 0.85rem; opacity: 0.8; }
.footer-powered a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-powered a:hover { opacity: 0.85; }

/* --- Touch targets ------------------------------------------------ S116
   A standalone control needs 44x44 CSS px (Apple HIG; WCAG 2.5.5 AAA, and 2.5.8 AA
   sets a 24px floor). The S116 polish pass measured the header phone link at 23px
   and the Menu button at 35px on a 390px viewport, on every template in the library.
   On a trades site the phone number IS the conversion — it was rendering at half the
   required size at exactly the width most visitors arrive on.

   Layout only, no colour, so this block is copy-paste identical across every palette
   in the library. Inline links inside prose are deliberately NOT touched: both WCAG
   target-size rules exempt them, and padding them out would wreck the body copy. */
@media (max-width: 799px) {
  .header-call,
  .nav-disclosure summary,
  .nav-disclosure nav .call-link,
  .button,
  .button-small,
  button[type="submit"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- Atmosphere band (video) ---------- */
.atmos { position: relative; overflow: hidden; background: #14171c; }
.atmos-media { display: block; width: 100%; height: clamp(220px, 42vw, 460px); object-fit: cover; }
.atmos-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 0.7rem 1.25rem; font-size: 0.85rem; letter-spacing: 0.04em;
  color: #ffffff; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
}
