@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #152437;
  --text: #394a5e;
  --quiet: #52647a;
  --line: #d9dfe5;
  --accent: #a33a26;
  --blue: #183856;
  --blue-hover: #254a6b;
  --light-blue: #eaf1f6;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 'DM Sans', 'Segoe UI', sans-serif;
}
main { flex: 1; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.header-inner nav,
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  color: var(--text);
  font-size: .92rem;
}
.header-inner nav a,
.footer-inner nav a { text-decoration: none; }
.header-inner nav a:hover,
.footer-inner nav a:hover { text-decoration: underline; }
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: .035em;
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark { display: block; width: 17px; height: 17px; background: var(--accent); border-radius: 50%; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-preferences {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.footer-preferences:hover { text-decoration: underline; }
.analytics-consent { background: var(--light-blue); border-bottom: 1px solid var(--line); }
.analytics-consent-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  padding-block: 13px;
}
.analytics-consent h2 { margin-bottom: 3px; font-size: 1rem; }
.analytics-consent p { color: var(--text); font-size: .9rem; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-consent-actions button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: var(--white);
  font: 650 .9rem/1.3 'DM Sans', sans-serif;
  cursor: pointer;
}
.analytics-consent-actions button:hover { background: var(--paper); }

.home { padding-block: 32px 70px; }
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(375px, 38vw, 515px);
  border: 1px solid #d6e2ee;
  border-radius: 16px;
  background: #e5eff8;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #e6eff8 0%, #e6eff8f5 34%, #e6eff800 59%),
    url('/images/tcg-base-hero.webp') center right / cover no-repeat;
}
.hero-content { padding: clamp(32px, 5.5vw, 78px); max-width: min(660px, 62%); }
.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .095em;
}
.hero h1, .page-heading h1, .article-heading h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.hero-content > p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  background: var(--blue);
  color: var(--white);
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
}
.button:hover { background: var(--blue-hover); }
.hero .button { margin-top: 24px; }

.home-articles { margin-top: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.section-heading h2, .prose h2 { font-size: clamp(1.4rem, 2.25vw, 1.9rem); letter-spacing: -.025em; }
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(295px, 100%), 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.article-card-title { margin-bottom: 9px; font-size: 1.3rem; overflow-wrap: anywhere; }
.article-card-title a { text-decoration: none; }
.article-card-title a:hover { text-decoration: underline; }
.article-card > p:not(.eyebrow) { margin-bottom: 14px; color: var(--text); }
.article-card .read-link { margin-top: auto; }
.read-link { color: var(--blue); font-size: .92rem; font-weight: 700; }
.empty {
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--quiet);
}

.page { padding-block: clamp(36px, 6vw, 72px); }
.page-heading { margin-bottom: 30px; max-width: 70ch; }
.page-heading h1, .article-heading h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
.page-heading > p:not(.eyebrow) { margin-top: 11px; color: var(--text); font-size: 1.12rem; }
.page-heading .read-link { display: inline-block; margin-top: 16px; }
.article-shell { max-width: 1040px; }
.breadcrumb { margin-bottom: 28px; color: var(--quiet); font-size: .9rem; }
.article-heading { margin-bottom: 27px; max-width: 920px; }
.byline { margin-top: 16px; color: var(--quiet); font-size: .94rem; }
.release-date { margin-top: 8px; color: var(--blue); font-size: .94rem; font-weight: 650; }
.release-date time { margin-left: .3em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 255px); gap: clamp(22px, 4vw, 46px); align-items: start; }
.article-layout-inline { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 72ch; color: var(--text); font-size: 1.02rem; overflow-wrap: anywhere; }
.prose h2 { color: var(--ink); margin-bottom: 10px; }
.prose p + p { margin-top: .8em; }
.prose section + section { margin-top: 27px; }
.prose > .wholesale-note, .prose > .wholesale-note + section { margin-top: 27px; }
.summary, .wholesale-note {
  padding: 22px;
  background: var(--light-blue);
  border: 1px solid #d6e2ee;
  border-radius: 10px;
}
.wholesale-note h2 { font-size: 1.15rem; margin-bottom: 7px; }
.wholesale-note p { color: var(--text); font-size: .94rem; margin-bottom: 15px; }
.facts { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.facts > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; padding: 10px 14px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink); font-weight: 650; }

.article-block {
  margin: 16px 0 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.article-block h3, .article-table-scroll caption {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
}
.article-checklist, .article-template { padding: clamp(14px, 3vw, 20px); }
.article-checklist ul { display: grid; gap: 9px; margin: 11px 0 0; padding: 0; list-style: none; }
.article-checklist li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); align-items: start; gap: .65rem; }
.article-checklist li::before {
  content: '';
  width: .8rem;
  height: .8rem;
  margin-top: .35em;
  border: 1px solid var(--quiet);
  border-radius: 2px;
  background: var(--light-blue);
}
.article-template pre {
  margin: 13px 0 0;
  color: var(--text);
  font: .94rem/1.65 'DM Sans', 'Segoe UI', sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.article-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.article-table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.article-table-scroll table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .94rem; }
.article-table-scroll caption { padding: 14px 16px; text-align: left; }
.article-table-scroll :is(th, td) {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-table-scroll thead th { color: var(--ink); background: var(--light-blue); }
.article-table-scroll tbody th { color: var(--ink); font-weight: 650; }
.article-diagram { overflow: hidden; }
.article-diagram img { display: block; width: 100%; height: auto; }
.article-diagram figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: .91rem;
}

.source { border-top: 1px solid var(--line); padding-top: 18px; }
.source p { color: var(--quiet); font-size: .9rem; margin-top: 5px; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner, .footer-inner { flex-wrap: wrap; gap: 10px 20px; }
  .hero-content { max-width: 70%; padding: 30px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .wholesale-note { max-width: 72ch; }
}

@media (max-width: 540px) {
  .home { padding-top: 18px; padding-bottom: 48px; }
  .hero { min-height: 0; padding-top: clamp(140px, 40vw, 200px); }
  .hero::before {
    bottom: auto;
    height: clamp(140px, 40vw, 200px);
    background: url('/images/tcg-base-hero.webp') 94% center / cover no-repeat;
  }
  .hero-content { max-width: 100%; padding: 24px; }
  .hero h1 { font-size: clamp(2.05rem, 9vw, 2.9rem); }
  .header-inner nav, .footer-inner nav { gap: 12px 18px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}
