@font-face {
    font-family: 'Instrument Sans';
    src: url('assets/instrument-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Sans';
    src: url('assets/instrument-sans-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: oklch(0.209 0.01 268.187);
    --paper: oklch(0.982 0.003 84.559);
    --panel: oklch(0.955 0.007 88.643);
    --brand: oklch(0.466 0.074 240.114);
    --brand-ink: oklch(0.431 0.065 238.92);
    --brand-tint: oklch(0.957 0.011 234.818);
    --brand-mist: oklch(0.819 0.044 235.527);
    --line: color-mix(in oklab, var(--ink) 10%, var(--paper));
    --muted: color-mix(in oklab, var(--ink) 65%, var(--paper));
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font:
        400 0.9375rem/1.55 'Instrument Sans',
        ui-sans-serif,
        system-ui,
        sans-serif;
    letter-spacing: -0.005em;
}
[hidden] {
    display: none !important;
}
::selection {
    background: var(--brand-mist);
    color: var(--ink);
}
.header,
footer {
    width: min(100% - 96px, 1240px);
    margin-inline: auto;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 24px;
}
.logo {
    display: block;
    width: 153px;
    height: 40px;
}
.languages {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
}
.languages button {
    min-width: 39px;
    min-height: 36px;
    padding: 6px 10px;
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    font:
        500 0.6875rem 'Instrument Sans',
        sans-serif;
    cursor: pointer;
    transition:
        background 160ms,
        color 160ms;
}
.languages button:hover {
    background: var(--panel);
    color: var(--ink);
}
.languages button[aria-pressed='true'] {
    background: var(--ink);
    color: var(--paper);
}
.languages button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}
main {
    flex: 1;
    width: 100%;
    padding: 30px 24px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
p,
h1,
figure {
    margin: 0;
}
.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--brand-ink);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.status > span:first-child {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-tint);
}
h1 {
    font-size: 3.125rem;
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-top: 24px;
}
.accent {
    color: var(--brand);
}
.description {
    margin-top: 22px;
    color: var(--muted);
    line-height: 1.75;
    text-wrap: pretty;
}
.signup {
    width: min(100%, 540px);
    margin: 26px auto 0;
}
.signup-fields {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.signup input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.signup input::placeholder {
    color: var(--muted);
    opacity: 1;
}
.signup button {
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 7px;
    background: var(--ink);
    color: var(--paper);
    font:
        500 0.9375rem 'Instrument Sans',
        sans-serif;
    cursor: pointer;
    transition: background 160ms;
}
.signup button:enabled:hover {
    background: var(--brand-ink);
}
.signup button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.signup input:focus-visible,
.signup button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}
.signup-note {
    margin-top: 10px;
    font-size: 0.6875rem;
    color: var(--muted);
}
.signup-message {
    color: var(--brand-ink);
    font-size: 0.9375rem;
}
.signup-message:not(:empty) {
    margin-top: 10px;
}
.signup-message[data-state='error'] {
    color: var(--ink);
}
.signup-trap {
    display: none;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.peek {
    position: relative;
    width: min(100%, 780px);
    margin-top: 42px;
}
.peek-window {
    overflow: hidden;
    height: 226px;
    border: 1px solid var(--line);
    border-radius: 12px 12px 0 0;
    background: var(--panel);
    mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}
.window-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
    padding-inline: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 0.625rem;
}
.window-dots {
    display: flex;
    gap: 5px;
}
.window-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--ink) 20%, var(--paper));
}
.wordmark-dot {
    display: inline-block;
    width: 2px;
    height: 2px;
    margin-left: 1px;
    background: var(--brand);
}
.window-label {
    color: var(--muted);
    font-size: 0.59375rem;
    letter-spacing: 0.06em;
}
.peek img {
    display: block;
    width: 100%;
    height: auto;
}
figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: -6px;
    position: relative;
    color: var(--muted);
    font-size: 0.6875rem;
}
.caption-line {
    width: 25px;
    height: 1px;
    background: var(--line);
}
.promises {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}
.promises li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.6875rem;
}
.promises svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 72px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.6875rem;
}
.footer-note {
    color: var(--brand-ink);
}
@media (max-width: 640px) {
    .header,
    footer {
        width: calc(100% - 40px);
    }
    .header {
        min-height: 80px;
    }
    main {
        padding: 32px 20px 36px;
    }
    h1 {
        font-size: 3.125rem;
        margin-top: 22px;
    }
    .description {
        max-width: 330px;
        margin-inline: auto;
    }
    .description br {
        display: none;
    }
    .description span {
        display: block;
    }
    .signup {
        margin-top: 24px;
    }
    .signup-fields {
        flex-direction: column;
    }
    .signup input {
        font-size: 16px;
    }
    .peek {
        margin-top: 30px;
    }
    .peek-window {
        height: 160px;
    }
    .peek img {
        width: 620px;
        max-width: none;
        margin-left: -88px;
    }
    .window-label {
        font-size: 0.59375rem;
    }
    figcaption {
        gap: 8px;
        font-size: 0.625rem;
    }
    .caption-line {
        width: 14px;
    }
    .promises {
        flex-direction: column;
        align-items: start;
        gap: 13px;
        margin-top: 25px;
    }
    footer {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding-block: 18px;
    }
}
@media (max-width: 360px) {
    h1 {
        font-size: 2.125rem;
    }
    .description {
        font-size: 0.9375rem;
    }
    .window-label {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
