:root {
  --ink: #1c1916;
  --muted: #5c5348;
  --cream: #f4eee4;
  --paper: #fffcf7;
  --line: rgba(28, 25, 22, 0.12);
  --teal: #0f5c56;
  --teal-deep: #0a3d39;
  --gold: #c4a35a;
  --sunset: #c56a3c;
  --ok: #0f5c56;
  --err: #9b2c2c;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(10, 61, 57, 0.18);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Figtree, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  padding-bottom: calc(76px + var(--safe-b));
}

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

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.flag-bar {
  height: 5px;
  background: linear-gradient(
    180deg,
    #a51931 0 20%,
    #f4f5f8 20% 40%,
    #2d2a4a 40% 60%,
    #f4f5f8 60% 80%,
    #a51931 80% 100%
  );
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  padding-top: max(14px, var(--safe-t));
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 238, 228, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e2b657 0 42%, var(--teal-deep) 43%);
}

.top-join {
  display: none;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.hero {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 16px 24px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--teal-deep);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 61, 57, 0.72) 0%,
    rgba(10, 61, 57, 0.4) 38%,
    rgba(10, 61, 57, 0.22) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 4px 16px;
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  font-variation-settings: "opsz" 72;
}

.lede {
  margin-top: 8px;
  font-size: 0.98rem;
  color: #fffcf7;
  max-width: 32rem;
  text-shadow: 0 1px 8px rgba(10, 61, 57, 0.55);
}

.join-wrap {
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 0;
  max-width: 480px;
}

.join-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.join-card h2 {
  font-size: 1.55rem;
  color: var(--ink);
}

.join-sub {
  margin: 6px 0 18px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.captcha-refresh-wrap {
  margin: 8px 0 0;
}

.captcha-refresh {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-deep);
  cursor: pointer;
  text-decoration: underline;
}

.timing {
  border: 0;
  padding: 16px 0 4px;
  margin: 0;
}

.timing legend {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 10px;
  color: var(--ink);
}

.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pill {
  cursor: pointer;
}

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}

.pill input:checked + span {
  background: var(--teal-deep);
  color: var(--paper);
  border-color: var(--teal-deep);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.submit {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--paper);
  background: var(--sunset);
  cursor: pointer;
  min-height: 48px;
}

.submit:hover {
  filter: brightness(1.05);
}

.submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.fine {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.status {
  min-height: 1.4em;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.status.ok {
  color: var(--ok);
}

.status.err {
  color: var(--err);
}

.join-card.is-success {
  text-align: center;
  padding: 36px 22px;
}

.join-card.is-success h2 {
  font-size: 1.8rem;
}

.places,
.when,
.book,
.impression,
.foot {
  padding: 40px 20px 8px;
}

.places h2,
.when h2,
.book h2,
.impression h2 {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  margin-bottom: 18px;
}

.place-grid {
  display: grid;
  gap: 14px;
}

.place {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.place img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.place div {
  padding: 14px 14px 16px;
}

.place h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.place p,
.when p:last-child,
.foot p {
  color: var(--muted);
}

.when {
  padding-bottom: 28px;
}

.when .eyebrow {
  color: var(--teal);
}

.when p:last-child {
  font-size: 1.05rem;
  max-width: 36rem;
}

.place-book,
.book-card span {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-deep);
  text-decoration: none;
}

.book .eyebrow {
  color: var(--teal);
}

.book-lead {
  color: var(--muted);
  max-width: 36rem;
  margin: -8px 0 18px;
}

.book-grid {
  display: grid;
  gap: 14px;
}

.book-card {
  display: block;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.book-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.book-card p {
  color: var(--muted);
}

.foot-note {
  margin-top: 10px;
  font-size: 0.8rem;
}

.foot {
  padding-top: 8px;
  padding-bottom: 24px;
  font-size: 0.9rem;
}

.foot p:first-child {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.foot-nav a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 600;
}

body.inner {
  padding-bottom: 24px;
}

.page {
  padding: 28px 20px 48px;
  max-width: 40rem;
}

.page .eyebrow {
  color: var(--teal);
}

.page h1 {
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  margin-bottom: 12px;
}

.page h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.45rem;
}

.page p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.page ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.page li {
  margin-bottom: 0.55rem;
}

.page li strong {
  color: var(--ink);
}

.stats {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stat-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.stat-source {
  font-size: 0.82rem;
}

.impression .eyebrow {
  color: var(--teal);
}

.impression > p {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 0;
}

.impression-more {
  display: inline-block;
  margin: 16px 0 8px;
  font-weight: 600;
  color: var(--teal-deep);
}

.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + var(--safe-b));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--sunset);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(197, 106, 60, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .top {
    padding-left: 32px;
    padding-right: 32px;
  }

  .top-join {
    display: inline;
  }

  .hero {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 28px 32px 32px;
  }

  .hero-copy,
  .join-wrap,
  .places,
  .when,
  .book,
  .impression,
  .foot {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .page {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .hero-copy {
    padding: 0 0 18px;
  }

  .join-wrap {
    padding: 0;
    margin: 0;
    max-width: 480px;
    margin-left: 0;
  }

  .join-card {
    padding: 28px 28px 22px;
    max-width: 480px;
  }

  .pills {
    grid-template-columns: repeat(4, 1fr);
  }

  .places,
  .when,
  .book,
  .impression,
  .foot,
  .page {
    padding-left: 32px;
    padding-right: 32px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .place-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .place img {
    height: 200px;
  }

  .sticky-cta {
    display: none;
  }
}
