/* LIMEN — Paper 3d palette, Instrument Serif + Instrument Sans
   Self-host both fonts in /fonts and keep the @font-face blocks below.
   Ticket constraint: no Google Fonts request in production. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F1EEE8;
  --ink: #1F2124;
  --ink-hover: #383C41;
  --secondary: #67696E;
  --accent: #A6763C;
  --rule: #DCD7CE;
  --field-rule: #8A8278;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--secondary); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, var(--paper)); color: var(--ink); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.split { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 0 clamp(24px, 5vw, 48px); }
.frame { width: 100%; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr); }

.story { display: flex; flex-direction: column; gap: 36px; padding: clamp(40px, 7vw, 56px) 0 0; }
.action { display: flex; flex-direction: column; gap: 24px; padding: clamp(32px, 6vw, 40px) 0; border-top: 1px solid var(--rule); margin-top: clamp(32px, 6vw, 40px); }

@media (min-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); align-items: center; }
  .story { gap: 44px; padding: 48px 48px 48px 0; }
  .action { gap: 26px; padding: 48px 0 48px 48px; border-top: 0; border-left: 1px solid var(--rule); margin-top: 0; }
}

/* Type scale: serif 74 / 38 / 24, sans body 16, small 13, caps label 11 */
header { display: flex; flex-direction: column; gap: 18px; }
.mark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 12.5vw, 74px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 0.95;
  text-transform: uppercase;
}
.accent { color: var(--accent); }
.descriptor { margin: 0; font-size: 16px; color: var(--secondary); line-height: 1.45; }
.promise {
  margin: 0;
  max-width: 440px;
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.mission { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.prose { margin: 0; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.closer {
  margin: 0;
  max-width: 420px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}
.small { font-size: 13px; color: var(--secondary); }

form { max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field-rule);
  border-radius: 0;
  padding: 8px 0;
  width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-bottom-color: var(--ink); }
input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; }
.consent label { font-size: 13px; color: var(--secondary); line-height: 1.5; text-wrap: pretty; }
.consent a { text-decoration-color: color-mix(in srgb, var(--rule) 70%, var(--secondary)); text-underline-offset: 3px; }
.error { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.5; }
.error a { color: var(--ink); }

.submit { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
button[type="submit"] {
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 14px 36px;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--ink-hover); }
.submit .small { width: 100%; }

footer { border-top: 1px solid var(--rule); padding: 18px clamp(24px, 5vw, 48px); font-size: 13px; color: var(--secondary); }
.bar { width: 100%; max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footmark { letter-spacing: 0.1em; }
footer a { text-decoration: none; }

/* Prose pages: /imprint, /privacy, /404.
   The frame matches the landing page's 1000px grid so the left edge does not
   move when you navigate between them; the prose measure sits inside it.
   These pages reuse the landing page's own .page shell. */
.doc { flex: 1; display: flex; justify-content: center; padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 48px) clamp(56px, 8vw, 88px); }
.doc-frame { width: 100%; max-width: 1000px; }
.measure { max-width: 600px; }

.doc .back { display: inline-block; margin: 0 0 clamp(28px, 4vw, 40px); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); text-decoration: none; }
.doc h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(34px, 6vw, 46px); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
.doc .standfirst { margin: 0 0 clamp(40px, 6vw, 56px); font-size: 16px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; }

/* Sections are a sequence of equal rank: tight inside, generous between. */
.doc section + section { margin-top: clamp(36px, 5vw, 48px); }
.doc h2 { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); }
.doc p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 14px; padding-left: 18px; font-size: 16px; line-height: 1.6; }
.doc li { margin-bottom: 10px; }
.doc li:last-child { margin-bottom: 0; }
.doc a { text-decoration-color: color-mix(in srgb, var(--rule) 70%, var(--secondary)); text-underline-offset: 3px; }

/* Label/value facts. Stacked on narrow screens, two columns once there is room,
   which echoes the split the landing page composes on. */
.facts { margin: 0; display: grid; gap: 22px; }
.facts + .facts { margin-top: clamp(32px, 4vw, 40px); padding-top: clamp(32px, 4vw, 40px); border-top: 1px solid var(--rule); }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); }
.facts dd { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }
.note { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--secondary); }
@media (min-width: 680px) {
  .facts { grid-template-columns: 190px minmax(0, 1fr); gap: 24px 28px; align-items: baseline; }
  .facts dd { margin: 0; }
}
