/* ESTRELA v3 — The Exposure Record.
   Paper working field · 11-step zone ramp · translucent sheets · hatch deltas ·
   one dichroic magenta. Squared corners everywhere; rules are 1px ink. */

@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/big-shoulders-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/courier-prime-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/courier-prime-700-latin.woff2') format('woff2');
}

:root {
  --paper: #e9e5da;
  --sheet: #f4f2ea;
  --ink: #17140f;
  --ink-2: #454034;
  --ink-3: #5d5747;
  --mag: #e33d97;
  --mag-deep: #a8186a;
  --rule: var(--ink);
  --f-disp: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', monospace;
  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 44px);
  --rail-w: 66px;
  --ease-settle: cubic-bezier(0.2, 1.3, 0.35, 1);
  --shadow-sheet: 0 12px 28px rgba(28, 22, 10, 0.16), 0 2px 6px rgba(28, 22, 10, 0.1);
  /* zone ramp, 0 → X */
  --z0: #141210; --z1: #29251f; --z2: #3d382f; --z3: #524b3f; --z4: #675f50;
  --z5: #7d7462; --z6: #948b77; --z7: #aca38e; --z8: #c4bca8; --z9: #dcd5c4; --z10: #f4efe2;
}

/* ---------- Reset & ground ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--mag); color: var(--ink); }

:focus-visible { outline: 2px solid var(--mag-deep); outline-offset: 2px; }

html { scrollbar-color: var(--ink-3) var(--paper); scrollbar-width: thin; }

input, select, textarea { caret-color: var(--mag-deep); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--ink); color: var(--sheet);
  font-family: var(--f-mono); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus-visible { left: 8px; }

/* ---------- Type voices ---------- */

.display {
  font-family: var(--f-disp);
  font-weight: 560;
  font-size: clamp(3.4rem, 10.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.headline {
  font-family: var(--f-disp);
  font-weight: 540;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.zone-intro {
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: clamp(26px, 4vw, 40px);
}

/* ---------- Record header ---------- */

.rec-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-left: var(--rail-w);
}

.stamp {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 10px 18px;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: center;
}

.rec-meta { display: flex; }

.rec-cell {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px 16px; border-right: 1px solid var(--rule);
  font-size: 0.72rem; line-height: 1.35;
}
.rec-cell span { text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.rec-cell strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.rec-nav {
  display: flex; align-items: stretch; margin-left: auto;
}
.rec-nav a {
  display: flex; align-items: center; padding: 0 18px;
  border-left: 1px solid var(--rule);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.rec-nav a:hover { background: var(--ink); color: var(--sheet); }

.rec-book {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; border-left: 1px solid var(--rule);
  background: var(--mag); color: var(--ink);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s;
}
.rec-book:hover { background: var(--mag-deep); color: var(--sheet); }
.rec-book .icon { width: 16px; height: 16px; }

.rec-index-toggle { display: none; }

/* Mobile index sheet */
.index-sheet {
  position: fixed; z-index: 200;
  top: 54px; left: 12px; right: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sheet);
  padding: 6px 0 14px;
}
.index-sheet[hidden] { display: none; }
.index-sheet ol { list-style: none; }
.index-sheet li + li { border-top: 1px solid color-mix(in srgb, var(--rule) 25%, transparent); }
.index-sheet a {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; text-decoration: none;
  font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.index-sheet a span {
  width: 2.2em; font-weight: 400; color: var(--ink-3);
}
.index-sheet .bar-btn { margin: 12px 18px 0; }

/* ---------- Zone ramp rail ---------- */

.ramp-rail {
  position: fixed;
  z-index: 120;
  top: 0; bottom: 0; left: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
}

.ramp-rail a, .ramp-rail .ramp-inert {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(23, 20, 15, 0.25);
  position: relative;
  transition: filter 0.2s;
}
.ramp-rail [style*="--step:0"] { background: var(--z0); color: var(--z9); }
.ramp-rail [style*="--step:1"] { background: var(--z1); color: var(--z9); }
.ramp-rail [style*="--step:2"] { background: var(--z2); color: var(--z9); }
.ramp-rail [style*="--step:3"] { background: var(--z3); color: var(--z10); }
.ramp-rail [style*="--step:4"] { background: var(--z4); color: var(--z10); }
.ramp-rail [style*="--step:5"] { background: var(--z5); color: var(--z0); }
.ramp-rail [style*="--step:6"] { background: var(--z6); color: var(--z0); }
.ramp-rail [style*="--step:7"] { background: var(--z7); color: var(--z0); }
.ramp-rail [style*="--step:8"] { background: var(--z8); color: var(--z0); }
.ramp-rail [style*="--step:9"] { background: var(--z9); color: var(--z0); }
.ramp-rail [style*="--step:10"] { background: var(--z10); color: var(--z0); }

/* backlit: every step carries a faint internal glow, the active step burns brighter */
.ramp-rail a::before, .ramp-rail .ramp-inert::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 85% 65% at 50% 50%, rgba(255, 248, 228, 0.16), transparent 75%);
  pointer-events: none;
}

.ramp-rail a:hover { filter: brightness(1.15); }

.ramp-rail a.is-active::after {
  content: '';
  position: absolute; inset: 3px;
  border: 2px solid var(--mag);
  box-shadow: inset 0 0 16px rgba(255, 248, 228, 0.45);
}

.ramp-inert { opacity: 0.5; }

/* ---------- Zones ---------- */

main { margin-left: var(--rail-w); }

.zone {
  max-width: var(--wrap);
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 8vw, 104px);
  margin-inline: auto;
}

.zone-narrow { max-width: 880px; }

.zone + .zone { border-top: 1px solid var(--rule); }

.zone-head {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: clamp(26px, 4vw, 44px);
}
.zone-fill { flex: 1; border-top: 1px solid color-mix(in srgb, var(--rule) 35%, transparent); }

/* ---------- Sheets (the material) ---------- */

.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sheet);
  rotate: var(--tilt, 0deg);
}

.js .placed { opacity: 0; translate: 0 22px; rotate: calc(var(--tilt, 0deg) + 1.2deg); }
.js .placed.is-placed {
  opacity: 1; translate: 0 0; rotate: var(--tilt, 0deg);
  transition: opacity 0.5s ease-out, translate 0.7s var(--ease-settle), rotate 0.7s var(--ease-settle);
}

/* ---------- Bar buttons ---------- */

.bar-btn {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--sheet);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: transform 0.25s var(--ease-settle), box-shadow 0.25s;
}
.bar-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(28, 22, 10, 0.28); }
.bar-btn:active { transform: translateY(0); box-shadow: none; }

.bar-btn .icon { width: 17px; height: 17px; align-self: center; margin-left: 16px; }
.bar-btn .icon + .bar-label { padding-left: 10px; }

.bar-label { padding: 13px 18px; }

.bar-delta {
  display: flex; align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--sheet);
  background: var(--mag);
  color: var(--ink);
  font-weight: 700;
}

.bar-btn-hold { background: var(--sheet); color: var(--ink); }
.bar-btn-hold .bar-delta { border-left-color: var(--rule); }

.bar-delta-hatch {
  min-width: 42px;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(23, 20, 15, 0.5) 4px 5px), var(--sheet);
}

.bar-btn-submit { width: 100%; justify-content: space-between; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(30px, 5vw, 56px); }

.hero .display { margin-bottom: clamp(28px, 5vw, 52px); }

.hero-lower {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.deck { color: var(--ink-2); max-width: 40ch; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-print { position: relative; --tilt: 0deg; }
.hero-print img { border: none; }

.print-plan {
  position: absolute;
  right: -18px;
  bottom: -34px;
  width: min(300px, 78%);
  padding: 14px 16px 16px;
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.plan-title {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px; margin-bottom: 4px;
}

.print-plan table, .plan table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.print-plan th, .plan th {
  text-align: left; font-weight: 400; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem;
  padding: 7px 8px 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
  width: 42%;
}
.print-plan td, .plan td {
  font-weight: 700; text-align: right;
  padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
  font-variant-numeric: tabular-nums;
}
.print-plan tr:last-child th, .print-plan tr:last-child td { border-bottom: none; }

.key-row th, .key-row td {
  background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(227, 61, 151, 0.28) 5px 6px);
}
.key-mark {
  display: inline-block;
  background: var(--mag); color: var(--ink);
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 1px 6px; margin-left: 8px;
  vertical-align: 2px;
}

/* ---------- Contact prints ---------- */

.prints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.6vw, 30px);
  align-items: start;
}

.print {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sheet);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.35s var(--ease-settle), box-shadow 0.35s;
  text-align: left;
}
.print:hover { rotate: 0deg; box-shadow: 0 18px 40px rgba(28, 22, 10, 0.24), 0 3px 8px rgba(28, 22, 10, 0.12); }
.print:hover img { filter: contrast(1.04); }
.print img { transition: filter 0.35s; }

.print.h { grid-column: span 2; }
.print.sq, .print.v { grid-column: span 1; }

.print-cap {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.print-cap span { font-weight: 400; color: var(--ink-3); }
.print:hover .print-cap { background: var(--ink); color: var(--sheet); }
.print:hover .print-cap span { color: var(--z8); }

/* ---------- Print plans (pricing) ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.plan { padding: 22px 22px 24px; display: flex; flex-direction: column; }

.plan h3 {
  font-family: var(--f-disp);
  font-weight: 560; font-size: 1.55rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}

.plan-price {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 2.1rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 14px 0 10px;
}
.plan-cur { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }

.plan table { margin-bottom: 20px; }

.plan .bar-btn { margin-top: auto; justify-content: space-between; }

.plan-key { border-width: 2px; }
.plan-flag {
  position: absolute;
  top: -12px; left: 18px;
  background: var(--ink); color: var(--sheet);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 10px;
}
.plan { position: relative; }

/* slides in under the plan cards' lower edge; the cards paint on top */
.addons-sheet {
  position: relative;
  z-index: 0;
  max-width: 620px;
  margin: -36px 0 0 clamp(0px, 6vw, 90px);
  padding: 52px 22px 20px;
}
.plan { z-index: 1; }

.addons {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.addons caption {
  text-align: left;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-bottom: 10px;
}
.addons th {
  display: flex; align-items: center; gap: 10px;
  text-align: left; font-weight: 400;
  padding: 9px 0;
}
.addons td {
  text-align: right; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 9px 0;
}
.addons tr { border-top: 1px solid color-mix(in srgb, var(--rule) 35%, transparent); }

.hatch-chip {
  width: 22px; height: 14px;
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(23, 20, 15, 0.55) 3px 4px);
}
.addons-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--rule) 35%, transparent);
  font-size: 0.85rem;
  color: var(--ink-2);
}
.addons-note a { color: var(--mag-deep); font-weight: 700; text-underline-offset: 3px; }

.hatch-chip-x {
  background:
    repeating-linear-gradient(45deg, transparent 0 3px, rgba(23, 20, 15, 0.55) 3px 4px),
    repeating-linear-gradient(-45deg, transparent 0 3px, rgba(23, 20, 15, 0.55) 3px 4px);
}

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.4vw, 40px);
}

.quote { padding: 26px 26px 22px; }

.quote blockquote p {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.quote blockquote p::before { content: '“'; color: var(--ink-3); }
.quote blockquote p::after { content: '”'; color: var(--ink-3); }

.quotes { align-items: start; }
.quote:last-child { margin: 34px -58px 0 0; position: relative; left: -58px; z-index: 1; }

.quote figcaption {
  margin-top: 16px;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-copy p { color: var(--ink-2); max-width: 56ch; }
.about-copy p + p { margin-top: 14px; }

.about-line { font-weight: 700; color: var(--ink); }

.about-sig {
  width: min(280px, 70%);
  margin: 22px 0 10px;
  filter: invert(1) brightness(0.25);
}

.about-ig {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.about-ig .icon { width: 16px; height: 16px; }
.about-ig:hover { text-decoration-thickness: 2px; }

/* ---------- FAQ ---------- */

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }

.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--ink-3);
  transition: rotate 0.3s var(--ease-settle), color 0.2s;
}
.faq details[open] summary { background: var(--sheet); }
.faq details[open] summary::after { rotate: 45deg; color: var(--ink); }
.faq summary:hover { background: var(--sheet); }

.faq details p { padding: 0 2px 18px; color: var(--ink-2); max-width: 66ch; }
.faq details a { color: var(--mag-deep); }

/* ---------- Contact / form ---------- */

.contact-wa { margin-bottom: 10px; }

.contact-or {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 18px 0;
}

.record-form { padding: 24px; max-width: 640px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 11px 12px;
  transition: background 0.2s, border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mag-deep);
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--mag-deep);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: 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='%2317140f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-status { min-height: 1.4em; font-size: 0.88rem; margin-bottom: 12px; }
.form-status.is-error { color: var(--mag-deep); font-weight: 700; }
.form-status.is-ok { font-weight: 700; }

.contact-mail { margin-top: 20px; font-size: 0.9rem; color: var(--ink-2); }
.contact-mail a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Session brief (/brief/) ---------- */

.page-brief { --rail-w: 0px; }
.page-brief main { padding-top: 0; }

.brief-form { max-width: 760px; padding: clamp(20px, 3.5vw, 34px); }

.brief-form fieldset { border: 0; min-width: 0; margin: 0 0 30px; }
.brief-form fieldset + fieldset { border-top: 1px solid color-mix(in srgb, var(--rule) 35%, transparent); padding-top: 26px; }

.brief-form legend {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--f-disp);
  font-weight: 560; font-size: 1.35rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 18px;
  float: left; width: 100%; /* float: legends ignore flex layout otherwise */
}
.brief-form legend + * { clear: both; }
.brief-form legend span {
  font-family: var(--f-mono); font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.14em; color: var(--ink-3);
}

.field label abbr { text-decoration: none; color: var(--mag-deep); }

.field-label {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.field .choice { /* beats `.field label` (block, ink-3, 6px margin) */
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.choice:hover { background: var(--sheet); }
.choice input {
  appearance: none; flex: none;
  width: 14px; height: 14px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  margin: 0;
}
.choice input:checked { background: var(--ink); box-shadow: inset 0 0 0 2px var(--sheet); }
.choice input:focus-visible { outline: 2px solid var(--mag-deep); outline-offset: 2px; }
.choice:has(input:checked) { background: var(--sheet); }

.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-fine { margin-top: 14px; font-size: 0.8rem; color: var(--ink-3); }

@media (max-width: 700px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* ---------- Colophon ---------- */

.colophon { margin-left: var(--rail-w); border-top: 1px solid var(--rule); }

.colophon-ramp { display: flex; height: 30px; }
.colophon-ramp span { flex: 1; }
.colophon-ramp span:nth-child(1) { background: var(--z0); }
.colophon-ramp span:nth-child(2) { background: var(--z1); }
.colophon-ramp span:nth-child(3) { background: var(--z2); }
.colophon-ramp span:nth-child(4) { background: var(--z3); }
.colophon-ramp span:nth-child(5) { background: var(--z4); }
.colophon-ramp span:nth-child(6) { background: var(--z5); }
.colophon-ramp span:nth-child(7) { background: var(--z6); }
.colophon-ramp span:nth-child(8) { background: var(--z7); }
.colophon-ramp span:nth-child(9) { background: var(--z8); }
.colophon-ramp span:nth-child(10) { background: var(--z9); }
.colophon-ramp span:nth-child(11) { background: var(--z10); }

.colophon-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding: 18px var(--pad) 26px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.colophon-row nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-inline: auto; }
.colophon-row a {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  text-underline-offset: 4px;
}
.colophon-row a:hover { text-decoration-thickness: 2px; }
.colophon-fine { display: flex; align-items: center; gap: 8px; }
.mag-swatch { width: 16px; height: 11px; background: var(--mag); border: 1px solid var(--rule); display: inline-block; }

/* ---------- Loupe (lightbox) ---------- */

.loupe[hidden] { display: none; }
.loupe {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px) brightness(0.96);
  -webkit-backdrop-filter: blur(8px) brightness(0.96);
  padding: 24px;
}

.loupe figure {
  max-width: min(1200px, 84vw);
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px rgba(28, 22, 10, 0.35);
  padding: 12px;
}
.loupe img { max-height: 78svh; width: auto; max-width: 100%; margin-inline: auto; }
.loupe figcaption {
  padding: 10px 2px 0;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.loupe-close, .loupe-prev, .loupe-next {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  flex: none;
  border: 1px solid var(--rule);
  background: var(--sheet);
  transition: background 0.2s, color 0.2s;
}
.loupe-close svg, .loupe-prev svg, .loupe-next svg { width: 20px; height: 20px; }
.loupe-close:hover, .loupe-prev:hover, .loupe-next:hover { background: var(--ink); color: var(--sheet); }
.loupe-close { position: absolute; top: 20px; right: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .rec-meta { display: none; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; --head-h: 53px; }

  /* the ramp becomes a slim horizontal strip glued under the sticky header */
  .ramp-rail {
    top: var(--head-h); bottom: auto; left: 0; right: 0;
    width: auto; height: 18px;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .ramp-rail a, .ramp-rail .ramp-inert {
    border-bottom: none;
    border-right: 1px solid rgba(23, 20, 15, 0.25);
  }
  .ramp-rail a span, .ramp-rail .ramp-inert span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .ramp-rail a.is-active::after { inset: 2px; border-width: 2px; }

  main { padding-top: 18px; }

  .rec-header, main, .colophon { margin-left: 0; }

  .rec-nav { display: none; }
  .rec-index-toggle {
    display: flex; align-items: center;
    margin-left: auto;
    padding: 0 18px;
    border-left: 1px solid var(--rule);
    font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
  }
  .rec-index-toggle[aria-expanded="true"] { background: var(--ink); color: var(--sheet); }
  .rec-book { margin-left: auto; }
  .rec-book span { display: none; }
  .rec-book .icon { width: 18px; height: 18px; }
  .rec-nav + .rec-book, .rec-book { border-left: 1px solid var(--rule); }
  .rec-header .rec-book { order: 2; }
  .rec-index-toggle { order: 3; margin-left: 0; }
  .rec-header .stamp { margin-right: auto; }

  .hero-lower { grid-template-columns: 1fr; }
  .deck { max-width: 58ch; }
  .hero-print { margin-top: 6px; margin-bottom: 26px; }
  .print-plan {
    position: relative;
    right: auto; bottom: auto;
    width: min(320px, 92%);
    margin: -30px 4px 0 auto;
  }

  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan-key { order: -1; }
  .addons-sheet { margin-left: 0; margin-top: -30px; max-width: 560px; padding-top: 46px; }

  .quote:last-child { translate: 0 0; margin-top: -18px; margin-left: 26px; }

  .about { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .prints { grid-template-columns: 1fr 1fr; }
  .print.h { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .bar-btn { width: 100%; justify-content: space-between; }
  .loupe { padding: 12px; gap: 10px; }
  .loupe-prev, .loupe-next { position: absolute; bottom: 18px; }
  .loupe-prev { left: 18px; }
  .loupe-next { right: 18px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .placed { opacity: 1; translate: none; rotate: var(--tilt, 0deg); }
}

/* ---------- Proposal (/propuesta/) ---------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.page-proposal .event-card { position: relative; right: auto; bottom: auto; width: 100%; }

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.price-was {
  font-size: 1.2rem; font-weight: 400; color: var(--ink-3);
  text-decoration-thickness: 2px;
}
.price-now { font-size: 2.6rem; line-height: 1; }


@media (max-width: 900px) {
  .page-proposal .event-card { margin: 0; }
  .page-proposal .plan-key { order: 0; }
  .proposal-grid { grid-template-columns: 1fr; max-width: 460px; gap: 30px; }
}
