/* Chic Mi Studio — site.css
   Brand colors live in :root below. Change a hex there and it updates everywhere. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand palette */
  --onyx: #000000;
  --rose: #D6A27E;
  --rose-mid: #B98362;
  --champagne: #F8D7BE;
  --rose-deep: #84533A;
  --blush: #F5E9E3;
  --blush-deep: #EFDDD3;
  --cocoa: #2B1F1E;

  /* roles */
  --on-dark: #F3E6DE;
  --on-dark-muted: #BFA597;
  --on-light-muted: #6B5550;
  --line-dark: rgba(214, 162, 126, 0.26);
  --line-light: #E2CCC0;
  --metal: linear-gradient(100deg, #B98362 0%, #D6A27E 28%, #F8D7BE 50%, #D6A27E 72%, #B98362 100%);

  --display: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;
  --sans: "Jost", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;

  --header-h: 68px;
  --wrap: 1140px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

html {
  background: var(--onyx);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--blush);
  color: var(--cocoa);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 2.25rem); } }

.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;
}

/* focus: always visible, colored for the surface it sits on */
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 2px; }
.is-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .dock :focus-visible {
  outline-color: var(--champagne);
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--rose); color: var(--onyx); padding: 0.7rem 1.1rem; border-radius: 999px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--onyx); color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--on-dark-muted);
  padding: 0.5rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--champagne); }
.site-nav a[aria-current="page"] { color: var(--champagne); border-bottom-color: var(--rose); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .brand img { height: 40px; }
  .js .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; min-height: 44px;
    background: none; border: 1px solid var(--line-dark); color: var(--champagne);
    font: inherit; font-size: 0.9rem; letter-spacing: 0.12em; padding: 0.35rem 1.1rem; border-radius: 999px; cursor: pointer;
  }
  /* without JavaScript, the nav simply wraps under the logo */
  html:not(.js) .header-in { flex-wrap: wrap; padding-block: 0.6rem; }
  html:not(.js) .site-nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 0.8rem 1.4rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 0.4rem 1.2rem; }

  .js .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--onyx); flex-direction: column; align-items: flex-start; gap: 2rem;
    padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.2s ease, visibility 0.2s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; }
  .js .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .js .site-nav a:not(.btn) { font-family: var(--display); font-size: 2rem; letter-spacing: 0; color: var(--on-dark); display: block; padding: 0.35rem 0; }
  .js .site-nav a[aria-current="page"] { color: var(--rose); border-bottom-color: transparent; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.75rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.1em;
  text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-rose { background: var(--rose); color: var(--onyx); }
.btn-rose:hover { background: var(--champagne); }
.btn-outline-light { border-color: var(--rose); color: var(--champagne); background: transparent; }
.btn-outline-light:hover { background: var(--rose); color: var(--onyx); }
.btn-deep { background: var(--rose-deep); color: var(--blush); }
.btn-deep:hover { background: var(--cocoa); }
.btn-outline-deep { border-color: var(--rose-deep); color: var(--rose-deep); background: transparent; }
.btn-outline-deep:hover { background: var(--rose-deep); color: var(--blush); }
.site-nav .btn { min-height: 42px; padding: 0.5rem 1.4rem; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.text-link { color: var(--rose-deep); font-weight: 400; }
.is-dark .text-link { color: var(--rose); }

/* ---------- Metallic text (dark backgrounds only) ---------- */
.metal {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: var(--rose);
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) { .metal { -webkit-text-fill-color: CanvasText; background: none; } }

/* ---------- Bands ---------- */
.band { padding-block: clamp(3.5rem, 9vw, 7rem); }
.is-dark { background: var(--onyx); color: var(--on-dark); }
.is-dark p { color: var(--on-dark); }
.is-dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--on-light-muted); }
.display { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); max-width: 40ch; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 60ch; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--onyx); color: var(--on-dark);
  min-height: min(92svh, 860px); display: grid; place-items: center; text-align: center;
  padding-block: clamp(3.5rem, 10vw, 6rem);
}
.hero::after { /* thin inset frame: a nod to hanok window lattice */
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--line-dark); pointer-events: none;
}
.hero-moon {
  position: absolute; left: 50%; top: 46%; width: min(118vw, 780px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(214, 162, 126, 0.24) 0%, rgba(214, 162, 126, 0.09) 38%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 0; width: min(86vw, 560px); }
.hero-logo img { width: 100%; }
.hero-tagline { margin: 1.4rem 0 0.2rem; font-size: clamp(1rem, 2.8vw, 1.2rem); letter-spacing: 0.28em; color: var(--champagne); }
.hero-note { margin: 0 0 2.2rem; color: var(--on-dark-muted); font-size: 0.98rem; }
.hero .actions { justify-content: center; }
.hero-side {
  position: absolute; left: 30px; bottom: 44px;
  writing-mode: vertical-rl; transform: rotate(180deg); margin: 0;
  font-size: 0.78rem; letter-spacing: 0.4em; color: var(--on-dark-muted); z-index: 1;
}
@media (max-width: 780px) {
  .hero-side { display: none; }
  .hero { min-height: min(80svh, 720px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-moon { animation: moon-rise 1.8s cubic-bezier(0.16, 0.84, 0.34, 1) both; }
  .hero-logo { animation: fade-up 1.3s cubic-bezier(0.16, 0.84, 0.34, 1) 0.2s both; }
  .hero-tagline, .hero-note, .hero .actions { animation: fade-up 1.1s cubic-bezier(0.16, 0.84, 0.34, 1) 0.55s both; }
}
@keyframes moon-rise { from { opacity: 0; transform: translate(-50%, -46%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { background: var(--onyx); color: var(--on-dark); padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2.5rem, 7vw, 4rem); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; right: -12vw; top: -28vw; width: min(70vw, 520px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 162, 126, 0.2) 0%, rgba(214, 162, 126, 0.06) 40%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); margin-bottom: 0.3em; position: relative; }
.page-head .lead { color: var(--on-dark-muted); position: relative; margin-bottom: 0; }

/* ---------- Services preview (home) ---------- */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: 2.5rem; }
@media (max-width: 700px) { .menu-cols { grid-template-columns: 1fr; } }
.menu-cols h3 { font-size: 1.7rem; color: var(--champagne); }
.plain-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.plain-list li { padding: 0.7rem 0; border-top: 1px solid var(--line-dark); }
.plain-list li:last-child { border-bottom: 1px solid var(--line-dark); }

/* ---------- Services page ---------- */
.svc-cat + .svc-cat { margin-top: clamp(3rem, 8vw, 5rem); }
.svc-cat > h2 { font-size: clamp(2rem, 6vw, 3rem); }
.svc-cat > p { max-width: 58ch; }
.svc-note {
  display: inline-block; margin: 0 0 2rem; padding: 0.6rem 1.1rem; border: 1px solid var(--line-light);
  border-radius: 12px; font-size: 0.9rem; color: var(--on-light-muted); background: var(--blush-deep);
}
.svc-list { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 860px; }
.svc { padding: 1.5rem 0; border-top: 1px solid var(--line-light); }
.svc:last-child { border-bottom: 1px solid var(--line-light); }
.svc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.svc-name { font-size: clamp(1.3rem, 3.6vw, 1.55rem); margin: 0; }
.badge {
  font-size: 0.78rem; letter-spacing: 0.08em; padding: 0.12rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--rose-deep); color: var(--rose-deep); white-space: nowrap;
}
.svc-desc { margin: 0.45rem 0 0.8rem; max-width: 62ch; color: var(--on-light-muted); }
.svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.svc-meta .price { font-variant-numeric: tabular-nums; }
.svc-book { margin-left: auto; color: var(--rose-deep); font-weight: 400; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 520px) { .svc-book { margin-left: 0; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }
.arch { margin: 0; }
.arch img {
  width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% 30%;
  border-radius: 50% 50% 10px 10px / 34% 34% 6px 6px;
  border: 1px solid var(--rose);
}
.founder h2, .founder h1 { font-size: clamp(2.2rem, 6.6vw, 3.4rem); }
.pull {
  font-family: var(--display); font-size: clamp(1.25rem, 3.4vw, 1.6rem); line-height: 1.45;
  margin: 2rem 0 0; padding-left: 1.3rem; border-left: 2px solid var(--rose); max-width: 38ch;
}
.is-dark .pull { color: var(--champagne); }

.creed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 760px) { .creed { grid-template-columns: 1fr; } }
.creed h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--rose-deep); }
.creed p { font-family: var(--display); font-size: clamp(1.15rem, 2.8vw, 1.4rem); line-height: 1.6; max-width: 40ch; }

/* ---------- Before you book (home) ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); margin: 2.2rem 0; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }
.notes div { border-top: 1px solid var(--line-dark); padding-top: 1rem; }
.notes h3 { font-size: 1.3rem; color: var(--champagne); margin-bottom: 0.3em; }
.notes p { color: var(--on-dark-muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 2vw, 1.2rem); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.g-item { margin: 0; }
.g-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--blush-deep); }
.g-item figcaption { font-size: 0.92rem; color: var(--on-light-muted); padding-top: 0.5rem; }
.g-pair { grid-column: 1 / -1; margin: 0.6rem 0; }
.g-pair-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.6rem, 2vw, 1.2rem); }
.g-pair figure { margin: 0; position: relative; }
.g-pair .tag {
  position: absolute; left: 0.6rem; top: 0.6rem; background: var(--onyx); color: var(--champagne);
  font-size: 0.8rem; letter-spacing: 0.12em; padding: 0.2rem 0.75rem; border-radius: 999px;
}
.g-pair > figcaption, .g-pair-cap { font-family: var(--display); font-size: 1.2rem; padding-top: 0.7rem; }
@media (max-width: 480px) { .g-pair-in { grid-template-columns: 1fr; } }
.empty {
  background: var(--onyx); color: var(--on-dark); text-align: center; border-radius: 4px 4px 48px 48px;
  padding: clamp(3rem, 10vw, 5rem) 1.5rem; position: relative; overflow: hidden;
}
.empty::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 420px; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(214, 162, 126, 0.18) 0%, rgba(0, 0, 0, 0) 66%); pointer-events: none;
}
.empty > * { position: relative; }
.empty h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.empty p { color: var(--on-dark-muted); max-width: 40ch; margin-inline: auto; }
.empty .actions { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.15rem 0; font-family: var(--display); font-size: clamp(1.15rem, 3.2vw, 1.35rem); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--rose-deep); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.3rem; max-width: 64ch; color: var(--on-light-muted); }

/* ---------- Policies / legal text ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); margin-top: 2.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.notice {
  border: 1px solid var(--rose-deep); background: var(--blush-deep); color: var(--cocoa);
  padding: 1rem 1.2rem; border-radius: 4px; margin: 0 0 2.2rem; font-size: 0.96rem;
}

/* ---------- Contact + forms ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.ways { list-style: none; margin: 0; padding: 0; }
.ways li { border-top: 1px solid var(--line-light); padding: 1rem 0; }
.ways li:last-child { border-bottom: 1px solid var(--line-light); }
.ways .k { display: block; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--on-light-muted); }
.ways a { font-family: var(--display); font-size: 1.35rem; text-decoration: none; color: var(--cocoa); }
.ways a:hover { color: var(--rose-deep); }
.ways p { margin: 0; font-family: var(--display); font-size: 1.2rem; }

.form-card { background: #FBF5F1; border: 1px solid var(--line-light); padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 4px 4px 36px 36px; }
.form-card h2 { font-size: clamp(1.6rem, 4.6vw, 2rem); }
.field { margin-bottom: 1.15rem; }
.field label, .field .label { display: block; font-size: 0.92rem; font-weight: 400; margin-bottom: 0.35rem; }
.field .hint { font-size: 0.85rem; color: var(--on-light-muted); margin: -0.15rem 0 0.4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */
  color: var(--cocoa); background: #fff; border: 1px solid #CDB4A7; border-radius: 10px;
  padding: 0.75rem 0.9rem; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--rose-deep) 50%), linear-gradient(135deg, var(--rose-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose-deep); outline-offset: 1px; border-color: var(--rose-deep); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9B2C2C; border-width: 2px; }
.field-err { color: #8E2424; font-size: 0.9rem; margin: 0.35rem 0 0; font-weight: 400; }
.field-err::before { content: "! "; font-weight: 500; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 0.2rem 0 0; accent-color: var(--rose-deep); }
.field-check label { font-size: 0.92rem; margin: 0; }
.field-check .field-err { grid-column: 1 / -1; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1rem; min-height: 44px; margin: 0; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--rose-deep); }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
fieldset.field legend { font-size: 0.92rem; font-weight: 400; margin-bottom: 0.2rem; padding: 0; }
.form-card .btn { width: 100%; margin-top: 0.4rem; }
.form-card .btn[disabled] { opacity: 0.7; cursor: progress; }
.fine { font-size: 0.85rem; color: var(--on-light-muted); margin: 0.9rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1.5rem; }
.alert:focus { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-ok { background: var(--onyx); color: var(--on-dark); border-radius: 4px 4px 28px 28px; padding: 1.6rem 1.4rem; }
.alert-ok h2 { color: var(--champagne); font-size: 1.8rem; }
.alert-bad { background: #FBEDEA; border: 1px solid #9B2C2C; color: #5E1717; }
.alert-bad a { color: #5E1717; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 6.4vw, 3.2rem); }
.cta p { max-width: 44ch; margin-inline: auto; }
.cta .actions { justify-content: center; margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--onyx); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding: 3.5rem 0 7.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { width: 150px; }
.footer-h { font-family: var(--sans); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.2em; color: var(--rose); margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { text-decoration: none; color: var(--on-dark); display: inline-block; padding: 0.15rem 0; }
.site-footer a:hover { color: var(--champagne); text-decoration: underline; }
.site-footer p { color: var(--on-dark-muted); margin-bottom: 0.5rem; }
.footer-base { margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }

/* ---------- Floating Book button (every page) ---------- */
.dock {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem;
}
.dock-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px;
  background: var(--rose); color: var(--onyx); border: 1px solid var(--champagne);
  font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0.1em;
  padding: 0.8rem 1.7rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.dock-btn:hover { background: var(--champagne); }
.dock-btn .spark { width: 7px; height: 7px; border-radius: 50%; background: var(--onyx); }
.dock-menu {
  background: var(--onyx); border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden;
  min-width: 230px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dock.is-open .dock-menu { visibility: visible; opacity: 1; transform: none; }
.dock-menu a { display: block; padding: 0.85rem 1.2rem; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.dock-menu a:last-child { border-bottom: 0; }
.dock-menu a:hover { background: #140F0D; color: var(--champagne); }
.dock-menu small { display: block; font-size: 0.8rem; color: var(--on-dark-muted); letter-spacing: 0.04em; }
.js .nojs-only { display: none; }
html:not(.js) .js-only { display: none; }
.hide-dock .dock, body.nav-open .dock { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- 404 ---------- */
.lost { min-height: 70svh; display: grid; place-items: center; text-align: center; }
.lost h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
.lost .actions { justify-content: center; }
