/* v3-notice — the tear-off notice on the stairwell door */

:root {
  --whitewash: #e8e6df;
  --paint: #2f6b62;        /* institutional teal-green dado panel */
  --paint-edge: #255950;
  --paper: #ffffff;
  --ink: #161616;
  --ink-soft: #4a4a46;
  --rule: #c9c7bf;
  --perf: #8f8d85;
  --focus: #0f4a42;
  --gutter: 16px;
  --sheet-w: 42rem;
  --split: 56svh;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paint);
  overflow-x: hidden;
}

::selection { background: var(--paint); color: var(--paper); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-top: 2.75rem; margin-bottom: 0.9rem; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.6rem; }
p { margin: 0 0 0.9rem; max-width: 68ch; }
.muted { color: var(--ink-soft); }

/* ---------- the wall and the hero sheet ---------- */

.wall {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) 0;
  background:
    linear-gradient(to bottom, var(--whitewash) 0, var(--whitewash) var(--split), var(--paint-edge) var(--split), var(--paint-edge) calc(var(--split) + 3px), var(--paint) calc(var(--split) + 3px));
}

.sheet {
  background: var(--paper);
  color: var(--ink);
  margin: 0 auto;
  width: 100%;
  max-width: var(--sheet-w);
  box-shadow: 0 10px 24px -14px rgba(10, 30, 26, 0.45);
}

.sheet--notice {
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) 0;
  position: relative;
  z-index: 1;
}

.notice-kind {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
}

.title {
  font-size: clamp(2.6rem, 11.5vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 1rem;
  max-width: none;
}

.lead { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.375rem); line-height: 1.4; }
.lead--soft { color: var(--ink-soft); font-size: 1.0625rem; }

.facts {
  margin: 1.5rem 0 1rem;
  border-top: 1px solid var(--ink);
  font-size: 1rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.facts span[hidden] { display: none; }

.howlink { margin: 0.75rem 0 1.5rem; }

/* tear-off fringe */

.fringe {
  display: grid;
  grid-template-columns: repeat(3, 3.25rem) 1fr;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem));
  border-top: 2px dashed var(--perf);
  min-height: 8.5rem;
}

.strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem 0.4rem;
  border: 0;
  border-right: 2px dashed var(--perf);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transform-origin: 50% 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.strip:hover { background: #f4f3ee; }

.strip--city span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-weight: 500;
}

.strip--city[aria-pressed="true"] {
  background: var(--paper);
  transform: translateY(0.55rem) rotate(-4deg);
  box-shadow: 0 8px 14px -8px rgba(10, 30, 26, 0.6);
  position: relative;
  z-index: 2;
}
.strip--city[aria-pressed="true"] span { font-weight: 700; }
.strip--city[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto 0;
  height: 2px;
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .strip { transition: background-color 0.2s; }
  .strip--city[aria-pressed="true"] { transform: none; box-shadow: inset 0 0 0 2px var(--ink); }
}

.strip--go {
  align-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.2;
  padding: 1rem 1.25rem;
  border-right: 0;
}
.strip--go:hover { background: #000; }
.strip--go:focus-visible { outline-offset: -5px; outline-color: var(--paper); }

/* ---------- the long sheet ---------- */

.sheet--long {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 0;
  position: relative;
}
.sheet--long::before {
  /* the top edge of the second sheet, pinned just below the first */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--paper);
}

.block + .block { border-top: 1px solid var(--ink); padding-top: 2rem; margin-top: 2.5rem; }
.block + .block h2 { margin-top: 0; }

.concepts { margin: 1.25rem 0 0; max-width: 68ch; }
.concepts dt { font-weight: 700; margin-top: 0.75rem; }
.concepts dd { margin: 0; color: var(--ink-soft); }
.concepts dd::before { content: "— "; }

.steps { padding-left: 1.4rem; margin: 0.5rem 0 1.25rem; max-width: 68ch; }
.steps li { padding-left: 0.3rem; margin-bottom: 0.4rem; }
.steps li::marker { font-weight: 700; }

.person {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
  align-items: start;
}
.photo {
  aspect-ratio: 3 / 4;
  border: 2px dashed var(--perf);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}
.person-name { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }

/* buttons */

.inkbtn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.inkbtn:hover { background: #000; border-color: #000; }
.inkbtn:disabled { opacity: 0.55; cursor: default; }
.inkbtn[data-loading]::after { content: "…"; }
.inkbtn--secondary { background: var(--paper); color: var(--ink); }
.inkbtn--secondary:hover { background: var(--ink); color: var(--paper); }

/* the paper form */

.preview-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border: 1px dashed var(--perf);
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

form { margin-top: 1.5rem; max-width: 36rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 700; padding: 0; margin-bottom: 0.5rem; }

.choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  cursor: pointer;
}
.choice input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--ink); flex: none; }
.choice--consent { margin: 1rem 0 0.75rem; }

.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field label .muted { font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 0.5rem 0;
  border-radius: 0;
  caret-color: var(--paint);
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #6f6e69; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 6px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #a1281e; }
.field[hidden] { display: none; }

.micro { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.25rem; }

.done {
  border: 2px solid var(--ink);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-top: 1.5rem;
  max-width: 36rem;
}
.done h3 { margin-top: 0; }
.done[hidden] { display: none; }

.logistics { margin: 1rem 0 0; }
.logistics > div { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.logistics > div[hidden] { display: none; }
.logistics dt { font-weight: 700; }
.logistics dd { margin: 0; max-width: 68ch; }

.faq { margin: 0.5rem 0 0; max-width: 68ch; }
.faq dt { font-weight: 700; margin-top: 0.9rem; }
.faq dd { margin: 0.1rem 0 0; color: var(--ink-soft); }

.sheet--long { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- painted on the wall ---------- */

.countdown, .foot {
  color: var(--paper);
  text-align: center;
  padding: 0 var(--gutter);
  max-width: var(--sheet-w);
  margin: 0 auto;
}
.countdown { padding-top: 2.5rem; }
.countdown p { max-width: none; margin: 0; }
.cd-label { display: block; font-size: 1rem; opacity: 0.9; margin-bottom: 0.4rem; }
.cd-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; font-size: 1.05rem; }
.cd-unit b { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cd-live, .cd-ended { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); font-weight: 700; }
.cd-date { margin-top: 0.75rem !important; opacity: 0.9; }

.countdown .cd-before, .countdown .cd-live, .countdown .cd-ended { display: none; }
.countdown[data-state="before"] .cd-before { display: block; }
.countdown[data-state="live"] .cd-live { display: block; }
.countdown[data-state="ended"] .cd-ended { display: block; }

.foot { padding-top: 2.5rem; padding-bottom: 3rem; font-size: 0.95rem; }
.foot p { max-width: none; margin-bottom: 0.5rem; opacity: 0.92; }

/* ---------- wider screens ---------- */

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
  .fringe { grid-template-columns: repeat(3, 4rem) 1fr; min-height: 9.5rem; }
  .facts > div { grid-template-columns: 7rem 1fr; }
}

@media (min-width: 80em) {
  :root { --sheet-w: 46rem; --split: 60svh; }
}
