/* Aster — "The still hour". Botanical almanac identity for a single origin coffee brand.
   Shared across every page so the design system and the applier gate CSS stay identical. */

:root {
  --ink: #1c2620;
  --paper: #eae6da;
  --paper-2: #e2ddcd;
  --moss: #4b5a4a;
  --moss-dim: #6f7d6c;
  --stamen: #c9a24b;
  --line: #cfc8b6;
  --line-ink: rgba(28, 38, 32, .16);

  --display: "Iowan Old Style", "Palatino Linotype", "Palatino", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Menlo", monospace;

  --shell: 1120px;
  --gut: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Applier gate. Held at opacity 0 until the variant applies, so no control flash.
   data-cf-hide is set on <html> inline before paint; farcasts.js reveals gated nodes. */
[data-cf-hide] [data-farcasts-gate] { opacity: 0; }
[data-farcasts-gate] { transition: opacity .5s ease; }

a { color: inherit; }
img { max-width: 100%; display: block; }

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* ---- type scale ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.04;
  margin: 0;
}
h1.display { font-size: clamp(40px, 7vw, 78px); }
h2.display { font-size: clamp(28px, 4.4vw, 46px); }
h3.display { font-size: clamp(21px, 2.6vw, 27px); }
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.4;
  color: var(--moss);
}

/* ---- botanical mark ---- */
.mark { display: inline-block; color: var(--stamen); }
.mark svg { display: block; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .shell {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 20px;
}
.wordmark {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
}
.wordmark .letters {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: .14em;
  font-weight: 400;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--moss);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--stamen);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---- footer ---- */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(72px, 12vw, 140px);
  padding-block: clamp(48px, 8vw, 84px);
}
.site-foot .shell {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.foot-brand .letters { font-family: var(--display); font-size: 26px; letter-spacing: .12em; }
.foot-note { color: var(--moss); font-size: 14px; max-width: 32ch; margin: 14px 0 0; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--moss-dim); margin: 0 0 16px;
}
.foot-col a {
  display: block; text-decoration: none; color: var(--ink); font-size: 15px;
  padding: 5px 0; opacity: .82; transition: opacity .2s;
}
.foot-col a:hover { opacity: 1; }
.foot-legal {
  border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--moss-dim);
}

/* ---- generic section rhythm ---- */
.section { padding-block: clamp(64px, 10vw, 120px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

@media (max-width: 720px) {
  .site-foot .shell { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .nav a:not(.nav__cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
