:root {
    color-scheme: light;
    --page: #eef1f4;
    --surface: #ffffff;
    --ink: #17202a;
    --muted: #66717d;
    --line: #c7ced6;
    --strong-line: #87929e;
    --accent: #174a75;
    --accent-hover: #0f385b;
    --danger: #8a2424;
    --danger-bg: #f5e7e7;
    --success: #285f3b;
    --success-bg: #e7f0ea;
}

* { box-sizing: border-box; }

html { font-family: Arial, Helvetica, sans-serif; background: var(--page); color: var(--ink); }
body { margin: 0; min-width: 280px; }

.page {
    width: min(760px, calc(100% - 32px));
    margin: 48px auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 0 0 14px;
    border-bottom: 3px solid var(--ink);
}

.brand { font-weight: 800; letter-spacing: 0.08em; font-size: 16px; }
.section-label { color: var(--muted); font-size: 14px; }

.panel {
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid var(--strong-line);
    padding: 34px;
}
.panel.compact { padding-bottom: 42px; }

.panel-heading { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 48px); line-height: 1.05; overflow-wrap: anywhere; }
.lead { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }

.metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.metadata > div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
dd { margin: 6px 0 0; font-weight: 700; overflow-wrap: anywhere; }

.unlock-form { margin-top: 26px; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
input {
    width: 100%;
    height: 58px;
    border: 2px solid var(--strong-line);
    background: #fff;
    color: var(--ink);
    padding: 10px 14px;
    font: 700 28px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.32em;
    text-align: center;
    outline: none;
}
input:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.button {
    display: block;
    width: 100%;
    margin-top: 14px;
    border: 0;
    padding: 16px 18px;
    text-align: center;
    font: 700 16px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover, .button.primary:focus-visible { background: var(--accent-hover); }

.notice { margin-top: 24px; border: 1px solid currentColor; padding: 14px; line-height: 1.45; }
.notice.error { color: var(--danger); background: var(--danger-bg); }
.notice.success { color: var(--success); background: var(--success-bg); }
.fineprint { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.footer { padding: 16px 0; color: var(--muted); font-size: 12px; }

@media (max-width: 620px) {
    .page { width: min(100% - 20px, 760px); margin: 18px auto; }
    .site-header { align-items: flex-start; flex-direction: column; gap: 5px; }
    .panel { padding: 22px 16px; }
    .metadata { grid-template-columns: 1fr; }
    input { font-size: 24px; }
}
