/* ===========================================================
   Shared framework - wraps every design option page
   The framework chrome is intentionally neutral so each
   design option page can express its own personality below.
   =========================================================== */

:root {
  --frame-bg: #fafafa;
  --frame-surface: #ffffff;
  --frame-ink: #1f1f1f;
  --frame-muted: #6b6b6b;
  --frame-line: #e8e8e8;
  --frame-radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--frame-bg);
  color: var(--frame-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---------- Top nav ---------- */
.frame-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--frame-line);
}

.frame-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.frame-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--frame-ink);
  text-decoration: none;
  white-space: nowrap;
}

.frame-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.frame-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.frame-tab {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--frame-muted);
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.frame-tab:hover {
  background: #f0f0f0;
  color: var(--frame-ink);
}

.frame-tab.is-active {
  background: var(--frame-ink);
  color: #fff;
}

/* ---------- Mobile nav (hamburger) ---------- */
/* Hidden checkbox drives the toggle via the :checked ~ sibling selector.
   Burger label is hidden on desktop and shown below the breakpoint. */
.frame-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.frame-nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.frame-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--frame-ink);
  border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease;
}

@media (max-width: 800px) {
  .frame-nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
  }
  .frame-brand {
    white-space: normal;
    font-size: 13px;
    max-width: calc(100% - 60px);
  }
  .frame-brand img {
    width: 24px;
    height: 24px;
  }
  .frame-nav-burger {
    display: flex;
  }
  .frame-tabs {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 2px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--frame-line);
  }
  .frame-tab {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }
  .frame-nav-toggle:checked ~ .frame-tabs {
    display: flex;
  }
  .frame-nav-toggle:checked ~ .frame-nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .frame-nav-toggle:checked ~ .frame-nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .frame-nav-toggle:checked ~ .frame-nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Page intro block ---------- */
.frame-intro {
  max-width: 880px;
  margin: 0 auto;
  padding: 70px 28px 40px;
}

.frame-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frame-muted);
  margin-bottom: 18px;
}

.frame-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.frame-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--frame-muted);
  max-width: 620px;
  margin: 0;
}

/* ---------- Section labels ---------- */
.frame-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 28px;
}

.frame-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.frame-section-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.005em;
}

.frame-section-head .note {
  font-size: 13px;
  color: var(--frame-muted);
}

/* ---------- Swatch grid ---------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.swatch {
  background: var(--frame-surface);
  border: 1px solid var(--frame-line);
  border-radius: var(--frame-radius);
  overflow: hidden;
}

.swatch-chip {
  height: 120px;
}

.swatch-meta {
  padding: 12px 14px 14px;
}

.swatch-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.swatch-hex {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--frame-muted);
  margin-top: 3px;
}

/* ---------- Typography blocks ---------- */
.typography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.type-card {
  background: var(--frame-surface);
  border: 1px solid var(--frame-line);
  border-radius: var(--frame-radius);
  padding: 26px 26px 28px;
}

.type-card .role {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frame-muted);
  margin-bottom: 14px;
}

.type-card .family {
  font-size: 14px;
  font-weight: 500;
  color: var(--frame-ink);
  margin-bottom: 4px;
}

.type-card .specimen-display {
  font-size: 52px;
  line-height: 1;
  margin: 18px 0 12px;
  letter-spacing: -0.015em;
}

.type-card .specimen-body {
  font-size: 16.5px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.type-card .alphabet {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--frame-line);
  font-size: 13px;
  color: var(--frame-muted);
  letter-spacing: 0.06em;
  word-break: break-all;
}

/* ---------- Hero frame ---------- */
.hero-frame {
  max-width: 1240px;
  margin: 0 auto 90px;
  padding: 0 28px;
}

.hero-frame-label {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frame-muted);
  margin-bottom: 14px;
}

.hero-frame-window {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(20, 20, 30, 0.18),
              0 6px 18px -8px rgba(20, 20, 30, 0.08);
  border: 1px solid var(--frame-line);
}

/* The window header (fake browser chrome) */
.hero-frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #f4f4f5;
  border-bottom: 1px solid var(--frame-line);
}

.hero-frame-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4d4d8;
}

.hero-frame-chrome span:nth-child(1) { background: #ff5f57; }
.hero-frame-chrome span:nth-child(2) { background: #febc2e; }
.hero-frame-chrome span:nth-child(3) { background: #28c840; }

/* ---------- Footer ---------- */
.frame-footer {
  text-align: center;
  padding: 40px 20px 60px;
  font-size: 13px;
  color: var(--frame-muted);
}

/* ===========================================================
   Standardised hero - identical layout across all options.
   Each option page sets the design tokens (colours + fonts)
   on the .std-hero root so the comparison is apples-to-apples.
   =========================================================== */

.std-hero {
  /* sensible defaults; option pages override these */
  --hero-bg: #FAF6F0;
  --hero-ink: #1A3D4D;
  --hero-body-color: #6F7B7E;
  --hero-eyebrow: #6A9B9F;
  --hero-em: #E89A92;
  --hero-button-bg: #1A3D4D;
  --hero-button-fg: #FAF6F0;
  --hero-line: rgba(26, 61, 77, 0.08);
  --hero-blob: #E89A92;
  --hero-blob-opacity: 0.18;
  --hero-heading-font: 'Cormorant Garamond', Georgia, serif;
  --hero-body-font: 'Inter', sans-serif;
  --hero-logo-filter: none;

  background: var(--hero-bg);
  color: var(--hero-ink);
  font-family: var(--hero-body-font);
}

/* ---------- Hero nav ---------- */
.std-hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  border-bottom: 1px solid var(--hero-line);
}
.std-hero-nav .logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--hero-heading-font);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hero-ink);
  line-height: 1;
}
.std-hero-nav .logo img {
  width: 36px; height: 36px; object-fit: contain;
  filter: var(--hero-logo-filter);
}
.std-hero-nav .logo .name { line-height: 1.05; }
.std-hero-nav .logo .name span {
  display: block;
  font-family: var(--hero-body-font);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
  margin-top: 5px;
  font-weight: 500;
}
.std-hero-nav nav {
  display: flex; gap: 30px;
  font-family: var(--hero-body-font);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.std-hero-nav nav a {
  text-decoration: none;
  color: var(--hero-ink);
  opacity: 0.78;
}
.std-hero-nav .cta {
  border: 1px solid var(--hero-ink);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--hero-body-font);
  font-size: 13.5px;
  color: var(--hero-ink);
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Hero body ---------- */
.std-hero-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 90px 56px 110px;
  position: relative;
}
.std-hero-body::before {
  content: "";
  position: absolute;
  top: 50px;
  right: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--hero-blob);
  opacity: var(--hero-blob-opacity);
  filter: blur(60px);
  pointer-events: none;
}

.std-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hero-body-font);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
  font-weight: 500;
  margin-bottom: 26px;
}
.std-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--hero-eyebrow);
}

.std-hero-body h1 {
  font-family: var(--hero-heading-font);
  font-weight: 500;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--hero-ink);
  margin: 0 0 28px;
}
.std-hero-body h1 em {
  font-style: italic;
  color: var(--hero-em);
  font-weight: 500;
}
.std-hero-body p {
  font-family: var(--hero-body-font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--hero-body-color);
  max-width: 480px;
  margin: 0 0 36px;
}

.std-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.std-btn-primary {
  background: var(--hero-button-bg);
  color: var(--hero-button-fg);
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--hero-body-font);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.std-btn-quiet {
  color: var(--hero-ink);
  text-decoration: none;
  font-family: var(--hero-body-font);
  font-size: 14.5px;
  border-bottom: 1px solid var(--hero-ink);
  padding-bottom: 3px;
  font-weight: 500;
}

.std-hero-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--hero-bg);
}
.std-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.std-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

.std-hero-tag {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  color: #FAF6EE;
  font-family: var(--hero-heading-font);
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.4;
  z-index: 2;
  max-width: 280px;
}

.std-credentials {
  border-top: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
  padding: 22px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--hero-body-font);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hero-body-color);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .std-hero-nav { padding: 22px 24px; flex-wrap: wrap; gap: 16px; }
  .std-hero-nav nav { display: none; }
  .std-hero-body { grid-template-columns: 1fr; padding: 60px 24px 70px; gap: 36px; }
  .std-credentials { padding: 18px 24px; font-size: 11px; gap: 16px; }
}
