/* Nordwerk — minimal editorial base */
:root {
  --paper: #f7f5f1;
  --paper-2: #fffefb;
  --ink: #1a1917;
  --muted: #6c675f;
  --rule: #ded9d0;
  --accent: #b4451f;
  --max: 1120px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.06; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 34ch; }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border: 0;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.wordmark {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; border: 0; margin-right: auto;
}
.wordmark:hover { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); flex: 0 0 auto; }
.site-nav a {
  font-size: 14px; border: 0; padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap; flex: 0 0 auto;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"]:hover { border-bottom-color: var(--accent); }

.lang-picker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 6px 8px; min-width: 74px; max-width: 130px; flex: 0 0 auto; cursor: pointer;
}
.lang-picker:hover { border-color: var(--ink); }
.lang-picker option { font-family: var(--sans); text-transform: none; letter-spacing: 0; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 40px; height: 40px; padding: 0 8px;
    background: transparent; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px clamp(20px, 5vw, 40px) 20px;
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { font-size: 1.15rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule); white-space: normal; }
  .lang-picker { margin-top: 16px; }
}

/* ---------- sections ---------- */
main { display: block; }
section { padding: clamp(56px, 8vw, 116px) 0; }
section + section { border-top: 1px solid var(--rule); }
.hero { padding-top: clamp(56px, 11vw, 150px); }
.hero h1 { margin: 22px 0 26px; max-width: 24ch; }
.hero .lead { max-width: 46ch; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head .eyebrow { white-space: nowrap; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; gap: 36px; } }

.numbered h3 { margin: 12px 0 10px; }
.numbered p { color: var(--muted); }

.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.row .r-name { font-family: var(--serif); font-size: 1.5rem; }
.row .r-meta, .row .r-year { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr auto; }
  .row .r-meta { grid-column: 1 / -1; }
}

/* ---------- journal ---------- */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.post-item { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 140px 1fr; gap: clamp(16px, 3vw, 40px); }
.post-item time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.post-item h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.post-item h3 a { border: 0; }
.post-item h3 a:hover { color: var(--accent); }
.post-item p { color: var(--muted); max-width: 62ch; }
.more { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border: 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { .post-item { grid-template-columns: 1fr; gap: 10px; } }

.article-head { padding: clamp(40px, 7vw, 90px) 0 clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--rule); margin-bottom: clamp(30px, 5vw, 52px); }
.article-head h1 { max-width: 26ch; margin: 16px 0 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
article { padding-bottom: clamp(48px, 8vw, 96px); }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.35em; }
.prose p { font-size: 1.07rem; line-height: 1.66; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--ink); }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.3;
}
.post-nav { padding: 30px 0 0; border-top: 1px solid var(--rule); }

/* ---------- forms ---------- */
.form-wrap { max-width: 660px; }
form { margin-top: 30px; }
.field { margin-bottom: 22px; }
.field label, .field-label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="file"], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px;
  padding: 13px 14px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--ink) 50%), linear-gradient(-45deg, transparent 49%, var(--ink) 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
::placeholder { color: #a49e94; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
input[type="file"] { padding: 11px 14px; font-family: var(--mono); font-size: 12px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { padding: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-2); cursor: pointer; font-size: 15px; }
.check input { margin: 3px 0 0; accent-color: var(--accent); }
.check:has(input:checked) { border-color: var(--ink); }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }

/* tab-like radio choices */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 26px; }
.choice {
  position: relative; display: block; padding: 18px; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .c-i { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); display: block; }
.choice .c-t { font-family: var(--serif); font-size: 1.3rem; display: block; margin: 8px 0 6px; }
.choice .c-d { font-size: 14px; color: var(--muted); display: block; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.choice:has(input:checked) .c-i { color: var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 620px) { .choices { grid-template-columns: 1fr; } }

.quote-hint { font-size: 14px; color: var(--muted); padding: 18px; border: 1px dashed var(--rule); border-radius: 2px; }
.quote-card { padding: 24px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper-2); }
.quote-card .q-price { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.05; margin: 6px 0 4px; display: block; }
.quote-card ul { margin: 16px 0 0; padding-left: 1.1em; font-size: 15px; color: var(--muted); }
.quote-card li + li { margin-top: 6px; }
.quote-card .q-note { font-size: 13px; color: var(--muted); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }

/* steps */
.steps-bar { margin-bottom: 34px; }
.steps-track { height: 2px; background: var(--rule); position: relative; margin-top: 10px; }
.steps-track::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; background: var(--accent); width: 33.33%; transition: width 0.25s ease; }
form[data-current="2"] .steps-track::after { width: 66.66%; }
form[data-current="3"] .steps-track::after { width: 100%; }
.step-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.step-error { font-size: 14px; color: var(--accent); margin-top: 14px; }

/* ---------- cta band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band h2 { max-width: 22ch; }
.band p { color: #b9b4aa; max-width: 46ch; margin-top: 18px; }
.band .eyebrow { color: #8d877d; }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.band .btn-ghost { background: transparent; color: var(--paper); border-color: #4a4842; }
.band .btn-ghost:hover { color: #fff; border-color: var(--paper); background: transparent; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.foot-grid .eyebrow { margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-links a, .linkish { font-size: 15px; border: 0; border-bottom: 1px solid transparent; }
.foot-links a:hover, .linkish:hover { border-bottom-color: var(--accent); color: var(--accent); }
.linkish { font-family: var(--sans); background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-align: left; }
.foot-addr { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); margin-top: 14px; }
.foot-addr a { border: 0; }
.foot-addr a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 6vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- consent modal ---------- */
.consent {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: end center;
  background: rgba(26, 25, 23, 0.32);
  padding: clamp(16px, 4vw, 40px);
}
.consent[hidden] { display: none; }
.consent-card {
  width: 100%; max-width: 520px; background: var(--paper);
  border: 1px solid var(--ink); border-radius: 3px;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 24px 60px rgba(26, 25, 23, 0.22);
}
.consent-card h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 12px 0 12px; }
.consent-card p { font-size: 15px; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.consent-note { font-size: 13px; margin-top: 16px; }
@media (min-width: 700px) { .consent { place-items: center; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(70px, 14vw, 180px) 0; }
.notfound h1 { margin-bottom: 22px; }
