@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121923;
  --text: #f4f0e8;
  --muted: #b4b1ac;
  --amber: #f3cf92;
  --line: #303640;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, ul, ol { margin: 0 0 1.35rem; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: .55rem; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: .8rem 0 1.5rem; font-size: clamp(2.15rem, 4.5vw, 3.65rem); font-weight: 650; max-width: 22ch; }
h2 { margin: 0 0 1.1rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 620; }
h3 { margin: 0 0 .8rem; font-size: 1.15rem; }
strong { color: var(--text); font-weight: 650; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 5; padding: .7rem 1rem; background: var(--amber); color: var(--bg); }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.3; font-weight: 650; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; color: var(--muted); font-size: .8rem; font-weight: 450; margin-top: 3px; }
.main-nav { display: flex; gap: 24px; font-size: .88rem; }
.main-nav a { color: var(--muted); text-decoration: none; padding-block: 12px; }
.main-nav a[aria-current], .main-nav a:hover { color: var(--amber); }
.hero { padding-block: clamp(42px, 7vw, 80px) 42px; }
.eyebrow { margin: 0; color: var(--amber); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 650; }
.lede { max-width: 70ch; color: #d0cdc7; font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.7; }
.meta { color: var(--muted); font-size: .85rem; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border-radius: 10px; background: #e8b86d; color: #1a1206; font-size: .94rem; line-height: 1.5; font-weight: 650; text-decoration: none; text-align: center; }
.button:hover { background: var(--amber); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-block: 22px 0; }
.actions > a:not(.button) { padding-block: .6rem; }
.guide-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(125deg, #171d25, #10161d); margin-bottom: 56px; }
.guide-card h2 { margin-top: .9rem; }
.guide-card h2 a { color: var(--text); text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; }
.guide-card p { color: #d0cdc7; }
.guide-card .eyebrow { color: var(--amber); }
.card-summary { align-self: center; border-left: 1px solid var(--line); padding-left: 32px; }
.card-summary h3 { font-size: .9rem; letter-spacing: 0; color: var(--muted); }
.card-summary ul { margin-bottom: 0; }
.resource-strip { padding-top: 30px; border-top: 1px solid var(--line); margin-bottom: 60px; }
.resource-strip h2 { font-size: 1.5rem; }
.resource-strip p { max-width: 70ch; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 54px; align-items: start; padding-bottom: 64px; }
.contents { position: sticky; top: 24px; border-top: 1px solid var(--line); padding-top: 20px; font-size: .85rem; }
.contents p { color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.contents ul { list-style: none; padding: 0; margin: 0; }
.contents a { display: block; color: var(--muted); text-decoration: none; padding-block: 5px; }
.contents a:hover { color: var(--amber); text-decoration: underline; }
.article-body { min-width: 0; max-width: 78ch; font-size: 1.065rem; }
.article-body section { margin-bottom: 44px; }
.article-body p { color: #d9d6d0; }
.callout { padding: 24px 28px; margin-bottom: 38px; border: 1px solid #5b4b33; border-radius: 16px; background: #201c15; }
.callout h2 { font-size: 1.28rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-block: 24px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; line-height: 1.6; }
caption { padding: 18px; text-align: left; background: #171e27; color: var(--text); font-size: .9rem; font-weight: 600; }
th, td { padding: 15px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--panel); color: var(--muted); font-size: .78rem; }
tbody th { font-weight: 550; min-width: 150px; }
td { color: #d0cdc7; }
.example-table { min-width: 670px; }
.table-hint { font-size: .82rem; color: var(--muted) !important; margin-bottom: -.5rem; }
.app-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.app-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-card-header img { border-radius: 12px; width: 52px; height: 52px; }
.app-card-header h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.app-card .offer-note { font-size: .87rem; color: var(--muted); margin-block: 16px 0; }
.safety-note { padding-top: 26px; border-top: 1px solid var(--line); font-size: .9rem; }
.safety-note h2 { font-size: 1.2rem; }
.site-footer { padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer p { max-width: 88ch; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }

@media (max-width: 859px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contents { position: static; padding-top: 16px; }
  .contents ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .contents li + li { margin-top: 0; }
  .article-body { max-width: none; }
  .guide-card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .card-summary { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

@media (max-width: 479px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 82px; gap: 12px; }
  .brand { font-size: .81rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand small { font-size: .74rem; }
  .main-nav { gap: 13px; font-size: .78rem; }
  .hero { padding-top: 32px; }
  .article-body { font-size: 1rem; }
  .callout, .app-card { padding: 21px; }
  th, td { padding: 13px; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --panel: #fff; --text: #111; --muted: #333; --amber: #111; --line: #aaa; }
  body, .article-body p, td { color: #111; }
  .site-header, .contents, .site-footer, .skip, .actions, .app-card { display: none; }
  .wrap { width: 100%; }
  .hero { padding: 0 0 24px; }
  h1 { font-size: 28pt; }
  .article-layout { display: block; }
  .article-body { max-width: none; font-size: 10pt; }
  .callout, caption { background: #fff; }
  .table-scroll { overflow: visible; }
  .example-table { min-width: 0; }
  th, td { padding: 8px; }
  h2, h3 { break-after: avoid; }
  tr { break-inside: avoid; }
}
