/* Public guides under /guides/. Same tokens and type as the legal pages. */
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/Satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/Satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/Satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #181A1B;
  --ground: #EFEEEA;
  --accent: #8A6D3B;
  --rule: color-mix(in srgb, var(--ink) 16%, var(--ground));
  --muted: color-mix(in srgb, var(--ink) 55%, var(--ground));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: 'Satoshi', sans-serif; font-size: 17px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.masthead .brand { font-family: "Gowun Batang", Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.masthead .links { display: flex; gap: 20px; font-family: "Gowun Batang", Georgia, serif; font-size: 14px; letter-spacing: 0.01em; }
.masthead .links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.masthead .links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }

.page { max-width: 700px; margin: 0 auto; padding: 40px 24px 56px; }
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-block; padding: 12px 0; }
h1 { font-weight: 500; font-size: 40px; line-height: 1.15; margin: 24px 0 14px; letter-spacing: -0.02em; }
.updated { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); margin: 0 0 36px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
h2 { font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; margin: 56px 0 14px; }
h3 { font-weight: 700; font-size: 17px; margin: 32px 0 8px; }
p, li { font-size: 17px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 500; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); }

.cta { margin: 36px 0; padding: 22px 24px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.cta p { margin: 0 0 14px; font-size: 16px; }
.cta .btn { display: inline-block; font-weight: 500; font-size: 14px; padding: 13px 24px; text-decoration: none; background: var(--ink); color: var(--ground); border: 1px solid var(--ink); }
.cta .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ground); }

.caveat { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); line-height: 1.5; }
.caveat small { font-size: 13px; }
.back { display: inline-block; margin-top: 40px; font-size: 14px; }

/* Article hero: one picture under the date, credit line small beneath it. */
.hero { margin: 0 0 40px; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 960px) {
  .hero { width: 880px; position: relative; left: 50%; transform: translateX(-50%); }
}
.hero figcaption { margin-top: 8px; color: var(--muted); line-height: 1.4; }
.hero figcaption small { font-size: 12.5px; }
.hero figcaption a { color: var(--muted); }

/* Research index: a quiet grid of cards under a short desk header. */
.page-wide { max-width: 1120px; padding-top: 72px; }
.desk { max-width: 640px; margin: 0 0 56px; }
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.desk h1 { font-weight: 500; font-size: 44px; letter-spacing: -0.02em; margin: 14px 0 18px; }
.lede { font-size: 18px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 78%, var(--ground)); margin: 0; }
.cards { list-style: none; padding: 40px 0 0; margin: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.card { margin: 0; }
.card a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rule); border: 1px solid var(--rule); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-date { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.card-title { font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 10px 0 10px; }
.card-text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card a:hover .card-title { color: var(--accent); }
.card a:hover .card-title, .card a:focus-visible .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }


@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body, p, li { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  .masthead { padding: 14px 20px; }
  .masthead .brand { font-size: 19px; }
  .masthead .links { gap: 14px; font-size: 13px; }
  .page { padding: 28px 20px 48px; }
  .page-wide { padding-top: 40px; }
  .desk { margin-bottom: 36px; }
  .desk h1 { font-size: 34px; }
  .lede { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 28px; }
  .card-title { font-size: 19px; }
}

/* Four masthead links on a 320px phone. */
@media (max-width: 360px) {
  .masthead { padding: 12px 16px; gap: 10px; }
  .masthead .brand { font-size: 18px; }
  .masthead .links { gap: 10px; font-size: 12px; }
}
