/* ==========================================================================
   FLORIDA HOMES IN 2050 — Design tokens
   Palette: warm sand paper, deep mangrove marine, burnt clay accent, tide teal.
   Display type: Fraunces (editorial serif, used sparingly).
   Body type: system font stack (performance-first, no second web font).
   ========================================================================== */

:root {
  --ink: #211E19;
  --ink-soft: #4A463D;
  --sand: #F3ECDD;
  --paper: #FBF7EE;
  --sand-line: #DED0B2;
  --marine: #163F3D;
  --marine-deep: #0F2C2B;
  --clay: #B9542C;
  --clay-soft: #E9C7B4;
  --tide: #6FA8A0;
  --tide-soft: #DCEAE7;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --content-max: 1180px;
  --text-max: 62ch;

  --shadow-card: 0 12px 28px -18px rgba(15, 44, 43, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--marine-deep);
  margin: 0;
}

p { margin: 0; }

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

button { font-family: inherit; }

a { color: var(--marine); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marine);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus {
  left: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marine);
  margin: 0 0 14px;
}
.eyebrow__dot { color: var(--clay); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-s);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  padding: 15px 22px;
  min-height: 52px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--marine);
  color: var(--white);
}
.btn--primary:hover { background: var(--marine-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--sand-line);
}
.btn--ghost:hover { border-color: var(--marine); color: var(--marine); }

.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   LANDING
   ========================================================================== */

.landing {
  padding: 28px 20px 0;
  max-width: var(--content-max);
  margin: 0 auto;
}

.landing__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.landing__headline {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.landing__sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 22px;
}

.btn--start {
  background: var(--marine);
}

.landing__hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

.landing__preview {
  margin-top: 22px;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 46vh;
}
.landing__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 760px) {
  .landing { padding-top: 56px; }
  .landing__inner { text-align: left; }
  .landing__preview { max-height: 56vh; }
}

/* ==========================================================================
   PROGRESS RAIL — the "tide line": a rising-water motif standing in for a
   generic progress bar, since Florida's future is framed by rising water.
   ========================================================================== */

.progress-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 4px;
  background: var(--sand-line);
}
.progress-rail__fill {
  height: 100%;
  width: 0%;
  background: var(--tide);
  transition: width 0.35s ease;
}
.progress-rail__marker {
  position: absolute;
  top: -3px;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
  transform: translateX(-50%);
  transition: left 0.35s ease;
}

/* ==========================================================================
   SLIDE
   ========================================================================== */

.slide {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 26px 20px 8px;
  touch-action: pan-y;
}

.slide__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.slide__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.slide__figure {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--sand-line);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}
.slide__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__body { margin-top: 20px; }

.slide__title {
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.slide__prediction {
  font-size: 1.02rem;
  color: var(--ink);
  max-width: var(--text-max);
  margin-bottom: 22px;
}

.slide__section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marine);
  margin-bottom: 8px;
}

.slide__why {
  border-left: 3px solid var(--tide);
  padding: 4px 0 4px 14px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--marine-deep);
  max-width: var(--text-max);
}

.slide__tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.slide__tech-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--marine-deep);
  background: var(--tide-soft);
  border-radius: 999px;
  padding: 6px 13px;
}

.slide__teaser {
  font-size: 0.95rem;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 22px;
  max-width: var(--text-max);
}

/* Ad slot — reserved height to avoid layout shift; visually quiet */
.ad-slot {
  margin: 6px 0 22px;
  min-height: 100px;
  border: 1px dashed var(--sand-line);
  border-radius: var(--radius-s);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.ad-slot__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
}

.slide__nav {
  display: flex;
  gap: 12px;
  padding: 14px 0 34px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--sand) 70%, transparent);
}
.slide__nav .btn { flex: 1; }
.slide__nav .btn--back { flex: 0 0 auto; min-width: 96px; }
.slide__nav .btn--next { flex: 1 1 auto; }

/* Keep distance between ad and nav so no accidental ad taps near Next */
.ad-slot + .slide__nav { margin-top: 4px; }

@media (min-width: 860px) {
  .slide { padding-top: 40px; }

  .slide__layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: start;
  }
  .slide__figure {
    position: sticky;
    top: 24px;
  }
  .slide__nav {
    position: static;
    background: none;
    max-width: 460px;
    margin-left: auto;
  }
}

/* ==========================================================================
   COMPLETION
   ========================================================================== */

.completion {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
}

.completion__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.completion__headline {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  margin-bottom: 28px;
}

.completion__prompt {
  font-weight: 600;
  margin-bottom: 16px;
}

.choice-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.choice-btn {
  border: 1px solid var(--sand-line);
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 16px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--marine-deep);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice-btn:hover { border-color: var(--marine); }
.choice-btn[aria-pressed="true"] {
  background: var(--tide-soft);
  border-color: var(--tide);
}

.completion__divider {
  border: none;
  border-top: 1px solid var(--sand-line);
  margin: 30px 0;
}

.completion__related-label {
  font-weight: 600;
  margin-bottom: 8px;
}
.completion__related-link {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
}
.completion__related-link:hover { text-decoration: underline; }

.share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.share-btn {
  border: 1px solid var(--sand-line);
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.share-btn:hover { border-color: var(--marine); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--sand-line);
  padding: 30px 20px 40px;
  margin-top: 20px;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.site-footer__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--marine-deep);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.site-footer__tag {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.site-footer__links a { text-decoration: none; color: var(--ink-soft); }
.site-footer__links a:hover { color: var(--marine); }
.site-footer__copy {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 10px;
}
.site-footer__disclosure {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
  max-width: 70ch;
  font-style: italic;
}

/* ==========================================================================
   SIMPLE TRUST PAGES (about/privacy/terms/contact)
   ========================================================================== */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 20px;
}
.page h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 18px;
}
.page p, .page li {
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: var(--text-max);
}
.page a.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--marine);
}
