/* Theme tokens live in this file. Page markup does not carry brand colors.
   Replace accent, type, and surface tokens here when the visual brand changes.
   Replace the name and logo in appsettings.json. */

@font-face {
    font-family: "Syne";
    src: url("/fonts/syne.ttf") format("truetype");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("/fonts/outfit.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #07080c;
    --ink: #f4f6fb;
    --ink-soft: #c6cde0;
    --ink-faint: #9aa4bb;
    --link: #c5d0ff;
    --button-from: #8ea2ff;
    --button-to: #c9a6ff;
    --button-ink: #12131c;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --header: rgba(7, 8, 12, 0.78);
    --chip: rgba(255, 255, 255, 0.06);
    --field: rgba(255, 255, 255, 0.04);
    --raised: rgba(16, 18, 28, 0.72);
    --glow-a: rgba(108, 132, 255, 0.55);
    --glow-b: rgba(176, 120, 255, 0.32);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --focus: #d5defe;
    --danger: #ffb4be;
    --good: #9ee0bf;
    --banner: rgba(255, 255, 255, 0.04);
    --display: "Syne", "Segoe UI", sans-serif;
    --body: "Outfit", "Segoe UI", sans-serif;
    --space: 8px;
    --radius: 22px;
    --header-height: calc(128px + 1.25rem);
}

:root[data-theme="mid"] {
    color-scheme: dark;
    --bg: #1c2636;
    --ink: #f5f7fb;
    --ink-soft: #d5deee;
    --ink-faint: #b7c3d8;
    --link: #d7e0ff;
    --button-from: #a9b8ff;
    --button-to: #ddc6ff;
    --button-ink: #172033;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --header: rgba(22, 30, 44, 0.84);
    --chip: rgba(255, 255, 255, 0.06);
    --field: rgba(8, 12, 20, 0.28);
    --raised: rgba(36, 48, 68, 0.8);
    --glow-a: rgba(150, 176, 255, 0.3);
    --glow-b: rgba(196, 160, 255, 0.18);
    --shadow: 0 24px 60px rgba(8, 12, 22, 0.4);
    --focus: #f4f7ff;
    --danger: #ffc2ca;
    --good: #b7f0d2;
    --banner: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f1eb;
    --ink: #161b2c;
    --ink-soft: #3a4258;
    --ink-faint: #46506a;
    --link: #2436b8;
    --button-from: #3144d4;
    --button-to: #6946c4;
    --button-ink: #ffffff;
    --line: rgba(22, 28, 48, 0.12);
    --line-strong: rgba(22, 28, 48, 0.22);
    --header: rgba(244, 241, 235, 0.88);
    --chip: rgba(22, 28, 48, 0.05);
    --field: rgba(255, 252, 248, 0.92);
    --raised: rgba(255, 252, 248, 0.84);
    --glow-a: rgba(70, 96, 210, 0.22);
    --glow-b: rgba(140, 90, 200, 0.14);
    --shadow: 0 24px 50px rgba(40, 48, 80, 0.12);
    --focus: #2436b0;
    --danger: #9d1836;
    --good: #0d6a42;
    --banner: rgba(255, 252, 248, 0.88);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-height) + 1rem);
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 700px at 110% -10%, var(--glow-a), transparent 60%),
        radial-gradient(900px 600px at -20% 110%, var(--glow-b), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    font-weight: 430;
    line-height: 1.55;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.96;
    text-wrap: balance;
    margin: 0;
}

p {
    overflow-wrap: break-word;
}

a {
    color: var(--link);
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: var(--button-from);
    color: var(--button-ink);
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 40;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
}

.skip:focus {
    top: 0.75rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    width: min(90%, calc(100% - 2rem));
    margin-inline: auto;
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("/images/decorative/grain.svg");
    background-size: 180px 180px;
    opacity: 0.18;
    mix-blend-mode: overlay;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
}

.glow-a {
    width: min(46vw, 640px);
    height: min(46vw, 640px);
    right: -8vw;
    top: -12vw;
    background: radial-gradient(circle, var(--glow-a), transparent 68%);
    animation: drift 18s ease-in-out infinite alternate;
}

.glow-b {
    width: min(38vw, 520px);
    height: min(38vw, 520px);
    left: -12vw;
    bottom: -6vw;
    background: radial-gradient(circle, var(--glow-b), transparent 70%);
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, 28px, 0); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--header-height);
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.04em;
    font-size: 1.08rem;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    width: 128px;
    height: 128px;
    max-width: 128px;
    display: block;
    object-fit: contain;
}

.brand img.is-preview {
    width: 128px;
    height: 128px;
    max-width: 128px;
}

html:has(.brand img.is-preview) {
    --header-height: calc(128px + 1.25rem);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links > a,
.nav-links .products-menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.nav-links > a[aria-current="page"],
.nav-links .products-menu-button[aria-current="page"] {
    color: var(--ink);
    background: var(--chip);
}

.products-menu {
    position: relative;
}

.products-menu-list {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 50;
    display: grid;
    gap: 0.15rem;
    min-width: max(12rem, 100%);
    max-width: min(90vw, 18rem);
    max-height: min(70vh, 20rem);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.35rem;
    list-style: none;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--raised);
    box-shadow: var(--shadow);
}

.products-menu-list[hidden] {
    display: none;
}

.products-menu-list a {
    display: block;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    color: var(--ink-soft);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    text-decoration: none;
}

.products-menu-list a:hover,
.products-menu-list a:focus-visible {
    color: var(--ink);
    background: var(--chip);
}

.theme-menu,
.branding-menu {
    position: relative;
}

.theme-menu-button,
.branding-menu-button {
    min-height: 2.75rem;
    padding: 0 1.05rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--chip);
    color: var(--ink);
    cursor: pointer;
}

.theme-menu-button[aria-expanded="true"],
.branding-menu-button[aria-expanded="true"] {
    background: var(--ink);
    color: var(--bg);
}

.theme-menu-list,
.branding-menu-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 10.5rem;
    padding: 0.35rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--raised);
    box-shadow: var(--shadow);
}

.theme-menu-list[hidden],
.branding-menu-panel[hidden] {
    display: none;
}

.branding-menu-panel {
    left: 0;
    right: auto;
    min-width: 11.5rem;
}

.branding-group-label {
    margin: 0.45rem 0.85rem 0.1rem;
    color: var(--ink-faint);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.branding-group + .branding-group {
    margin-top: 0.35rem;
    padding-top: 0.2rem;
    border-top: 1px solid var(--line);
}

.theme-menu-list button,
.branding-menu-panel button {
    min-height: 2.5rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    text-align: left;
    cursor: pointer;
}

.theme-menu-list button[aria-checked="true"],
.branding-menu-panel button[aria-checked="true"] {
    background: var(--ink);
    color: var(--bg);
}

main {
    flex: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: center;
    padding: clamp(1.35rem, 2.6vh, 2.5rem) 0 clamp(1.15rem, 2vh, 2rem);
}

.hero .detail-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-top: 1.35rem;
}

.hero .prose p {
    margin-bottom: 0.7rem;
}

.hero .highlights {
    margin-top: 0.65rem;
}

.hero .highlights li {
    gap: 0.75rem;
    padding: 0.55rem 0;
}

.hero .detail-foot {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
}

.hero .detail-foot h2,
.hero .product-facts h2 {
    font-size: 1.35rem;
    max-width: none;
}

.hero > * {
    min-width: 0;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    color: var(--ink-faint);
    font-size: 0.78rem;
    font-weight: 640;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--button-from);
}

.hero h1,
.product-head h1,
.page-intro h1 {
    font-size: clamp(3.1rem, 7vw, 6.4rem);
    max-width: 11ch;
}

.lede {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.15rem;
    padding: 0 1.3rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--button-from), var(--button-to));
    color: var(--button-ink);
    text-decoration: none;
    font-weight: 620;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--button-from) 35%, transparent);
}

.button svg {
    width: 1rem;
    height: 1rem;
}

.button:hover {
    color: var(--button-ink);
    transform: translateY(-1px);
}

.button:disabled {
    cursor: default;
    opacity: 0.72;
    transform: none;
}

.text-link {
    color: var(--link);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.chips li,
.flag {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.flag {
    border: 0;
    background: #12141c;
    color: #f4f6fb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stage {
    margin: 0;
    padding: 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    position: relative;
}

.stage::before {
    content: "";
    position: absolute;
    inset: 12% -6% auto;
    height: 70%;
    background: radial-gradient(closest-side, var(--glow-a), transparent 72%);
    filter: blur(18px);
    z-index: -1;
}

.stage img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: #0d1016;
}

.stage figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 0.9rem;
    margin-top: 0.85rem;
    padding: 0 0.35rem 0.25rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.install {
    min-width: 0;
}

.install h2 {
    font-size: 1.35rem;
    max-width: none;
    line-height: 1.15;
}

.install-intro {
    margin: 0.35rem 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.browser-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.browser-pills button {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.92rem;
    white-space: nowrap;
    cursor: pointer;
}

.browser-pills button[aria-selected="true"] {
    background: var(--ink);
    color: var(--bg);
    border-color: transparent;
}

.install-panel {
    margin-top: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--chip);
}

.install-panel[hidden] {
    display: none;
}

.install-store {
    margin: 0;
    color: var(--ink);
    font-weight: 620;
    letter-spacing: -0.02em;
}

.install-status {
    margin: 0.28rem 0 0;
    color: var(--ink-faint);
    font-size: 0.92rem;
}

.install-steps {
    margin: 0.55rem 0 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.install-steps li + li {
    margin-top: 0.28rem;
}

.install-panel .button {
    margin-top: 0.8rem;
    min-height: 2.7rem;
}

.product .install {
    margin-top: 1rem;
}

.upcoming,
.catalog {
    padding: 1rem 0 6rem;
}

.upcoming {
    display: grid;
    grid-template-columns: auto minmax(0, 38rem);
    gap: 1.5rem 3rem;
    align-items: end;
    border-top: 1px solid var(--line);
    padding-top: 3.5rem;
}

.upcoming-index {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4.5rem, 12vw, 8.5rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 0.8;
    color: var(--ink);
    opacity: 0.14;
}

.upcoming h2,
.section-head h1,
.section-head h2,
.gallery h2,
.detail-foot h2,
.highlights + h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    max-width: 14ch;
}

.catalog-page .section-head .lede {
    margin-top: 0.85rem;
}

.upcoming p:last-child,
.quiet {
    margin: 1rem 0 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
    max-width: 42rem;
}

.section-head {
    margin-bottom: 1.75rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 380px));
    gap: 1.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 24px;
    background: var(--raised);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card:hover {
    color: inherit;
    transform: translateY(-4px);
}

.card-media {
    position: relative;
    aspect-ratio: 1200 / 760;
    background: #10131b;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-media .flag {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
}

.card-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    font-family: var(--display);
    font-size: 3rem;
    color: var(--ink-faint);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.2rem 1.2rem 1.3rem;
}

.card-body .eyebrow {
    margin: 0;
}

.card h3 {
    font-size: 1.7rem;
}

.card-body p {
    margin: 0;
    color: var(--ink-soft);
}

.card-meta,
.card-more {
    color: var(--ink-faint);
    font-size: 0.95rem;
}

.card-more {
    margin-top: 0.35rem;
    color: var(--link);
    font-weight: 620;
}

.product {
    padding: clamp(1.25rem, 3vw, 2.25rem) 0 4rem;
}

.product .hero {
    padding-top: 0.35rem;
}

.back {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.back::before {
    content: "←";
    margin-right: 0.45rem;
}

.product-head {
    max-width: 52rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.prose p,
.legal .prose p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.prose {
    max-width: 68ch;
}

.prose a,
.quiet a,
.banner a,
.lede a {
    text-underline-offset: 0.18em;
}

code {
    font-family: Consolas, "Segoe UI", monospace;
    font-size: 0.92em;
}

.highlights {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.highlights li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.highlights li:last-child {
    border-bottom: 1px solid var(--line);
}

.highlight-icon {
    display: flex;
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.08rem;
    color: var(--link);
}

.highlight-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.highlights p {
    margin: 0;
}

.highlights .highlight-title {
    color: var(--ink);
    font-weight: 620;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.highlights .highlight-title + p {
    margin-top: 0.18rem;
    color: var(--ink-soft);
}

.gallery {
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.gallery .stage + .stage {
    margin-top: 1.25rem;
}

.detail-foot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem 3rem;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.page {
    padding: clamp(3rem, 8vw, 5.5rem) 0 5rem;
}

.page-intro {
    max-width: 44rem;
}

.page-intro h1 {
    max-width: 12ch;
}

.draft,
.banner {
    max-width: 44rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--banner);
    color: var(--ink-soft);
}

.draft {
    border-color: color-mix(in srgb, var(--button-from) 55%, var(--line));
}

.banner h2 {
    margin-bottom: 0.45rem;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.banner p,
.draft {
    margin: 0;
}

.banner p + p,
.banner ul {
    margin-top: 0.55rem;
}

.banner ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.banner.good {
    border-color: var(--good);
}

.banner.bad {
    border-color: var(--danger);
}

.feedback-form {
    display: grid;
    gap: 1.15rem;
    max-width: 40rem;
    margin-top: 0.5rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-weight: 600;
}

.opt,
.req {
    margin-left: 0.4rem;
    color: var(--ink-faint);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
}

.field textarea {
    min-height: 11rem;
    resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field .input-validation-error {
    border-color: var(--danger);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-faint);
}

.field-error {
    min-height: 0;
    color: var(--danger);
    font-size: 0.92rem;
}

.field-error:empty {
    display: none;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legal .prose {
    max-width: 68ch;
}

.legal .prose h2 {
    margin: 2.25rem 0 0.85rem;
    max-width: none;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.legal .prose h2:first-child {
    margin-top: 0;
}

.legal .prose h3 {
    margin: 1.35rem 0 0.55rem;
    color: var(--ink);
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.legal .prose ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.legal .prose li {
    margin: 0.35rem 0;
}

.legal .prose li::marker {
    color: var(--ink-faint);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 1.8rem;
}

.footer-row,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.25rem;
}

.footer-row {
    justify-content: space-between;
}

.footer-id {
    margin: 0;
    color: var(--ink-soft);
}

.site-footer a {
    color: var(--ink-soft);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink);
}

@media (hover: hover) {
    .button,
    .card,
    .nav-links > a,
    .nav-links .products-menu-button,
    .products-menu-list a,
    .theme-menu-button,
    .theme-menu-list button,
    .branding-menu-button,
    .branding-menu-panel button {
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .browser-pills button {
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .browser-pills button:hover {
        color: var(--ink);
        border-color: var(--ink-faint);
    }

    .browser-pills button[aria-selected="true"]:hover {
        color: var(--bg);
        border-color: transparent;
    }
}

@media (max-width: 900px) {
    .hero,
    .detail-grid,
    .upcoming {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 1.5rem;
    }

    .upcoming-index {
        line-height: 0.8;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(90%, calc(100% - 1.25rem));
    }

    .header-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0.35rem;
        padding-block: 0.7rem;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .theme-menu {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        width: auto;
        margin-left: 0;
    }

    .hero h1,
    .product-head h1,
    .page-intro h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }
}

@media (max-width: 420px) {
    .brand {
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .theme-menu-button,
    .branding-menu-button {
        min-height: 2.35rem;
        padding-inline: 0.75rem;
        font-size: 0.82rem;
    }

    .branding-menu-panel {
        left: auto;
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (forced-colors: active) {
    .atmosphere,
    .glow,
    .stage::before {
        display: none;
    }

    .button,
    .nav-links .products-menu-button[aria-current="page"],
    .theme-menu-button[aria-expanded="true"],
    .theme-menu-list button[aria-checked="true"],
    .branding-menu-button[aria-expanded="true"],
    .branding-menu-panel button[aria-checked="true"],
    .browser-pills button[aria-selected="true"] {
        forced-color-adjust: none;
        background: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonText;
    }
}
