:root {
    color-scheme: light;
    --background: #f1f4f8;
    --paper: #fff;
    --ink: #18243a;
    --muted: #4c5d76;
    --line: #d7e0ec;
    --accent: #244da8;
    background: var(--background);
    color: var(--ink);
    font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(100% - 3rem, 71rem); margin-inline: auto; }
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.45rem; font-weight: 760; letter-spacing: -.045em; }
.brand span { color: var(--accent); }
.domain { color: var(--muted); font: .81rem/1.4 ui-monospace, Consolas, monospace; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: clamp(3.5rem, 13vh, 8rem);
}
.intro { max-width: 36rem; }
h1 {
    margin: 0;
    font: 500 clamp(3rem, 6.5vw, 5.25rem)/1.02 Georgia, "Times New Roman", serif;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.lead { max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.22rem); margin: 1.55rem 0 0; }
.status { margin: 2.25rem 0 0; padding-top: 1.18rem; border-top: 1px solid var(--line); font-size: .94rem; }
.release-links { display: flex; gap: .75rem 1rem; align-items: center; flex-wrap: wrap; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #4674d2; outline-offset: 4px; }
a.brand { color: inherit; text-decoration: none; }
.download {
    display: inline-block;
    padding: .6rem 1rem;
    border-radius: .5rem;
    color: var(--paper);
    background: var(--accent);
    font-weight: 650;
    text-decoration: none;
}
.download:hover { background: #1e408d; }
.release-page { width: min(100%, 48rem); padding-block: clamp(2.5rem, 7vh, 5rem) 4rem; }
.release-page h1 { margin-bottom: 1.75rem; }
.release-card { padding: clamp(1rem, 4vw, 1.5rem); margin-top: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; }
.release-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem 1.2rem; flex-wrap: wrap; }
.release-heading h2 { margin: 0 0 .2rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.release-heading time, .release-file { color: var(--muted); font-size: .9rem; }
.release-file { overflow-wrap: anywhere; margin: 1rem 0 0; }
.release-notes { white-space: pre-wrap; overflow-wrap: anywhere; margin: .85rem 0 0; }
.figure {
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 5 / 4;
    padding: clamp(1rem, 4vw, 2.7rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background:
        repeating-linear-gradient(90deg, transparent 0 23px, #d9e3f1 23px 24px),
        repeating-linear-gradient(transparent 0 23px, #d9e3f1 23px 24px),
        #e7eef7;
}
.editor {
    width: 100%;
    background: var(--paper);
    border: 1px solid #bccbe0;
    border-radius: .6rem;
    box-shadow: 0 .9rem 2rem #18243a14;
    overflow: hidden;
}
.editor-bar {
    display: flex;
    align-items: center;
    gap: .3rem;
    height: 2.2rem;
    padding-inline: .85rem;
    border-bottom: 1px solid var(--line);
}
.editor-bar i { width: .35rem; height: .35rem; border-radius: 50%; background: #b6c4d8; }
.editor-body { display: grid; grid-template-columns: 1fr 2.05fr; min-height: 11rem; }
.project-tree, .code { display: grid; align-content: start; gap: .8rem; padding: 1rem .75rem; min-width: 0; }
.project-tree { background: #f3f6fa; border-right: 1px solid var(--line); }
.project-tree i, .code i { display: block; height: .35rem; border-radius: .15rem; background: #bdcde3; }
.project-tree i:nth-child(2n) { width: 70%; margin-left: 14%; }
.project-tree i:first-child { width: 70%; background: #7894bf; }
.project-tree i:last-child { width: 55%; }
.code i:nth-child(1) { width: 52%; background: var(--accent); }
.code i:nth-child(2) { width: 67%; margin-left: 12%; }
.code i:nth-child(3) { width: 76%; margin-left: 12%; }
.code i:nth-child(4) { width: 46%; margin-left: 12%; background: #7894bf; }
.code i:nth-child(5) { width: 62%; margin-left: 12%; }
.code i:nth-child(6) { width: 31%; background: var(--accent); }

@media (max-width: 50rem) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .figure { width: min(100%, 32rem); aspect-ratio: 16 / 10; }
}
@media (max-width: 26rem) {
    .page { width: min(100% - 2rem, 71rem); }
    .masthead { padding-block: 1rem; }
    .hero { padding-block: 2.5rem; }
    h1 { font-size: clamp(2.35rem, 11.3vw, 3rem); }
}
