:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --panel: #fffdf8;
  --ink: #102739;
  --muted: #4e636b;
  --sea: #006d70;
  --mint: #a9eed9;
  --teal: #2b8b83;
  --line: #d9e0d7;
  --gold: #f4bc66;
  --display: Georgia, 'Times New Roman', serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font: 16px/1.58 var(--body);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.32rem; letter-spacing: -.015em; }
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: #004b50; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #137f87; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 4; padding: 8px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 77px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; font: bold 1.23rem/1 var(--display); }
.brand small { display: block; margin-top: 6px; font: 750 .61rem/1 var(--body); letter-spacing: .12em; color: var(--muted); }
.nav, .site-footer nav { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.nav a, .site-footer nav a { padding: 10px 12px; min-height: 44px; font-size: .87rem; font-weight: 670; color: var(--muted); text-decoration: none; border-radius: 8px; }
.nav a[aria-current], .nav a:hover, .site-footer nav a:hover { color: #005a60; background: #e3f2e9; }
.play-link, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border-radius: 8px; font-weight: 750; font-size: .9rem; text-decoration: none; border: 1px solid transparent; }
.play-link { color: var(--panel); background: var(--ink); flex: none; }
.play-link:hover { color: white; background: #145468; }
.eyebrow, .number, .hero-foot, .date-stamp { font: 750 .69rem/1.3 var(--body); letter-spacing: .135em; }
.eyebrow { color: var(--sea); }
.signal { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.hero { margin-block: 32px 52px; background: #0d3042; color: white; display: grid; grid-template-columns: .91fr 1.09fr; border: 1px solid #1c4f60; border-radius: 19px; overflow: hidden; position: relative; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(27px, 4vw, 56px); background: radial-gradient(ellipse at 95% 112%, #1a5962, transparent 62%); z-index: 1; }
.hero-label { color: #b6f0df; }
.hero h1 { margin-block: 16px 10px; font-size: clamp(3.4rem, 6.7vw, 6rem); line-height: .95; letter-spacing: -.075em; }
.hero-copy > p { color: #d7e7e5; font-size: clamp(1rem, 1.65vw, 1.21rem); max-width: 28ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 25px 24px; }
.primary { background: var(--mint); border-color: #9fdfcb; color: #102f36; }
.primary:hover { background: #c8ffef; color: #103448; }
.outline { color: white; border-color: #77a39f; }
.outline:hover { background: #23515c; color: white; }
.hero-foot { color: #afccc8; font-size: .62rem; }
.hero-art { position: relative; min-height: 355px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { position: absolute; right: 10px; bottom: 9px; color: white; background: #0d3042ed; border-radius: 5px; padding: 3px 7px; font-size: .66rem; }
.directory { margin-block: 0 44px; }
.section-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 9px 24px; padding-bottom: 17px; }
.section-header .eyebrow { margin-bottom: 7px; }
.section-header > p { color: var(--muted); padding-bottom: 2px; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.task-card { display: block; position: relative; min-height: 153px; padding: 17px 20px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--ink); text-decoration: none; }
.task-card:hover { border-color: var(--teal); color: var(--ink); background: #f4fcf5; }
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.task-icon { display: inline-grid; width: 39px; height: 39px; place-items: center; border: 1px solid #bfe1d7; border-radius: 10px; background: #e4f3ed; color: var(--sea); flex: none; }
.number { color: var(--muted); letter-spacing: .08em; font-size: .63rem; }
.task-card p { margin-top: 6px; padding-right: 20px; font-size: .9rem; color: var(--muted); }
.task-arrow { display: inline-flex; color: var(--sea); position: absolute; bottom: 15px; right: 15px; }
.dock-feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 29px; align-items: center; margin-bottom: 52px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #edf5ed; }
.dock-copy { padding: 12px 16px; }
.dock-copy h2 { margin-block: 8px 10px; }
.dock-copy p:not(.eyebrow) { max-width: 51ch; }
.figure { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f1f6ee; }
.figure img { width: 100%; }
.figure figcaption { padding: 6px 11px; font-size: .77rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 700; }
.site-footer { margin-top: 32px; padding-block: 24px; background: #e9f0e8; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-inner p { margin-top: 9px; color: var(--muted); font-size: .82rem; }
.page-wrap { padding-bottom: 32px; }
.page-intro { border-bottom: 1px solid var(--line); padding-block: 24px 26px; margin-bottom: 23px; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: .84rem; margin-bottom: 18px; }
.intro-title { display: flex; align-items: center; gap: 10px; }
.page-intro h1 { font-size: clamp(2.55rem, 5.7vw, 5rem); letter-spacing: -.06em; margin-block: 8px 6px; }
.lede { max-width: 67ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.content-grid, .article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr); align-items: start; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: 13px; padding: 19px; background: var(--panel); }
.panel h2 { margin-top: 5px; }
.panel h3 { margin-top: 15px; margin-bottom: 5px; }
.steps { padding-left: 1.4rem; }
.steps li { padding-left: .15rem; margin-bottom: .65rem; }
.steps li::marker { color: var(--sea); font-weight: 750; }
.compact { padding-bottom: 4px; }
.date-stamp { color: var(--muted); letter-spacing: .055em; padding-bottom: 3px; }
.muted { color: var(--muted); font-size: .88rem; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(126px, .44fr) auto; gap: 10px; margin-top: 13px; align-items: end; }
label { display: block; margin-bottom: 3px; font-size: .83rem; font-weight: 700; }
input, select { display: block; width: 100%; min-height: 44px; min-width: 0; padding: 8px 10px; border: 1px solid #819d9b; background: white; color: var(--ink); border-radius: 8px; }
.subtle-button, .copy-button { background: #edf5ee; border: 1px solid #c4d7cd; border-radius: 8px; min-height: 44px; padding: 8px 12px; color: #005a60; font-weight: 750; }
.subtle-button:hover, .copy-button:hover { background: #d9f1e5; border-color: #69a19a; }
.result-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 13px; min-height: 29px; margin: 7px 0 4px; color: var(--muted); font-size: .83rem; }
#copy-feedback { color: #005a60; font-weight: 750; }
.code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; list-style: none; padding: 0; margin: 0; }
.code-card { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); padding: 10px 12px 12px; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
code { font-family: var(--mono); font-weight: 750; overflow-wrap: anywhere; }
.code-head code { font-size: clamp(.93rem, 2vw, 1.13rem); }
.copy-button { min-width: 66px; font-size: .84rem; }
.badge { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .025em; }
.badge.creator { color: #00584d; background: #e0f5e7; }
.badge.reported { color: #6a4a18; background: #f9edce; }
.code-card p { color: var(--muted); font-size: .88rem; margin-top: 7px; }
.note { background: #f6efdc; border-left: 3px solid #ae7626; border-radius: 5px; padding: 10px 12px; margin-top: 14px; }
.article-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr); }
.article section { padding: 20px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 12px; background: var(--panel); scroll-margin-top: 15px; }
.article section h2 { margin-bottom: 11px; }
.article p + p, .article h3, .article .figure { margin-top: 14px; }
.article h3 { margin-bottom: 5px; }
.article li + li { margin-top: 6px; }
.article ul, .article ol { padding-left: 1.4rem; }
.toc { position: sticky; top: 18px; }
.toc nav { display: grid; margin-top: 8px; }
.toc a { padding-block: 8px; min-height: 44px; border-bottom: 1px solid var(--line); text-decoration: none; }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { text-decoration: underline; }
.next-task { padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line); background: #eaf5ed; }
.next-task a { font-weight: 750; }
.table-scroll, .milestone-table { overflow-x: auto; margin-block: 12px; }
table { border-collapse: collapse; width: 100%; background: var(--panel); font-size: .89rem; }
caption { font-weight: 750; text-align: left; color: var(--sea); padding-bottom: 5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #e7f2e9; }
.planner { background: #eef5ee; margin-block: 13px; }
.planner .inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.planner .muted { margin: 6px 0 9px; }
.planner-result { margin-top: 9px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.planner-result[data-ready="true"] { background: #dff5e8; border-color: #8dc9a6; }
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 4px 10px; padding-block: 9px 5px; }
  .nav { order: 3; flex-basis: 100%; }
  .wrap { width: min(100% - 40px, 1200px); }
  .hero-art { min-height: 300px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .redeem .figure { max-width: 370px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4px; }
  .nav a { text-align: center; padding-inline: 6px; font-size: .81rem; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-block: 16px 30px; }
  .hero-art { min-height: auto; }
  .hero-art img { aspect-ratio: 767/432; }
  .hero-copy { padding: 26px 19px 24px; }
  .hero-actions { margin-block: 17px 15px; }
  .task-grid, .dock-feature, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .task-card { min-height: 127px; padding-block: 13px; }
  .directory { margin-bottom: 27px; }
  .dock-feature { gap: 10px; margin-bottom: 25px; padding: 11px; }
  .dock-copy { padding: 6px; }
  .page-intro { padding-block: 17px 18px; margin-bottom: 17px; }
  .article-grid .toc { grid-row: 1; position: static; padding: 10px 13px; }
  .article-grid .toc nav { display: flex; flex-wrap: wrap; gap: 0 13px; margin-top: 2px; }
  .article-grid .toc a { border: 0; }
  .article section { padding: 13px; }
  .milestone-table th, .milestone-table td { padding-inline: 5px; }
}
@media (max-width: 470px) {
  .code-list { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: minmax(0, 1fr) auto; }
  .filters > div:first-child { grid-column: 1 / -1; }
  .planner .inputs { grid-template-columns: 1fr; }
}
.hero-art img { object-position: 26% center; }
.redeem-jump { display: none; }
@media (max-width: 960px) {
  .redeem-jump { display: inline-flex; }
  .redeem h2 { scroll-margin-top: 12px; }
}
@media (max-width: 650px) {
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding-inline: 11px; }
}
@media (max-width: 360px) {
  .header-inner .brand { font-size: 1.06rem; gap: 6px; }
  .header-inner .brand img { width: 36px; height: 36px; }
  .play-link { font-size: .78rem; padding-inline: 8px; }
}
