/* Cerneală de seară — caiet cusut, granci de zecer, cerneală pe Verona.
   Surfaces stay paired. Never set background and color independently. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --abyss: #090B0E;
  --walnut: #181410;
  --brick: #B85C38;
  --cream: #F3EDE4;
  --dust: #B7ADA0;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
  --pad-y: clamp(6rem, 10vw, 8.75rem);
  --hair: 1px solid var(--brick);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 1.35rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--brick);
  color: var(--abyss);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

/* Stitched cahier binding — always on, no JS */
body::before {
  content: "";
  position: fixed;
  z-index: 80;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--gutter);
  pointer-events: none;
  background:
    linear-gradient(90deg, #120e0c 0 10px, transparent 10px),
    repeating-linear-gradient(
      to bottom,
      var(--brick) 0 4px,
      transparent 4px 16px
    );
  box-shadow: inset -1px 0 0 var(--brick);
}

body {
  padding-left: var(--gutter);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.9rem, 7.4vw, 5.85rem); }
h2 { font-size: clamp(1.9rem, 4.1vw, 3.35rem); }
h3 { font-size: clamp(1.32rem, 2.3vw, 1.8rem); }

p { margin: 0 0 1.15em; }

.lede,
.measure { max-width: var(--measure); }

/* —— Surfaces —— */
.surface-abyss  { background: var(--abyss);  color: var(--cream); }
.surface-walnut { background: var(--walnut); color: var(--cream); }
.surface-cream  { background: var(--cream);  color: var(--abyss); }
.surface-brick  { background: var(--brick);  color: var(--abyss); }

/* Lined caiet paper on cream editorial slabs */
.surface-cream {
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, transparent 2.85rem, rgba(184, 92, 56, 0.42) 2.85rem, rgba(184, 92, 56, 0.42) calc(2.85rem + 1px), transparent calc(2.85rem + 1px)),
    repeating-linear-gradient(
      to bottom,
      transparent 0 1.95rem,
      rgba(24, 20, 16, 0.07) 1.95rem 1.96rem
    );
  background-attachment: local;
}

.wrap {
  width: min(1220px, calc(100% - 2.75rem));
  margin-left: max(1.5rem, calc((100% - 1220px) / 2 + 0.6rem));
  margin-right: auto;
}

.section {
  padding-block: var(--pad-y);
  position: relative;
}

.section + .section { border-top: var(--hair); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 1.25rem;
}

.hairline {
  height: 1px;
  background: var(--brick);
  border: 0;
  margin: 0;
}

/* —— Header: journal tape, not a SaaS bar —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: var(--hair);
  overflow: visible;
}

.site-header::after {
  content: "caiet · verona";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--brick);
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0.7;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 4.6rem;
  padding-block: 0.55rem;
  padding-right: 7.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--brick);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--brick);
  font-weight: 650;
  box-shadow: 2px 2px 0 var(--brick);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-place {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: n;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links li { counter-increment: n; }

.nav-links a {
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-left: 1px solid rgba(184, 92, 56, 0.35);
}

.nav-links a::before {
  content: counter(n, decimal-leading-zero);
  display: block;
  color: var(--brick);
  font-family: var(--font-serif);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.15rem;
}

.nav-links a[aria-current="page"] {
  color: var(--brick);
  background: rgba(184, 92, 56, 0.1);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* —— Buttons: dog-eared brick, or a long ink underline —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn.surface-brick {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 4px 4px 0 #3a1c12;
}

.btn.surface-brick::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent #7a3a22 transparent transparent;
  pointer-events: none;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 6px 6px 0 #3a1c12;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0.55rem 0;
  letter-spacing: 0.16em;
}

.btn-ghost:hover {
  box-shadow: none;
  filter: none;
  border-bottom-width: 2px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  margin-top: 1.9rem;
}

/* —— Hero: typeset poster, photo as a proof print —— */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.hero::before {
  content: "LS";
  position: absolute;
  left: -0.1em;
  bottom: -0.28em;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.7;
  color: var(--cream);
  opacity: 0.035;
  pointer-events: none;
  letter-spacing: -0.06em;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0 0.85rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-year {
  color: var(--brick);
  writing-mode: horizontal-tb;
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.78fr);
  gap: 0 2.4rem;
  align-items: end;
  padding: 1.8rem 0 6.2rem;
  position: relative;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--brick);
  font-weight: 650;
  background-image: linear-gradient(var(--brick), var(--brick));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 92%;
}

.hero-sub {
  max-width: 540px;
  color: rgba(243, 237, 228, 0.8);
  font-size: 1.04rem;
  margin-bottom: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--brick);
}

.hero-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
  margin: 0 1.4rem -4.1rem 0;
  z-index: 2;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

/* Printer crop marks */
.hero-photo::before,
.hero-photo::after,
.fig::before,
.fig::after,
.frame-photo::before,
.frame-photo::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 3;
}

.hero-photo::before,
.fig::before,
.frame-photo::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid var(--brick);
  border-left: 1px solid var(--brick);
}

.hero-photo::after,
.fig::after,
.frame-photo::after {
  bottom: -7px;
  right: -7px;
  border-bottom: 1px solid var(--brick);
  border-right: 1px solid var(--brick);
}

.hero-photo img,
.fig img,
.frame-photo img {
  outline: 1px solid var(--brick);
  outline-offset: 0;
}

.hero-trust {
  border-top: var(--hair);
  padding: 0.75rem 0 0.9rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust);
}

.hero-trust::before {
  content: "⊕  ";
  color: var(--brick);
}

/* —— Civic spine: descending ladder, not a KPI row —— */
.spine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 2.4rem 0 2.8rem;
}

.spine-word {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.92;
  padding: 0.15rem 0;
  border: 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.spine-word:nth-child(1) { padding-left: 0; }
.spine-word:nth-child(2) { padding-left: 8%; }
.spine-word:nth-child(3) { padding-left: 16%; }
.spine-word:nth-child(4) { padding-left: 24%; color: var(--brick); font-style: italic; }

.spine-word::before {
  content: counter(sp, decimal-leading-zero);
  counter-increment: sp;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--brick);
  min-width: 1.6rem;
}

.spine { counter-reset: sp; }

/* —— Editorial slabs: hanging folio + ghost numeral —— */
.slabs { display: grid; gap: 0; }

.slab {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.2rem 2rem;
  padding-block: 3.6rem;
  border-bottom: var(--hair);
  position: relative;
}

.slab:last-child { border-bottom: 0; }

.slab:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 5.5rem;
}

.slab:nth-child(even) .slab-num { order: 2; text-align: right; }
.slab:nth-child(even) .slab-num + * { order: 1; max-width: 40rem; margin-left: auto; }

.slab-num {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.8;
  color: var(--brick);
  opacity: 0.28;
  letter-spacing: -0.04em;
}

.slab h2 { margin-top: 0.1rem; max-width: 16ch; }

.slab p { max-width: 40rem; }

/* —— Pull quote: giant ink mark —— */
.pull {
  padding-block: var(--pad-y);
  position: relative;
  overflow: hidden;
}

.pull::before {
  content: "„";
  position: absolute;
  left: -0.08em;
  top: -0.28em;
  font-family: var(--font-serif);
  font-size: clamp(10rem, 24vw, 18rem);
  line-height: 0.7;
  color: var(--brick);
  opacity: 0.18;
  pointer-events: none;
}

.pull blockquote {
  margin: 0 0 0 clamp(3rem, 10vw, 8rem);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.22;
  font-weight: 500;
  max-width: 42rem;
}

.pull cite {
  display: block;
  margin: 1.6rem 0 0 clamp(3rem, 10vw, 8rem);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
}

.pull cite::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 8px;
  background: var(--brick);
  margin-bottom: 0.85rem;
}

/* —— Essay cards: loose pages on the desk —— */
.essay-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem 1rem;
  margin-top: 2.4rem;
}

.essay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.4rem 1.6rem;
  border: 1px solid var(--brick);
  background: var(--walnut);
  color: var(--cream);
  min-height: 13.5rem;
  overflow: hidden;
  text-decoration: none;
  grid-column: span 4;
  box-shadow: 5px 6px 0 rgba(9, 11, 14, 0.85);
}

.essay-card:nth-child(1) { grid-column: 1 / 8; min-height: 16rem; }
.essay-card:nth-child(2) { grid-column: 8 / 13; }
.essay-card:nth-child(3) { grid-column: 1 / 5; }
.essay-card:nth-child(4) { grid-column: 5 / 9; margin-top: 1.4rem; }
.essay-card:nth-child(5) { grid-column: 9 / 13; }
.essay-card:nth-child(6) { grid-column: 3 / 11; }

.essay-card .mono {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  color: var(--brick);
  border: 1px solid var(--brick);
  border-radius: 50%;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
}

.essay-num {
  position: absolute;
  right: 0.15rem;
  bottom: -0.7rem;
  font-family: var(--font-serif);
  font-size: 6.2rem;
  line-height: 1;
  color: var(--cream);
  opacity: 0.08;
  pointer-events: none;
}

.essay-meta {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
}

.essay-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  max-width: 14ch;
}

.essay-card p {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  max-width: 32ch;
  color: var(--dust);
}

.essay-card:hover {
  box-shadow: 8px 10px 0 var(--brick);
}

.essay-card:hover .more {
  border-bottom-width: 2px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.15rem 0 0.2rem;
  width: fit-content;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brick);
  border-bottom: 1px solid var(--brick);
  background: transparent;
}

.more::after {
  content: "→";
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.05em;
}

.more:hover {
  border-bottom-width: 2px;
  text-decoration: none;
}

.essay-card .more {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1.15rem;
  color: var(--cream);
  border-bottom-color: var(--brick);
}

.post-pager {
  margin-top: 1.7rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(184, 92, 56, 0.38);
}

.post-pager .more {
  margin-top: 0;
  max-width: 100%;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
}

.slab .more {
  margin-top: 1.35rem;
}

.surface-cream .essay-card {
  background: #efe6d6;
  color: var(--abyss);
  box-shadow: 5px 6px 0 rgba(184, 92, 56, 0.35);
}

.surface-cream .essay-card p { color: #3a342e; }
.surface-cream .essay-card .more { color: var(--brick); }
.surface-cream .essay-num { color: var(--abyss); opacity: 0.1; }

.surface-abyss .essay-card {
  background: #121014;
}

/* —— Scrisoare de pe masă —— */
.letter {
  max-width: 38rem;
  margin-inline: 0 auto;
  padding-left: 0.4rem;
}

.letter article[id^="e"] {
  scroll-margin-top: 5.6rem;
}

.letter p:first-of-type::first-letter,
.letter article h2 + p::first-letter {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  float: left;
  line-height: 0.75;
  padding: 0.18em 0.14em 0 0;
  color: var(--brick);
  font-style: italic;
}

.letter article p.eyebrow::first-letter,
.letter article p.post-pager::first-letter {
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
  font-style: inherit;
}

.aside-note {
  font-size: 12px;
  line-height: 1.55;
  color: inherit;
  opacity: 0.78;
  border-left: 2px solid var(--brick);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin: 1.5rem 0 1.7rem;
  max-width: 32rem;
}

.signed {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  margin-top: 2.2rem;
}

/* —— Portrait: print misregistration —— */
.voce-open {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 3.4rem;
  align-items: start;
}

.frame-photo {
  position: relative;
  margin: 10px 10px 0 0;
}

.frame-photo::after {
  /* second crop mark already via shared rule; add offset plate */
}

.frame-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 12px 14px 0 var(--brick);
  filter: saturate(0.8) contrast(1.04);
}

/* —— Prag threads: stair of thoughts —— */
.threads { list-style: none; padding: 0; margin: 0; }

.thread {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 1.1rem 1.6rem;
  padding-block: 2.2rem;
  border-bottom: var(--hair);
}

.thread:nth-child(even) { padding-left: 6%; }

.thread-n {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--brick);
  line-height: 0.85;
  font-style: italic;
}

/* —— FAQ: italic questions, notebook answers —— */
.faq-list { max-width: 44rem; }

.faq-item {
  border-bottom: var(--hair);
  padding-block: 1.45rem;
}

.faq-item h2,
.faq-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  margin: 0;
}

.faq-item button.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0 2.2rem 0 0;
  position: relative;
}

.faq-item button.faq-q::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 0.2em;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brick);
}

.faq-item.is-open button.faq-q::after { content: "–"; }

.faq-a {
  font-family: var(--font-sans);
  font-style: normal;
  padding: 0.95rem 0 0.2rem 1.1rem;
  max-width: 38rem;
  border-left: 1px solid var(--brick);
  margin-top: 0.7rem;
}

/* —— Forms on cream paper —— */
.form { max-width: 34rem; }

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.2rem 0 0.4rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--abyss);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--brick);
  border-radius: 0;
  padding: 0.55rem 0 0.45rem;
}

textarea {
  min-height: 9.5rem;
  resize: vertical;
  border: 1px solid var(--brick);
  padding: 0.7rem 0.8rem;
  background: rgba(255, 253, 248, 0.55);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.3rem 0 1.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.field-error {
  color: #8a2c16;
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.field-error:empty { display: none; }

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  border-color: #8a2c16;
}

.banner {
  border: 1px solid var(--brick);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 var(--brick);
}

.banner-ok { background: #e8d8c8; }

#trimis { display: none; }

#trimis:target,
#trimis.is-visible { display: block; }

.map-wrap {
  margin-top: 3.2rem;
  height: 360px;
  overflow: hidden;
  position: relative;
  outline: 1px solid var(--brick);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: hue-rotate(12deg) saturate(0.55) brightness(0.88);
}

.address-block {
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--brick);
}

/* —— Hybrid CTA: letter laid on a photograph —— */
.hybrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 32rem;
  position: relative;
  align-items: stretch;
}

.hybrid-photo {
  position: relative;
  min-height: 24rem;
}

.hybrid-photo img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
}

.hybrid-quote {
  padding: clamp(2.4rem, 5vw, 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 2.4rem 1.4rem 2.4rem -4.2rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--brick);
  box-shadow: 10px 12px 0 var(--brick);
}

.hybrid-quote .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  line-height: 1.28;
  max-width: none;
}

/* —— Footer colophon —— */
.site-footer {
  border-top: var(--hair);
  padding: 3.6rem 0 8.5rem;
  font-size: 0.92rem;
  position: relative;
}

.site-footer::before {
  content: "LS";
  position: absolute;
  right: 8%;
  top: 2.2rem;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--brick);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr;
  gap: 2.2rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.03em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav-list {
  flex-direction: column;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.footer-note {
  margin-top: 2.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(184, 92, 56, 0.45);
  font-size: 0.86rem;
  color: var(--dust);
  max-width: 48rem;
}

/* —— Cookie: a scrap of paper on the desk —— */
.cookie-banner {
  position: fixed;
  left: auto;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: min(26.5rem, calc(100% - 2.4rem));
  border: 1px solid var(--brick);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 8px 8px 0 var(--abyss);
}

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-panel {
  font-size: 0.88rem;
}

.cookie-panel label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  font-weight: 400;
  margin: 0.35rem 0;
}

.js .cookie-banner[hidden] { display: none; }

/* —— Page openings —— */
.page-intro {
  padding-block: clamp(4.2rem, 8vw, 6.8rem);
  position: relative;
}

.page-intro .lede { font-size: 1.12rem; }

.page-intro h1 {
  max-width: 16ch;
}

.legal-doc {
  max-width: 42rem;
}

.legal-doc h2 { margin-top: 2.2rem; }

.update {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.5rem;
}

.notfound {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}

.notfound::before {
  content: "—";
  position: absolute;
  right: 4%;
  top: 8%;
  font-family: var(--font-serif);
  font-size: 28vw;
  line-height: 0.6;
  color: var(--brick);
  opacity: 0.15;
  pointer-events: none;
}

.fig {
  margin: 2.2rem 0 0;
  position: relative;
}

.fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.82);
}

.fig figcaption {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  color: var(--brick);
}

.duo {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  margin-top: 2.6rem;
  align-items: end;
}

.duo .fig:first-child img { aspect-ratio: 4 / 5; }
.duo .fig:last-child { margin-bottom: 12%; }

/* —— Reveal —— */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.underline-draw {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
}

.js .underline-draw.is-visible {
  background-size: 100% 1px;
  transition: background-size 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .reveal.is-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .site-header::after { display: none; }
  .nav-bar { padding-right: 0; }
}

@media (max-width: 860px) {
  :root { --gutter: 0.85rem; }
  .hero { min-height: 78vh; }
  .hero-body {
    grid-template-columns: 1fr;
    padding-bottom: 4.2rem;
  }
  .hero-photo {
    width: min(100%, 300px);
    margin: 0.5rem 0 -1.8rem auto;
  }
  .spine-word { font-size: clamp(2rem, 10vw, 3.2rem); }
  .spine-word:nth-child(n) { padding-left: 0; }
  .essay-grid { grid-template-columns: 1fr; }
  .essay-card,
  .essay-card:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .voce-open,
  .hybrid,
  .footer-grid,
  .duo,
  .cookie-inner {
    grid-template-columns: 1fr;
  }
  .hybrid-quote { margin: -2.2rem 1rem 1.5rem; }
  .slab,
  .slab:nth-child(even) { grid-template-columns: 1fr; }
  .slab:nth-child(even) .slab-num { order: 0; text-align: left; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--abyss);
    color: var(--cream);
    padding: 0.8rem 1.1rem 1.3rem;
    border-bottom: var(--hair);
    flex-direction: column;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { border-left: 0; border-bottom: 1px solid rgba(184, 92, 56, 0.3); }
  .cookie-banner {
    left: 0.85rem;
    right: 0.85rem;
    width: auto;
  }
}

@media (max-width: 520px) {
  .pull blockquote,
  .pull cite { margin-left: 1.2rem; }
}
