:root {
    --margin-page: 2em;
    --ui-primary: #26322f;
    --ui-secondary: #6f756b;
    --paper: #fffefa;
    --paper-warm: #f3ead7;
    --blue: #176b73;
    --red: #a74432;
    --gold: #d59d32;
    --line: #c9bda4;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0 var(--margin-page);
    color: var(--ui-primary);
    background:
        radial-gradient(circle at 50% 0, rgba(243, 234, 215, .72), transparent 31em),
        var(--paper);
    font-family: "Courier New", monospace;
    font-size: 16px;
    line-height: 1.45;
    text-wrap: pretty;
}

::selection {
    color: var(--paper);
    background: var(--blue);
}

:focus-visible {
    border-radius: 1px;
    outline: 1px dotted currentColor;
    outline-offset: .25em;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
}

a:hover {
    text-decoration-style: dotted;
}

p {
    margin: 0 0 1.45em;
}

main {
    max-width: 48em;
    margin-inline: auto;
}

.language-nav {
    display: flex;
    position: absolute;
    z-index: 2;
    top: 1.5em;
    right: var(--margin-page);
    gap: .65em;
    align-items: center;
    font-size: .78em;
    font-weight: bold;
    letter-spacing: .08em;
}

.language-nav a {
    padding: .35em .45em;
    color: var(--ui-secondary);
    text-decoration: none;
}

.language-nav a[aria-current="page"] {
    color: var(--ui-primary);
    border-bottom: 2px solid var(--gold);
}

.header {
    max-width: 76em;
    margin-inline: auto;
    padding: 7.5em 0 5em;
    text-align: center;
}

.eyebrow {
    margin-bottom: 1.8em;
    color: var(--ui-secondary);
    font-size: .72em;
    font-weight: bold;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0 .08em;
    border: 1px solid transparent;
    color: var(--ui-primary);
    font-family: "Chakra Petch", "Arial Narrow", sans-serif;
    font-size: clamp(4.25em, 8vw, 7.5em);
    font-weight: 500;
    letter-spacing: .035em;
    line-height: .85;
    text-transform: uppercase;
    text-wrap: balance;
}

h1::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 145%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 90deg, var(--blue), #d8d0c0, var(--red), #e7c878, var(--blue));
    content: "";
    mix-blend-mode: screen;
    pointer-events: none;
    animation: gradient-rotate 12s linear infinite;
}

.subtitle {
    max-width: 38em;
    margin: 2.25em auto 0;
    color: var(--ui-secondary);
    font-size: .92em;
}

.hero-action {
    margin-top: 2em;
}

.hero-action a,
.play-link {
    display: inline-block;
    padding: .85em 1.15em;
    color: var(--paper);
    background: var(--ui-primary);
    box-shadow: .35em .35em 0 var(--gold);
    font-weight: bold;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-action a:hover,
.play-link:hover {
    transform: translate(.15em, .15em);
    box-shadow: .2em .2em 0 var(--gold);
}

h2 {
    margin: 4.5em 0 1.45em;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    text-wrap: balance;
}

mark {
    padding: .08em .15em;
    color: inherit;
    background: var(--paper-warm);
}

hr {
    width: 30%;
    margin: 4.5em auto 0;
    border: 0;
    border-top: 1px solid var(--ui-primary);
}

.front-card {
    margin: 2.5em 0;
    padding: 1.5em;
    border: 1px solid var(--line);
    background: rgba(243, 234, 215, .42);
    box-shadow: .55em .55em 0 rgba(38, 50, 47, .06);
}

.front-card__label {
    margin-bottom: 1.25em;
    color: var(--ui-secondary);
    font-size: .72em;
    font-weight: bold;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.front-line {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    max-width: 34em;
    margin: 0 auto;
    color: var(--line);
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(1.1em, 4vw, 1.8em);
    text-align: center;
}

.front-line .home:first-child {
    color: var(--blue);
}

.front-line .home:last-child {
    color: var(--red);
}

.front-line .front {
    color: var(--gold);
    font-size: 1.35em;
}

.front-caption {
    max-width: 34em;
    margin: 1.25em auto 0;
    color: var(--ui-secondary);
    font-size: .8em;
    text-align: center;
}

.steps {
    padding-left: 1.5em;
}

.steps li {
    margin-bottom: .9em;
    padding-left: .35em;
}

.steps li::marker {
    color: var(--gold);
    font-weight: bold;
}

blockquote {
    margin: 3em 0;
    padding: .25em 0 .25em 1.5em;
    border-left: 3px solid var(--gold);
    font-size: 1.05em;
    font-weight: bold;
}

blockquote p:last-child {
    margin-bottom: 0;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 2.5em 0;
    border: 1px solid var(--line);
    background: var(--line);
}

.comparison section {
    padding: 1.35em;
    background: var(--paper);
}

.comparison h3 {
    margin: 0 0 1em;
    font-size: .78em;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.comparison p {
    margin: 0;
    color: var(--ui-secondary);
    font-size: .82em;
}

.center-action {
    margin: 2.5em 0;
    text-align: center;
}

.micro-note {
    margin-top: 1.25em;
    color: var(--ui-secondary);
    font-size: .76em;
    text-align: center;
}

.footnote {
    margin: 7em 0 0;
    padding-bottom: 3em;
    color: var(--ui-secondary);
    font-size: .85em;
    text-align: center;
}

@keyframes gradient-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    h1::after { animation: none; }
    .hero-action a, .play-link { transition: none; }
}

@media (max-width: 750px) {
    :root { --margin-page: 1.25em; }
    .header { padding: 7em 0 4em; }
    h1 { font-size: clamp(3.4em, 17vw, 5em); }
    .comparison { grid-template-columns: 1fr; }
}

@media (min-width: 1500px) {
    body { font-size: 18px; }
}
