@import url("fonts.css");

/* =============================================================================
   3 STORY | Modern Resto & Cafe - Surat
   Design system.

   The palette is lifted from the room itself: the bamboo-reed pergola, the
   rattan pendants, the sculpted clay banquettes, the olive cushions and the
   wrought-iron lanterns at dusk. Brand gold #DEA34B is taken straight from the
   real logo artwork.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* night - the terrace after sunset */
  --night:      #11140f;
  --night-2:    #171b14;
  --night-3:    #1f241b;
  --night-4:    #2a3024;
  --bark:       #090b07;

  /* paper - the printed menu card */
  --paper:      #fbf6ec;
  --cream:      #f3eada;
  --cream-2:    #e7dbc4;
  --cream-3:    #d9c9ac;

  /* the lamps */
  --gold:       #dea34b;
  --gold-lt:    #f0c584;
  --gold-dk:    #a9761f;
  --glow:       rgba(222, 163, 75, .28);

  /* the plants and the plaster */
  --sage:       #7d8c63;
  --leaf:       #3e5236;
  --clay:       #c9a782;
  --brick:      #9a4b2e;

  --ink:        #14170f;
  --ink-soft:   #3c4335;

  /* on-dark text */
  --fg:         #f3eada;
  --fg-dim:     rgba(243, 234, 218, .66);
  --fg-faint:   rgba(243, 234, 218, .38);
  --hair:       rgba(243, 234, 218, .14);
  --hair-soft:  rgba(243, 234, 218, .08);

  /* on-paper text */
  --fg-ink:     #14170f;
  --fg-ink-dim: rgba(20, 23, 15, .66);
  --hair-ink:   rgba(20, 23, 15, .16);

  /* type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Karla", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* metrics */
  --gutter: clamp(20px, 5.2vw, 72px);
  --wrap: 1320px;
  --wrap-narrow: 880px;
  --radius: 2px;
  --radius-lg: 4px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --nav-h: 76px;

  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

@media (max-width: 760px) { :root { --nav-h: 64px; } }

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(16px, .55vw + 14.4px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 0; }
table { border-collapse: collapse; }

::selection { background: var(--gold); color: var(--ink); }

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

/* ---------- 3. Typography ------------------------------------------------ */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 90;
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.d1 { font-size: clamp(2.9rem, 8.2vw, 7.4rem); }
.d2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.d3 { font-size: clamp(1.7rem, 3.1vw, 2.75rem); line-height: 1.1; }
.d4 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.18; letter-spacing: -.012em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .9em;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: clamp(22px, 4vw, 46px);
  height: 1px;
  background: currentColor;
  opacity: .7;
  flex: none;
}
.eyebrow.is-centred { justify-content: center; }
.eyebrow.is-centred::after {
  content: "";
  width: clamp(22px, 4vw, 46px);
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.lede {
  font-size: clamp(1.06rem, 1.2vw, 1.28rem);
  line-height: 1.62;
  color: var(--fg-dim);
  max-width: 60ch;
}

.serif-note {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 24;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--gold-lt);
  line-height: 1.5;
}

.num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1;
  color: var(--gold);
  opacity: .5;
}

.amp { font-family: var(--display); font-style: italic; font-variation-settings: "WONK" 1; }

.on-paper { background: var(--paper); color: var(--fg-ink); }
.on-cream { background: var(--cream); color: var(--fg-ink); }
.on-paper .lede, .on-cream .lede { color: var(--fg-ink-dim); }
.on-paper .eyebrow, .on-cream .eyebrow { color: var(--gold-dk); }
.on-paper .serif-note, .on-cream .serif-note { color: var(--brick); }

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(72px, 10vw, 148px); position: relative; }
.section-sm { padding-block: clamp(52px, 6.5vw, 96px); }

.grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.g-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }

@media (max-width: 980px) {
  .g-3, .g-7-5, .g-5-7 { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

.stack > * + * { margin-top: var(--gap, 1.25rem); }

/* ---------- 5. Texture --------------------------------------------------- */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 180px 180px;
  z-index: 1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .32;
  mix-blend-mode: soft-light;
  background-image: var(--grain-url);
  background-size: 200px 200px;
}

.slat-rule {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 11px);
  opacity: .3;
}

/* ---------- 6. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .92em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .3s, border-color .3s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-lt);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--glow); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--hair); }
.btn-ghost::before { background: var(--gold); }
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }
.on-paper .btn-ghost, .on-cream .btn-ghost { --btn-fg: var(--fg-ink); border-color: var(--hair-ink); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: .35em;
  position: relative;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(.26);
  transition: transform .55s var(--ease);
}
.tlink:hover::after { transform-origin: left; transform: scaleX(1); }
.tlink svg { width: 14px; height: 14px; transition: transform .45s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.on-paper .tlink, .on-cream .tlink { color: var(--brick); }

/* ---------- 7. Header ---------------------------------------------------- */
.skip {
  position: fixed;
  top: 10px; left: 50%;
  transform: translate(-50%, -200%);
  z-index: 10000;
  background: var(--gold);
  color: var(--ink);
  padding: .7em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .3s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 11, 7, .72), transparent);
  pointer-events: none;
  transition: opacity .5s;
}
.site-head.is-stuck {
  background: rgba(17, 20, 15, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hair-soft);
}
.site-head.is-stuck::before { opacity: 0; }

.head-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.brand { display: flex; align-items: center; gap: .72rem; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-txt { line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  font-size: 1.22rem;
  display: block;
}
.brand-sub {
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: block;
  margin-top: .34em;
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand img { width: 34px; height: 34px; } }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  padding-block: .4em;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-cta { display: flex; align-items: center; gap: .8rem; flex: none; }
.head-cta .btn { padding: .72em 1.3em; font-size: .74rem; }

@media (max-width: 1080px) { .nav, .head-cta .btn-ghost { display: none; } }
@media (min-width: 1081px) { .head-cta .burger { display: none; } }
.lbl-short { display: none; }
@media (max-width: 560px) {
  .head-cta .lbl-long { display: none; }
  .head-cta .lbl-short { display: inline; }
  .head-cta .btn { padding: .72em 1.1em; }
}

.burger {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hair);
  transition: border-color .3s, background .3s;
}
.burger:hover { border-color: var(--gold); }
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--fg);
  transition: transform .45s var(--ease), opacity .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--bark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .72s var(--ease), visibility .72s;
  overflow-y: auto;
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer-nav { display: flex; flex-direction: column; gap: .2rem; }
.drawer-nav a {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.22;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.drawer.is-open .drawer-nav a { opacity: 1; transform: none; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { color: var(--gold); }
.drawer-nav i {
  font-family: var(--sans);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .6;
  flex: none;
}
.drawer-foot {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  font-size: .86rem;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease) .32s, transform .5s var(--ease) .32s;
}
.drawer.is-open .drawer-foot { opacity: 1; transform: none; }
.drawer-foot a:hover { color: var(--gold); }
body.is-locked { overflow: hidden; }

/* ---------- 8. Reveal animations ----------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms),
    clip-path 1.1s var(--ease) var(--d, 0ms);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.955); }
[data-reveal="wipe"] { transform: none; clip-path: inset(0 0 100% 0); opacity: 1; }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

.lines { display: block; }
.lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines .line > span {
  display: block;
  transform: translateY(106%);
  transition: transform 1.05s var(--ease) var(--ld, 0ms);
}
.lines.is-in .line > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .lines .line > span { transform: none !important; }
}

/* ---------- 9. Media frames ---------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--night-3);
  border-radius: var(--radius-lg);
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame-r43 { aspect-ratio: 4 / 3; }
.frame-r11 { aspect-ratio: 1 / 1; }
.frame-r34 { aspect-ratio: 3 / 4; }
.frame-r169 { aspect-ratio: 16 / 9; }
.frame-r23 { aspect-ratio: 2 / 3; }
.frame-r54 { aspect-ratio: 5 / 4; }

/* the warm grade that ties the room photography together */
.frame.graded::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(222, 163, 75, .12), transparent 62%),
    linear-gradient(to top, rgba(9, 11, 7, .34), transparent 54%);
  pointer-events: none;
}

.frame.zoom img { transition: transform 1.4s var(--ease); }
a:hover .frame.zoom img, .frame.zoom:hover img { transform: scale(1.055); }

.cap {
  margin-top: .85rem;
  font-size: .78rem;
  letter-spacing: .07em;
  color: var(--fg-faint);
  display: flex;
  gap: .7em;
  align-items: baseline;
}
.cap b { color: var(--gold); font-weight: 700; flex: none; }
.on-paper .cap, .on-cream .cap { color: var(--fg-ink-dim); }
.on-paper .cap b, .on-cream .cap b { color: var(--brick); }

/* nothing in a real room is perfectly square */
.tilt-l { transform: rotate(-1.35deg); }
.tilt-r { transform: rotate(1.15deg); }

/* ---------- 10. Marquee -------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hair);
  padding-block: clamp(14px, 1.6vw, 22px);
  background: var(--night-2);
  position: relative;
}
.marquee.is-paper { background: var(--cream); border-color: var(--hair-ink); color: var(--fg-ink); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(1.6rem, 3.4vw, 3.4rem);
  animation: slide 46s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  letter-spacing: -.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3.4vw, 3.4rem);
}
.marquee-track > span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  opacity: .85;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- 11. Footer --------------------------------------------------- */
.site-foot {
  background: var(--bark);
  border-top: 1px solid var(--hair-soft);
  padding-block: clamp(56px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.foot-glow {
  position: absolute;
  top: -40%; left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
  opacity: .5;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  position: relative;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

.foot-h {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.foot-list { display: flex; flex-direction: column; gap: .62rem; font-size: .93rem; color: var(--fg-dim); }
.foot-list a { transition: color .3s, padding-left .3s; }
.foot-list a:hover { color: var(--gold); padding-left: 5px; }

.foot-hours { font-size: .93rem; color: var(--fg-dim); line-height: 1.9; }
.foot-hours b { color: var(--fg); font-weight: 600; }

.foot-bottom {
  margin-top: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--hair-soft);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--fg-faint);
  position: relative;
}
.foot-bottom a:hover { color: var(--gold); }

.social { display: flex; gap: .6rem; }
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-content: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }

/* ---------- 12. Cards ---------------------------------------------------- */
.card {
  background: var(--night-2);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 38px);
  position: relative;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s;
}
.card:hover { border-color: var(--hair); transform: translateY(-4px); }
.card .num { position: absolute; top: 14px; right: 20px; opacity: .14; }
.on-paper .card, .on-cream .card {
  background: #fff;
  border-color: var(--hair-ink);
  box-shadow: 0 1px 2px rgba(20, 23, 15, .04);
}

/* ---------- 13. Quote ---------------------------------------------------- */
.quote { position: relative; }
.quote q {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 72;
  font-size: clamp(1.25rem, 2.1vw, 1.76rem);
  line-height: 1.42;
  letter-spacing: -.012em;
  display: block;
}
.quote footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.on-paper .quote footer, .on-cream .quote footer { color: var(--fg-ink-dim); }
.quote .initial {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0;
  flex: none;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 13px; height: 13px; }

/* ---------- 14. Page hero (inner pages) ---------------------------------- */
.page-hero {
  position: relative;
  min-height: clamp(380px, 56vh, 620px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(44px, 6vw, 86px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--night) 2%, rgba(17, 20, 15, .56) 46%, rgba(9, 11, 7, .62) 100%),
    radial-gradient(90% 70% at 20% 90%, rgba(222, 163, 75, .14), transparent 60%);
}
.page-hero h1 { max-width: 16ch; }
.crumb {
  display: flex;
  gap: .6em;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1.4rem;
}
.crumb a:hover { color: var(--gold); }
.crumb span { opacity: .5; }

/* ---------- 15. Forms ---------------------------------------------------- */
.field { display: block; position: relative; }
.field > span.lbl {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .6rem;
}
.on-paper .field > span.lbl, .on-cream .field > span.lbl { color: var(--fg-ink-dim); }

.input {
  width: 100%;
  padding: .92em 1.1em;
  background: var(--night-2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: .98rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { min-height: 128px; resize: vertical; line-height: 1.6; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dea34b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 17px;
  padding-right: 2.8rem;
}
.input::placeholder { color: var(--fg-faint); }
.input:hover { border-color: rgba(243, 234, 218, .26); }
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(222, 163, 75, .15);
}
.on-paper .input, .on-cream .input { background: #fff; border-color: var(--hair-ink); color: var(--fg-ink); }
.on-paper .input::placeholder, .on-cream .input::placeholder { color: rgba(20, 23, 15, .4); }

.input[aria-invalid="true"] { border-color: #d4643f; box-shadow: 0 0 0 3px rgba(212, 100, 63, .14); }
.err { display: none; margin-top: .45rem; font-size: .78rem; color: #e8835f; }
.on-paper .err, .on-cream .err { color: #b5441c; }
.err.is-on { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: .6em 1.05em;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .3s var(--ease);
  user-select: none;
}
.on-paper .chips label, .on-cream .chips label { border-color: var(--hair-ink); }
.chips label:hover { border-color: var(--gold); }
.chips input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.chips input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 16. Toast ---------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 160%);
  z-index: 9500;
  background: var(--paper);
  color: var(--ink);
  padding: .95em 1.5em;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- 17. Lightbox ------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(6, 8, 5, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.is-on { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: scale(.96);
  transition: transform .5s var(--ease);
}
.lightbox.is-on figure { transform: scale(1); }
.lightbox img {
  max-height: calc(100vh - 180px);
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.lightbox figcaption { text-align: center; font-size: .86rem; color: var(--fg-dim); }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid;
  place-content: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(17, 20, 15, .6);
  transition: background .3s, color .3s, border-color .3s;
}
.lb-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb-close { top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px); }
.lb-prev { left: clamp(10px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(10px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-btn svg { width: 19px; height: 19px; }
@media (max-width: 620px) {
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ---------- 18. Scroll progress, to-top, curtain ------------------------- */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
  width: 0;
  z-index: 850;
}
.to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 760;
  width: 48px; height: 48px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .7);
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold-lt); }
.to-top svg { width: 18px; height: 18px; }

.curtain {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: var(--bark);
  pointer-events: none;
  opacity: 0;
  transition: opacity .42s var(--ease);
}
.curtain.is-on { opacity: 1; }

/* ---------- 19. Helpers -------------------------------------------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; } .mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.veg {
  display: inline-grid;
  place-content: center;
  width: 13px; height: 13px;
  border: 1.5px solid #5aa15a;
  border-radius: 2px;
  flex: none;
  vertical-align: middle;
}
.veg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5aa15a; }

/* native pickers (date, select popups) follow the surface they sit on */
.input { color-scheme: dark; }
.on-paper .input, .on-cream .input { color-scheme: light; }
