/* ============================================================
   HØIER HEARTH — styles
   Palette:
     paper   #EFE5D0  (kraft)
     paper-2 #E6D9BE  (deeper kraft, section alt)
     ink     #2B2620  (warm near-black)
     ember   #A03D22  (hearth red — stamps & accents)
     pine    #3E4A3B  (forest green)
     tape    rgba(232, 222, 196, .8)
   Type:
     display  Cormorant Garamond
     body     Source Serif 4
     caption  Caveat (handwritten — photo captions & stamps only)
   ============================================================ */

:root {
  --paper: #EFE5D0;
  --paper-2: #E6D9BE;
  --ink: #2B2620;
  --ink-soft: #55493C;
  --ember: #A03D22;
  --pine: #3E4A3B;
  --white: #FBF7EE;
  --tape: rgba(232, 222, 196, 0.82);
  --shadow: 0 6px 18px rgba(43, 38, 32, 0.16);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 1.05rem;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.4em;
}

section { padding: 88px 0; }

.section-lede {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2.2em;
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Language toggle ---- */
.lang-toggle {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.lang-btn.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.lang-sep {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
}

.hero-veil {

  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,38,32,0.08) 30%, rgba(43,38,32,0.62) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 72px;
  color: var(--white);
}

.hero-logo {
  width: 140px;
  max-width: 45vw;
  height: auto;
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.hero-kicker {
  font-family: var(--hand);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 1.02;
  margin: 0.08em 0 0.12em;
}

.hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5em;
}

.hero-sub {
  max-width: 34em;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-cta-wrap {
  margin-top: 1.6rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: rgba(43, 38, 32, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: var(--body);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.hero-cta:hover {
  background: var(--ember);
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ---------------- STORY ---------------- */

.story .stamp {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ember);
  border: 2px solid var(--ember);
  border-radius: 4px;
  padding: 2px 12px;
  transform: rotate(-3deg);
  margin-bottom: 1.4em;
  opacity: 0.85;
}

.story p + p { margin-top: 1em; }

/* ---------------- LAND ---------------- */

.land { background: var(--paper-2); }

.land-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.land-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.9em 0 0.3em;
  color: var(--pine);
}

.land-card .translate {
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------------- POLAROIDS ---------------- */

.polaroid {
  background: var(--white);
  padding: 12px 12px 8px;
  box-shadow: var(--shadow);
  position: relative;
  display: inline-block;
  width: 100%;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.polaroid .caption {
  font-family: var(--hand);
  font-size: 1.3rem;
  text-align: center;
  color: var(--ink-soft);
  padding: 6px 0 2px;
}

/* masking tape on the top edge */
.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 26px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 3px rgba(43,38,32,0.12);
}

.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.4deg); }

/* ---------------- DISPATCHES ---------------- */

.dispatch-list {
  position: relative;
  padding-left: 34px;
}

/* the stitched thread down the timeline */
.dispatch-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  border-left: 2px dashed rgba(160, 61, 34, 0.45);
}

.dispatch {
  position: relative;
  margin-bottom: 72px;
}

.dispatch::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember);
  border: 2px solid var(--paper);
}

.dispatch-date {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ember);
  border: 2px solid var(--ember);
  border-radius: 4px;
  padding: 1px 10px;
  transform: rotate(-2deg);
  margin-bottom: 10px;
}

.dispatch-loc {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--pine);
  margin-left: 10px;
}

.dispatch h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 0.35em;
}

.dispatch-text { max-width: 60ch; }
.dispatch-text p + p { margin-top: 0.8em; }

.dispatch-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 26px;
}

.dispatch-photos .polaroid {
  width: min(360px, 100%);
}

.dispatch-photos .polaroid.horizontal {
  width: min(560px, 100%);
}

.dispatch-video {
  margin-top: 26px;
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.dispatch-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.dispatch-person-tag {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--pine);
  margin-top: 8px;
}

/* ---------------- HANDS ON THE LAND ---------------- */

.hands { background: var(--paper-2); }

.people-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
}

.person-card {
  width: 190px;
  text-align: center;
}

.person-card .polaroid img { aspect-ratio: 1 / 1; }

.person-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 10px;
}

.person-role {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ---------------- RETREATS & PURPOSE ---------------- */

.purpose { text-align: center; }

.purpose .stamp {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ember);
  border: 2px solid var(--ember);
  border-radius: 4px;
  padding: 3px 14px;
  margin-bottom: 1rem;
}

.purpose p.purpose-intro {
  max-width: 44em;
  margin: 0 auto 1.2em;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
}

.purpose p.purpose-sub {
  max-width: 38em;
  margin: 0 auto 1.8em;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ember);
}

/* ---------------- WAITLIST FORM ---------------- */

.contact-form {
  margin: 1.5rem auto 0;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form .hidden { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--white);
  border: 1px solid rgba(85, 73, 60, 0.28);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(85, 73, 60, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(160, 61, 34, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 95px;
}

.form-submit {
  align-self: center;
  padding: 0.85rem 2.5rem;
  background: var(--ember);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(160, 61, 34, 0.25);
  margin-top: 0.4rem;
}

.form-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(160, 61, 34, 0.35);
}
.form-submit:active { transform: translateY(0); }

.form-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

.form-note a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px dotted var(--ember);
}

.form-note a:hover { opacity: 0.75; }

.waitlist-success {
  background: var(--white);
  border: 2px solid var(--ember);
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.waitlist-success-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.waitlist-success-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}



/* ---------------- FOOTER ---------------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 0;
  text-align: center;
}

.footer-logo {
  width: 90px;
  max-width: 30vw;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  opacity: 0.9;
}

.footer-name {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-links { font-size: 0.92rem; opacity: 0.85; }

.footer-links a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links span { margin: 0 8px; }

/* ---------------- SCROLL REVEAL ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 800px) {
  section { padding: 64px 0; }
  .land-grid { grid-template-columns: 1fr; gap: 48px; }
  .dispatch-list { padding-left: 26px; }
  .dispatch::before { left: -24px; }
  .dispatch-photos .polaroid { width: 100%; }
  .hero { min-height: 78vh; }
}

/* visible keyboard focus */
a:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}
