/* The outer page (index.html): everything around the isolated editor. */
:root {
    --ink: #15171C;
    --ink-2: #2A2F36;
    --ink-3: #3A3F47;
    --muted: #4F555E;
    --ground: #F3F4F1;
    --line: #D9DBD5;
    --line-soft: #E6E8E3;
    --accent: #1F3FC4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--ink); }

.page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.site-nav a {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.site-nav a:hover { background: var(--line-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--line-soft); color: var(--ink); font-weight: 600; }

.local-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
}

.hero[hidden] { display: none; }
.hero { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
.hero .lead { margin: 0; font-size: 19px; color: var(--ink-3); max-width: 680px; }
.hero .facts { margin: 0; font-size: 14px; color: var(--muted); }

.editor-frame {
    position: relative;
    border: 1.5px solid var(--ink);
    border-radius: 14px;
    background: #FFFFFF;
    padding: 28px clamp(14px, 2vw, 24px) 24px;
}

.editor-badge {
    position: absolute;
    top: -13px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* site.js sets the height the editor reports */
#editor { display: block; width: 100%; height: 640px; border: 0; }

.how { display: flex; flex-direction: column; gap: 20px; }
.how h2 { margin: 0; font-size: 28px; letter-spacing: -0.015em; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.how-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.how-card h3 { margin: 0; font-size: 18px; }
.how-card p { margin: 0; font-size: 15px; color: var(--ink-3); }
.how-step { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); }

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links [hidden] { display: none; }
.build code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
