:root {
    color-scheme: light;
    --paper: #faf8f4;
    --surface: #fffdfa;
    --ink: #201923;
    --muted: #615662;
    --berry: #94175b;
    --berry-dark: #701043;
    --blush: #f8e4ed;
    --lavender: #eee4fa;
    --line: #ded4dd;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --display: "Arial", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 1.5rem; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 var(--body);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
::selection { background: #e7b7d5; color: var(--ink); }

.wrap { width: min(100% - 5rem, 76rem); margin-inline: auto; }

.skip-link {
    position: absolute;
    z-index: 10;
    transform: translateY(-150%);
    left: 1rem;
    padding: .75rem 1rem;
    background: var(--surface);
    color: var(--berry);
}

.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }

.header-row, .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
}

.header-row { min-height: 4.75rem; }

.brand {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.055em;
    text-decoration: none;
}

.brand img { margin-right: .5rem; }
.brand span { color: var(--berry); }

.site-header nav { display: flex; gap: clamp(.65rem, 3.1vw, 2rem); align-items: center; }

.site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    white-space: nowrap;
    font-weight: 650;
    font-size: .95rem;
    text-decoration: none;
}

.site-header nav a:hover { color: var(--berry); }

.site-header .nav-checklist {
    padding: .45rem .95rem;
    border: 1px solid var(--line);
    border-radius: 100vw;
    color: var(--berry);
}

.hero {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 1.75rem;
    overflow: clip;
    background: var(--blush);
}

.hero-copy {
    align-self: center;
    padding: clamp(1.5rem, 5vw, 5rem);
}

.hero h1, .guide h1, h2 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.067em;
}

.hero h1 { font-size: clamp(3.2rem, 7.7vw, 7.3rem); line-height: .92; }
.hero h1 em { color: var(--berry); font-style: italic; }
.hero p {
    max-width: 25rem;
    margin-top: 1.7rem;
    color: #493546;
    font-size: clamp(1.05rem, 1.43vw, 1.24rem);
    line-height: 1.45;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 30rem;
    aspect-ratio: 1.1;
    object-fit: cover;
    object-position: center 48%;
    background: #d6c0c1;
}

.hero-actions, .result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    border: 1px solid transparent;
    border-radius: 100vw;
    min-height: 2.85rem;
    padding: .6rem 1rem;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.18;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button.primary { background: var(--berry); color: #fff; }
.button.primary:hover { background: var(--berry-dark); }
.button.secondary { background: var(--surface); color: var(--berry); border-color: #dababf; }
.button.secondary:hover { background: #fdf0f7; }
.button:focus-visible { outline-offset: 3px; }

.routes, .checklist { margin-top: clamp(3rem, 6.5vw, 6.3rem); }

.section-heading { margin-bottom: 1.4rem; }
.section-heading h2 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1; }
.section-heading p { margin-top: .65rem; color: var(--muted); font-size: 1.05rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.route-card { border: 1px solid var(--line); background: var(--surface); border-radius: 1.35rem; }
.route-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: inherit;
    text-decoration: none;
}
.route-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    border-radius: 1.32rem 1.32rem 0 0;
    background: #e4d5de;
    object-fit: cover;
    object-position: center;
}
.card-content { padding: 1.15rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-tag { color: var(--berry); font-size: .87rem; font-weight: 720; }
.card-content h3 { margin-top: .18rem; font-size: clamp(1.35rem, 2.25vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.card-content p { margin: .6rem 0 1rem; color: var(--muted); line-height: 1.45; }
.card-link { font-weight: 750; color: var(--berry); margin-top: auto; }
.route-card a:hover .card-link { text-decoration: underline; text-underline-offset: .18rem; }

.checklist { margin-bottom: clamp(3rem, 7vw, 6.5rem); }
.checklist-shell { background: var(--lavender); border-radius: 1.75rem; padding: clamp(1.3rem, 4vw, 3.25rem); }
.checklist-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(1rem, 4vw, 3.2rem); align-items: start; }
.checklist-options { display: grid; gap: 1.2rem; padding: .4rem 0; }
.checklist-options fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.checklist-options legend { padding: 0; margin-bottom: .45rem; font-size: 1.02rem; font-weight: 750; }
.choices { display: flex; gap: .42rem; flex-wrap: wrap; }
.choices label { position: relative; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choices label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: .45rem .82rem;
    border-radius: 100vw;
    border: 1px solid #cabece;
    background: var(--surface);
    font-size: .94rem;
    font-weight: 640;
    cursor: pointer;
}
.choices input:checked + span { background: var(--berry); color: #fff; border-color: var(--berry); }
.choices input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 3px; }
.checklist-result { padding: clamp(1rem, 2.7vw, 1.85rem); border-radius: 1.15rem; background: var(--surface); }
.checklist-result h3 { font-size: clamp(1.5rem, 2.9vw, 2.25rem); letter-spacing: -.05em; line-height: 1.15; }
#plan-summary { margin-top: .55rem; }
.plan-gear { margin-top: .45rem; color: var(--muted); }
.check-items { list-style: none; margin: 1rem 0 .55rem; padding: 0; border-top: 1px solid var(--line); }
.check-items li { border-bottom: 1px solid var(--line); }
.check-items label {
    display: flex;
    align-items: center;
    column-gap: .7rem;
    min-height: 2.75rem;
    padding-block: .42rem;
    cursor: pointer;
    line-height: 1.35;
}
.check-items input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--berry); }
.check-items input:checked + span { color: var(--berry-dark); font-weight: 650; }
.progress { color: var(--berry-dark); font-weight: 730; }
.result-actions { margin-top: 1rem; }
.text-button {
    min-height: 2.75rem;
    padding: .25rem .15rem;
    border: 0;
    background: transparent;
    color: var(--berry-dark);
    font-weight: 650;
    text-underline-offset: .15rem;
    text-decoration: underline;
    cursor: pointer;
}
.text-button:disabled { color: var(--muted); opacity: .8; cursor: default; }
.storage-note { margin-top: .55rem; color: var(--muted); font-size: .88rem; }
.storage-note:empty { display: none; }
.print-title { display: none; }

.site-footer { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.site-footer p { color: var(--muted); font-size: .92rem; }
.site-footer .brand img { width: 1.8rem; height: 1.8rem; }

.guide { padding-top: 1.6rem; }
.breadcrumbs { display: flex; align-items: baseline; gap: .55rem; color: var(--muted); font-size: .92rem; }
.breadcrumbs a { color: var(--berry); text-underline-offset: .15rem; }
.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(1.25rem, 4.2vw, 4rem);
    margin-top: 1.1rem;
    padding: clamp(1.25rem, 3.8vw, 3.2rem);
    border-radius: 1.75rem;
    background: var(--blush);
}
.guide h1 { font-size: clamp(2.45rem, 5.4vw, 5.25rem); line-height: .98; }
.guide-intro > p { margin-top: 1.05rem; font-size: 1.08rem; color: #493546; }
.guide-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.guide-facts li { padding: .3rem .74rem; border: 1px solid #dababf; border-radius: 100vw; color: #5a2246; font-size: .9rem; font-weight: 650; }
.guide-photo { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; border-radius: 1.05rem; background: #dec5cf; }

.guide-content {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
    gap: clamp(1.25rem, 4.5vw, 5rem);
    padding: clamp(2rem, 5vw, 4rem) clamp(0px, 2vw, 1.25rem);
}
.contents { align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.contents a { color: var(--berry); font-weight: 650; text-underline-offset: .17rem; }
.article { max-width: 47rem; }
.article h2, .next-route h2 { font-size: clamp(2.05rem, 4vw, 3.3rem); line-height: 1.05; }
.article h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.024em; }
.article p { margin-top: .38rem; color: var(--muted); max-width: 67ch; }
.article section + section { margin-top: 2.4rem; }
.article-item { margin-top: 1rem; }
.steps { padding-left: 1.35rem; margin: 1rem 0; }
.steps li { padding-left: .45rem; margin-block: 1.1rem; }
.steps li::marker { color: var(--berry); font-weight: 800; }
.safety { padding: 1rem 1.15rem; background: var(--lavender); border-radius: .9rem; margin-top: 1.3rem; }
.article .article-sources { margin-top: 1.75rem; font-size: .9rem; }
.article a, .next-route li a { color: var(--berry); text-underline-offset: .16rem; }
.next-route { background: var(--lavender); border-radius: 1.2rem; padding: 1.55rem clamp(1.1rem, 4vw, 3rem); margin-bottom: 3.2rem; }
.next-route .button { margin-top: .9rem; }
.next-route ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: .85rem 0 0; padding: 0; }
.next-route li a { font-weight: 650; display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (max-width: 67rem) {
    .hero-copy { padding-inline: clamp(1.35rem, 3vw, 3rem); }
    .hero-image { min-height: 25rem; }
}

@media (max-width: 53rem) {
    .wrap { width: calc(100% - 2.5rem); }
    .hero-image { min-height: 22rem; }
    .card-grid { gap: .75rem; }
    .card-content { padding-inline: .95rem; }
}

@media (max-width: 42rem) {
    .wrap { width: calc(100% - 2rem); }
    .header-row { min-height: 4rem; gap: .5rem; }
    .site-header .brand { font-size: 1.13rem; }
    .site-header .brand img { width: 1.75rem; height: 1.75rem; margin-right: .35rem; }
    .site-header nav { gap: .55rem; }
    .site-header nav a { font-size: .84rem; }
    .site-header .nav-checklist { padding-inline: .58rem; }
    .hero { grid-template-columns: 1fr; margin-top: 1rem; border-radius: 1.25rem; }
    .hero-copy { padding: 1.7rem 1.25rem; }
    .hero h1 { font-size: clamp(3.6rem, 12.6vw, 6rem); }
    .hero p { margin-top: 1rem; }
    .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; max-width: 23rem; margin-top: 1.2rem; gap: .45rem; }
    .hero-actions .button { padding-inline: .4rem; font-size: .89rem; }
    .hero-image { min-height: 0; height: auto; aspect-ratio: 1.35; }
    .card-grid, .checklist-grid, .guide-hero, .guide-content { grid-template-columns: 1fr; }
    .card-content { padding-inline: 1.1rem; }
    .checklist-shell, .guide-hero { border-radius: 1.25rem; }
    .checklist-options { gap: 1rem; }
    .guide-photo { aspect-ratio: 1.45; }
    .guide-content { gap: 1.3rem; }
    .contents { flex-direction: row; flex-wrap: wrap; gap: .35rem .85rem; }
    .contents a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

@media (max-width: 23rem) {
    .wrap { width: calc(100% - 1.5rem); }
    .brand { font-size: 1.12rem; }
    .brand img { width: 1.7rem; height: 1.7rem; margin-right: .35rem; }
    .hero-copy { padding-inline: .95rem; }
    .hero-actions .button { font-size: .84rem; padding-inline: .35rem; }
    .footer-row { align-items: flex-start; flex-direction: column; }
}

@media print {
    html, body { color: #000; background: #fff; }
    body:has(#print-list) :is(.site-header, .site-footer, .skip-link, .hero, .routes, .checklist-options, .checklist .section-heading, .result-actions, .storage-note) { display: none; }
    .wrap.checklist, .checklist-shell, .checklist-result { width: auto; margin: 0; padding: 0; border-radius: 0; background: #fff; }
    .checklist-grid { display: block; }
    .print-title { display: block; font-size: .95rem; margin-bottom: .4rem; }
    .check-items li { break-inside: avoid; }
    .check-items input { appearance: none; width: .95rem; height: .95rem; print-color-adjust: exact; }
    .check-items input::before { content: ""; display: block; width: 100%; height: 100%; border: 1px solid #000; }
    .check-items input:checked::before { content: "✓"; text-align: center; line-height: .9; }
}

.lib { padding-bottom:clamp(3rem,7vw,6rem); }
.lib .breadcrumbs { flex-wrap:wrap; }
.lib h1 { max-width:20ch; font-size:clamp(2.1rem,5.6vw,4.6rem); line-height:1.04; letter-spacing:-.05em; overflow-wrap:break-word; }
.lib section { margin-top:2.4rem; }
.lib section h2,.lib-next h2 { font-size:clamp(1.45rem,2.8vw,2rem); line-height:1.15; letter-spacing:-.035em; }
.lib-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap:1rem; margin:1rem 0 2rem; }
.lib-list li { padding:1rem 1.1rem; border:1px solid var(--line); border-radius:1rem; background:var(--surface); }
.lib-list a,.lib-next a,.lib-sources a { font-weight:650; color:var(--berry); text-underline-offset:.2em; }
.lib-list p { color:var(--muted); margin:.45rem 0 0; }
.lib-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1.3rem; }
.lib-jumps ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; padding:0; margin:1.4rem 0 0; list-style:none; }
.lib-jumps a { display:flex; height:100%; min-height:2.8rem; align-items:center; padding:.55rem .9rem; background:var(--surface); border:1px solid var(--line); border-radius:.75rem; color:var(--berry); font-weight:650; text-decoration:none; }
.lib-jumps a:hover, .lib-jumps a:focus-visible { text-decoration:underline; text-underline-offset:.18em; }
@media (max-width:42rem) { .lib-jumps ul { grid-template-columns:1fr; gap:.45rem; } }
.lib-reading { max-width:52rem; }
.lib-reading section { margin:1.8rem 0; }
.lib-reading section p { max-width:68ch; line-height:1.65; margin-top:.45rem; white-space:pre-line; }
.lib-intro { margin:1rem 0 2rem; color:var(--muted); font-size:1.18rem; }
.lib-sources { margin:1.5rem 0; }
.lib-sources summary { cursor:pointer; }
.lib-next { border-top:1px solid var(--line); margin-top:2rem; padding-top:1.3rem; }
.lib-next a { display:block; margin-top:.65rem; }
@media print { body:has(#print-list) #guides { display:none; } }
.lib-figure { margin:1.3rem 0 1.7rem; border-radius:1rem; padding:1.15rem; background:var(--blush); }
.lib-figure figcaption { font-weight:700; }
.lib-figure dl { display:flex; flex-wrap:wrap; gap:.65rem; margin:.7rem 0 0; }
.lib-figure dl div { flex:1 1 8.5rem; padding:.75rem; background:var(--surface); border-radius:.65rem; }
.lib-figure dt { font-weight:700; color:var(--berry); }
.lib-figure dd { margin:.25rem 0 0; }

.instruction-figure { margin: 1.25rem 0 1.65rem; max-width: 38rem; }
.instruction-figure img { display:block; width:100%; max-width:30rem; height:auto; }
.instruction-figure figcaption { margin-top:.6rem; max-width:30rem; font-size:.95rem; line-height:1.45; }
.lib-jumps a { gap:.65rem; }
.lib-jumps svg { flex:0 0 24px; }
.journal-example summary { cursor:pointer; color:var(--berry); padding:.6rem 0; font-weight:650; }
.journal-example dl { border-left:3px solid var(--line); padding-left:1rem; }
.journal-example dt { font-weight:650; }
.journal-example dd { margin:0 0 .65rem; }

@media screen {
    #checklist .checklist-shell {
        padding: clamp(.85rem, 3.1vw, 2.65rem);
        border: 1px solid #e7dae9;
        background: #f5eef7;
    }

    #checklist .section-heading { margin: .25rem 0 clamp(1rem, 2.2vw, 1.65rem); }
    #checklist .section-heading h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
    #checklist .checklist-grid { gap: clamp(.75rem, 2vw, 1.4rem); }
    #checklist :is(.checklist-options, .checklist-result) {
        min-width: 0;
        padding: clamp(.85rem, 2vw, 1.5rem);
        border: 1px solid #e2d4e2;
        border-radius: 1.1rem;
    }

    #checklist .checklist-options { background: #eee4f3; }
    #checklist .checklist-options h3 {
        font-size: clamp(1.15rem, 2vw, 1.45rem);
        line-height: 1.2;
    }

    #checklist .checklist-options legend { font-size: .95rem; }
    #checklist .choices {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .35rem;
    }

    #checklist .choices label span {
        width: 100%;
        height: 100%;
        min-width: 0;
        border-radius: .65rem;
        padding-inline: .2rem;
        font-size: clamp(.8rem, 1.45vw, .94rem);
        line-height: 1.2;
        text-align: center;
    }

    #checklist .choices input:not(:checked) + span:hover { border-color: var(--berry); }
    #checklist .choices input:focus-visible + span { outline-offset: 1px; }
    #checklist .checklist-progress {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .8rem;
        margin-top: .6rem;
        font-size: .9rem;
    }

    #checklist progress {
        appearance: none;
        width: 100%;
        height: .4rem;
        border: 0;
        border-radius: 1rem;
        background: #ede1eb;
        color: var(--berry);
    }

    #checklist progress::-webkit-progress-bar { background: #ede1eb; border-radius: 1rem; }
    #checklist progress::-webkit-progress-value { background: var(--berry); border-radius: 1rem; }
    #checklist progress::-moz-progress-bar { background: var(--berry); border-radius: 1rem; }
    #checklist .check-items { display: grid; gap: .35rem; margin: .85rem 0; border: 0; }
    #checklist .check-items li { border: 0; }
    #checklist .check-items label {
        min-height: 2.8rem;
        padding: .46rem .65rem;
        border: 1px solid #e9dfe6;
        border-radius: .65rem;
    }

    #checklist .check-items label:hover { border-color: #ccacc2; }
    #checklist .check-items label:has(input:checked) { background: #faedf4; border-color: #dfbdcf; }
    #checklist .check-items input:focus-visible { outline-offset: 2px; }
    #checklist .checklist-advice {
        padding: .7rem .85rem;
        border-left: 3px solid #d9b8d1;
        background: #f7f1f8;
        border-radius: 0 .6rem .6rem 0;
        font-size: .94rem;
        line-height: 1.45;
    }

    #checklist .result-actions { gap: .45rem .65rem; }
}

#checklist .checklist-advice h4 { font-size: .93rem; margin: 0; }
#checklist #plan-summary { margin-top: .25rem; }

@media screen and (max-width: 42rem) {
    #checklist .result-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .2rem .4rem;
    }

    #checklist .result-actions .button { padding-inline: .3rem; font-size: .88rem; }
    #checklist .result-actions .text-button { grid-column: 1 / -1; justify-self: start; }
}

@media (forced-colors: active) {
    #checklist .choices input:checked + span { border: 2px solid Highlight; }
}

@media print {
    #checklist progress { display: none; }
    #checklist .checklist-progress { margin-top: .4rem; }
    #checklist :is(.progress, .plan-gear, .check-items input:checked + span) { color: #000; }
    #checklist .checklist-advice { margin-top: .8rem; }
}

.move-preview { display:grid; grid-template-rows:auto 1fr; gap:.5rem; padding:.6rem; border-radius:1rem; background:var(--surface); border:1px solid var(--line); text-decoration:none; }
.move-preview img { width:100%; height:auto; aspect-ratio:440/246; object-fit:contain; }
.move-preview span { padding:.15rem .55rem .55rem; font-size:1.12rem; font-weight:700; }
.move-preview:is(:hover,:focus-visible) span { color:var(--berry); text-decoration:underline; }
