/* ==========================================================================
   Thistledown Bed & Breakfast - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: change the custom properties in :root below.
   - --cream / --paper / --linen  warm page and card backgrounds
   - --ink / --muted              text colors (keep 4.5:1 contrast on --cream)
   - --brick / --brick-deep       main brand color for buttons, links and bands
   - --sage / --sage-text         garden green for ornaments and the gingham trim
   - --mustard                    small highlights (stars, badges)
   - --font-display / --font-body heading and body fonts. If you change them,
     also update the Google Fonts <link> in the <head> of every page.
   ========================================================================== */
:root {
  --cream: #f7f0e3;
  --paper: #fffaf1;
  --linen: #efe4d0;
  --line: #dccdb2;
  --ink: #2b2420;
  --muted: #5e5249;
  --brick: #7a3b2e;
  --brick-deep: #5a2a20;
  --brick-soft: #f1ddd5;
  --sage: #8c9a76;
  --sage-text: #4f5c3c;
  --sage-soft: #e3e8d8;
  --mustard: #d9a441;
  --ok: #3b6534;
  --ok-bg: #e6efe0;
  --error: #a3301c;
  --error-bg: #f8e5df;

  --font-display: "Playfair Display", "Baskerville", "Georgia", serif;
  --font-body: "Libre Franklin", "Franklin Gothic", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --radius: 4px;
  --shadow: 0 1px 0 rgba(43, 36, 32, .06), 0 14px 30px -20px rgba(43, 36, 32, .45);
  --ease: cubic-bezier(.25, .7, .25, 1);
  --gingham: repeating-linear-gradient(90deg, rgba(140, 154, 118, .55) 0 10px, transparent 10px 20px), repeating-linear-gradient(0deg, rgba(140, 154, 118, .55) 0 10px, rgba(255, 250, 241, 1) 10px 20px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.7; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--brick); text-underline-offset: .2em; }
a:hover { color: var(--brick-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--brick); font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brick); color: #fff; padding: .7rem 1.1rem; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.overline { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-text); margin: 0 0 .7rem; }
.flourish { display: block; width: 7rem; height: 1rem; margin: .2rem auto 1.4rem; color: var(--sage); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gingham { height: 10px; background: var(--gingham); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .75rem 1.6rem; border: 1px solid var(--brick); border-radius: var(--radius); background: var(--brick); color: #fff; font: 600 .95rem/1 var(--font-body); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: #fff; }
.btn-line { background: transparent; color: var(--brick); }
.btn-line:hover { background: var(--brick); color: #fff; }
.btn-cream { background: var(--paper); color: var(--brick-deep); border-color: var(--paper); }
.btn-cream:hover { background: #fff; color: var(--brick-deep); }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Header ---------- */
.topbar { background: var(--brick-deep); color: #f5e6dc; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .45rem; }
.topbar a { color: #fff; }
.topbar p { margin: 0; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 2.8rem; height: 2.8rem; flex: none; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--sage-text); margin-top: .3rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .4rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brick); transform: scaleX(0); transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--brick); }
.site-nav .nav-cta { background: var(--brick); color: #fff; padding: .65rem 1.1rem; border-radius: var(--radius); }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--brick-deep); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: .55rem; background: transparent; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); padding: .55rem .85rem; font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .9rem 0; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { text-align: center; margin-top: .75rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .75rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: .5rem 1rem; }
}
@media (max-width: 420px) { .logo-text { font-size: 1.25rem; } .logo svg { width: 2.3rem; height: 2.3rem; } .logo-text small { letter-spacing: .16em; } }

/* ---------- Framed placeholders ---------- */
.frame { background: var(--paper); padding: .7rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ph { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(170deg, var(--ph-a, #e9dcc4), var(--ph-b, #d4c09d)); outline: 1px solid rgba(43, 36, 32, .18); outline-offset: -8px; color: rgba(43, 36, 32, .38); }
.ph svg { width: 34%; height: auto; }
.ph-label { position: absolute; left: .9rem; bottom: .85rem; max-width: calc(100% - 1.8rem); font-size: .78rem; font-weight: 600; background: var(--paper); color: var(--ink); padding: .2rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph[data-tone="rose"] { --ph-a: #efd9cf; --ph-b: #d9b2a1; }
.ph[data-tone="sage"] { --ph-a: #e2e6d4; --ph-b: #b9c3a2; }
.ph[data-tone="sky"] { --ph-a: #dfe6e6; --ph-b: #b6c6c8; }
.ph[data-tone="butter"] { --ph-a: #f3e5bf; --ph-b: #e0c27e; }
.ph[data-tone="dusk"] { --ph-a: #5b4a44; --ph-b: #3b2f2b; color: rgba(255, 250, 241, .5); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.8rem 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero-collage { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 1.25rem; align-items: center; }
.hero-collage .frame:nth-child(1) { transform: rotate(-2deg); }
.hero-collage .frame:nth-child(3) { transform: rotate(2deg); }
.hero-collage .frame:nth-child(2) .ph { aspect-ratio: 5 / 4; }
.hero-collage .frame:nth-child(1) .ph, .hero-collage .frame:nth-child(3) .ph { aspect-ratio: 4 / 5; }
@media (max-width: 700px) {
  .hero-collage { grid-template-columns: 1fr 1fr; }
  .hero-collage .frame:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}
.quickfacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.2rem; list-style: none; padding: 1.4rem 0 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.quickfacts li { display: flex; align-items: center; gap: .55rem; }
.quickfacts svg { width: 1.3rem; height: 1.3rem; color: var(--sage-text); }

/* ---------- Welcome letter ---------- */
.letter-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .letter-grid { grid-template-columns: 1fr 1.15fr; } }
.letter { background: var(--paper); padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); position: relative; box-shadow: var(--shadow); }
.letter::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.letter p { position: relative; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--brick); margin: 1.4rem 0 0; }

/* ---------- Room cards ---------- */
.room-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.room-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-card .ph { outline-offset: -10px; }
.room-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.room-num { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-text); }
.room-body h3 { margin: 0 0 .2rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .92rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.room-meta li { display: flex; align-items: center; gap: .35rem; }
.room-meta svg { width: 1rem; height: 1rem; color: var(--sage-text); }
.room-price { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.room-price strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--brick); }
.room-price span { color: var(--muted); font-size: .9rem; }

/* Room detail (rooms page) */
.room-detail { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.room-detail:last-of-type { border-bottom: 0; }
@media (min-width: 900px) {
  .room-detail { grid-template-columns: 1.1fr 1fr; }
  .room-detail:nth-of-type(even) .frame { order: 2; }
}
.amenities { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .45rem 1.2rem; }
.amenities li { display: flex; gap: .55rem; align-items: flex-start; }
.amenities svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .3rem; color: var(--sage-text); }
.rate-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.rate { font-family: var(--font-display); font-size: 1.8rem; color: var(--brick); line-height: 1; }
.rate small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.included { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 0; }
.included li { background: var(--paper); border: 1px solid var(--line); padding: 1.3rem; text-align: center; }
.included svg { width: 2.2rem; height: 2.2rem; margin: 0 auto .6rem; color: var(--brick); }
.included strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.included span { color: var(--muted); font-size: .95rem; }
.policies { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.policies details { border-bottom: 1px solid var(--line); }
.policies summary { cursor: pointer; list-style: none; padding: 1.1rem .2rem; font-family: var(--font-display); font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.policies summary::-webkit-details-marker { display: none; }
.policies summary::after { content: ""; width: .7rem; height: .7rem; border-right: 2px solid var(--brick); border-bottom: 2px solid var(--brick); transform: rotate(45deg); transition: transform .2s; flex: none; }
.policies details[open] summary::after { transform: rotate(225deg); }
.policies details > div { padding: 0 .2rem 1.2rem; color: var(--muted); }

/* ---------- Breakfast ---------- */
.breakfast-band { background: var(--brick-deep); color: #f6e7dd; position: relative; }
.breakfast-band::before, .breakfast-band::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--gingham); }
.breakfast-band::before { top: 0; }
.breakfast-band::after { bottom: 0; }
.breakfast-band h2 { color: #fff; }
.breakfast-band .overline { color: #e9c98d; }
.breakfast-band p { color: #ecd8cc; }
.bf-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .bf-grid { grid-template-columns: 1fr 1fr; } }
.bf-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.bf-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dotted rgba(246, 231, 221, .35); }
.bf-list span { color: #e9c98d; font-size: .92rem; white-space: nowrap; }

.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.tab { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: .7rem 1.2rem; font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.tab:hover { border-color: var(--brick); }
.tab[aria-selected="true"] { background: var(--brick); border-color: var(--brick); color: #fff; }
.menu-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.menu-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.menu-card h3 { text-align: center; font-style: italic; color: var(--brick); }
.menu-time { text-align: center; color: var(--muted); margin-bottom: 1.6rem; }
.menu-items { list-style: none; padding: 0; margin: 0; position: relative; }
.menu-items li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .85rem 0; border-bottom: 1px dotted var(--line); }
.menu-items li:last-child { border-bottom: 0; }
.menu-items strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.menu-items p { grid-column: 1; margin: 0; color: var(--muted); font-size: .95rem; }
.diet { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: .3rem; }
.diet abbr { text-decoration: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sage-soft); color: var(--sage-text); font-size: .72rem; font-weight: 700; cursor: help; }
.menu-key { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.2rem 0 0; position: relative; }

/* ---------- Area guide ---------- */
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); padding: .55rem 1.05rem; font: 500 .95rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }
.chip:hover { border-color: var(--sage-text); }
.chip[aria-pressed="true"] { background: var(--sage-text); border-color: var(--sage-text); color: #fff; }
.chip svg { width: 1rem; height: 1rem; }
.area-count { text-align: center; color: var(--muted); margin: 0 0 1.8rem; font-size: .95rem; }
.area-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.spot { background: var(--paper); border: 1px solid var(--line); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; border-top: 4px solid var(--sage); }
.spot[data-type="eat"] { border-top-color: var(--mustard); }
.spot[data-type="sights"] { border-top-color: var(--brick); }
.spot[data-type="rainy"] { border-top-color: #6d8794; }
.spot-type { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-text); }
.spot h3 { font-size: 1.25rem; margin: 0; }
.spot p { color: var(--muted); font-size: .95rem; margin: 0; }
.spot-dist { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.spot-dist svg { width: 1rem; height: 1rem; color: var(--brick); }
.host-tip { font-style: italic; color: var(--brick-deep) !important; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 2rem 1.6rem 1.5rem; text-align: center; position: relative; }
.review::before { content: "\201C"; position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); width: 3rem; height: 2rem; overflow: hidden; font-family: var(--font-display); font-size: 3.6rem; line-height: 1; text-align: center; color: var(--brick); background: var(--paper); }
.review-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-text); border: 1px solid var(--sage); padding: .15rem .55rem; margin: .4rem 0 .9rem; }
.review blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.55; }
.review blockquote p { margin: 0; }
.review figcaption { color: var(--muted); font-size: .92rem; }
.review figcaption strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta { text-align: center; background: var(--sage-soft); border: 1px solid var(--line); padding: clamp(2.2rem, 5vw, 3.5rem) var(--gutter); position: relative; }
.cta::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--sage); pointer-events: none; }
.cta > * { position: relative; }

/* ---------- Page head ---------- */
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-head .lead { margin: 0 auto; }

/* ---------- Availability ---------- */
.avail-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .avail-grid { grid-template-columns: 1.6fr 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.5rem); }
.form-card h2 { font-size: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-top: 1.5rem; }
.form-card h2:first-child { margin-top: 0; }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.summary { position: sticky; top: 6.5rem; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.summary-head { background: var(--brick); color: #fff; padding: 1.1rem 1.4rem; }
.summary-head h2 { color: #fff; font-size: 1.35rem; margin: 0; }
.summary-body { padding: 1.3rem 1.4rem 1.5rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; margin: 0 0 1rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .9rem; margin-bottom: .8rem; }
.summary-total strong { font-family: var(--font-display); font-size: 2rem; color: var(--brick); }
.summary-note { font-size: .9rem; color: var(--muted); margin: 0; }
.summary-msg { margin: 0 0 1rem; padding: .7rem .9rem; background: var(--linen); font-size: .92rem; }
.summary-msg:empty { display: none; }
.summary-msg.is-warn { background: var(--error-bg); color: var(--error); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
label, .legend { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #a99880; border-radius: var(--radius); padding: .7rem .8rem; }
textarea { min-height: 6.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brick); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-error { display: block; color: var(--error); font-size: .9rem; margin-top: .3rem; }
.field-error:empty { display: none; }
.form-status { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 4px solid currentColor; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-error { background: var(--error-bg); color: var(--error); }
.form-note { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #2f2622; color: #e6d9c9; }
.site-footer .gingham { opacity: .9; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; }
.site-footer h2 { font-size: 1.2rem; color: #fff; margin-bottom: .8rem; }
.site-footer .logo, .site-footer .logo-text { color: #fff; }
.site-footer .logo-text small { color: #c9d1b8; }
.site-footer p, .site-footer address { color: #d8cabb; font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: #f3e7d9; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--mustard); }
.footer-bottom { border-top: 1px solid rgba(230, 217, 201, .2); padding: 1.3rem 0 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .9rem; }
.footer-bottom p { margin: 0; color: #c7b8a7; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
