@font-face {
    font-family: 'Open Sans Condensed';
    src: url('../fonts/open-sans-condensed-bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-extrabold-italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: var(--trap-paper);
    --ink: var(--trap-ink);
    --red: #bd002d;
    --yellow: #ffcf3e;
    --site-width: min(1620px, calc(100% - clamp(44px, 5.3vw, 100px)));
    --blue: var(--trap-blue);
    --lime: var(--trap-green);
    --quiet: #504b45;
    --line: #cbc6ba;
    --condensed: 'Open Sans Condensed', 'Arial Narrow', Arial, sans-serif;
    --display: 'Open Sans', Arial, sans-serif;
    font: 100%/1.55 Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
h1, h2, p, ul, ol, dl, figure { margin: 0; }
h1, h2 { overflow-wrap: break-word; }
h1 { font: italic 800 clamp(2rem, 4vw, 2.9rem)/1.09 var(--display); letter-spacing: -.045em; }
h2 { font: 700 clamp(1.4rem, 2.2vw, 1.8rem)/1.16 var(--condensed); }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .19em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}
img, picture { display: block; }
.wrap { width: var(--site-width); margin-inline: auto; }
.skip {
    position: absolute;
    z-index: 5;
    inset: 0 auto auto .75rem;
    transform: translateY(-125%);
    background: white;
    padding: .7rem 1rem;
}
.skip:focus { transform: none; }

.site-header { background: var(--paper); }
.masthead { background: var(--red); color: white; }
.masthead-inner, .app-identity, .site-return, .card-nav, .home-rail .wrap,
.foot, .method, .foot nav, .actions, .profile-head { display: flex; align-items: center; }
.masthead-inner { min-height: 78px; padding-block: .55rem; justify-content: space-between; gap: 1rem; }
.app-identity { min-width: 0; gap: clamp(.55rem, 1.2vw, 1.15rem); color: white; text-decoration: none; }
.app-identity:hover { color: white; }
.app-mascot { flex: none; width: clamp(42px, 4vw, 61px); height: auto; }
.app-title { font: 700 clamp(1.45rem, 2.5vw, 2.5rem)/1 var(--condensed); text-transform: uppercase; }
.site-return {
    flex: none; gap: .65rem; min-height: 44px; padding: .5rem .85rem;
    background: var(--ink); color: white;
    font: 700 1rem/1.1 var(--condensed); text-decoration: none;
}
.site-return img { width: clamp(72px, 6.5vw, 104px); height: auto; filter: brightness(0) invert(1); }
.site-return:is(:hover, :focus-visible) { color: var(--ink); background: var(--lime); }
.site-return:is(:hover, :focus-visible) img { filter: brightness(0); }
.masthead a:focus-visible, .site-footer a:focus-visible { outline-color: white; }
.card-nav { flex-wrap: wrap; gap: 0 .2rem; padding-block: .25rem; }
.card-nav a, .home-rail a, .foot nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    font: 700 1.05rem/1.15 var(--condensed); text-decoration: none;
}
.card-nav a, .home-rail a { text-transform: uppercase; }
.card-nav a { padding-inline: clamp(.55rem, 1vw, 1rem); color: var(--ink); }
.card-nav a[aria-current] { background: var(--blue); color: white; }
.card-nav a:is(:hover, :focus-visible) { background: var(--lime); color: var(--ink); }
.site-main { flex: 1; display: flow-root; position: relative; isolation: isolate; background: var(--paper); }
.site-main:has(> :is(.panel, .reading, .profile))::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(7rem, 14vw, 12rem);
    background: linear-gradient(#16131570, #16131570), url('../images/graffiti-wall.webp') center 54% / cover;
}
.hero-band { background: var(--yellow); }
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 46% minmax(0, 1fr);
    min-height: clamp(350px, 30vw, 465px);
}
.intro { align-self: center; padding-block: clamp(1.75rem, 3vw, 3.3rem) clamp(3.6rem, 5.4vw, 5.8rem); }
.hero h1 {
    font-size: clamp(3.65rem, 6.5vw, 6.5rem);
    line-height: .93;
    text-transform: uppercase;
    letter-spacing: -.055em;
}
.intro p { max-width: 33ch; margin: 1.05rem 1.25rem 1.05rem 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.4; }
.actions { gap: .65rem; flex-wrap: wrap; }
.tram-print {
    position: absolute;
    z-index: -1;
    right: 51.5%;
    bottom: .35rem;
    width: clamp(105px, 14vw, 220px);
    height: auto;
    pointer-events: none;
}
.hero-print { overflow: hidden; position: relative; min-width: 0; clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 49%; }
.home-rail { background: var(--ink); }
.home-rail .wrap { flex-wrap: wrap; }
.home-rail a { padding: .45rem .95rem; color: white; font-size: .98rem; }
.home-rail a:first-child { background: var(--yellow); color: var(--ink); }
.home-rail a:is(:hover, :focus-visible) { background: var(--lime); color: var(--ink); }
.home-rail a:focus-visible { outline-color: var(--ink); outline-offset: -3px; }
.home-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1vw, 18px);
    margin-block: clamp(1rem, 2vw, 1.55rem) clamp(2rem, 4vw, 4rem);
}
.home-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: .5rem;
    align-items: end;
    min-height: clamp(165px, 14vw, 224px);
    padding: 0 clamp(.95rem, 1.6vw, 1.65rem) clamp(.95rem, 1.6vw, 1.65rem) 0;
    background: var(--tile-bg);
    color: var(--tile-fg);
    text-decoration: none;
}
.home-link strong {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    justify-self: start;
    padding: .32rem .75rem;
    background: white;
    color: var(--ink);
    font: 700 clamp(1.25rem, 2.15vw, 2rem)/1.12 var(--condensed);
    text-transform: uppercase;
}
.home-link strong::after { content: ''; position: absolute; bottom: -.22rem; left: 0; width: 2.7rem; height: .22rem; background: var(--red); }
.tile-copy { padding: 1.6rem 0 0 clamp(.95rem, 1.6vw, 1.65rem); max-width: 31ch; font-size: clamp(1rem, 1.2vw, 1.17rem); line-height: 1.35; }
.tile-arrow { line-height: 1; font: 700 1.65rem/1 Arial, sans-serif; }
.check-tile { --tile-bg: var(--blue); --tile-fg: white; --tile-hover: #10398c; }
.points-tile { --tile-bg: var(--lime); --tile-fg: var(--ink); --tile-hover: #a0de49; }
.evolve-tile { --tile-bg: var(--trap-purple); --tile-fg: white; --tile-hover: #452083; }
.evolve-tile .tile-copy { max-width: 24ch; padding-right: 2.5rem; }
.tile-mark { position: absolute; right: 8%; top: 18%; width: clamp(48px, 5vw, 85px); height: auto; }
.home-link:is(:hover, :focus-visible) { background-color: var(--tile-hover); color: var(--tile-fg); }

.panel, .reading, .profile {
    margin: clamp(1.55rem, 4.2vw, 3.4rem) auto;
    padding: clamp(1.2rem, 3.7vw, 2.75rem);
    width: var(--site-width);
    background: white;
    overflow-wrap: break-word;
}
.panel { max-width: 38rem; }
.reading, .profile { max-width: 48rem; }
.panel h1, .reading h1, .profile h1 { text-transform: uppercase; }
.panel h1::after, .reading h1::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: .25rem;
    margin-top: .75rem;
    background: var(--red);
}
.panel > * + *, .reading > * + *, .profile > * + * { margin-top: 1rem; }
.back, .choices a { display: inline-flex; align-items: center; min-height: 44px; }
.back { font-weight: 700; color: var(--quiet); }
.back + h1 { margin-top: .25rem; }
.panel form > label:not(:first-child), .pair { margin-top: 1rem; }
form label { display: block; margin-bottom: .32rem; font-weight: 700; }
input:where(:not([type='hidden'], [type='checkbox'], [type='radio'], [type='submit'], [type='button'], [type='reset'], .trap-btn)) {
    display: block;
    width: 100%;
    min-height: 46px;
    border: 1.5px solid #716e68;
    border-radius: 0;
    background: white;
    color: var(--ink);
    padding: .62rem .72rem;
    font: inherit;
    font-size: 1rem;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; cursor: pointer; }
.check input {
    appearance: none;
    position: relative;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: .14rem 0 0;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: white;
}
.check input:checked { background: var(--lime); }
.check input:checked::after {
    content: '';
    position: absolute;
    width: .58rem;
    height: .34rem;
    top: .21rem;
    left: .2rem;
    transform: rotate(-45deg);
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}
.hint, small { color: var(--quiet); font-size: 1rem; }
.hint { margin-top: .35rem; }
.trap { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(100%); }
form > .trap-btn:last-child { margin-top: 1.25rem; }
.choices { display: grid; justify-items: start; gap: .05rem; }
.choices form > .trap-btn:last-child { margin-top: .5rem; }
.notice, .alert, .example { padding: .85rem 1rem; border-left: 4px solid var(--blue); background: #edf2ff; }
.alert { border-color: var(--red); background: #fff0f3; }
.example { border-color: #508323; background: #edfad7; }
.reading h2, .profile h2 { margin-top: 1.8rem; }
.reading ol { padding-left: 1.45rem; }
.reading li + li { margin-top: .55rem; }
.reading .lead { font-size: 1.125rem; }
.method-logo { width: 4.5rem; height: auto; }
.profile-head { justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.eyebrow { color: var(--quiet); }
.status { padding: .35rem .75rem; border: 1px solid var(--ink); background: var(--paper); font-weight: 700; }
.status.active { background: var(--lime); }
.balances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--ink);
    background: var(--ink);
}
.balances div { padding: .8rem; background: var(--paper); }
.balances dd { margin: .1rem 0 0; font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--condensed); font-variant-numeric: tabular-nums; }
.ledger { list-style: none; padding: 0; }
.ledger li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.ledger small { display: block; }
.ledger b { font-variant-numeric: tabular-nums; }

.site-footer { background: var(--ink); color: white; }
.foot { justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; }
.method { gap: .8rem; }
.method-mark { display: block; padding: .2rem; }
.method-mark img { width: 3rem; height: auto; }
.method p { font-size: 1rem; line-height: 1.4; }
.foot nav { flex-wrap: wrap; gap: .2rem 1.1rem; }
.foot nav a { min-height: 44px; color: white; font-size: 1rem; text-decoration: underline; text-decoration-color: #9f9685; }
.foot nav a:hover { color: var(--lime); }

.button-guide { max-width: 62rem; padding-block: 1.5rem 3rem; }
.button-guide > p, .guide-use > p { margin-block: .8rem 1.35rem; max-width: 65ch; }
.guide-preview { margin: 1.5rem 0; padding: 0; border: 0; min-width: 0; }
.guide-preview legend { padding: 0; font-weight: 700; }
.guide-preview input { accent-color: var(--blue); }
.guide-preview label { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1rem; cursor: pointer; }
.button-samples {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: .5rem;
    padding: 0;
    list-style: none;
}
.button-samples li { flex: 1 1 17rem; min-width: 0; padding: 1.15rem; background: white; }
.button-samples code { display: block; margin: .3rem 0 1rem; }
#sample-hover:checked ~ .button-samples .trap-btn {
    background-color: var(--trap-over-fill, var(--trap-green));
    color: var(--trap-over-text, var(--trap-ink));
}
.guide-use { margin-top: 2rem; }
.guide-use pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; color: white; background: var(--ink); }

@media (max-width: 900px) {
    .intro { padding-bottom: 3.9rem; }
    .tile-mark { top: 30%; right: 5%; width: 50px; }
    .evolve-tile .tile-copy { padding-right: 1.8rem; }
}
@media (max-width: 680px) {
    :root { --site-width: calc(100% - 28px); }
    .masthead-inner { min-height: 66px; gap: .5rem; }
    .site-return { flex-direction: column; justify-content: center; gap: .2rem; padding: .38rem .55rem; font-size: .9rem; }
    .site-return img { width: 62px; }
    .card-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .2rem; }
    .card-nav a { justify-content: center; padding: .3rem .12rem; font-size: .93rem; text-align: center; }
    .hero { width: 100%; grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .intro { grid-area: 1 / 1; padding: 1.5rem 14px 3.1rem; }
    .hero h1 { font-size: clamp(3.15rem, 10.2vw, 4.4rem); }
    .intro p { max-width: 33ch; margin: .85rem 0 1rem; }
    .tram-print { position: static; grid-area: 1 / 1; align-self: end; justify-self: end; width: clamp(96px, 25vw, 145px); margin: 0 14px 0 0; }
    .hero-print { grid-row: 2; height: clamp(145px, 43vw, 235px); clip-path: none; }
    .hero-photo { object-position: 50% 52%; }
    .home-rail a { padding-inline: .55rem; font-size: .88rem; }
    .home-links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .home-link { min-height: 126px; }
    .home-link strong { font-size: 1.4rem; }
    .tile-copy { padding-top: 1.2rem; max-width: 35ch; }
    .evolve-tile .tile-copy { max-width: min(68%, 32ch); padding-right: 0; }
    .tile-mark { top: 15%; right: 9%; width: 60px; }
    .foot { gap: .7rem; }
}
@media (max-width: 480px) {
    .pair, .balances { grid-template-columns: minmax(0, 1fr); }
    .balances div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
}
@media (forced-colors: active) {
    .check input { appearance: auto; }
    .check input:checked::after { content: none; }
}
