/* =============================================================================
   LilyDee Cosmetics — design system
   Drawn from the packaging: cream stock, gold foil, espresso ink.
   Type: Cormorant Garamond (display) · Jost (text & UI) · Lora (wordmark, as printed)
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* the stock */
  --paper:        #F1ECD9;
  --paper-2:      #F9F5E8;
  --paper-3:      #E7E0C6;
  --paper-4:      #D9D0B0;

  /* the ink */
  --ink:          #1A1509;
  --ink-2:        #443B29;
  --ink-3:        #6F6450;
  --ink-4:        #948873;

  /* the foil */
  --gold:         #A0803F;
  --gold-deep:    #6B5124;
  --gold-mid:     #8A6A3E;
  --gold-lite:    #C9AC7C;
  --gold-pale:    #E4D6B6;

  --espresso:     #15110A;
  --espresso-2:   #221B10;

  --line:         rgba(107,81,36,.20);
  --line-soft:    rgba(107,81,36,.11);
  --line-light:   rgba(228,214,182,.22);

  --foil: linear-gradient(104deg,
          var(--gold-deep) 0%, var(--gold-mid) 22%, var(--gold-lite) 44%,
          #EFE0C0 52%, var(--gold-lite) 60%, var(--gold-mid) 80%, var(--gold-deep) 100%);

  --display: "Cormorant Garamond", "Lora", Georgia, serif;
  --sans:    "Jost", "Lato", "Helvetica Neue", Arial, sans-serif;
  --wordmark:"Lora", Georgia, serif;

  --shell:   1280px;
  --shell-n: 1040px;
  --gut:     clamp(22px, 5vw, 64px);
  --band:    clamp(84px, 11vw, 176px);
  --tight:   clamp(56px, 7vw, 104px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15.5px, .48vw + 14px, 17.5px);
  line-height: 1.78;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;      /* long INCI names and addresses must not push out */
}

/* the stock has a tooth to it */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-mid); text-decoration: none; }
a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 1px solid var(--gold-mid);
  outline-offset: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--espresso); color: var(--paper); padding: 14px 22px;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

/* ----------------------------------------------------------------- type --- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.006em;
  font-feature-settings: "liga" 1, "dlig" 1;
}

h1 { font-size: clamp(3rem, 6.4vw, 5.7rem); line-height: 1.02; letter-spacing: -.018em; }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.08; letter-spacing: -.014em; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.62rem); line-height: 1.24; }
h4 { font-size: 1.06rem; line-height: 1.3; }

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
  background: var(--foil);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.02rem, .5vw + .92rem, 1.2rem);
  line-height: 1.82;
  color: var(--ink-2);
  font-weight: 300;
}
.measure { max-width: 62ch; }
.measure-s { max-width: 48ch; }
.small { font-size: .845rem; line-height: 1.72; letter-spacing: .015em; }
.mute { color: var(--ink-3); }
.center { text-align: center; }

/* the small-caps voice used throughout the packaging */
.eyebrow {
  font-family: var(--sans);
  font-size: .655rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.eyebrow--light { color: var(--gold-lite); }
.eyebrow--ink   { color: var(--ink-3); }

.serif-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- layout -- */
.wrap       { width: min(var(--shell-n), 100% - var(--gut) * 2); margin-inline: auto; }
.wrap--wide { width: min(var(--shell),   100% - var(--gut) * 2); margin-inline: auto; }

section { padding-block: var(--band); position: relative; }
.section--tight { padding-block: var(--tight); }

.grid { display: grid; gap: clamp(30px, 4vw, 68px); }
.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-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 34px); }
@media (max-width: 1180px) { .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 940px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .g-5 { grid-template-columns: 1fr; } }

/* the five-up strip runs tighter type than the wide cards */
.g-5 .product h3 { font-size: clamp(1.08rem, 1.25vw, 1.28rem); }
.g-5 .product .desc { font-size: .82rem; }
.g-5 .product .shot { aspect-ratio: 4 / 5; }
.g-5 .product .idx { margin-bottom: 1.1rem; }

.stack > * + * { margin-top: 1.15rem; }

/* dark bands — the espresso of the foil-stamped carton interior */
.dark {
  background: var(--espresso);
  color: rgba(241,236,217,.8);
  position: relative;
  overflow: hidden;
}
.dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% -20%, rgba(201,172,124,.13), transparent 62%);
}
.dark > * { position: relative; z-index: 1; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--paper-2); }
.dark .lede, .dark p { color: rgba(241,236,217,.76); }
.dark a { color: var(--gold-lite); }
.dark a:hover { color: var(--paper-2); }

/* hairline rules, the way the foil rules sit on the pack */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--gold { background: var(--foil); opacity: .55; }

.divider { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.divider img { width: clamp(88px, 12vw, 150px); opacity: .85; }
.dark .divider::before, .dark .divider::after { background: var(--line-light); }

/* --------------------------------------------------------------- header --- */
.site-head {
  position: sticky; top: 0; z-index: 900;
  background: rgba(241,236,217,.92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: clamp(10px, 1.1vw, 16px);
}
.brand { display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; }
.brand .mark {
  font-family: var(--wordmark);
  font-size: clamp(2.0rem, 5.2vw, 3.44rem);   /* twice the original */
  font-weight: 500;
  letter-spacing: .012em;
  line-height: 1.05;
  background: var(--foil);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .kr {
  font-size: clamp(.72rem, 1.5vw, 1.05rem); letter-spacing: .12em; color: var(--ink-4);
  font-family: var(--sans); font-weight: 300;
}
@media (max-width: 420px) { .brand .kr { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); }
.nav a {
  font-family: var(--sans); font-size: .69rem; font-weight: 400;
  letter-spacing: .215em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--foil); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink-2); font-family: var(--sans);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer;
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .5s var(--ease);
  }
  .nav a { width: 100%; padding: 18px var(--gut); border-top: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  [data-open="true"] .nav { max-height: 400px; }
}

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-size: .69rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  padding: 1.18em 2.5em; border: 1px solid var(--gold-mid);
  background-color: transparent;
  background-image: linear-gradient(var(--espresso), var(--espresso));
  background-repeat: no-repeat; background-position: 50% 100%; background-size: 100% 0%;
  color: var(--ink); text-align: center;
  transition: background-size .5s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background-size: 100% 100%; color: var(--paper-2); border-color: var(--espresso); }

.btn--solid {
  background-color: var(--espresso); border-color: var(--espresso); color: var(--paper-2);
  background-image: linear-gradient(var(--gold-lite), var(--gold-lite));
}
.btn--solid:hover { color: var(--espresso); border-color: var(--gold-lite); }

.btn--light {
  border-color: var(--gold-lite); color: var(--paper-2);
  background-image: linear-gradient(var(--gold-lite), var(--gold-lite));
}
.btn--light:hover { color: var(--espresso); border-color: var(--gold-lite); }

.link-more {
  font-family: var(--sans); font-size: .69rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-mid);
  display: inline-flex; align-items: center; gap: .85em;
}
.link-more::after {
  content: ""; width: 30px; height: 1px; background: currentColor;
  transition: width .4s var(--ease);
}
.link-more:hover::after { width: 46px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ----------------------------------------------------------------- hero --- */
.hero { padding-block: clamp(60px, 8vw, 132px) var(--band); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(38px, 6vw, 92px); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero .molecule { width: clamp(190px, 24vw, 290px); opacity: .9; margin: 2.2rem 0 2.4rem; }

.hero-figure { position: relative; }
/* the offset foil frame, borrowed from the carton */
.hero-figure::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold-mid); opacity: .5; pointer-events: none;
}
@media (max-width: 900px) { .hero-figure::before { inset: 16px -16px -16px 16px; } }

.hero-seal {
  position: absolute; left: -26px; bottom: 34px; z-index: 3;
  width: clamp(112px, 13vw, 148px); height: clamp(112px, 13vw, 148px);
  border-radius: 50%; background: var(--paper-2);
  border: 1px solid var(--gold-mid);
  display: grid; place-content: center; text-align: center; gap: .35em;
  box-shadow: 0 22px 50px -30px rgba(26,21,9,.55);
}
.hero-seal strong {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; color: var(--gold-deep);
}
.hero-seal span {
  font-family: var(--sans); font-size: .55rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); max-width: 11ch; margin-inline: auto;
  line-height: 1.5;
}
@media (max-width: 560px) { .hero-seal { left: auto; right: 6px; bottom: -14px; } }

/* ---------------------------------------------------------------- stats --- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: clamp(30px, 3.6vw, 52px) clamp(14px, 2vw, 30px);
  text-align: center; border-left: 1px solid var(--line-soft);
}
.stats > div:first-child { border-left: 0; }
.stats strong {
  display: block; font-family: var(--display); font-weight: 300;
  font-size: clamp(2.4rem, 4.2vw, 3.5rem); line-height: 1; color: var(--gold-deep);
  margin-bottom: .55rem;
}
.stats span {
  font-family: var(--sans); font-size: .625rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.7; display: block;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(odd) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* -------------------------------------------------------------- figures --- */
.fig { margin: 0; position: relative; background: var(--paper-3); overflow: hidden; }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--portrait { aspect-ratio: 4 / 5; }
.fig--tall     { aspect-ratio: 3 / 4; }
.fig--wide     { aspect-ratio: 16 / 10; }
.fig--square   { aspect-ratio: 1 / 1; }

/* if the photograph never arrives, the plate carries the brief instead */
.fig.is-missing img { display: none; }
.fig.is-missing::after {
  content: attr(data-shot);
  position: absolute; inset: 0; display: grid; place-content: center;
  padding: 12%; text-align: center;
  background:
    linear-gradient(140deg, var(--paper-2), var(--paper-3) 60%, var(--paper-4));
  font-family: var(--sans); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-4); line-height: 2;
}
.fig.is-missing::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); z-index: 1;
}

/* ------------------------------------------------------------- products --- */
.product {
  display: flex; flex-direction: column; height: 100%;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.product .idx {
  font-family: var(--sans); font-size: .625rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-mid); margin: 0 0 1.4rem;
}
.product .shot {
  aspect-ratio: 3 / 4; display: grid; place-items: center;
  padding: clamp(18px, 2.4vw, 34px);
  background: radial-gradient(105% 88% at 50% 14%, #FCF9EE 0%, var(--paper) 58%, var(--paper-3) 100%);
  margin-bottom: 1.7rem; position: relative; overflow: hidden;
}
.product .shot::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-soft);
}
.product .shot img {
  max-height: 100%; width: auto; object-fit: contain; position: relative; z-index: 1;
  filter: drop-shadow(0 26px 34px rgba(26,21,9,.16));
  transition: transform .8s var(--ease);
}
.product:hover .shot img { transform: translateY(-8px) scale(1.02); }
.product h3 { margin-bottom: .45rem; }
.product .variant {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-4); margin: 0 0 .7rem;
}
.product .desc { font-size: .89rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.product .actives { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1.5rem; }
.product .foot {
  margin-top: auto; padding-top: 1.15rem; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.product .size {
  font-family: var(--sans); font-size: .655rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-4);
}

.chip {
  font-family: var(--sans); font-size: .615rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid var(--line); padding: .55em 1em; white-space: nowrap;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
a.chip:hover { background: var(--paper-2); border-color: var(--gold-mid); }

/* product detail rows */
.prod-row { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 5vw, 86px); align-items: center; }
.prod-row.flip > .prod-photo { order: 2; }
@media (max-width: 860px) {
  .prod-row { grid-template-columns: 1fr; }
  .prod-row.flip > .prod-photo { order: 0; }
}

/* the photographed pack: product and carton together */
.prod-photo {
  margin: 0; aspect-ratio: 3 / 2; overflow: hidden; position: relative;
  background: var(--paper-2);
}
.prod-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.prod-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spec {
  width: 100%; border-collapse: collapse; margin-top: 2rem;
  font-size: .845rem;
}
.spec th, .spec td {
  text-align: left; padding: .95em 0; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec th {
  font-family: var(--sans); font-weight: 400; font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4);
  width: 10.5em; padding-right: 1.5em;
}
.spec td { color: var(--ink-2); }

/* ------------------------------------------------- ingredient library ----- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: center; margin-bottom: 1.6rem;
}
.filter {
  font-family: var(--sans); font-size: .625rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); cursor: pointer;
  background: none; border: 1px solid var(--line); padding: .85em 1.5em;
  transition: all .35s var(--ease);
}
.filter:hover { border-color: var(--gold-mid); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--espresso); border-color: var(--espresso); color: var(--paper-2);
}
.search {
  font-family: var(--sans); font-size: .82rem; font-weight: 300;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .8em .2em; width: min(340px, 100%); color: var(--ink);
  display: block; margin: 0 auto;
}
.search::placeholder { color: var(--ink-4); letter-spacing: .06em; }
.search:focus { outline: none; border-bottom-color: var(--gold-mid); }

.library { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (max-width: 780px) { .library { grid-template-columns: 1fr; } }
.ing {
  background: var(--paper); padding: clamp(26px, 3vw, 44px);
  display: flex; flex-direction: column;
  transition: background .4s var(--ease);
}
.ing:hover { background: var(--paper-2); }
.ing[hidden] { display: none; }
.ing .top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: .5rem; }
.ing h3 { font-size: clamp(1.3rem, 1.8vw, 1.68rem); }
.ing .role {
  font-family: var(--sans); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-mid); white-space: nowrap;
}
.ing .inci {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 1.15rem;
}
.ing p.body { font-size: .875rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.ing .in {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: .615rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4);
}
.no-results { padding: 4rem 0; color: var(--ink-3); }

/* arriving from a product chip */
.ing, section[id] { scroll-margin-top: 96px; }
.ing:target { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--gold-mid); }

/* ---------------------------------------------------------------- panels -- */
.panel {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  padding: clamp(28px, 3.4vw, 48px); height: 100%;
}
.panel--dark {
  background: rgba(241,236,217,.045); border-color: var(--line-light);
}
.panel .num {
  font-family: var(--display); font-size: 2.1rem; font-weight: 300; line-height: 1;
  color: var(--gold-lite); display: block; margin-bottom: 1.1rem;
}

.steps { counter-reset: s; list-style: none; }
.steps li {
  counter-increment: s; padding: 1.7rem 0 1.7rem 4.2rem;
  border-top: 1px solid var(--line-light); position: relative;
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.9rem;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .2em;
  color: var(--gold-lite);
}
.steps h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.steps p { font-size: .875rem; margin: 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { text-align: left; padding: 1.05em 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl th {
  font-family: var(--sans); font-weight: 400; font-size: .625rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4);
  width: 13em; padding-right: 2em;
}

/* pull quote */
.quote { text-align: center; max-width: 30ch; margin-inline: auto; }
.quote p {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.32; color: var(--ink);
}
.dark .quote p { color: var(--paper-2); }

/* form fields */
.field { display: block; margin-bottom: 1.5rem; }
.field span {
  display: block; font-family: var(--sans); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lite);
  margin-bottom: .7rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--paper-2);
  border: 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--sans); font-weight: 300; font-size: .92rem; padding: .7em 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select option { background: var(--espresso); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold-lite);
}

/* ---------------------------------------------------------------- footer -- */
.site-foot {
  background: var(--espresso); color: rgba(241,236,217,.62);
  padding-block: clamp(60px, 7vw, 100px) 40px;
  font-size: .84rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-light);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .mark {
  font-family: var(--wordmark); font-size: 1.6rem; font-weight: 500; margin: 0;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-foot h4 {
  font-family: var(--sans); font-size: .62rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lite);
  margin-bottom: 1.4rem;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .8rem; }
.site-foot a { color: rgba(241,236,217,.62); }
.site-foot a:hover { color: var(--gold-lite); }
.fine {
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: space-between;
  padding-top: 30px; font-size: .68rem; letter-spacing: .1em; color: rgba(241,236,217,.4);
}

/* ---------------------------------------------------------- commerce off -- */
[data-commerce="off"] .buy,
[data-commerce="off"] .price { display: none; }
.price {
  font-family: var(--display); font-size: 1.3rem; color: var(--ink);
  margin: 0 0 1rem;
}

/* -------------------------------------------------------------- reveals --- */
/* visible by default; the animation only engages once JS has run */
[data-js] .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-js] .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* ============================================================== touch ===== */
/*  Everything above is written for a pointer. These are the three things a
    finger and a phone browser need that a mouse and a desktop do not.        */
@media (max-width: 900px) {

  /*  1. iOS Safari zooms the whole page when you focus a field it considers
         too small to read. 16px is the threshold; below it, the page jumps
         and the visitor has to pinch back out.                               */
  .search,
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /*  2. A tap target needs about 44px. Type set at 10px with tight padding is
         comfortable to click and awkward to tap, so the boxes grow while the
         type stays the size the design wants.                                */
  .filter,
  .chip,
  .btn,
  .nav-toggle,
  .link-more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn { padding-inline: 2.2em; }
  .filter { padding-inline: 1.5em; }
  .chip { padding-inline: 1.05em; }
  .site-foot li { margin-bottom: 1.05rem; }   /* footer links, spaced for thumbs */
}

/*  3. Two-column tables are a desktop idea. On a narrow screen the label sits
       above its value instead of fighting it for width.                      */
@media (max-width: 560px) {
  .spec th, .spec td, .tbl th, .tbl td {
    display: block; width: auto; padding-right: 0;
  }
  .spec th, .tbl th { padding-bottom: .35em; border-bottom: 0; }
  .spec td, .tbl td { padding-top: 0; }
}
