:root
{
    --paper: #f4f3f1;
    --ink: #18191b;
    --accent: #2f5bd0;
    --surface: #e6e5e2;
    --muted: #555759;
    --line: #c4c4c1;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.65 Arial, sans-serif;
}
*
{
    box-sizing: border-box;
}
body
{
    margin: 0;
}
html
{
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}
a
{
    color: inherit;
    text-decoration: none;
}
button, input
{
    font: inherit;
    color: inherit;
}
button
{
    cursor: pointer;
}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible
{
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}
.wrap
{
    width: min(1120px, calc(100% - 80px));
    margin: auto;
}
.narrow
{
    width: min(800px, calc(100% - 48px));
    margin: auto;
}
header
{
    min-height: 100px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}
.brand
{
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.4;
}
.brand span
{
    display: block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}
nav
{
    display: flex;
    gap: 24px;
    font-size: 14px;
}
.button
{
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 11px 15px 11px 22px;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 30px;
    font-size: 14px;
}
.button span
{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    color: var(--accent);
    display: grid;
    place-content: center;
    font-size: 20px;
}
.text-link
{
    background: none;
    border: 0;
    border-bottom: 1px solid;
    color: inherit;
    padding: 5px 0;
    font-size: 14px;
}
#menu
{
    display: none;
}
.meta
{
    font: 14px/1.6 Consolas, monospace;
    letter-spacing: .2px;
}
.hero
{
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    min-height: 650px;
    padding-block: 65px;
}
.hero > .meta
{
    margin-top: 8px;
}
h1
{
    font-size: clamp(36px, 4.1vw, 52px);
    letter-spacing: -2px;
    line-height: 1.08;
    margin: 0;
    font-weight: 600;
}
h1 span
{
    color: var(--accent);
}
.hero-bottom
{
    margin-top: 35px;
    max-width: 640px;
}
.hero-bottom > p
{
    max-width: 520px;
    color: var(--muted);
}
.actions
{
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 25px;
}
.facts
{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 30px;
    margin-top: 35px;
    border-top: 1px solid var(--line);
}
section:not(.hero)
{
    padding-block: 90px;
}
.sentence-panel
{
    background: var(--surface);
    text-align: center;
}
#sentence
{
    font-size: 34px;
    letter-spacing: -1px;
    line-height: 1.4;
    min-height: 150px;
    max-width: 900px;
    margin: 50px auto 25px;
}
#sentence span
{
    display: inline-block;
    margin-right: .25em;
    transition: opacity .25s;
}
.translations
{
    display: none;
    max-width: 850px;
    margin: 30px auto;
}
.translations p
{
    border-top: 1px solid #b8b8b4;
    padding-top: 20px;
    font-size: 24px;
}
.sentence-note
{
    color: var(--muted);
    max-width: 700px;
    margin: 25px auto;
}
.swiss, .section-head
{
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
}
details
{
    border-top: 1px solid var(--line);
    padding-block: 25px;
}
summary
{
    list-style: none;
    font-size: 32px;
    letter-spacing: -1px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    line-height: 1.25;
}
summary span
{
    color: var(--accent);
}
details > p
{
    max-width: 600px;
    color: var(--muted);
}
h2
{
    font-size: 46px;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.12;
    margin: 0 0 40px;
}
.languages
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 35px;
}
.languages p
{
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 27px;
    margin-bottom: 25px;
}
.languages span
{
    font: 14px/1.8 Consolas, monospace;
    margin-top: 8px;
    color: var(--muted);
}
.language-note
{
    color: var(--muted);
    max-width: 720px;
    margin-left: auto;
}
.process
{
    background: var(--ink);
    color: var(--paper);
    border-radius: 24px;
    margin: 16px;
}
.process .meta
{
    color: #b6c8ff;
}
.process h2
{
    max-width: 700px;
    margin-top: 30px;
}
.process-row
{
    display: grid;
    grid-template-columns: 230px 1fr 1.3fr;
    gap: 35px;
    border-top: 1px solid #595b5e;
    padding-block: 25px;
    align-items: baseline;
}
.process-row h3
{
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}
.process-row p
{
    margin: 0;
    color: #dadad8;
}
.process-note
{
    color: #d3d4d7;
    font-size: 14px;
}
.rate-row
{
    display: grid;
    grid-template-columns: 1.6fr 1fr .5fr 1.2fr;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-block: 22px;
    align-items: baseline;
}
.rate-row h3
{
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}
.rate-row > span, .rate-row b
{
    font: 14px/1.7 Consolas, monospace;
}
.rate-row b
{
    text-align: right;
    color: var(--accent);
}
.table-head
{
    color: var(--muted);
}
.rate-note
{
    color: var(--muted);
}
.honest
{
    border-top: 1px solid var(--line);
}
.honest-columns
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.honest h3
{
    font-weight: 500;
    font-size: 23px;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}
.honest li
{
    margin-block: 15px;
}
.honest ul
{
    padding-left: 20px;
    color: var(--muted);
}
.quote
{
    background: var(--surface);
    text-align: center;
}
blockquote
{
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.4;
    margin: 0 0 35px;
}
.send-panel
{
    background: var(--accent);
    color: white;
    border-radius: 24px;
    margin: 16px;
}
.send-panel h2
{
    font-size: 56px;
    margin-top: 35px;
}
.send-panel .button
{
    background: white;
    color: var(--accent);
}
.send-panel .button span
{
    background: var(--accent);
    color: white;
}
.send-panel > div > p:last-child
{
    font-size: 14px;
    margin-top: 40px;
}
footer
{
    background: var(--ink);
    color: var(--paper);
    padding-top: 50px;
    overflow: hidden;
}
.footer-info
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    font-size: 14px;
}
.footer-info a
{
    display: block;
}
.giant
{
    font-size: 11.4vw;
    letter-spacing: -1vw;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 60px;
}
dialog
{
    width: min(620px, calc(100% - 30px));
    padding: 35px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
}
dialog::backdrop
{
    background: #18191baa;
}
#close
{
    float: right;
    background: none;
    border: 0;
    font-size: 30px;
}
dialog label
{
    display: block;
    font-size: 14px;
    margin-top: 20px;
}
dialog input
{
    display: block;
    width: 100%;
    border: 1px solid #9a9b9d;
    padding: 12px;
    margin-top: 8px;
    background: white;
    font-size: 14px;
}
dialog p
{
    font-size: 14px;
}
.consent
{
    display: flex;
    align-items: center;
    gap: 15px;
}
.consent input
{
    width: 20px;
}
form .button
{
    margin-block: 20px;
}
#reset
{
    margin-left: 10px;
}
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
@media (max-width: 750px)
{
    .wrap
    {
        width: calc(100% - 40px);
    }
    header
    {
        min-height: 90px;
    }
    header > .button
    {
        display: none;
    }
    .brand
    {
        font-size: 18px;
    }
    #menu
    {
        display: block;
        background: none;
        border: 0;
        font-size: 24px;
    }
    nav
    {
        display: none;
        position: absolute;
        inset: 90px 0 auto;
        background: var(--paper);
        z-index: 20;
        padding: 30px;
    }
    nav.open
    {
        display: flex;
        flex-direction: column;
    }
    .hero, .swiss, .section-head
    {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .hero
    {
        padding-block: 35px 50px;
    }
    .hero > .meta br
    {
        display: block;
    }
    h1
    {
        font-size: 38px;
        letter-spacing: -1.5px;
    }
    .facts
    {
        gap: 10px;
        flex-direction: column;
    }
    section:not(.hero)
    {
        padding-block: 55px;
    }
    h2
    {
        font-size: 35px;
        letter-spacing: -1px;
    }
    summary
    {
        font-size: 27px;
    }
    .languages, .process-row, .honest-columns, .footer-info
    {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .process, .send-panel
    {
        margin: 10px;
        border-radius: 16px;
    }
    .process-row
    {
        padding-block: 30px;
    }
    .rate-row
    {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .rate-row h3
    {
        grid-column: 1 / -1;
    }
    .table-head
    {
        display: none;
    }
    .rate-row b
    {
        font-size: 22px;
    }
    .rate-row > span:last-child
    {
        grid-column: 1 / -1;
        color: var(--muted);
    }
    .send-panel h2
    {
        font-size: 38px;
    }
    .actions
    {
        flex-wrap: wrap;
        gap: 20px;
    }
    #sentence
    {
        font-size: 24px;
        min-height: 200px;
    }
    blockquote
    {
        font-size: 26px;
    }
    #reset
    {
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce)
{
    html
    {
        scroll-behavior: auto;
    }
    #sentence, #language-name, #motion
    {
        display: none;
    }
    .translations
    {
        display: block;
    }
}
