/* SignPath Weekly — public site styles. Tokens from BRIEF.md §4. */
:root {
  --ground: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #0E1A2B;
  --text-2: #33415A;
  --muted: #4A586B;
  --line: #D8DEE6;
  --input-border: #8793A6;
  --accent: #1D4ED8;
  --accent-tint: #EBF1FD;
  --callout: #0E1A2B;
  --callout-label: #93C5FD;
  --radius: 6px;
  --container: 1040px;
  --gutter: 32px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 16px; border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { left: 8px; }

.label {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.btn-outline {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 600;
}
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* Signup component */
.signup-form { display: flex; flex-direction: column; gap: 8px; }
.signup-form label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-form input[type="email"] {
  flex: 1 1 260px; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--input-border); border-radius: var(--radius);
  background: var(--surface); font-family: inherit; font-size: 16px; color: var(--ink);
}
.signup-form button {
  height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #FFFFFF; font-family: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer;
}
.signup-form button:disabled { opacity: 0.55; cursor: not-allowed; }
.signup-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.signup-placeholder {
  margin: 0 0 8px; padding: 8px 12px; border: 1px dashed #B45309; border-radius: var(--radius);
  background: #FFF7ED; color: #7C2D12; font-family: var(--mono); font-size: 12px;
}
.signup--side .signup-row { flex-direction: column; }
.signup--side input[type="email"], .signup--side button { width: 100%; flex-basis: auto; }
.signup-embed iframe { max-width: 100%; border: 0; }
.signup.is-subscribed .signup-embed, .signup.is-subscribed .signup-note { display: none; }
.signup-done p { margin: 0 0 8px; font-size: 16px; color: var(--text-2); }
.signup-reset {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--accent);
  text-decoration: underline;
}

/* Index page */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero .label { margin-bottom: 20px; }
.hero h1 {
  margin: 0 0 20px; max-width: 760px; font-size: 52px; line-height: 1.08;
  letter-spacing: -0.02em; font-weight: 700;
}
.hero-lede { margin: 0 0 32px; max-width: 620px; font-size: 19px; color: var(--text-2); }
.hero .signup { max-width: 560px; }

.section { padding-top: 24px; padding-bottom: 56px; }
.section h2 { margin: 0 0 24px; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 220px; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.archive { padding-bottom: 72px; }
.archive-list {
  list-style: none; margin: 0; padding: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.archive-list li + li { border-top: 1px solid var(--line); }
.archive-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
  padding: 24px; text-decoration: none; color: var(--ink);
}
.archive-item:hover .archive-title { text-decoration: underline; }
.archive-date { flex: 0 0 120px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.archive-body { flex: 1 1 360px; min-width: 0; }
.archive-title { margin: 0 0 4px; font-size: 21px; line-height: 1.3; font-weight: 600; }
.archive-summary { margin: 0; font-size: 15px; color: var(--muted); }
.archive-cta { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: var(--accent); }
.archive-empty { padding: 24px; margin: 0; color: var(--muted); }

/* Issue page */
.issue-wrap { padding-top: 40px; padding-bottom: 72px; }
.back-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.issue-meta { margin: 16px 0 12px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.issue-wrap h1 {
  margin: 0 0 28px; max-width: 800px; font-size: 44px; line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 700;
}
.issue-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.issue-article {
  flex: 999 1 560px; min-width: 0; padding: 40px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow-wrap: break-word;
}
.issue-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.aside-card p { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.aside-card .app-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}

.one-line { margin: 0 0 40px; padding: 20px 24px; border-radius: var(--radius); background: var(--accent-tint); font-size: 17px; }

.issue-body section + section { margin-top: 44px; }
.issue-body h2 {
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.issue-body h3 { margin: 28px 0 8px; font-size: 21px; line-height: 1.25; }
.issue-body h2 + h3 { margin-top: 0; }
.issue-body .sec-top-story h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
.issue-body p { margin: 0 0 12px; }
.issue-body ul, .issue-body ol { margin: 0 0 12px; padding-left: 20px; }
.issue-body li + li { margin-top: 8px; }
.issue-body .so-what strong:first-child { color: var(--accent); }
.issue-body .relevant { color: var(--text-2); }
.issue-body .source { font-size: 15px; }
.issue-body .source a { font-weight: 500; }
.issue-body blockquote { margin: 0 0 12px; padding-left: 16px; border-left: 3px solid var(--line); color: var(--text-2); }
.issue-body .sec-action-of-the-week {
  padding: 28px; border-radius: var(--radius); background: var(--callout); color: #FFFFFF;
}
.issue-body .sec-action-of-the-week h2 { margin-bottom: 10px; padding-bottom: 0; border-bottom: 0; color: var(--callout-label); }
.issue-body .sec-action-of-the-week p { font-size: 19px; line-height: 1.4; }
.issue-body .sec-action-of-the-week p:last-child { margin-bottom: 0; }
.issue-body .sec-action-of-the-week a { color: var(--callout-label); }

.issue-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 32px; }
.issue-pager a { display: inline-flex; flex-direction: column; min-height: 44px; text-decoration: none; max-width: 48%; }
.issue-pager .next { margin-left: auto; text-align: right; }
.issue-pager small { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 17px; }
  .issue-wrap h1 { font-size: 32px; }
  .issue-article { padding: 24px 20px; }
  .issue-body .sec-top-story h3 { font-size: 24px; }
  .issue-body .sec-action-of-the-week { padding: 20px; }
  .site-nav { gap: 16px; }
  .issue-pager a { max-width: 100%; }
}

.issue-disclaimer { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Send to a colleague */
.share { margin-top: 44px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.share h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.share p { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface);
  color: var(--accent); font-family: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.share-btn:hover { background: var(--accent-tint); }
.share-btn[hidden] { display: none; }
.share .share-status { margin: 10px 0 0; min-height: 1em; font-size: 14px; color: var(--accent); }

/* Issue page: signup under the one-line summary */
.one-line + .issue-subscribe { margin-top: -16px; }
.issue-subscribe { margin: 0 0 40px; scroll-margin-top: 24px; }
.issue-subscribe-lede { margin: 0 0 12px; font-size: 16px; color: var(--text-2); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); background: var(--accent); color: #FFFFFF;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.1); }
