@font-face { font-family: Editorial; src: url('/fonts/serif-light.ttf') format('truetype'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: Editorial; src: url('/fonts/serif-italic.ttf') format('truetype'); font-style: italic; font-weight: 300 500; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/sans.ttf') format('truetype'); font-weight: 400 600; font-display: swap; }
:root {
  color-scheme: light;
  --night: #262425; --night-2: #40383f; --porcelain: #f3f0ea; --pearl: #dcd6d0;
  --muted: #716b70; --champagne: #a48db3; --plum: #80678e; --soft: #ece5ef;
  --danger: #a3423c; --ok: #456652; --surface: #fcfaf7;
  --display: Editorial, Georgia, serif; --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--porcelain); color: var(--night); font: 14px/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.05; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 5vw, 72px); }
h2 { font-size: 36px; } h3 { font-size: 28px; }
p { margin: 12px 0 20px; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
em { color: var(--plum); font-weight: inherit; }
.eyebrow { font: 500 10px/1.5 var(--sans); letter-spacing: .19em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead, .muted { color: var(--muted); } .small { font-size: 12px; }
.step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pearl); }
.step > h2, .step > h3 { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 48px; padding: 12px 16px; background: var(--surface); color: var(--night); border: 1px solid var(--pearl); border-radius: 8px; text-align: left; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--plum); background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--night); color: var(--porcelain); border-color: var(--night); }
.chip small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.chip[aria-pressed="true"] small { color: #d5c8dd; }
.chips.col { flex-direction: column; } .chips.col .chip { width: 100%; }
label.field { display: block; min-width: 0; margin-bottom: 18px; }
label.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--pearl); border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
input[type="file"] { font-size: 12px !important; }
input::placeholder, textarea::placeholder { color: #8a8289; }
textarea { min-height: 110px; resize: vertical; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--plum); flex-shrink: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-size: 13px; }
.check input { margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 500; text-decoration: none; text-align: center; padding: 13px 23px; min-height: 46px; border-radius: 28px; border: 1px solid var(--night); background: var(--night); color: var(--porcelain); transition: background .2s, border-color .2s; }
.btn:hover { background: var(--night-2); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.accent { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn.ghost { background: transparent; color: var(--night); border-color: var(--pearl); }
.btn.ghost:hover { border-color: var(--plum); background: var(--soft); }
.btn.danger { background: transparent; color: var(--danger); border-color: #dbc3be; }
.btn.danger:hover { background: #f5e6e1; }
.btn.sm { padding: 9px 14px; min-height: 44px; font-size: 12px; }
.btn.block { display: flex; width: 100%; justify-content: space-between; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > *, .grid2 > * { min-width: 0; }
.row.end { justify-content: flex-end; } .grow { flex: 1 1 auto; }
.msg { padding: 16px 18px; border-radius: 8px; margin: 18px 0; border: 1px solid var(--pearl); overflow-wrap: anywhere; }
.msg.error { border-color: #dec3be; color: var(--danger); background: #fff6f2; }
.msg.ok { border-color: #c3d3c5; color: var(--ok); background: #f1f6ef; }
.panel { background: var(--surface); border: 1px solid var(--pearl); border-radius: 12px; padding: 24px; }
.panel.dark { background: var(--night); color: var(--porcelain); border-color: var(--night); }
.panel.dark .muted { color: #cbc2c9; }
.summary { font-family: var(--display); font-size: 30px; line-height: 1.2; margin: 8px 0 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
code.link { display: block; padding: 12px; background: var(--porcelain); border: 1px solid var(--pearl); border-radius: 6px; overflow-wrap: anywhere; font-size: 13px; }
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; letter-spacing: .035em; }
.identity small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; opacity: .6; margin-top: 5px; }
.monogram { display: grid; place-items: center; border: 1px solid #a48db360; border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; font: 300 22px var(--display); letter-spacing: -.08em; }
.back-link { display: inline-block; margin-top: 32px; font-size: 12px; color: var(--muted); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 15px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
@media (max-width: 600px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  .panel { padding: 18px; } h2 { font-size: 32px; } h3 { font-size: 26px; }
  .grid2 { gap: 14px; } .step { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
