/* Portal's Pull List — site styles. Matches the email template. */
:root {
  --red: #A2463A;
  --blue: #3F6B82;
  --mustard: #E4C76B;
  --ink: #2A1E14;
  --muted: #6B5A45;
  --cream: #FBF6E6;
  --page: #FFFFFF;
  --rule: #BFB3A3;
  --display: 'Bowlby One', Impact, 'Arial Black', sans-serif;
  --body: Georgia, 'Times New Roman', serif;
  --dots-light: radial-gradient(circle, rgba(255,255,255,.14) 1.4px, transparent 1.7px);
  --dots-soft: radial-gradient(circle, rgba(255,255,255,.16) 1.2px, transparent 1.5px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); font-weight: 700; text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap--wide { max-width: 1040px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--page); padding: 8px 12px; z-index: 10; }

/* ---------- Masthead ---------- */
.masthead {
  background-color: var(--red);
  background-image: var(--dots-light);
  background-size: 7px 7px;
  border-bottom: 1.5px solid var(--ink);
}
.masthead__inner {
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.masthead__title { text-align: center; text-decoration: none; color: inherit; }
.masthead__presents { display: block; font-style: italic; font-size: 14px; color: #fff; margin-bottom: 4px; }
.masthead__name {
  display: block;
  font-family: var(--display);
  font-size: clamp(38px, 8vw, 62px);
  line-height: .98;
  color: var(--mustard);
  text-shadow: 2px 2px 0 var(--ink);
}
.masthead--compact .masthead__inner { padding-top: 12px; padding-bottom: 12px; }
.masthead--compact .masthead__name { font-size: clamp(28px, 5vw, 40px); }

/* Golden Age corner box */
.corner {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  text-align: center;
  padding: 6px 4px;
  line-height: 1;
}
.corner__price { font-family: var(--display); font-size: 30px; }
.corner__price sup { font-size: 15px; vertical-align: top; position: relative; top: 4px; }
.corner__rule { border-top: 1.5px solid var(--ink); margin: 5px 8px; }
.corner__no { font-size: 11px; font-weight: 700; color: var(--red); }
.corner__issue { font-family: var(--display); font-size: 26px; color: var(--red); margin: 2px 0; }
.corner__month { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.masthead--compact .corner__price { font-size: 22px; }
.masthead--compact .corner__issue { font-size: 18px; }

/* Strip under masthead: tagline + nav */
.strip { background: var(--ink); color: var(--mustard); }
.strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 20px; padding-top: 8px; padding-bottom: 8px;
}
.strip__tagline { font-style: italic; font-size: 15px; }
.strip nav { display: flex; gap: 18px; font-size: 15px; }
.strip nav a { color: var(--mustard); font-weight: 700; text-decoration: none; }
.strip nav a:hover, .strip nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---------- Segment header + subline (same as email) ---------- */
.seg, .prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
  text-align: center;
  background-color: var(--blue);
  background-image: var(--dots-soft);
  background-size: 6px 6px;
  border: 1.5px solid var(--ink);
  padding: 13px 16px 11px;
  margin: 48px 0 12px;
}
.prose blockquote, .subline {
  margin: 0 0 24px;
  padding: 5px 14px 6px;
  text-align: center;
  background: var(--mustard);
  border: 1px solid var(--ink);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}
.prose blockquote p { margin: 0; }

/* ---------- Issue body ---------- */
.prose { padding: 8px 0 24px; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 36px); line-height: 1.12; color: var(--red); margin: 0 0 20px; }
.prose h3 { font-size: 21px; line-height: 1.3; color: var(--red); margin: 28px 0 6px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 0 0 6px; }
.prose hr { border: 0; border-top: 2px dashed var(--rule); margin: 44px 0 0; }
.prose img { border: 1.5px solid var(--ink); margin: 6px 0 18px; }

.issue-meta { margin: 36px 0 14px; font-size: 15px; font-style: italic; color: var(--muted); }

/* ---------- Buttons + forms ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 16px;
  color: var(--ink); background: var(--mustard); border: 1.5px solid var(--ink);
  padding: 11px 18px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #fff; color: var(--ink); }
.signup { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.signup input[type="email"] {
  flex: 1 1 240px; font: inherit; font-size: 17px; padding: 10px 12px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
}
.fine, .hero .fine { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Home ---------- */
.hero { padding: 44px 0 12px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5.5vw, 42px); line-height: 1.08; margin: 0 0 14px; }
.hero p { font-size: 20px; margin: 0; max-width: 60ch; }

.segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 8px; }
.segments div { border: 1.5px solid var(--ink); padding: 14px 16px; }
.segments strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--blue); margin-bottom: 4px; }
.segments span { font-size: 16px; line-height: 1.5; }

.cover {
  display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: start;
  border: 1.5px solid var(--ink); padding: 18px; text-decoration: none; color: inherit;
}
.cover:hover { background: var(--cream); color: inherit; }
.cover h3 { font-size: 24px; line-height: 1.25; color: var(--red); margin: 0 0 6px; }
.cover p { margin: 0 0 8px; font-weight: 400; }
.cover .date { font-size: 14px; color: var(--muted); font-weight: 400; }

.archive { list-style: none; margin: 0; padding: 0; }
.archive li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 2px dashed var(--rule); }
.archive .corner__issue { font-size: 22px; }
.archive h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.archive h3 a { color: var(--ink); text-decoration: none; }
.archive h3 a:hover { color: var(--red); text-decoration: underline; }
.archive p { margin: 0; font-size: 16px; line-height: 1.5; }
.archive .date { font-size: 14px; color: var(--muted); }

/* ---------- Red dotted CTA ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  background-color: var(--red); background-image: var(--dots-light); background-size: 7px 7px;
  border: 1.5px solid var(--ink); color: #fff; padding: 20px 24px; margin: 52px 0 0;
}
.cta h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0 0 4px; }
.cta p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 42ch; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin: 36px 0 0; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1.5px solid var(--ink); text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--ink); }
.site-footer .legal { font-size: 13px; max-width: 64ch; margin-left: auto; margin-right: auto; }

/* ---------- Landing page (/join/) ---------- */
.lp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; padding: 44px 0 16px; }
.lp-from { font-style: italic; font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.lp-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.06; margin: 0 0 16px; }
.lp-lede { font-size: 20px; margin: 0; }
.lp-hero .fine { font-size: 14px; }
.lp-preview { margin: 0; }
.lp-preview img {
  width: 100%; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--mustard);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.lp-preview figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }

.faq { margin: 0; max-width: 720px; }
.faq dt { font-weight: 700; font-size: 19px; margin: 22px 0 4px; }
.faq dt:first-child { margin-top: 4px; }
.faq dd { margin: 0; }

.lp-final {
  background-color: var(--red); background-image: var(--dots-light); background-size: 7px 7px;
  border: 1.5px solid var(--ink); color: #fff; padding: 28px 28px 24px; margin: 56px 0 0; text-align: center;
}
.lp-final h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 30px); line-height: 1.1; margin: 0 0 6px; text-shadow: 2px 2px 0 var(--ink); }
.lp-final p { margin: 0; font-size: 17px; }
.lp-final .signup { max-width: 520px; margin: 18px auto 8px; }
.lp-final .fine { color: #F4E7BE; }

@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; }
  .lp-preview { max-width: 420px; margin: 0 auto; padding-right: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .masthead__inner { grid-template-columns: 62px 1fr; gap: 12px; }
  .masthead__spacer { display: none; }
  .corner__price { font-size: 22px; }
  .corner__issue { font-size: 19px; }
  .strip nav { gap: 14px; }
  .cover { grid-template-columns: 62px 1fr; padding: 14px; }
  .segments { grid-template-columns: 1fr; }
  .signup .btn { width: 100%; }
}

/* ---------- Polls ---------- */
.poll-links, .prose .poll-links { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.poll-links a {
  display: block; text-decoration: none; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); padding: 10px 14px;
}
.poll-links a:hover { background: var(--mustard); color: var(--ink); }

.poll-status { font-weight: 700; margin: 0 0 16px; }
.poll-status:empty { display: none; }
.poll { display: grid; gap: 10px; margin: 0 0 12px; }
.poll__row {
  position: relative; display: flex; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); padding: 10px 14px; overflow: hidden;
}
button.poll__row { cursor: pointer; }
button.poll__row:hover { background: var(--cream); }
.poll__fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background-color: var(--blue); background-image: var(--dots-soft); background-size: 6px 6px;
  opacity: .35; transition: width .6s ease;
}
.poll__row--pick { border-width: 3px; padding: 8.5px 12.5px; }
.poll__row--pick .poll__fill { background-color: var(--red); opacity: .4; }
.poll__label, .poll__pct { position: relative; }
.poll__pct { font-family: var(--display); }
.poll-more { margin: 24px 0 0; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .poll__fill { transition: none; } }
