/* Wutan Brighton — site styles. No build step: edit and redeploy. */

:root {
  --ink: #17130f;          /* header / footer */
  --paper: #f7f2e8;        /* page background */
  --surface: #fffdf8;      /* cards */
  --text: #231d17;
  --muted: #645a4e;
  --line: #e2d8c6;
  --red: #a8231a;          /* seal red: buttons, accents */
  --red-hover: #8c1c14;
  --link: #9a2118;
  --on-ink: #f4ede1;
  --on-ink-muted: #b9ad9c;
  --shadow: 0 1px 2px rgb(30 20 10 / .06), 0 8px 24px rgb(30 20 10 / .06);
  --radius: 10px;
  --wrap: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0d0b09;
    --paper: #14110e;
    --surface: #1d1915;
    --text: #eee6d8;
    --muted: #b3a795;
    --line: #362f27;
    --red: #b8342a;
    --red-hover: #cc4236;
    --link: #f0907f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    --map-bg: #1d1915;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .3em; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--on-ink); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; min-height: 76px; flex-wrap: wrap; padding-block: .75rem;
}
.logo img { width: 200px; height: auto; }
.nav-toggle {
  display: none;
  background: none; color: var(--on-ink); border: 1px solid #4a4036;
  border-radius: 8px; padding: .45rem .8rem; font: 500 .95rem var(--font-body); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--on-ink-muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 6px; display: block;
}
.site-nav a:hover { color: var(--on-ink); background: rgb(255 255 255 / .06); }
.site-nav a[aria-current="page"] { color: var(--on-ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.site-nav .btn { margin-left: .5rem; color: #fff; }

@media (max-width: 880px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .site-nav .btn { margin: .5rem 0 0; text-align: center; }
  .logo img { width: 160px; }
}

/* Mobile: slim sticky header that hides on scroll down, reappears on scroll up (see site.js) */
@media (max-width: 880px) {
  html { scroll-padding-top: 4.5rem; }
  .site-header { position: sticky; top: 0; z-index: 50; transition: transform .25s ease; }
  .site-header .wrap { min-height: 56px; padding-block: .5rem; }
  .logo img { width: 132px; }
  .site-header.is-hidden { transform: translateY(-100%); }
  .js .site-nav.open { max-height: calc(100dvh - 56px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--font-body); padding: .85rem 1.3rem; border-radius: 8px;
  border: 2px solid var(--red); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); }
.site-nav .btn { padding: .6rem 1rem; font-size: .95rem; }
.site-nav .btn:hover { background: var(--red-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink);
  min-height: min(78vh, 640px); display: grid; align-items: end;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(12 9 6 / .88) 0%, rgb(12 9 6 / .66) 50%, rgb(12 9 6 / .3) 100%),
              linear-gradient(0deg, rgb(12 9 6 / .6), transparent 50%);
}
/* Home hero crossfade (site.js). Extra photos load after the page, so the first view stays fast. */
.hero .hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero .hero-slide.is-active { opacity: 1; }
.hero-toggle {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem;
  background: rgb(0 0 0 / .5); color: #fff; border: 1px solid rgb(255 255 255 / .45); border-radius: 6px;
  font: 600 .8rem/1 var(--font-body); padding: .5rem .75rem; cursor: pointer;
}
.hero-toggle:hover { background: rgb(0 0 0 / .7); }
@media (prefers-reduced-motion: reduce) { .hero .hero-slide { transition: none; } }
.hero .wrap { position: relative; z-index: 1; padding-block: 4rem 3.5rem; }
.hero .lead { font-size: 1.2rem; max-width: 36ch; color: #efe6d6; }
.eyebrow {
  font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--link); margin-bottom: 1rem; display: block;
}
.hero .eyebrow { color: #f4ede1; font-size: .85rem; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.hero h1, .hero .lead { text-shadow: 0 1px 4px rgb(0 0 0 / .45); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, rgb(12 9 6 / .92) 0%, rgb(12 9 6 / .78) 55%, rgb(12 9 6 / .35) 100%); }
}

.page-head { background: var(--ink); color: var(--on-ink); padding-block: 3rem 2.5rem; }
.page-head p { color: var(--on-ink-muted); max-width: 60ch; font-size: 1.15rem; margin: 0; }
.page-head .eyebrow { color: #f2a294; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--line); }
.section-intro { max-width: 60ch; margin-bottom: 2rem; color: var(--muted); }

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.3fr 1fr; } .split.flip { grid-template-columns: 1fr 1.3fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--link); }
.card p { color: var(--muted); }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.figure img { width: 100%; }

/* Timetable card */
.timetable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.timetable h2, .timetable h3 { margin-bottom: 1rem; }
.slot { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.slot:first-of-type { border-top: 0; }
.slot strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.slot time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.slot .note { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
.timetable address { font-style: normal; color: var(--muted); margin: 1rem 0 1.25rem; }

.values { list-style: none; padding: 0; margin: 0; }
.values li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.values li::before { content: ""; position: absolute; left: 0; top: .6em; width: .65rem; height: .65rem; background: var(--red); border-radius: 2px; transform: rotate(45deg); }

.pillars .card-body h3 { display: flex; align-items: center; gap: .6rem; }
.pillars .num { font: 600 .8rem/1 var(--font-body); color: #fff; background: var(--red); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }

.band { background: var(--ink); color: var(--on-ink); }
.band p { color: var(--on-ink-muted); }
.band a:not(.btn), .band .eyebrow { color: #f2a294; }
.band .btn-ghost { color: var(--on-ink); }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.price-table th, .price-table td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.price-table th { font-weight: 500; }
.small { font-size: .92rem; color: var(--muted); }

.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); max-width: 65ch; }

/* History / lineage */
.lineage { display: grid; gap: 2rem; }
.lineage article { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start; }
.lineage img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--surface); box-shadow: var(--shadow); filter: grayscale(.2); }
.lineage .year { display: block; font: 600 .8rem/1 var(--font-body); color: var(--link); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
@media (max-width: 520px) { .lineage article { grid-template-columns: 1fr; } }

blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--red); font-family: var(--font-display); font-size: 1.2rem; font-style: italic; }

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--line); }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgb(8 6 4 / .9); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 6px; }
dialog.lightbox button { position: fixed; top: 1rem; right: 1rem; background: #fff; color: #111; border: 0; border-radius: 50%; width: 2.5rem; height: 2.5rem; font-size: 1.4rem; cursor: pointer; }
dialog.lightbox .nav-btn { top: 50%; transform: translateY(-50%); }
dialog.lightbox .prev { left: 1rem; right: auto; }
dialog.lightbox .next { right: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: var(--on-ink); }
.site-footer h2 { color: var(--on-ink); font-size: 1.1rem; margin-bottom: .75rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 2.5rem; }
.footer-base { border-top: 1px solid #2e2720; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Click-to-load map: Google Maps only loads (and sets cookies) after the visitor asks for it */
.map-consent { display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 1.5rem; background: var(--map-bg, #f1ece2); border: 1px solid var(--line); }
.map-consent p { margin: 0; }
.map-consent .btn { display: none; }
.js .map-consent .btn { display: inline-block; }
.map-note { font-size: .85rem; color: var(--muted); max-width: 34ch; }
