/* =============================================================
   SETTWOR — main.css
   -------------------------------------------------------------
   Sections:  1 Tokens   2 Base   3 Page frame   4 Header
              5 Components   6 Content   7 Side rails   8 Footer
              9 Desktop (min-width: 40rem)   10 Wide (min-width: 68rem)
   Mobile-first: sections 1-8 describe the phone layout.
   To restyle the site, change the variables in section 1.
   ============================================================= */


/* ---------- 1. Tokens ---------- */
:root {
    --color-bg: #fff;
    --color-surface: #f6f6f6;
    --color-text: #000;
    --color-text-soft: #333;
    --color-muted: #696969;
    --color-line: #969191;
    --color-line-soft: #dcdcdc;
    --color-border: #000;
    --color-hover: #e6e6e6;

    --font-regular: 'Regular', Verdana, Tahoma, Arial, sans-serif;
    --font-medium: 'Medium', Verdana, Tahoma, Arial, sans-serif;
    --font-bold: 'Bold', Verdana, Tahoma, Arial, sans-serif;

    --header-h: 4.25rem;
    --sheet-w: 42rem;
    --wide-w: 76rem;
    --radius-pill: 999px;
    --shadow-header: 0 0 10px rgba(0, 0, 0, 0.25);
}


/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-medium);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

h1,
h2,
p,
ul,
dl,
dd {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p a,
dd a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

main:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}


/* ---------- 3. Page frame ---------- */
/* Phone: one column. Wide screens (section 10): sheet in the middle,
   rails on both sides. */
.page__main {
    padding-inline: 1rem;
}

.section {
    padding-bottom: 2rem;
}

.section-title {
    margin-bottom: 1.25rem;
    padding: 0.8rem 0.75rem;
    border-block: 1px solid var(--color-line);
    font-family: var(--font-bold);
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    text-wrap: balance;
}


/* ---------- 4. Header ---------- */
.skip-link {
    position: absolute;
    top: 0.5rem;
    left: -999rem;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: var(--color-text);
    color: #fff;
}

.skip-link:focus {
    left: 0.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--header-h);
    padding-inline: 0.75rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-header);
}

.site-header__start {
    display: flex;
    justify-content: flex-start;
}

.brand {
    display: block;
}

.brand img {
    width: 6.5rem;
    height: 1.1rem;
    object-fit: contain;
}

.site-nav ul {
    display: flex;
    gap: 0.5rem;
}

.site-nav--end ul {
    justify-content: flex-end;
}

.site-nav--start,
.is-desktop {
    display: none;
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.55rem;
    border: 0;
    background: none;
    cursor: pointer;
}

.burger__line {
    display: block;
    height: 3px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (closed = invisible and not focusable) */
.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    overflow-y: auto;
    background: var(--color-bg);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s, visibility 0s 0.3s;
}

.mobile-menu.is-open {
    visibility: visible;
    transform: none;
    transition: transform 0.3s;
}

.mobile-menu a {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--color-surface);
    font-size: 1.25rem;
    text-align: center;
}

.mobile-menu a[aria-current="page"] {
    font-family: var(--font-bold);
}


/* ---------- 5. Components ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-bold);
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background: var(--color-hover);
}

.btn--sm {
    min-height: 2.25rem;
    padding-inline: 0.9rem;
    font-size: 0.8rem;
}

.btn--thin {
    border-width: 1px;
    border-color: #595959;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.embed iframe {
    width: 100%;
    border: 0;
    border-radius: 12px;
}

.embed--video {
    aspect-ratio: 16 / 9;
}

.embed--video iframe {
    height: 100%;
}

.consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-line);
    background: var(--color-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
}

.consent__text a {
    text-decoration: underline;
}

.consent__actions {
    display: flex;
    gap: 0.5rem;
}

.consent__actions .btn {
    flex: 1;
}

.noscript {
    padding: 1rem;
    background: var(--color-surface);
    font-size: 0.85rem;
    text-align: center;
}


/* ---------- 6. Content (center sheet) ---------- */
.hero {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 1.75rem 0 1.5rem;
    text-align: center;
}

.hero__photo {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
}

.hero__title {
    font-family: var(--font-bold);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.hero__tagline {
    margin-top: 0.25rem;
    font-size: 1rem;
}

.hero__note {
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.section__body>p {
    color: var(--color-text-soft);
}

.section__body>p+p {
    margin-top: 1rem;
}

.callout {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-bold);
}

.facts {
    display: grid;
    gap: 1px;
    margin-block: 1.5rem;
    border: 1px solid var(--color-line);
    background: var(--color-line);
}

.facts__item {
    display: grid;
    grid-template-columns: minmax(6.5rem, 40%) 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: var(--color-bg);
    font-size: 0.9rem;
}

.facts dt {
    font-family: var(--font-bold);
}

.facts dd {
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.social {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.social .btn {
    width: 100%;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 1.25rem;
}

.photo-grid a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-grid a:hover img {
    transform: scale(1.04);
}

.center {
    margin-top: 1.25rem;
    text-align: center;
}

/* Text pages (privacy, license) */
.prose {
    padding-block: 1.75rem 2.5rem;
}

.prose h1 {
    margin-bottom: 0.5rem;
    font-family: var(--font-bold);
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.2;
}

.prose h2 {
    margin: 1.75rem 0 0.5rem;
    font-family: var(--font-bold);
    font-size: 1.1rem;
    font-weight: normal;
}

.prose p,
.prose li {
    color: var(--color-text-soft);
}

.prose p+p,
.prose ul,
.prose pre {
    margin-top: 0.75rem;
}

.prose ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.prose .meta {
    color: var(--color-muted);
}

.prose pre {
    padding: 0.9rem 1rem;
    overflow-x: auto;
    border-left: 4px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.85rem;
    white-space: pre-wrap;
}


/* ---------- 7. Side rails ---------- */
/* Phone: the left rail is hidden (the menu covers it) and the right
   rail becomes a gray block under the content. */
.rail {
    font-size: 0.9rem;
}

.rail--start {
    display: none;
}

.rail--end {
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--color-line);
    background: var(--color-surface);
}

.rail--end .rail__inner {
    width: min(100%, var(--sheet-w));
    margin-inline: auto;
}

.rail-block+.rail-block {
    margin-top: 1.5rem;
}

.rail-block__title {
    margin-bottom: 0.4rem;
    font-family: var(--font-bold);
    font-size: 0.95rem;
    font-weight: normal;
}

.rail-list li+li {
    border-top: 1px solid var(--color-line-soft);
}

.rail-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-left: 3px solid transparent;
}

.rail-link__name {
    display: block;
}

.rail-link__desc {
    display: block;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.rail-link:hover .rail-link__name {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.rail-link[aria-current="true"] {
    border-left-color: var(--color-border);
}

.rail-link[aria-current="true"] .rail-link__name {
    font-family: var(--font-bold);
}

.rail-text {
    padding-inline: 0.75rem;
    color: var(--color-text-soft);
}

.rail-text+.rail-text {
    margin-top: 0.5rem;
}


/* ---------- 8. Footer ---------- */
.site-footer {
    padding: 2rem 1rem 1.5rem;
    border-top: 1px solid var(--color-line);
    background: var(--color-surface);
    font-size: 0.9rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: min(100%, var(--wide-w));
    margin-inline: auto;
}

.footer-title {
    margin-bottom: 0.5rem;
    font-family: var(--font-bold);
    font-size: 0.9rem;
    font-weight: normal;
}

.footer-links li+li {
    margin-top: 0.35rem;
}

.footer-copy {
    margin-top: 1.75rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    text-align: center;
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}


/* ---------- 9. Desktop (min-width: 40rem) ---------- */
@media (min-width: 40rem) {
    :root {
        --header-h: 5.25rem;
    }

    .burger,
    .mobile-menu {
        display: none;
    }

    .site-header {
        gap: 1rem;
        padding-inline: 1.5rem;
    }

    .site-header__start {
        justify-content: flex-end;
    }

    .brand img {
        width: 9rem;
        height: 1.5rem;
    }

    .site-nav--start {
        display: block;
    }

    .site-nav--end ul {
        justify-content: flex-start;
    }

    .is-desktop {
        display: list-item;
    }

    .btn--sm {
        min-height: 2.5rem;
        padding-inline: 1.25rem;
        font-size: 0.9rem;
    }

    .section {
        padding-bottom: 2.75rem;
    }

    .section-title {
        margin-bottom: 1.5rem;
        padding-block: 0.9rem;
        font-size: 1.125rem;
    }

    .hero {
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: center;
        column-gap: 1.75rem;
        padding: 2.5rem 0 2.25rem;
        text-align: left;
    }

    .hero__photo {
        width: 9rem;
        height: 9rem;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__tagline {
        font-size: 1.1rem;
    }

    .hero__note {
        font-size: 0.9rem;
    }

    .facts {
        grid-template-columns: 1fr 1fr;
    }

    .facts__item {
        grid-template-columns: minmax(6rem, 42%) 1fr;
    }

    .social {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-grid {
        gap: 0.5rem;
    }

    .prose h1 {
        font-size: 2rem;
    }

    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .consent {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .consent__actions .btn {
        flex: none;
        min-width: 6.5rem;
    }
}


/* ---------- 10. Wide (min-width: 68rem): sheet + two rails ---------- */
@media (min-width: 68rem) {
    .page {
        display: grid;
        grid-template-columns: minmax(12rem, 1fr) minmax(0, var(--sheet-w)) minmax(14rem, 1fr);
        background: var(--color-surface);
    }

    .page__main {
        grid-column: 2;
        grid-row: 1;
        padding-inline: 2rem;
        border-inline: 1px solid var(--color-line);
        background: var(--color-bg);
    }

    .rail {
        grid-row: 1;
        padding-block: 2rem;
    }

    .rail--start {
        display: block;
        grid-column: 1;
    }

    .rail--end {
        grid-column: 3;
        padding-inline: 0;
        border-top: 0;
    }

    .rail__inner {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }

    .rail--start .rail__inner {
        width: min(100%, 13rem);
        margin-left: auto;
        padding-right: 1.25rem;
    }

    .rail--end .rail__inner {
        width: min(100%, 15rem);
        margin-inline: 0 auto;
        padding-left: 1.25rem;
    }
}
