:root {
    color-scheme: dark;
    --background: #11110f;
    --surface: #191917;
    --border: #38372f;
    --text: #f5f2e9;
    --muted: #b4b0a4;
    --gold: #f5cc57;
    --mono: "Cascadia Mono", Consolas, monospace;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure, dl, dd, h1, h2, h3, p { margin: 0; }
img { display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
section[id] { scroll-margin-top: 2rem; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    background: var(--gold);
    color: var(--background);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner, nav, .brand {
    display: flex;
    align-items: center;
}
.header-inner { min-height: 74px; justify-content: space-between; gap: 20px; }
.brand { gap: 11px; font-size: 1.18rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
nav { gap: clamp(14px, 3vw, 34px); font-size: .9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, .footer-inner a:hover { color: var(--gold); }
nav .nav-download { color: var(--gold); }
.nav-download span { margin-left: .24em; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
    gap: clamp(30px, 5vw, 75px);
    align-items: center;
    padding-block: clamp(66px, 9vw, 120px);
}
.platform {
    color: var(--gold);
    font: 600 .77rem/1.4 var(--mono);
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: .99;
    letter-spacing: -.079em;
    font-weight: 780;
}
h1 span { color: var(--gold); }
.intro { color: var(--muted); font-size: 1.09rem; max-width: 37ch; margin: 24px 0 27px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    padding: 12px 17px;
    border: 1px solid #ffe091;
    border-radius: 7px;
    background: var(--gold);
    color: #1c1506;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;
}
.button:hover { background: #ffe18a; }
.download-note { margin-top: 11px; color: var(--muted); font-size: .83rem; }

.editor {
    min-width: 0;
    overflow: hidden;
    background: #131411;
    border: 1px solid #474538;
    border-radius: 13px;
    box-shadow: 0 19px 55px #0008, 0 0 80px #e2b1350b;
}
.editor-title, .editor-status, .editor-tab, .log-filters {
    display: flex;
    align-items: center;
    padding-inline: 15px;
}
.editor-title { min-height: 45px; gap: 8px; background: #24231e; font-size: .82rem; }
.preview-caption { color: var(--muted); font-size: .74rem; margin-left: auto; }
.editor-tab {
    gap: 8px;
    min-height: 36px;
    background: #1b1c17;
    border-bottom: 1px solid #36372e;
    font: .8rem var(--mono);
}
.tab-status { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.log-filters { min-height: 49px; gap: 7px; border-bottom: 1px solid #303128; }
.filter-label { color: var(--muted); font-size: .79rem; margin-right: 4px; }
.log-filters button {
    cursor: pointer;
    min-height: 30px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 10px;
    color: var(--muted);
    background: #20211b;
    font-size: .78rem;
}
.log-filters button:hover, .log-filters button[aria-pressed="true"] {
    color: #ffe38c;
    border-color: #8c743a;
    background: #38301a;
}
.log {
    min-height: 210px;
    padding-block: 13px;
    overflow-x: auto;
    font: .78rem/26px var(--mono);
}
.log:focus-visible { outline-offset: -2px; }
.log-row {
    display: grid;
    grid-template-columns: 2ch 8ch 5ch minmax(max-content, 1fr);
    gap: 1.25ch;
    padding-inline: 15px;
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
}
.log-row[data-level="WARN"] { background: #2c2513; }
.log-row[data-level="ERROR"] { background: #331f1b; }
.line-no { color: #929486; text-align: right; }
.log time { color: #b4b6a4; }
.level { color: #a1c9ad; }
[data-level="WARN"] .level { color: #f5ce6c; }
[data-level="ERROR"] .level { color: #ffa997; }
.editor-status {
    justify-content: space-between;
    min-height: 33px;
    background: #22221b;
    border-top: 1px solid #34342a;
    color: var(--muted);
    font: .73rem var(--mono);
}

h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.045em; }
.features { padding-bottom: clamp(60px, 8vw, 100px); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    gap: 1px;
    background: var(--border);
}
.feature-grid article { background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.feature-grid h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-grid p, .shortcuts p, .release p { color: var(--muted); }
code { font-family: var(--mono); font-size: .92em; }
.shortcuts {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: clamp(20px, 6vw, 85px);
    padding-block: 38px 44px;
    border-block: 1px solid var(--border);
}
.shortcuts p { margin-top: 13px; max-width: 37ch; }
.key-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 45px;
    border-bottom: 1px solid var(--border);
}
.key-list > div:last-child { border-bottom: 0; }
.key-list dd { display: flex; align-items: center; gap: 7px; font-size: .81rem; color: var(--muted); }
kbd {
    padding: 3px 7px;
    min-width: 24px;
    text-align: center;
    border: 1px solid #5b553d;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #26231a;
    color: var(--gold);
    font: .79rem var(--mono);
    white-space: nowrap;
}
.release { padding-block: clamp(58px, 8vw, 92px); }
.release-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 30px);
    padding: clamp(22px, 4vw, 38px);
    background: #1e1c14;
    border: 1px solid #4d432c;
    border-radius: 12px;
}
.release-inner h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin-bottom: 8px; }
.release .button { margin-left: auto; }
.release details { margin-top: 12px; color: var(--muted); font-size: .83rem; }
.release details code { overflow-wrap: anywhere; }
.release summary { cursor: pointer; width: fit-content; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .83rem; }
.footer-inner { min-height: 75px; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px; }
.footer-inner a { text-underline-offset: 3px; }

@media (max-width: 900px) {
    .hero { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
    .intro { max-width: 52ch; }
}
@media (max-width: 700px) {
    .shell { width: calc(100% - 36px); }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shortcuts { grid-template-columns: minmax(0, 1fr); }
    .release-inner { flex-wrap: wrap; }
    .release .button { margin-left: 0; }
}
@media (max-width: 480px) {
    .header-inner { min-height: 0; flex-wrap: wrap; gap: 8px; padding-block: 10px 13px; }
    .header-inner nav { width: 100%; justify-content: space-between; }
    .hero { padding-top: 53px; }
    h1 { font-size: clamp(2.65rem, 11vw, 3.5rem); }
    .feature-grid { grid-template-columns: 1fr; }
    .release-inner img { width: 54px; height: 54px; }
    .log { font-size: .71rem; }
    .log-row { gap: .85ch; padding-inline: 8px; }
}
