: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-block: 20px; }
.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; }
.nav-join, .menu-toggle { display: none; }

/* Phones and small tablets: wordmark left, Join the club centred, menu button right; the page links open
   as a panel under the header. */
@media (max-width: 780px) {
  .nav { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding-block: 14px; }
  .wordmark { white-space: nowrap; font-size: 20px; }
  .wordmark span { display: none; }
  .nav-join { display: inline-block; justify-self: center; padding: 9px 16px; white-space: nowrap; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    justify-self: end; width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .navlinks {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(33,37,43,.08);
    padding: 8px 20px 16px;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a:not(.btn) { padding: 14px 0; font-size: 17px; color: var(--ink); }
  .navlinks a:not(.btn) + a:not(.btn) { border-top: 1px solid var(--line); }
  .navlinks .btn { display: none; }
}

/* ---------- Home: hero ---------- */
.hero {
  padding-block: 76px 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-block: 48px 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;
}
/* Each sentence starts on its own line (a long one may still wrap). */
h1.hero-head span { display: block; }
.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; } }
.signup.is-flash { border-radius: 4px; animation: join-flash 1.6s ease-out; }
@keyframes join-flash { from { box-shadow: 0 0 0 6px var(--peach); } to { box-shadow: 0 0 0 6px transparent; } }
.fine { font-size: 13.5px; color: var(--muted); }
.fine a { color: inherit; }
.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); }

/* Hero card for the latest issue: the whole card links to it */
.issue-card {
  display: block;
  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);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.issue-card:hover, .issue-card:focus-visible { transform: translateY(-3px); border-color: var(--ink); outline: none; }
.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; line-height: 1.3; }
.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-cta { color: var(--ink); font-weight: 600; }
.issue-card:hover .issue-card-cta { color: var(--peach-deep); }

/* ---------- Home: sections ---------- */
.section { padding-block: 80px; }
.section-tight { padding-block: 56px; }
.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: 32px 40px; padding: 8px 0; }
@media (max-width: 900px) { .inside-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inside-grid { grid-template-columns: 1fr; } }
.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; }

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);
}

.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 h2 { color: var(--paper); }
.partner-logo { display: inline-block; color: var(--paper); margin: 32px 0 28px; transition: color .15s; }
.partner-logo svg { display: block; height: 34px; width: auto; }
.partner-logo:hover { color: var(--peach); }
.partner-sub { font-size: 17px; line-height: 1.6; color: #D8D2C6; max-width: 58ch; margin: 0 0 16px; }
.partner-sub:last-child { margin-bottom: 0; }
.partner-sub a { color: var(--paper); text-decoration-color: var(--peach); text-underline-offset: 3px; }
.partner-sub a:hover { color: var(--peach); }

/* ---------- 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); }

.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-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { display: block; border-radius: 9px; transition: transform .15s, opacity .15s; }
.footer-social a:hover { transform: translateY(-2px); opacity: .9; }
.footer-social a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.footer-social svg { display: block; width: 36px; height: 36px; }
.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-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); }
/* Photos from the original issues sit centred on their own line, never stretched */
.prose img { display: block; border-radius: 4px; margin: 12px auto 24px; max-height: 420px; width: auto; max-width: 100%; }
.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; }

/* ---------- Partner with us page ---------- */
.partner-hero { padding-block: 64px 24px; }
.partner-intro { max-width: 62ch; }
.partner-intro p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.partner-block { padding-block: 48px; }
.partner-block h2 { margin-bottom: 24px; }

.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 36px;
}
@media (max-width: 640px) { .partner-stats { grid-template-columns: 1fr; } }
.partner-stat { padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); }
.partner-stat b { font-family: var(--font-display); font-weight: 500; font-size: 36px; color: var(--ink); display: block; margin-bottom: 6px; }
.partner-stat span { font-size: 14px; color: var(--muted); }

.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .reason-grid { grid-template-columns: 1fr; } }
.reason { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--peach); border-radius: 4px; padding: 24px; }
.reason h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 10px; }
.reason p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.trusted-by { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.trusted-by span { font-size: 13px; font-weight: 600; color: var(--muted); }
.partner-logo-dark { color: var(--ink); transition: color .15s; }
.partner-logo-dark svg { display: block; height: 30px; width: auto; }
.partner-logo-dark:hover { color: var(--peach-deep); }

.partner-contact { background: var(--ink); color: var(--paper); padding: 72px 0; margin-top: 32px; }
.partner-contact h2 { color: var(--paper); margin-bottom: 16px; }

.contact-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 28px 0 0; }
.contact-cta .btn { padding: 12px 26px; font-size: 15px; }
.contact-cta span { color: #D8D2C6; font-size: 15px; }
.contact-cta span a { color: var(--paper); }

/* Visible stand-in for content still to be supplied */
.placeholder {
  display: inline-block;
  border: 1.5px dashed var(--peach-deep);
  border-radius: 3px;
  background: var(--peach-pale);
  color: var(--ink);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  box-shadow: 0 16px 40px -18px rgba(33,25,18,0.5);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; font-size: 14px; line-height: 1.5; color: #D8D2C6; }
.cookie-notice a { color: var(--paper); text-decoration-color: var(--peach); text-underline-offset: 3px; }
.cookie-notice .btn { flex: 0 0 auto; padding: 9px 22px; }
@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ---------- Q&A archive ---------- */
.inside-item h3 a { text-decoration: none; color: inherit; }
.inside-item h3 a:hover { color: var(--peach-deep); }

.qa-page { padding-bottom: 72px; }
.qa-ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  max-width: 860px; margin-top: 28px; padding: 22px 24px; background: var(--peach-pale); border-radius: 4px;
}
.qa-ask h2 { font-size: 20px; margin: 0 0 4px; }
.qa-ask p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.qa-ask .btn { padding: 12px 24px; font-size: 15px; }
.qa-tools { max-width: 860px; margin: 28px 0 24px; }
.qa-search input {
  width: 100%;
  font: 400 16px/1.4 var(--font-body);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 16px;
}
.qa-search input:focus { outline: 2px solid var(--peach); outline-offset: 1px; border-color: transparent; }
.qa-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) {
  .qa-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .qa-pill { flex: 0 0 auto; }
}
.qa-pill {
  font: 600 14px/1 var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.qa-pill span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.qa-pill:hover { border-color: var(--peach-deep); }
.qa-pill.is-active { background: var(--peach); border-color: var(--peach); }
.qa-pill.is-active span { color: var(--ink-soft); }
.qa-pill:focus-visible, .qa-q button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.qa-empty { color: var(--ink-soft); max-width: 860px; }
.qa-list { display: grid; gap: 12px; max-width: 860px; }
.qa-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--peach);
  border-radius: 4px;
  scroll-margin-top: 100px;
}
.qa-item[hidden] { display: none; }
.qa-q { margin: 0; }
.qa-q button {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 20px 22px 6px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: 600 19px/1.35 var(--font-display);
  color: var(--ink);
}
.qa-q button::after {
  content: '+';
  flex: 0 0 auto;
  font: 400 24px/1 var(--font-body);
  color: var(--peach-deep);
  transition: transform .25s ease;
}
.qa-item.is-open .qa-q button::after { transform: rotate(45deg); }
.qa-q button:hover { color: var(--peach-deep); }
.qa-meta { margin: 0; padding: 0 22px 18px; font-size: 13px; color: var(--muted); }
.qa-meta a { color: var(--ink-soft); }
.qa-tag { display: inline-block; background: var(--peach-pale); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; }

/* Smooth open and close: the answer's row grows from 0 to its natural height */
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.qa-item.is-open .qa-a { grid-template-rows: 1fr; }
.qa-a-inner { overflow: hidden; }
.qa-a-inner > * { margin: 0 22px; }
.qa-a-inner > :first-child { padding-top: 4px; }
.qa-a-inner > :last-child { padding-bottom: 22px; }
.qa-a .prose { font-size: 16px; max-width: 68ch; }
.qa-gate { border-top: 1px solid var(--line); padding-top: 18px; max-width: 460px; }
.qa-gate .gate-box-title { margin-bottom: 10px; }
/* Without JavaScript, every answer stays open */
.no-js .qa-a { grid-template-rows: 1fr; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .qa-q button { font-size: 16.5px; font-weight: 600; line-height: 1.4; padding: 16px 16px 6px; }
  .qa-meta { padding: 0 16px 14px; }
  .qa-a-inner > * { margin: 0 16px; }
}
