@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
    --paper: #f6f4e9;
    --ink: #273d2d;
    --green: #4a6341;
    --muted: #69715e;
    --line: #d9ddca;
    --yellow: #e7b951
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.8 system-ui, -apple-system, "Microsoft Yahei", sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23526142' opacity='.035' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    cursor: pointer;
    color: inherit
}

a {
    color: inherit
}

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

button:disabled {
    opacity: .45;
    cursor: default
}

header {
    max-width: 1240px;
    margin: auto;
    padding: 25px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand {
    text-decoration: none;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px
}

.brand-icon {
    font-size: 29px;
    line-height: 1
}

.brand-en {
    font-size: 9px;
    letter-spacing: 1.7px;
    font-weight: 400;
    border-left: 1px solid var(--line);
    padding-left: 15px;
    margin-left: 8px
}

.text-button {
    border: 0;
    background: none;
    font-size: 13px;
    padding: 8px 0
}

.text-button span {
    margin-left: 20px
}

main {
    max-width: 1130px;
    margin: auto;
    padding: 0 28px;
    min-height: 75vh
}

h1,
h2,
h3,
.serif {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-weight: 500
}

h1 {
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.45;
    letter-spacing: 2px;
    margin: 23px 0
}

h1 em {
    color: #728151;
    font-style: normal;
    position: relative
}

h1 em:after {
    content: "";
    position: absolute;
    height: 9px;
    background: #e4cc7c65;
    bottom: 4px;
    left: 0;
    width: 100%;
    z-index: -1
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--muted)
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
    padding: 55px 0 35px;
    gap: 25px
}

.hero-copy {
    padding: 16px 0
}

.intro {
    font-size: 15px;
    color: var(--muted);
    line-height: 2;
    max-width: 365px
}

.primary {
    background: var(--green);
    color: #fffef1;
    border: 1px solid var(--green);
    border-radius: 5px;
    padding: 15px 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 15px;
    transition: background .2s, transform .2s
}

.primary:hover {
    background: #344d30;
    transform: translateY(-2px)
}

.hero .primary {
    margin: 25px 0 12px;
    min-width: 255px
}

.meta {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px
}

.specimen {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center
}

.specimen:before {
    content: "";
    position: absolute;
    background: #e9ebda;
    border-radius: 50% 50% 46% 45%;
    height: 345px;
    width: 345px;
    z-index: -1
}

.specimen svg {
    width: 90%;
    max-width: 400px;
    height: 365px;
    overflow: visible
}

.label {
    position: absolute;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px
}

.label.top {
    top: 28px;
    left: 28px
}

.label.bottom {
    bottom: 24px;
    right: 20px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 14px
}

.stamp {
    position: absolute;
    right: 10px;
    top: 25px;
    border: 1px solid #899674;
    border-radius: 50%;
    width: 66px;
    height: 66px;
    display: grid;
    place-content: center;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
    transform: rotate(12deg)
}

.note {
    font-family: "Noto Serif SC", serif;
    text-align: center;
    font-size: 17px;
    padding: 30px 0;
    border-block: 1px solid var(--line);
    letter-spacing: 2px
}

.preview-section {
    padding: 40px 0 50px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.section-heading h2 {
    margin: 0;
    font-size: 23px
}

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

.plants {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.plant-preview {
    display: grid;
    grid-template-columns: 85px 1fr;
    align-items: center;
    padding: 20px 8px;
    border-top: 1px solid var(--line)
}

.plant-preview svg {
    width: 78px;
    height: 100px
}

.plant-preview h3 {
    margin: 0 0 5px;
    font-size: 19px
}

.plant-preview p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

footer {
    border-top: 1px solid var(--line);
    max-width: 1152px;
    margin: 20px auto 0;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 10px
}

.quiz {
    max-width: 680px;
    margin: 45px auto 65px
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted)
}

.progress {
    height: 3px;
    background: var(--line);
    margin: 16px 0 45px
}

.progress>span {
    display: block;
    height: 100%;
    background: var(--green);
    transition: width .2s
}

.scene-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted)
}

.quiz h1 {
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 0;
    line-height: 1.65;
    margin: 16px 0 12px
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px
}

.options {
    display: grid;
    gap: 12px
}

.option {
    width: 100%;
    display: flex;
    gap: 16px;
    text-align: left;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fffdf577;
    align-items: center;
    font-size: 15px
}

.option .letter {
    font: italic 16px Georgia;
    color: var(--muted)
}

.option:hover {
    border-color: #82916e;
    background: #edf0df
}

.option[aria-pressed=true] {
    background: #e7ecd9;
    border-color: var(--green);
    box-shadow: inset 3px 0 var(--green)
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px
}

.secondary {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 5px;
    padding: 12px 22px
}

.secondary:hover {
    background: #e9ecdE
}

.quiz-note {
    text-align: center;
    margin-top: 40px;
    font-size: 11px;
    color: var(--muted)
}

.result {
    max-width: 780px;
    margin: 45px auto
}

.result-header {
    text-align: center
}

.result-header h1 {
    font-size: 46px;
    margin: 5px 0
}

.result-art {
    width: 200px;
    height: 200px;
    margin: 10px auto
}

.result-art svg {
    width: 100%;
    height: 100%
}

.result-quote {
    font-size: 22px;
    margin: 15px 0
}

.tags {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px
}

.result-card {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    margin-top: 30px
}

.result-card h2 {
    font-size: 22px;
    margin: 0 0 15px
}

.result-card p {
    color: #52604b;
    line-height: 2
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 35px
}

.metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 7px
}

.bar {
    background: #e0e4d4;
    height: 5px
}

.bar span {
    display: block;
    height: 100%;
    background: #7c8c60
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0
}

.result details {
    margin-top: 20px;
    color: var(--muted);
    font-size: 12px
}

.result summary {
    cursor: pointer
}

dialog {
    max-width: 800px;
    width: calc(100% - 32px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    padding: 30px;
    max-height: 85vh
}

dialog::backdrop {
    background: #26332688
}

.dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px
}

.dialog-top h2 {
    font-size: 23px
}

.dialog-top small {
    font-size: 9px;
    letter-spacing: 2px
}

.dialog-top button {
    border: 0;
    background: none;
    font-size: 28px
}

#atlas-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

#atlas-list article {
    border-top: 1px solid var(--line);
    padding: 15px 0;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px
}

#atlas-list svg {
    width: 70px;
    height: 90px
}

#atlas-list h3 {
    margin: 0;
    font-size: 19px
}

#atlas-list p {
    font-size: 12px;
    color: var(--muted);
    margin: 5px 0
}

.status {
    min-height: 28px;
    text-align: center;
    color: var(--green);
    font-size: 13px
}

.entry {
    animation: enter .35s ease-out
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(7px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:700px) {
    header {
        padding: 18px 22px
    }

    .brand-en {
        display: none
    }

    main {
        padding: 0 23px
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 28px;
        gap: 0
    }

    .hero-copy {
        text-align: center
    }

    .intro {
        margin: auto
    }

    .hero h1 {
        font-size: 43px;
        margin: 15px 0
    }

    .hero .primary {
        margin-top: 20px
    }

    .specimen {
        min-height: 290px
    }

    .specimen:before {
        width: 245px;
        height: 245px
    }

    .specimen svg {
        height: 265px
    }

    .label.top {
        top: 8px;
        left: 8px
    }

    .label.bottom {
        bottom: 4px;
        right: 0
    }

    .stamp {
        width: 53px;
        height: 53px;
        right: 8px;
        top: 20px;
        font-size: 9px
    }

    .note {
        font-size: 14px;
        letter-spacing: 1px;
        padding: 25px 10px
    }

    .plants {
        grid-template-columns: 1fr;
        gap: 0
    }

    .plant-preview {
        grid-template-columns: 85px 1fr;
        padding: 13px 5px
    }

    .preview-section {
        padding: 30px 0 15px
    }

    .section-heading h2 {
        font-size: 20px
    }

    .section-heading .muted {
        font-size: 10px
    }

    footer {
        flex-direction: column;
        gap: 2px;
        text-align: center
    }

    .quiz {
        margin-top: 25px
    }

    .progress {
        margin-bottom: 28px
    }

    .option {
        padding: 15px
    }

    .quiz-nav .primary {
        gap: 20px;
        padding: 12px 20px
    }

    .metrics {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .result-header h1 {
        font-size: 38px
    }

    .result-quote {
        font-size: 19px
    }

    #atlas-list {
        grid-template-columns: 1fr
    }

    dialog {
        padding: 22px
    }

    .dialog-top h2 {
        font-size: 20px
    }

    .result-card {
        padding-top: 22px
    }

    .result {
        margin-top: 28px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Grass Lovers identity and supplied cover artwork. */
.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0
}

.specimen-image:before {
    display: none
}

.hero-image {
    display: block;
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 227 / 222;
    border-radius: 12px
}

@media(max-width:700px) {
    .brand-icon {
        width: 34px;
        height: 34px
    }

    .specimen-image {
        padding: 20px 0;
        min-height: 0
    }

    .hero-image {
        width: min(85%, 280px)
    }
}

/* Distinct botanical illustrations share a square, uncropped image slot. */
.plant-illustration {
    display: block;
    object-fit: contain
}

.plant-preview .plant-illustration {
    width: 78px;
    height: 100px
}

.result-art .plant-illustration {
    width: 100%;
    height: 100%
}

#atlas-list .plant-illustration {
    width: 70px;
    height: 90px
}

.home-return {
    padding-top: 22px;
    font-size: 13px
}

.home-return a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 5px;
    text-decoration: none;
    background: #fffdf577
}

.home-return a:hover {
    background: #e9ecde;
    border-color: var(--green)
}