@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #24382d;
    --muted: #68766c;
    --deep: #172c24;
    --panel: #243c2f;
    --green: #c5e881;
    --accent: #426328;
    --paper: #fffef9;
    --pale: #eff4e8;
    --line: #dae3d1;
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.75 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.3;
    text-wrap: balance;
}

h2 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -.04em;
    font-weight: 800;
}

h3 {
    font-size: 19px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button, input {
    font: inherit;
}

button {
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a, button, label, summary {
    touch-action: manipulation;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid #6b8f36;
    outline-offset: 5px;
}

a:active, button:active {
    opacity: .78;
}

.layout {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding-block: 88px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .12em;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.section-heading > p {
    max-width: 320px;
    color: var(--muted);
    font-size: 14px;
}

.centered-heading {
    margin-bottom: 36px;
    text-align: center;
}

.icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: center / contain no-repeat;
}

.icon-download::before { mask-image: url("../icons/download.svg"); }
.icon-menu::before { mask-image: url("../icons/menu.svg"); }
.icon-zoom::before { mask-image: url("../icons/zoom.svg"); }
.icon-plus::before { mask-image: url("../icons/plus.svg"); }
.icon-close::before { mask-image: url("../icons/close.svg"); }
.icon-filter::before { mask-image: url("../icons/filter.svg"); }
.icon-sort::before { mask-image: url("../icons/sort.svg"); }
.icon-grid::before { mask-image: url("../icons/grid.svg"); }
.icon-user::before { mask-image: url("../icons/user.svg"); }

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius);
    color: #243b1b;
    background: var(--green);
    font-size: 15px;
    font-weight: 750;
    transition: background .2s, transform .2s;
}

.download-button:hover {
    background: #d9f2a7;
    transform: translateY(-2px);
}

.plain-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.plain-link:hover {
    color: var(--green);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 30;
    padding: 12px 20px;
    color: #fff;
    background: var(--deep);
}

.skip-link:focus {
    top: 10px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
}

.brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

#main-menu {
    margin-left: auto;
}

#main-menu ul, .footer ul {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-menu a {
    display: block;
    padding-block: 20px;
    font-size: 14px;
    font-weight: 600;
}

#main-menu a:hover, #main-menu a[aria-current="location"] {
    color: #547933;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.header-download {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
}

.menu-control {
    display: none;
}

.opening {
    overflow: hidden;
    color: #f7faed;
    background: radial-gradient(ellipse at 50% 100%, #425b36, transparent 70%), var(--deep);
}

.opening-copy {
    padding-top: 56px;
    text-align: center;
}

.opening .eyebrow {
    color: #c2d99c;
}

.opening h1 {
    font-size: clamp(42px, 4.6vw, 64px);
    line-height: 1.18;
    letter-spacing: -.04em;
    font-weight: 850;
}

.opening h1 span {
    color: var(--green);
}

.opening-description {
    margin-top: 22px;
    color: #c3d2bd;
}

.opening-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 24px;
}

.opening-gallery {
    position: relative;
    width: min(760px, 100%);
    height: 280px;
    margin: 44px auto 0;
}

.opening-gallery::before {
    content: "";
    position: absolute;
    inset: 40px -60px -150px;
    border: 1px solid #809463;
    border-radius: 50% 50% 0 0;
    background: #485d38;
}

.opening-screen {
    position: absolute;
    display: block;
    width: 230px;
    height: auto;
    border: 7px solid #f1f3e4;
    border-radius: 18px;
    box-shadow: 0 12px 32px #0b1b2040;
}

.screen-left {
    left: 12%;
    transform: rotate(-8deg);
}

.screen-right {
    top: 18px;
    right: 12%;
    transform: rotate(8deg);
}

.opening-mascot {
    position: absolute;
    top: 100px;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    border: 1px solid #b0c582;
    border-radius: 50%;
    background: #d3e7a6;
    transform: translateX(-50%);
}

.opening-mascot img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gallery-card {
    min-width: 0;
    scroll-margin-top: 100px;
}

.gallery-card:target .gallery-image {
    border-color: #6e8c40;
    box-shadow: 0 0 0 2px #bed69b;
}

.gallery-image {
    position: relative;
    display: block;
    aspect-ratio: 9 / 18;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f0f2e9;
    transition: border-color .2s, transform .2s;
}

.gallery-image:hover {
    border-color: #76964b;
    transform: translateY(-4px);
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: contain;
}

.zoom-label {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 6px 12px;
    border: 1px solid #b1c29a;
    border-radius: 24px;
    color: #fff;
    background: #1b372be8;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .2s;
}

.gallery-image:hover .zoom-label, .gallery-image:focus-visible .zoom-label {
    opacity: 1;
}

.gallery-card figcaption {
    margin-top: 20px;
}

.gallery-card figcaption p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.ways-section {
    background: #f0f5e6;
}

.ways-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 18px;
}

.route-guide {
    grid-row: span 2;
    min-width: 0;
    padding: 30px;
    border: 1px solid #adbf87;
    background: #dcebbf;
}

.route-guide h3 {
    font-size: 30px;
    letter-spacing: -.03em;
}

.route-controls {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    border: 0;
}

.route-controls[hidden] {
    display: none;
}

.route-controls legend {
    padding: 0 0 12px;
    font-size: 14px;
    font-weight: 650;
}

.route-controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b4c892;
    border-radius: 4px;
    background: #f2f8e7;
    font-size: 14px;
    cursor: pointer;
}

.route-controls label:has(input:checked) {
    border-color: #658740;
    background: #fffef9;
}

.route-controls input {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #4b6e2c;
}

.route-advice {
    margin-top: 20px;
    color: #526741;
}

.route-guide > a, .way-card > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 18px;
    color: #3c5b24;
    font-size: 14px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.route-guide > a:hover, .way-card > a:hover {
    color: #1d3d17;
}

.route-mascot {
    display: block;
    width: 76px;
    height: 76px;
    margin: 28px 0 0 auto;
    object-fit: contain;
}

.way-card {
    padding: 28px;
    border: 1px solid #d3dfc3;
    background: var(--paper);
}

.way-card > .icon {
    width: 26px;
    height: 26px;
    margin-bottom: 18px;
    color: #6b8949;
}

.way-card p {
    margin-top: 12px;
    color: var(--muted);
}

.reading-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reading-steps li {
    padding-top: 20px;
    border-top: 2px solid #9ebd73;
}

.step-index {
    display: inline-block;
    margin-bottom: 20px;
    color: #5c7a39;
    font-size: 14px;
    font-weight: 700;
}

.reading-steps h3 {
    margin-bottom: 12px;
}

.reading-steps p {
    color: var(--muted);
}

.faq-section {
    border-block: 1px solid var(--line);
    background: #f5f6ef;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
}

.faq-intro > p:last-child {
    margin-top: 22px;
    color: var(--muted);
}

.faq-items details {
    border-bottom: 1px solid #d5decb;
}

.faq-items summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    list-style: none;
    font-weight: 650;
    cursor: pointer;
}

.faq-items summary::-webkit-details-marker {
    display: none;
}

.faq-items summary .icon {
    color: #5a7d37;
}

.faq-items details[open] .icon {
    transform: rotate(45deg);
}

.faq-items details > p {
    padding: 0 40px 24px 0;
    color: var(--muted);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
}

.guides-grid article {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.guides-grid p {
    margin-top: 14px;
    color: var(--muted);
}

.reviews-section {
    background: #f7f7f0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.review-card {
    padding: 26px;
    border: 1px solid #dfe4d5;
    border-radius: var(--radius);
    background: #fffef9;
}

.review-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #527135;
    background: #eaf1db;
    font-size: 12px;
}

.review-byline strong {
    font-size: 13px;
    font-weight: 650;
}

.review-byline time {
    margin-left: auto;
    color: #6a7663;
    font-size: 12px;
    letter-spacing: -.02em;
}

.review-card > p {
    color: #606b58;
    font-size: 16px;
    line-height: 1.85;
}

.download-section {
    background: #e4ecb4;
}

.download-inner {
    text-align: center;
}

.download-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    max-width: 100%;
    margin: 32px auto 0;
    padding: 24px 28px;
    border: 1px solid #c2cc92;
    background: var(--paper);
    text-align: left;
}

.download-panel > img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.download-panel p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.download-panel .download-button {
    margin-left: 28px;
    color: #f5fae6;
    background: var(--deep);
}

.download-panel .download-button:hover {
    background: #36553a;
}

.footer {
    padding: 40px 0 24px;
    color: #e1e9d1;
    background: var(--deep);
}

.footer-content, .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer nav {
    font-size: 14px;
}

.footer nav a:hover {
    color: var(--green);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #46553c;
    color: #b1bea1;
    font-size: 13px;
}

.gallery-dialog {
    width: min(640px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 16px;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
}

.gallery-dialog::backdrop {
    background: #0e2019e0;
}

.preview-toolbar, .preview-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-toolbar h2 {
    font-size: 16px;
    letter-spacing: 0;
}

.gallery-dialog button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #f0f5e8;
    font-size: 14px;
}

.gallery-dialog button:hover {
    border-color: #75924f;
}

.preview-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 170px);
    margin: 14px auto;
    object-fit: contain;
}

.preview-count {
    color: var(--muted);
    font-size: 13px;
}

body:has(.gallery-dialog[open]) {
    overflow: hidden;
}

@media (min-width: 992px) {
    .reviews-grid {
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
    }
}

@media (max-width: 1199px) {
    .header-content {
        gap: 18px;
    }

    #main-menu ul {
        gap: 14px;
    }

    .route-guide, .way-card {
        padding: 24px;
    }

    .review-card {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .header-content {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    #main-menu {
        order: 4;
        width: 100%;
    }

    #main-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    #main-menu a {
        padding-block: 8px;
    }

    .header-download {
        margin-left: auto;
    }

    .menu-control.ready {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        padding: 6px 12px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: var(--paper);
        font-size: 14px;
    }

    .header-content:has(.menu-control.ready) .header-download {
        margin-left: 0;
    }

    .header-content:has(.menu-control.ready) #main-menu {
        display: none;
    }

    .header-content:has(.menu-control[aria-expanded="true"]) #main-menu {
        display: block;
    }

    .section {
        padding-block: 64px;
    }

    .gallery-grid, .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        gap: 32px;
    }

    .ways-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-guide {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .route-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-mascot {
        display: none;
    }

    .faq-layout {
        gap: 36px;
    }

    .footer ul {
        flex-wrap: wrap;
        justify-content: end;
        gap: 12px 20px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 84px;
    }

    .layout {
        width: calc(100% - 40px);
    }

    .section {
        padding-block: 52px;
    }

    .header-content {
        min-height: 70px;
        gap: 12px;
    }

    .brand {
        font-size: 20px;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .header-download {
        display: none;
    }

    #main-menu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    #main-menu a {
        padding: 12px 6px;
    }

    .opening-copy {
        padding-top: 38px;
    }

    .opening h1 {
        font-size: clamp(36px, 7.5vw, 52px);
    }

    .opening-description {
        margin-top: 20px;
    }

    .opening-actions {
        flex-direction: column;
        gap: 8px;
    }

    .opening-gallery {
        height: 210px;
        margin-top: 30px;
    }

    .opening-screen {
        width: 43%;
        border-width: 5px;
        border-radius: 12px;
    }

    .screen-left {
        left: 1%;
    }

    .screen-right {
        right: 1%;
    }

    .opening-mascot {
        top: 80px;
        width: 76px;
        height: 76px;
    }

    .opening-mascot img {
        width: 55px;
        height: 55px;
    }

    .opening-gallery::before {
        inset-inline: -20px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 28px;
    }

    .gallery-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 4px 4px 16px;
        scroll-snap-type: x mandatory;
    }

    .gallery-card {
        flex: 0 0 min(80%, 290px);
        scroll-snap-align: start;
    }

    .zoom-label {
        opacity: 1;
    }

    .ways-grid, .reading-steps, .faq-layout, .guides-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }

    .route-guide, .way-card {
        padding: 24px;
    }

    .route-controls {
        grid-template-columns: 1fr;
    }

    .reading-steps {
        gap: 24px;
    }

    .reading-steps li {
        display: grid;
        grid-template-columns: 30px 1fr;
        gap: 10px 18px;
        padding-top: 18px;
    }

    .step-index {
        grid-row: 1 / span 2;
        margin: 2px 0 0;
    }

    .reading-steps h3 {
        margin: 0;
    }

    .faq-layout {
        gap: 22px;
    }

    .faq-intro > p:last-child {
        margin-top: 14px;
    }

    .review-card {
        padding: 22px;
    }

    .download-panel {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        width: 100%;
        padding: 22px;
    }

    .download-panel > img {
        width: 52px;
        height: 52px;
    }

    .download-panel .download-button {
        grid-column: 1 / -1;
        margin: 0;
    }

    .footer-content, .footer-bottom {
        flex-direction: column;
        align-items: start;
        gap: 18px;
    }

    .footer ul {
        justify-content: start;
    }
}

@media (max-width: 359px) {
    .layout {
        width: calc(100% - 32px);
    }

    .review-card {
        padding: 18px;
    }

    .review-byline {
        gap: 6px;
    }

    .avatar {
        width: 24px;
        height: 24px;
    }

    .review-byline time {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}
