@font-face {
    font-family: "Bricolage Grotesque";
    src: url("bricolage-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("bricolage-latin-ext.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

:root {
    color-scheme: light;
    --paper: #f5efe3;
    --ivory: #fff9ed;
    --ink: #172138;
    --muted: #50586a;
    --blue: #173f91;
    --blue-dark: #132b60;
    --brick: #a43a29;
    --gold: #ffd37c;
    --rule: #a8a9a2;
    --font: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--font); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 4px; }
[id] { scroll-margin-top: 16px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 36px), 1320px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 4; top: 8px; left: 8px; padding: 10px 16px; transform: translateY(-160%); background: var(--ivory); }
.skip-link:focus { transform: none; }

.header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 12px;
    min-height: 67px;
    border-bottom: 1px solid var(--ink);
}
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; text-decoration: none; font-size: 1.18rem; font-weight: 800; letter-spacing: -.055em; }
.brand-net { color: var(--brick); }
.brand-tiles {
    display: grid;
    place-items: center;
    width: 36px;
    height: 40px;
    border: 1px solid var(--brick);
    border-bottom-width: 3px;
    border-radius: 5px;
    color: var(--brick);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: -.05em;
}
.header-actions, .navigation { display: flex; align-items: center; }
.header-actions { gap: 8px; }
.navigation { gap: 0 23px; flex-wrap: wrap; }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 650; text-decoration: none; }
.navigation a:hover, .navigation .active { color: var(--brick); text-decoration: underline; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 44px; font-size: .92rem; font-weight: 750; text-decoration: none; }
.button { padding: 8px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); }
.button:hover { background: var(--blue); border-color: var(--blue); }
.button-small { background: transparent; color: var(--ink); padding-inline: 10px; }
.button-small:hover { color: var(--ivory); }
.button-glass { background: transparent; color: var(--ink); }
.button-glass:hover { color: var(--ivory); }
.text-link:hover { text-decoration: underline; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 17px; height: 13px; border-block: 2px solid; position: relative; }
.menu-toggle span::after { position: absolute; top: 3.5px; left: 0; width: 100%; border-top: 2px solid; content: ""; }

.landing { display: grid; align-items: center; gap: 30px; padding-block: clamp(25px, 5.6vw, 74px) 21px; }
.landing-copy { min-width: 0; }
.landing h1 {
    color: var(--blue);
    font-size: clamp(4.1rem, 14vw, 7.75rem);
    font-weight: 800;
    font-optical-sizing: auto;
    letter-spacing: -.087em;
    line-height: .82;
}
.landing h1 span { color: var(--brick); }
.landing-copy > p { max-width: 29ch; margin-block: 16px 18px; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.19rem); text-wrap: pretty; }
.button-play { min-height: 50px; padding-inline: 15px; background: var(--brick); border-color: var(--brick); font-size: .95rem; }
.practice-jump { margin-left: 10px; font-size: .85rem; }

.practice {
    min-width: 0;
    padding: clamp(13px, 2.4vw, 26px);
    border: 1px solid #122947;
    border-radius: 12px;
    color: var(--ivory);
    background: radial-gradient(ellipse at 45% 18%, #2d57a5, var(--blue-dark) 82%);
    box-shadow: 0 5px 0 #142446, 0 8px 0 #24375c, 0 11px 14px #202d4421;
}
.practice-header { display: flex; align-items: start; justify-content: space-between; gap: 7px 12px; margin-bottom: 12px; }
.practice-header h2 { font-size: clamp(1.08rem, 2.7vw, 1.71rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.practice-header p { margin-top: 4px; color: #e6e8ee; font-size: clamp(.79rem, 1.4vw, .93rem); }
.practice-reset { min-height: 38px; flex: none; padding: 3px 6px; border: 0; background: transparent; color: var(--ivory); font-size: .81rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.practice :focus-visible { outline-color: var(--gold); }
.practice-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: clamp(5px, 1.2vw, 12px);
    border: 1px solid #8999bc;
    outline: 1px solid #8ca0c077;
    outline-offset: -5px;
    border-radius: 27px;
    background: repeating-linear-gradient(115deg, #ffffff04 0 1px, transparent 1px 3px), #20488f;
}
.practice-set {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 77px;
    padding: 6px 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ivory);
}
.practice-set:enabled { cursor: pointer; }
.practice-set:enabled:hover { background: #ffffff14; }
.practice-set[aria-pressed="true"] { border-color: var(--gold); background: #102e648f; }
.practice-tiles {
    display: flex;
    gap: clamp(3px, .6vw, 7px);
    padding: 4px 5px 6px;
    border-radius: 5px;
    background: #192644;
    box-shadow: 0 2px 0 #13203d, inset 0 1px 0 #a9aaca36;
}
.practice-tile {
    display: grid;
    justify-items: center;
    align-content: center;
    width: clamp(25px, 6vw, 51px);
    height: clamp(33px, 7vw, 65px);
    min-width: 0;
    border-radius: 4px;
    background: linear-gradient(125deg, #fefbf0, #f3e2c2 90%);
    box-shadow: 0 3px 0 #beaa88, inset 0 0 0 1px #fffcf2;
    color: #272528;
    font-size: clamp(.88rem, 3.3vw, 1.8rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.06em;
    line-height: 1;
    transition: transform .12s ease;
}
.practice-tile i { width: .22em; height: .22em; margin-top: .11em; border-radius: 50%; background: currentColor; }
.practice-set[aria-pressed="true"] .practice-tile { transform: translateY(-2px); }
.tile-red { color: #a4312b; }
.tile-blue { color: #214d99; }
.tile-gold { color: #80540c; }
.set-points { margin-top: 3px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.practice-set[aria-pressed="true"] .set-points { color: var(--gold); font-weight: 800; }
.practice-result { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; }
.practice-total { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.practice-total strong { min-width: 1ch; font-size: clamp(1.69rem, 4vw, 2.75rem); font-variant-numeric: tabular-nums; line-height: 1; }
.practice-total span { color: #e6e8ee; font-size: clamp(.75rem, 1.8vw, .87rem); }
.practice-progress progress { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 8px; background: #091d47; accent-color: var(--gold); }
.practice-progress progress::-webkit-progress-bar { background: #091d47; border-radius: 8px; }
.practice-progress progress::-webkit-progress-value { border-radius: 8px; background: var(--gold); }
.practice-progress progress::-moz-progress-bar { border-radius: 8px; background: var(--gold); }
.practice-progress p { margin-top: 5px; color: #e6e8ee; font-size: clamp(.72rem, 1.5vw, .84rem); line-height: 1.35; }
.goal-reached .practice-total strong, .goal-reached .practice-progress p { color: var(--gold); }
.practice-static { margin-top: 9px; color: var(--ivory); font-size: .85rem; }

.quick-start { display: grid; border-block: 1px solid var(--ink); }
.quick-start a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 7px 6px; color: var(--ink); font-size: .95rem; font-weight: 750; text-decoration: none; }
.quick-start a + a { border-top: 1px solid var(--rule); }
.quick-start a:hover { color: var(--brick); text-decoration: underline; }
.quick-start a span { color: var(--brick); }
.content-section { margin-block: clamp(42px, 6vw, 86px); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2px 18px; margin-bottom: 14px; }
.content-section h2, .field-note h2, .section-heading h2, .blog-masthead h1, .post-hero h1, .site-error h1 {
    font-size: clamp(2.4rem, 7.1vw, 5.3rem);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.065em;
    text-wrap: balance;
}
.game-rows { border-top: 2px solid var(--ink); }
.game-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px 13px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.game-row h3 { font-size: clamp(1.3rem, 3.7vw, 2.35rem); line-height: 1; letter-spacing: -.04em; }
.game-row p, .table-list p { margin-top: 4px; color: var(--muted); font-size: .89rem; }
.tile-mark { display: grid; place-items: center; width: 49px; height: 56px; border: 1px solid #b0a58e; border-bottom-width: 4px; border-radius: 6px; background: var(--ivory); color: var(--blue); font-size: 1.35rem; font-weight: 800; }
.red-mark { color: var(--brick); }
.game-fact { margin: 0; font-size: .78rem; line-height: 1.25; }
.game-fact dt { color: var(--muted); }
.game-fact dd { margin: 3px 0 0; font-weight: 800; }
.row-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding-left: 10px; border-left: 1px solid var(--rule); font-weight: 800; text-decoration: none; }
.row-action:hover { color: var(--brick); text-decoration: underline; }
.row-action span { color: var(--brick); }
.table-games { display: grid; gap: 12px 26px; margin-top: 26px; }
.table-games > h3 { font-size: 1.22rem; }
.table-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.table-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding-block: 4px; border-bottom: 1px solid var(--rule); }
.table-list h4 { font-size: 1rem; }
.table-list p { margin-top: 0; font-size: .77rem; }
.table-list a { display: flex; align-items: center; gap: .23em; min-height: 44px; font-size: .83rem; font-weight: 700; }
.table-list a:last-child { color: var(--brick); }

.field-note { background: #e8e6d9; border-block: 1px solid var(--rule); }
.field-note-layout { display: grid; gap: 21px 45px; padding-block: clamp(29px, 6vw, 74px); }
.field-note p, .play-together p { max-width: 41ch; margin-top: 10px; color: var(--muted); }
.field-note .text-link { margin-top: 7px; }
.post-grid { border-top: 1px solid var(--ink); }
.post-card { border-bottom: 1px solid var(--rule); }
.post-card-link { display: block; text-decoration: none; }
.post-card-link:hover h3 { color: var(--brick); text-decoration: underline; }
.post-card-copy { position: relative; padding: 12px 38px 13px 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 5px; color: var(--muted); font-size: .78rem; }
.post-card h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.13; letter-spacing: -.025em; }
.post-card p { margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.post-card-arrow { position: absolute; right: 4px; top: calc(50% - .75em); color: var(--brick); font-size: 1.3rem; }
.play-together { display: grid; align-items: center; gap: 13px 48px; background: var(--blue-dark); color: var(--ivory); padding: clamp(20px, 5vw, 54px); }
.play-together h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.play-together p { color: #e6e8ee; }
.play-together :focus-visible { outline-color: var(--gold); }
.together-links { display: grid; justify-items: start; gap: 0; }
.together-links .button { background: var(--ivory); color: var(--blue-dark); border-color: var(--ivory); }
.together-links .button:hover { background: var(--gold); }
.faq { display: grid; gap: 14px 48px; }
.faq h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { min-height: 48px; padding-block: 11px; font-weight: 700; cursor: pointer; }
.faq details p { padding-bottom: 13px; color: var(--muted); }
.footer { border-top: 1px solid var(--ink); padding-bottom: 22px; }
.footer-top { display: grid; padding-block: 18px; gap: 7px; }
.footer p, .footer-bottom { color: var(--muted); font-size: .83rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 15px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 12px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 3px 8px; margin: 10px 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.blog-masthead { padding-block: clamp(19px, 5vw, 55px); border-block: 1px solid var(--ink); }
.blog-masthead h1, .post-hero h1 { color: var(--blue); }
.blog-masthead p, .post-hero p { margin-top: 10px; max-width: 51ch; color: var(--muted); }
.blog-listing, .post-related, .site-error { margin-block: clamp(28px, 5vw, 66px); }
.blog-listing h2, .post-related h2 { font-size: clamp(1.81rem, 4.2vw, 3.45rem); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 3px; }
.blog-filters a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; font-size: .84rem; text-decoration: none; }
.blog-filters a:hover { text-decoration: underline; }
.blog-filters [aria-current] { background: var(--ink); color: var(--ivory); }
.post-count { font-size: 1rem; color: var(--brick); letter-spacing: 0; }
.post-hero { display: grid; align-items: center; gap: 16px 30px; padding-block: 16px; border-block: 1px solid var(--ink); }
.post-hero h1 { font-size: clamp(2rem, 5.5vw, 4.5rem); }
.post-hero img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.post-hero small { display: inline-block; margin-top: 11px; color: var(--muted); }
.post-layout { display: grid; align-items: start; gap: 20px; margin-top: 22px; }
.post-toc { padding: 12px 16px; border: 1px solid var(--rule); background: #e8e6d9; }
.post-toc h2 { font-size: 1.15rem; }
.post-toc ol { margin: 4px 0 0; padding-left: 21px; }
.post-toc a { display: inline-block; padding-block: 5px; }
.post-content { max-width: 72ch; }
.post-content section + section { margin-top: 22px; }
.post-content h2 { margin-bottom: 8px; font-size: clamp(1.38rem, 3.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; }
.post-content p + p { margin-top: 12px; }
.post-source, .hero-buttons { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; }
.site-error p { margin-top: 12px; }

@media (max-width: 767px) {
    .header.has-menu .menu-toggle { display: grid; }
    .navigation { order: 3; width: 100%; }
    .header.has-menu .navigation { position: absolute; z-index: 2; top: calc(100% - 1px); left: 0; display: none; padding: 4px 12px; border: 1px solid var(--ink); background: var(--ivory); box-shadow: 0 5px 0 #17213828; }
    .header.has-menu .navigation.is-open { display: grid; gap: 0; }
}

@media (max-width: 375px) {
    .wrap { width: calc(100% - 24px); }
    .brand { gap: 6px; font-size: 1.05rem; }
    .header-play { padding-inline: 7px; font-size: .82rem; }
    .practice-jump { margin-left: 6px; }
}

@media (max-width: 340px) {
    .landing h1 { font-size: 3.8rem; }
    .practice-jump { margin-left: 0; }
}

@media (min-width: 650px) {
    .quick-start { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-start a { padding-inline: 11px; }
    .quick-start a + a { border-top: 0; border-left: 1px solid var(--rule); }
    .game-row { grid-template-columns: auto minmax(0, 1fr) minmax(100px, .55fr) minmax(105px, .48fr); gap: 14px; padding-block: 18px; }
    .table-games { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); }
    .table-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
}

@media (min-width: 768px) {
    .wrap { width: min(calc(100% - 64px), 1320px); }
    .header { min-height: 79px; }
    .navigation { gap: 0 29px; }
    .header .menu-toggle { display: none; }
    .landing { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(20px, 4.5vw, 66px); padding-bottom: clamp(32px, 4vw, 56px); }
    .landing h1 { font-size: clamp(4.4rem, 9.2vw, 8.1rem); }
    .practice-jump { display: none; }
    .practice { border-radius: 18px; }
    .practice-header { margin-bottom: 18px; }
    .practice-set { min-height: 108px; }
    .practice-result { margin-top: 16px; gap: 17px; }
    .tile-mark { width: 68px; height: 76px; font-size: 1.75rem; }
    .game-row { gap: 24px; }
    .row-action { padding-inline: 16px 0; }
    .field-note-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); }
    .play-together, .faq { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
    .post-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
    .post-layout { grid-template-columns: minmax(170px, 240px) minmax(0, 1fr); gap: 28px; }
    .blog-page .post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .practice-tile { transition: none; }
}
