/*
 * Stylesheet for the static content pages (guides, how-it-works, about, legal).
 * These pages live in public/ and are served as plain HTML with no JavaScript,
 * so they can't import src/styles.css — the design tokens below are kept in
 * sync with the :root block there by hand.
 */
:root {
  --bg-top: #ffffff;
  --bg-bottom: #f4f4f1;
  --ink: #0a0a0a;
  --ink-soft: #444440;
  --berry: #0a0a0a;
  --card-radius: 2px;
  --shadow: 8px 8px 0 rgba(10, 10, 10, 0.1);
  --yuki-berry: #b8483f;
  --rule: rgba(10, 10, 10, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 60%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 24px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 32px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Crossed-out snowflake = don't flake */
.flake {
  position: relative;
  display: inline-block;
  margin-right: 4px;
}

.flake::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 48%;
  height: 3px;
  border-radius: 2px;
  background: var(--berry);
  transform: rotate(-22deg);
}

.tld {
  color: var(--yuki-berry);
}

.masthead-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--yuki-berry);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- article ---------- */

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

h1 {
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 16px;
}

.standfirst {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.byline {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 16px 0 0;
  margin: 24px 0 32px;
  border-top: 1px solid var(--rule);
}

article h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 12px;
}

article h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 28px 0 8px;
}

article p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
}

article ul,
article ol {
  font-size: 18px;
  line-height: 1.6;
  padding-left: 24px;
  margin: 0 0 18px;
}

article li {
  margin-bottom: 10px;
}

article li strong {
  font-weight: 700;
}

article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yuki-berry);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--yuki-berry);
  font-size: 19px;
  line-height: 1.55;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.callout {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 32px 0;
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.script-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin: 0 0 24px;
}

.script-table th,
.script-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
}

.script-table th {
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

/* ---------- guide index cards ---------- */

.guide-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.guide-list li {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.guide-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.guide-list h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.guide-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-list h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yuki-berry);
  text-decoration-thickness: 2px;
}

.guide-list p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- end-of-article CTA ---------- */

.end-cta {
  margin: 48px 0 0;
  padding: 28px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--card-radius);
}

.end-cta h2 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px;
}

.end-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.end-cta a {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--card-radius);
}

/* ---------- site footer ---------- */

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.site-footer a:hover {
  border-bottom-color: var(--yuki-berry);
}

.site-footer p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 540px) {
  h1 {
    font-size: 30px;
  }

  .standfirst {
    font-size: 18px;
  }

  article h2 {
    font-size: 22px;
  }

  article p,
  article ul,
  article ol {
    font-size: 17px;
  }

  .masthead {
    align-items: flex-start;
  }
}
