/* Kettle & Key v2 · base: tokens, reset, type, buttons, forms, header, footer */
@font-face { font-family: 'Instrument Sans'; src: url(../fonts/instrument-sans.woff2) format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans Mono'; src: url(../fonts/ubuntu-sans-mono.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #FFFFFF; --mist: #EEF1F3; --mist-2: #E2E7EB; --ink: #0F1720; --ink-2: #1C2734;
  --slate: #4B5663; --line: #D7DCE1; --board: #FFD23F; --board-deep: #F0C014; --ok: #1D6B45; --err: #A3261B;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Ubuntu Sans Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gut: clamp(16px, 4vw, 56px); --max: 1400px; --hdr: 72px; --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--board); }
.on-dark :focus-visible, .hdr.over :focus-visible { outline-color: #fff; }
.sr, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--board); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.mist { background: var(--mist); }
.ink-band { background: var(--ink); color: #fff; }

/* type */
.d1 { font-size: clamp(46px, 7.4vw, 116px); font-stretch: 84%; letter-spacing: -.024em; word-spacing: .09em; line-height: 1; }
.d2 { font-size: clamp(34px, 4.4vw, 66px); font-stretch: 88%; letter-spacing: -.024em; word-spacing: .03em; line-height: .98; }
.d3 { font-size: clamp(24px, 2.4vw, 34px); font-stretch: 92%; letter-spacing: -.02em; line-height: 1.06; }
.d2 .soft, .d1 .soft, .d3 .soft { color: var(--slate); }
.ink-band .soft, .on-dark .soft { color: #A9B4C0; }
.lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--slate); max-width: 60ch; }
.ink-band .lede { color: #C7D0D9; }
.spec { font: 500 12.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.ink-band .spec, .on-dark .spec { color: #B6C0CB; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.ex { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--line); padding: 4px 6px; vertical-align: middle; }
.ink-band .ex, .on-dark .ex { color: #C7D0D9; border-color: #3A4757; }

/* section head: heading left, mono meta right, hairline above */
.shead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; padding-top: 20px; border-top: 1px solid var(--ink); margin-bottom: clamp(28px, 4vw, 48px); }
.ink-band .shead { border-top-color: #3A4757; }
.shead .side { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.tlink { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--board); padding-bottom: 1px; }
.tlink:hover { border-bottom-color: var(--ink); }
.ink-band .tlink:hover { border-bottom-color: #fff; }

/* buttons: rectangles, not pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-board { background: var(--board); color: var(--ink); }
.btn-board:hover { background: var(--board-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26354A; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-line, .ink-band .btn-line { border-color: #fff; color: #fff; }
.on-dark .btn-line:hover, .ink-band .btn-line:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--r); }
.iconbtn svg { width: 20px; height: 20px; }

/* forms: every control is 52px tall so side-by-side fields share height and baseline */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.input, .select, .textarea { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #9AA4AF; border-radius: var(--r); background: #fff; font-size: 16px; line-height: 50px; }
.select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1720' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 15px center; }
.textarea { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input[aria-invalid=true], .select[aria-invalid=true], .textarea[aria-invalid=true] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.err { color: var(--err); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.frow { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.preview-note { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.success { border-left: 4px solid var(--board); background: var(--mist); padding: 20px 22px; }
.success h3 { font-size: 22px; margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button, .seg label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.seg button + button, .seg label + label { border-left: 1px solid var(--ink); }
.seg [aria-pressed=true], .seg [aria-selected=true], .seg input:checked + span { background: var(--ink); color: #fff; }
.seg label { padding: 0; }
.seg label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; width: 100%; justify-content: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
h1 + .lede, h2 + .lede, .d2 + .lede { margin-top: 18px; }
