:root {
    --bg: #f3eee6;
    --ink: #1b1714;
    --muted: #6f675f;
    --line: #e3d9cc;
    --card: #fffaf4;
    --accent: #9a3412;
    --accent-2: #1b1714;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Figtree, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.wordmark {
    font-family: Newsreader, serif;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.04em;
    text-decoration: none;
}
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.hero { padding: 64px 0 32px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; }
h1, h2, h3 { font-family: Newsreader, serif; font-weight: 550; letter-spacing: -0.03em; }
h1 { font-size: clamp(48px, 7vw, 84px); line-height: 0.92; margin: 0 0 16px; }
.lede { font-size: 18px; max-width: 460px; color: var(--muted); }
.plans { display: grid; gap: 12px; }
.plan, .panel, .key {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 18px;
}
.plan strong, .panel h2 { display: block; }
.price { font-family: Newsreader, serif; font-size: 32px; margin: 8px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; }
.stat b { display: block; font-family: Newsreader, serif; font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.stat span { color: var(--muted); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; gap: 10px; margin-top: 22px; }
button, .button {
    border: 0;
    background: var(--accent-2);
    color: #f6f1ea;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.button.quiet, button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
label { display: block; margin: 12px 0 6px; color: var(--muted); }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    padding: 10px 12px;
    font: inherit;
    border-radius: 8px;
}
input[type="checkbox"], input[type="radio"], input[type="file"] {
    width: auto;
    margin-right: 8px;
}
input[type="color"] { width: 72px; height: 42px; padding: 4px; }
textarea { min-height: 96px; resize: vertical; }
.choice { display: flex; gap: 16px; align-items: center; }
.choice label { margin: 0; }
.stack { display: grid; gap: 16px; padding: 28px 0 64px; }
.workspace {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 28px 0 64px;
}
.workspace .stack { flex: 1; min-width: 0; max-width: 100%; padding: 0; }
.workspace .stack > * { min-width: 0; max-width: 100%; }
.workspace h1 { font-size: clamp(36px, 4vw, 52px); }
.side {
    position: sticky;
    top: 18px;
    flex: 0 0 220px;
    width: 220px;
    align-self: flex-start;
}
.side-label {
    margin: 18px 0 6px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.side-label:first-child { margin-top: 0; }
.side a {
    display: block;
    margin: 2px 0;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}
.side a.is-on { background: var(--card); border: 1px solid var(--line); }
.flash { padding: 12px 14px; border: 1px solid var(--line); background: #fff; margin-top: 16px; }
.flash.warn { background: #fff4e8; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre {
    max-width: 100%;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #211c18;
    color: #f6f1ea;
    padding: 14px;
    border-radius: 10px;
}
pre.log { max-height: 220px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 800px) {
    .hero, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .workspace { flex-direction: column; }
    .side { position: static; width: auto; flex-basis: auto; }
}
