/* ============================================================
   wapsee — landing page
   Palette and type are derived from the logo: oxblood #780001
   on warm paper, high-contrast display serif, dashed rules.
   ============================================================ */

:root {
  /* colour */
  --paper:      #FBF7F1;
  --paper-alt:  #F5EFE5;
  --ink:        #1A1614;
  --ink-soft:   #5E544B;
  --ink-faint:  #74695F;
  --oxblood:    #780001;
  --rule:       #E2D8C9;
  --rule-dash:  #CFC2AF;

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* motion — stronger than the CSS built-ins, which feel weak */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --press: 160ms;

  /* layout */
  --shell: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* z-scale */
  --z-nav: 100;
  --z-skip: 200;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--oxblood); color: var(--paper); }

.skip {
  position: absolute;
  left: -9999px;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.875rem;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─────────────────────────── type ─────────────────────────── */

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  text-wrap: balance;
}

.h2 {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  --btn-bg: var(--oxblood);
  --btn-fg: #FDFBF7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--press) var(--ease-out),
              background-color var(--press) ease,
              color var(--press) ease;
}
.btn:active { transform: scale(0.97); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule-dash);
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.8125rem; }
.btn--block { width: 100%; padding-block: 1.05rem; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); border-color: var(--ink); color: #FDFBF7; }
  .btn--ghost:hover { background: var(--ink); color: #FDFBF7; }
}

/* ─────────────────────────── nav ─────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
  padding-top: env(safe-area-inset-top);
}
.nav[data-stuck="true"] { border-bottom-color: var(--rule); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}

.nav__mark { flex: none; display: block; line-height: 0; }
.nav__mark img { width: 116px; height: auto; }

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.875rem;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--press) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { gap: 1rem; justify-content: space-between; }
  .nav .btn--sm { margin-left: auto; }
}

@media (max-width: 380px) {
  .nav__mark img { width: 96px; }
  .nav .btn--sm { padding: 0.55rem 0.9rem; font-size: 0.75rem; }
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(4.5rem, 11vw, 8rem);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }

.hero__mark {
  width: min(100%, 540px);
  margin-block: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.25rem);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-weight: 400;
  font-size: clamp(2.15rem, 7.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero__sub {
  margin: 1.35rem 0 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__sub strong { color: var(--ink); font-weight: 500; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__meta span { position: relative; }
.hero__meta span + span::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 3px;
  height: 1px;
  background: var(--ink-faint);
}

/* ─────────────────────────── bands ─────────────────────────── */

.band {
  padding-block: clamp(4rem, 10vw, 7.5rem);
  border-top: 1px dashed var(--rule-dash);
}
.band--alt { background: var(--paper-alt); }

/* ─────────────────────────── truths ─────────────────────────── */

.truths {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed var(--rule-dash);
}
.truths li {
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-bottom: 1px dashed var(--rule-dash);
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  text-wrap: pretty;
}
.truths em {
  font-style: italic;
  color: var(--oxblood);
}

.truths__note {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ─────────────────────────── programme ─────────────────────────── */

.programme {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed var(--rule-dash);
}
.programme li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3.2vw, 2.25rem);
  border-bottom: 1px dashed var(--rule-dash);
}

.programme__no {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--oxblood);
}

.programme__body h3 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.programme__body p {
  margin: 0.55rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .programme li { grid-template-columns: 2rem minmax(0, 1fr); }
}

/* ─────────────────────────── steps ─────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.step { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.step__no {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--oxblood);
}
.step h3 {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
}
.step p { margin: 0.5rem 0 0; color: var(--ink-soft); text-wrap: pretty; }

/* ─────────────────────────── fit ─────────────────────────── */

.fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px dashed var(--rule-dash);
}
.fit h4 {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.fit ul { margin: 0; padding: 0; list-style: none; }
.fit li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.fit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--oxblood);
}
.fit__col:last-child li::before { background: var(--ink-faint); }

/* ─────────────────────────── cities ─────────────────────────── */

.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed var(--rule-dash);
}
.cities li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.9rem, 2vw, 1.35rem);
  border-bottom: 1px dashed var(--rule-dash);
}
.cities__name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
}
.tag {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tag--open { color: var(--oxblood); }

/* ─────────────────────────── invite ─────────────────────────── */

.invite {
  padding-block: clamp(4.5rem, 11vw, 8rem);
  border-top: 1px dashed var(--rule-dash);
}
.invite__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.invite__title { text-wrap: balance; }
.invite__lede { margin-bottom: 0; }

.form { display: block; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule-dash);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color var(--press) ease;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus,
.field select:focus { border-color: var(--oxblood); outline: none; }
.field input:focus-visible,
.field select:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235E544B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__msg {
  margin: 0.9rem 0 0;
  min-height: 1.4rem;
  font-size: 0.875rem;
  color: var(--oxblood);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.form__msg[data-show="true"] { opacity: 1; }
.form__msg[data-tone="ok"] { color: var(--ink); }

.form__fine {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-wrap: pretty;
}

/* ─────────────────────────── footer ─────────────────────────── */

.footer {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: max(clamp(3rem, 7vw, 4.5rem), env(safe-area-inset-bottom));
  background: var(--paper-alt);
  border-top: 1px dashed var(--rule-dash);
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__mark { width: 168px; height: auto; }
.footer__line {
  margin: 1.4rem 0 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 40, "WONK" 1;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-soft);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}
.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--press) ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--ink); }
}
.footer__fine {
  display: flex;
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─────────────────────────── motion ─────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .btn:active { transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
