:root {
  --peach: #FFB797;
  --peach-deep: #F2986B;
  --peach-pale: #FFE3D3;
  --ink: #21252B;
  --ink-soft: #4A4F57;
  --paper: #FAF4EC;
  --paper-deep: #F1E5D6;
  --muted: #8A8073;
  --line: rgba(33,37,43,0.14);
  --card: #FFFFFF;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* Dark mode intentionally disabled: the site always uses the light palette above, regardless of the visitor's own theme. */

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
  background: #FAF4EC;
  color-scheme: light;
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark span { font-style: italic; font-weight: 400; color: var(--ink); font-size: 15px; }
.navlinks { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.navlinks a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.navlinks a:hover { color: var(--ink); }
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn-peach { background: var(--peach); color: var(--ink); }
.btn-peach:hover { background: var(--peach-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.navlinks .btn { padding: 9px 18px; }
@media (max-width: 780px) {
  .navlinks a:not(.btn) { display: none; }
  .navlinks { gap: 12px; }
}

/* ---------- Home: hero ---------- */
.hero {
  padding: 76px 0 96px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; }
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 18px; }
h1.hero-head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 13ch;
}
.hero-sub { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 46ch; margin: 0 0 34px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.signup { display: flex; gap: 10px; max-width: 460px; margin-bottom: 18px; }
.signup input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.signup input::placeholder { color: var(--muted); }
.signup button { white-space: nowrap; padding: 14px 22px; font-size: 15px; }
@media (max-width: 480px) { .signup { flex-direction: column; } }
.fine { font-size: 13.5px; color: var(--muted); }
.form-msg { font-size: 13px; margin: 8px 0 0; color: var(--ink-soft); min-height: 1em; }
.form-msg:empty { display: none; }
.stat-row { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.stat-row div { font-size: 14px; color: var(--ink-soft); }
.stat-row b { color: var(--ink); font-weight: 700; display: block; font-size: 20px; font-family: var(--font-display); }

.issue-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(33,25,18,0.28);
}
.issue-card-top {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.issue-card-top .dot { color: var(--peach); }
.issue-card-body { padding: 26px 24px 24px; }
.issue-card-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin: 0 0 14px; line-height: 1.25; }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}
.issue-list li:first-child { border-top: none; }
.issue-list .tag { color: var(--ink); font-weight: 700; flex-shrink: 0; width: 20px; }
.issue-card-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.issue-card-foot a { text-decoration: none; }
.issue-card-foot a:hover { color: var(--ink); }

/* ---------- Home: sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.inside-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .inside-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inside-grid { grid-template-columns: 1fr; } }
.inside-item { padding: 28px 26px 28px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inside-item:last-child { border-right: none; }
.inside-item .mark { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--peach-deep); display: block; margin-bottom: 14px; }
.inside-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.inside-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.spread { background: var(--paper-deep); border-radius: 4px; padding: 52px; }
@media (max-width: 640px) { .spread { padding: 32px 22px; } }
.spread > div:first-child { margin-bottom: 8px; }
.spread-kicker { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.spread h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin: 0 0 18px; }
blockquote {
  margin: 0 0 22px;
  padding-left: 20px;
  border-left: 3px solid var(--peach);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.spread-meta { font-size: 14px; color: var(--muted); }

.archive-list { border-top: 1px solid var(--line); }
.archive-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.archive-num { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.archive-title { font-size: 17px; font-weight: 600; transition: color .15s; }
.archive-row:hover .archive-title { color: var(--peach-deep); }
.archive-date { font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .archive-row { grid-template-columns: 50px 1fr; }
  .archive-date { grid-column: 2; }
}

.partner { background: var(--ink); color: var(--paper); padding: 88px 0; }
.partner .section-label { color: var(--peach); }
.partner h2 { color: var(--paper); }
.partner-sub { font-size: 17px; line-height: 1.6; color: #D8D2C6; max-width: 58ch; margin: 18px 0 44px; }
.partner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(250,244,236,0.14);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 44px;
}
@media (max-width: 780px) { .partner-stats { grid-template-columns: repeat(2, 1fr); } }
.partner-stat { background: #2A2622; padding: 26px 22px; }
.partner-stat b { font-family: var(--font-display); font-weight: 500; font-size: 32px; color: var(--peach); display: block; margin-bottom: 6px; }
.partner-stat span { font-size: 13.5px; color: #B7AF9F; }
.partner-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.partner-actions .fine { color: #B7AF9F; }

/* ---------- Career stories ---------- */
.intro { padding: 64px 0 20px; }
.intro .eyebrow { margin-bottom: 14px; }
h1.page-head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.page-sub { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 52ch; margin: 0; }

.stories-section { padding: 44px 0; }
.stories-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.stories-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 0; }
.stories-count { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.section-note { font-size: 13px; color: var(--muted); margin: -14px 0 18px; }

.row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.row::-webkit-scrollbar { height: 5px; }
.row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.card {
  flex: 0 0 268px;
  scroll-snap-align: start;
  min-height: 152px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease;
}
.card:hover, .card:focus-visible { border-color: var(--ink); outline: none; }
.card:hover .card-title { color: var(--peach-deep); }
.card-text { flex: 1 1 auto; min-width: 0; }
.card-tag { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 6px; line-height: 1.2; transition: color .15s ease; }
.card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.card-featured { border-color: var(--peach); }
.card-tag-featured {
  display: inline-block;
  background: var(--peach-pale);
  color: var(--peach-deep);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.card-gate { border-style: dashed; cursor: default; justify-content: center; }
.card-gate:hover { border-color: var(--ink); }
.card-gate:hover .card-title { color: var(--ink); }
.gate-card-inner { width: 100%; text-align: center; }
.gate-card-inner .card-title { margin-bottom: 4px; }
.gate-card-sub { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; }
.gate-card-inner .gate-form { flex-direction: column; }
.gate-card-inner .gate-form input, .gate-card-inner .gate-form button { padding: 8px 10px; font-size: 13px; }

@media (max-width: 640px) {
  .intro { padding: 44px 0 12px; }
  .stories-section { padding: 34px 0; }
  .card { flex-basis: 232px; min-height: 142px; padding: 16px; gap: 12px; }
  .avatar { width: 50px; height: 50px; font-size: 15px; }
  .card-title { font-size: 16px; }
}

/* ---------- Footer ---------- */
footer { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-note { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink-soft); max-width: 40ch; line-height: 1.5; margin: 0; }
.footer-links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Subscriber gate ----------
   Guests: functions/_middleware.js has already swapped the real gated content
   for a skeleton, so the blur below is cosmetic, not the protection.
   Subscribers: the middleware sets data-sub on <body> and strips the CTAs. */
.gate { position: relative; }
.gate-content { transition: filter .2s ease; }
body:not([data-sub]) .gate-content { filter: blur(6px); user-select: none; pointer-events: none; }
.gate-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  background: linear-gradient(to bottom, transparent 0%, var(--paper) 65%);
}
.gate-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 26px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 16px 32px -20px rgba(33,25,18,0.22);
}
.gate-box-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 6px; }
.gate-box-sub { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.4; }
.gate-form { display: flex; gap: 8px; }
.gate-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
}
.gate-form button { padding: 10px 16px; font-size: 13.5px; white-space: nowrap; }

.gate-inline { min-height: 74px; }
.gate-inline .gate-cta { padding-bottom: 0; align-items: center; background: linear-gradient(to bottom, transparent 0%, var(--card) 78%); }
.gate-inline .gate-box { padding: 10px 16px; max-width: none; box-shadow: none; border: none; background: transparent; }
.gate-inline .gate-box-title { font-size: 13px; margin-bottom: 8px; }
.gate-inline .gate-form { max-width: 320px; margin: 0 auto; }

.gate-archive { min-height: 230px; } /* room for the sign-up box below the open rows, matching three archive rows */
.gate-archive .gate-cta { background: linear-gradient(to bottom, transparent 0%, var(--paper) 55%); }

.gate-full { min-height: 220px; }
.gate-full .gate-cta { align-items: center; }

/* Placeholder shapes shown to guests in place of the real gated content */
.skel { display: block; height: 14px; margin: 14px 0; border-radius: 3px; background: var(--paper-deep); }
.skel:nth-child(3n+1) { width: 92%; }
.skel:nth-child(3n+2) { width: 78%; }
.skel:nth-child(3n) { width: 64%; }
.skel-row { height: 22px; margin: 22px 0; }

/* ---------- Issue and story pages ---------- */
.article { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.article .eyebrow a { text-decoration: none; color: var(--ink-soft); }
.article .eyebrow a:hover { color: var(--ink); }
.article h1.page-head { font-size: clamp(30px, 4.4vw, 44px); }
.article-meta { font-size: 14px; color: var(--muted); margin: 0 0 32px; }
.article-meta a { color: var(--ink-soft); }

.inside-box { background: var(--paper-deep); border-radius: 4px; padding: 22px 26px; margin: 0 0 40px; }
.inside-box .section-label { margin-bottom: 8px; }
.inside-box ul { margin: 0; padding-left: 20px; }
.inside-box li { font-size: 15px; line-height: 1.5; color: var(--ink-soft); padding: 3px 0; }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 48px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose li p { margin: 0; }
.prose a { color: var(--ink); text-decoration-color: var(--peach-deep); text-underline-offset: 3px; }
.prose a:hover { color: var(--peach-deep); }
.prose img { border-radius: 4px; margin: 8px 0 20px; max-height: 420px; width: auto; }
.prose blockquote { font-size: 17px; }
.h-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
  color: var(--ink-soft);
}

.gate-article { min-height: 320px; margin-top: 8px; }
.gate-article .gate-cta { align-items: center; }

.story-head { display: flex; gap: 24px; align-items: center; margin: 8px 0 18px; }
.story-head .page-head { margin-bottom: 8px; }
.story-head .page-sub { margin: 0; }
.avatar-lg { width: 112px; height: 112px; font-size: 30px; flex: 0 0 auto; }
@media (max-width: 560px) {
  .story-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .avatar-lg { width: 88px; height: 88px; }
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article-nav a { text-decoration: none; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.article-nav a:hover { color: var(--peach-deep); }
.article-nav a span { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.article-nav .next { text-align: right; }
