/* Reset, typography, and the chrome shared by every route. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.009em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.021em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

/* --- type scale --- */

.t-hero    { font-size: clamp(42px, 6.4vw, 78px); letter-spacing: -0.028em; line-height: 1.02; }
.t-display { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.024em; line-height: 1.08; }
.t-title   { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em;  line-height: 1.14; }
.t-lead    { font-size: 17px; line-height: 1.53; letter-spacing: -0.013em; color: var(--ink-body); }
.t-body    { font-size: 15px; line-height: 1.55; color: var(--ink-body); }
.t-small   { font-size: 13px; line-height: 1.45; color: var(--ink-mute); }

.t-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Pill names are the poster's own lowercase wordmarks — never capitalise them. */
.pill-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.muted { color: var(--ink-mute); }

/* --- layout --- */

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

.stack   { display: grid; gap: 16px; }
.stack-s { display: grid; gap: 8px; }
.stack-l { display: grid; gap: 28px; }

.section { padding: 84px 0; }

/* --- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* A tiny two-tone capsule standing in for a logo. */
.brand-mark {
  width: 26px;
  height: 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--amber) 50% 100%);
  flex: none;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); background: var(--surface-alt); }

/* --- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: #FBFAF7;
}
.btn-primary:hover { transform: translateY(-2px); }

/* A hairline ring rather than a raised white surface — it reads as a control
 * without adding another floating panel to the page. */
.btn-secondary {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-secondary:hover { background: var(--surface-alt); box-shadow: inset 0 0 0 1px transparent; }

.btn-ghost { color: var(--ink-mute); padding: 10px 16px; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-alt); }

/* --- chips --- */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  white-space: nowrap;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- footer --- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

/* --- route transition --- */

#app { animation: routeIn .34s var(--ease) both; }

@keyframes routeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #app { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .page, .nav-inner, .footer-inner { padding: 0 18px; }
  .nav-link { padding: 8px 10px; }
}
