/* Self-hosted so the site makes no third-party requests.
   SIL Open Font License 1.1 — see public/fonts/ATTRIBUTION.md */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  src: url('/fonts/karla-latin-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Lotus Den palette — see lotus-den-palette.html */
  --bone: #f4efe7;
  --linen: #e7dfd2;
  --rose: #a0786b;
  --rose-deep: #7c5b4e;
  --walnut: #2e211a;
  --walnut-deep: #1e1510;
  --candle: #c87f2e;
  --candle-lift: #e5a048;
  --euc: #6c7a63;

  /* Roles — daylight */
  --bg: var(--bone);
  --surface: var(--linen);
  --ink: var(--walnut);
  --ink-soft: #6b584c; /* 5.87:1 on bone */
  --accent: var(--candle); /* button grounds only, never text */
  --on-accent: var(--walnut-deep); /* 5.58:1 on candle */
  --link: var(--rose-deep); /* 5.30:1 on bone — candle would be 2.81:1 */
  --brand-mark: var(--rose-deep); /* 5.30:1 on bone — candle would be 2.81:1 */
  --euc-text: #5e6b56; /* 4.94:1 on bone — euc itself is 3.99:1, fails AA */
  --focus: var(
    --ink
  ); /* 13.60:1 on bone — candle would be 2.81:1, below the 3:1 non-text minimum */
  --line: rgba(46, 33, 26, 0.14);
  --danger: #8f2f22;

  --space: 1rem;
  --measure: 66ch;
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--walnut-deep);
    --surface: #2c2018;
    --ink: #efe7db;
    --ink-soft: #b8a794; /* 7.69:1 on walnut-deep */
    --accent: var(--candle-lift);
    --on-accent: var(--walnut-deep);
    --link: var(--candle-lift); /* 8.08:1 on walnut-deep */
    --brand-mark: var(--candle-lift); /* 8.08:1 on walnut-deep */
    --euc-text: #9daf90; /* 6.76:1 on the dim surface, 7.67:1 on walnut-deep */
    --focus: var(--ink); /* 14.64:1 on walnut-deep */
    --rose: #b08b7c;
    --euc: #8a9a7e;
    --line: rgba(239, 231, 219, 0.14);
    --danger: #d9aa9b;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Karla, system-ui, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
}

h1,
h2,
h3,
.disp {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  max-width: var(--measure);
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--space);
  top: var(--space);
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.header__brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  /* All three words in one brown — the colour "Den" already had. The two-tone
     mark split the name in half for no reason once the poster carried the
     brand. */
  color: var(--brand-mark);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

.main {
  max-width: 62rem;
  margin: 0 auto;
  /* Extra bottom padding: the footer used to supply the page's closing space
     via its own margin, and there is no footer now. */
  padding: calc(var(--space) * 3) 26px calc(var(--space) * 5);
}

/* Hero: text beside the room, stacking on narrow screens */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0.24em 0 0.5em;
}
.hero__lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.roomshot {
  margin: 0;
}
.roomshot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.section {
  margin-top: calc(var(--space) * 4);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space) calc(var(--space) * 1.25);
}

.pricing {
  list-style: none;
  margin: 0 0 var(--space);
  padding: 0;
  max-width: 34rem;
}
.session,
.session-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: baseline;
  max-width: 34rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
/* One session length, so this reads as a single stated fact, not a table. */
.session-line {
  margin: 0 0 var(--space);
  font-size: 1.15rem;
}
.session__length {
  letter-spacing: 0.04em;
}
.session__price {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.pricing__note {
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: var(--space);
}
.pull-quote {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  border-left: 3px solid var(--euc);
  padding-left: var(--space);
  margin-left: 0;
}
.signature {
  color: var(--ink-soft);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease-out,
    filter 150ms ease-out;
}
.button:hover {
  filter: brightness(1.06);
}
.button:active {
  transform: scale(0.97);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space);
  max-width: 34rem;
}
.field input,
.field textarea {
  font: inherit;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.notice {
  padding: 0.75rem var(--space);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.notice--error {
  border-color: var(--danger);
  color: var(--danger);
}
.notice--success {
  border-color: var(--euc);
  color: var(--euc-text);
}

/* ── Jennie's portrait on /about ────────────────────────────────────────
   Small on purpose: it puts a face to the name without becoming a feature.
   Floated right so the prose wraps to its left and her raised hand gestures
   into the text. Capped in px as well as %, so it cannot grow into a
   centrepiece on a wide screen. */

/* The paragraphs cap at --measure while the article is wider, so a float at
   the article's right edge lands well clear of the text and the gesture points
   at nothing. Pull the article in to the measure plus the portrait. */
.prose {
  max-width: calc(var(--measure) + 190px);
}

.portrait {
  float: right;
  width: min(34%, 170px);
  height: auto;
  margin: 0 0 var(--space) var(--space);
  shape-outside: circle(50%);
}

@media (max-width: 32rem) {
  /* At phone width a float this size squeezes the measure to a few words a
     line, so let it sit on its own. */
  .portrait {
    float: none;
    display: block;
    width: 40%;
    margin: 0 auto var(--space);
  }
}

/* ── The phone reveal on /about ──────────────────────────────────────────
   The number appears only once the reader confirms they have read the page.
   Done with :checked and a sibling selector so it needs no JavaScript. */

.confirm {
  max-width: 34rem;
  /* Left-aligned with the prose above it, not centred — a centred panel under
     left-aligned body text reads as a mistake. */
  margin: calc(var(--space) * 3) auto 0 0;
  padding: calc(var(--space) * 1.5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.confirm h2 {
  margin-top: 0;
}

.confirm__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space);
}
.confirm__row label {
  cursor: pointer;
}
.confirm__input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
}

/* Clipped rather than display:none, so the number stays in the accessibility
   tree and the live region can announce it. */
.reveal {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease-out;
}
/* :has(), not a sibling combinator — the checkbox is nested inside
   .confirm__row, so it is not a sibling of .reveal and `~` never matches. */
.confirm:has(.confirm__input:checked) .reveal {
  height: auto;
  opacity: 1;
  margin-top: calc(var(--space) * 1.25);
}

.reveal__lead {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
}
.reveal__phone {
  margin: 0 0 0.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.reveal__phone a {
  text-decoration: none;
}
.reveal__phone a:hover {
  text-decoration: underline;
}
.reveal__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .main {
    padding: calc(var(--space) * 2) 20px;
  }
  .header {
    padding: 16px 20px;
  }
}

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