:root {
    color-scheme: light;
    --ink: #10221a;
    --muted: #50645a;
    --surface: #f3f7f4;
    --accent: #087443;
    --line: #d6e2da;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--accent);
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.site-header-actions,
.site-nav,
.language-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-header-actions {
    align-items: center;
    justify-content: flex-end;
}

.site-nav {
    align-items: center;
}

.site-nav a {
    text-decoration: none;
}

.language-dropdown {
    position: relative;
}

.language-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.language-dropdown summary::-webkit-details-marker {
    display: none;
}

.language-dropdown summary::after {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-0.1rem);
}

.language-dropdown[open] summary {
    border-color: var(--accent);
}

.language-dropdown[open] summary::after {
    transform: rotate(225deg) translateY(-0.1rem);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 10;
    display: grid;
    min-width: 12rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 1rem 2rem rgb(16 34 26 / 12%);
}

.language-menu a {
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--ink);
    text-decoration: none;
}

.language-menu a:focus,
.language-menu a:hover,
.language-menu a[aria-current="page"] {
    background: var(--surface);
}

.language-menu a[aria-current="page"] {
    font-weight: 800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hero {
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.25rem;
}

.page-heading,
.content-section,
.guide-body {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

.content-section,
.guide-body {
    padding-top: 1rem;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 0.9rem;
}

.guide-grid {
    display: grid;
    gap: 1rem;
}

.guide-card,
.guide-meta div {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: white;
}

.guide-card h3 {
    margin-block: 0.35rem;
}

.guide-meta {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
    margin-top: 2rem;
}

.guide-meta dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.guide-meta dd {
    margin: 0;
}

.guide-body {
    max-width: 48rem;
    font-size: 1.05rem;
}

.content-media {
    margin: 2rem 0 0;
}

.content-media img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    background: white;
}

.content-media figcaption {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.content-media-gallery {
    display: grid;
    gap: 1rem;
}

.panel {
    max-width: 32rem;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 15ch;
    margin: 0.75rem 0;
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    line-height: 1.02;
}

.intro {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.125rem;
}

form,
label {
    display: grid;
    gap: 0.5rem;
}

form {
    gap: 1rem;
}

input,
button {
    min-height: 3rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font: inherit;
}

input {
    padding: 0.65rem 0.75rem;
    background: white;
}

button {
    padding: 0.65rem 1rem;
    color: white;
    background: var(--accent);
    cursor: pointer;
}

.alert {
    padding: 0.75rem;
    border: 1px solid #b94040;
    border-radius: 0.5rem;
    color: #7d2020;
    background: #fff1f1;
}

@media (min-width: 48rem) {
    .site-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-header-actions {
        margin-left: auto;
    }

    .hero {
        padding-block: 8rem;
    }

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

    .guide-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
