/* Among — three rooms behind one door: a light arrival, a quieter linen room, dark at the door. */
:root {
  --ink: #141414;
  --ink-soft: #1d1b19;
  --paper: #f4f1ec;
  --stone: #e6e0d8;
  --taupe: #a39888;
  --umber: #6e665e;
  --ash: #c9c1b6;
  --linen: #ebe6de;
  --rule: #d5ccc0;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Small caps label used for links, field names and place names */
.label {
  font-family: var(--text);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.logo { display: block; color: currentColor; }
.logo svg { display: block; width: 100%; height: auto; }

:focus-visible { outline: 1px solid var(--taupe); outline-offset: 6px; }

/* ---------- Home: arrival ---------- */
.arrival {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 920px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
}
/* Placeholder for the cover film: warm light moving slowly over dark stone.
   Replace with <video class="arrival__film" autoplay muted loop playsinline poster="..."><source src="..."></video> */
.arrival__light {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38% 30% at 30% 62%, rgba(163, 152, 136, 0.16), transparent 70%),
    radial-gradient(30% 26% at 72% 38%, rgba(230, 224, 216, 0.70), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.arrival__film {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
@keyframes drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-block: 28px;
}
.topbar a {
  text-decoration: none;
  color: var(--umber);
  transition: color 0.4s ease;
}
.topbar a:hover { color: var(--ink); }

.arrival__center {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 26px;
  text-align: center;
  padding-block: 40px 80px;
}
.arrival .logo { width: clamp(220px, 44vw, 520px); }
.tagline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.02em;
  color: var(--umber);
}
.arrival__foot {
  display: flex;
  justify-content: center;
  padding-block: 0 30px;
}
.scroll-cue {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--taupe));
}

/* ---------- Home: the principle ---------- */
.principle {
  background: var(--linen);
  color: var(--ink);
  padding-block: clamp(96px, 14vw, 180px);
}
.principle__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}
.principle h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.principle h2 em { font-style: italic; color: var(--umber); }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.places li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}
.places li:last-child { border-bottom: 1px solid var(--rule); }
.places .name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.places .coord {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--umber);
  font-variant-numeric: tabular-nums;
}

/* ---------- Home: the door ---------- */
.door {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(110px, 15vw, 190px) clamp(90px, 12vw, 150px);
}
.door p {
  margin: 0 0 44px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.2;
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn.label { font-size: 11px; }
.door .btn:hover { background: var(--paper); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--ink-soft); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--umber);
  border-top: 1px solid #262320;
  padding-block: 28px 32px;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
}
.site-foot .legal { margin: 0; min-width: 0; }
.site-foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; color: var(--ash); }
.site-foot a:hover { color: var(--paper); }
.selectable { user-select: all; }

/* ---------- Inner pages (cream) ---------- */
.room {
  background: var(--paper);
  color: var(--ink);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.room__head {
  display: flex;
  justify-content: center;
  padding-block: 40px 0;
}
.room__head .logo { width: 132px; color: var(--ink); }

/* Invitation */
.invite {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-block: clamp(64px, 10vw, 120px) clamp(72px, 10vw, 120px);
}
.invite h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.1;
  text-align: center;
}
.invite .lede {
  margin: 0 0 56px;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--umber);
  text-align: center;
}
.field { display: grid; gap: 6px; margin-bottom: 30px; }
.field label { color: var(--umber); }
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--taupe);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  padding: 6px 0 8px;
  outline: none;
  transition: border-color 0.3s ease;
}
.field input:focus { border-bottom-color: var(--ink); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--paper) inset; -webkit-text-fill-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 22px; margin-top: 44px; }
.form-actions .btn { width: 100%; }
.form-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--umber);
  text-align: center;
}
.form-note a { color: var(--ink); text-underline-offset: 3px; }
.form-error { margin: 0; font-size: 13px; color: #8a3b2e; text-align: center; }
.thanks {
  text-align: center;
  padding-block: 40px;
}
.thanks p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.25;
}
.thanks .back { display: inline-block; margin-top: 40px; color: var(--umber); text-decoration: none; }
.thanks .back:hover { color: var(--ink); }

/* Privacy */
.notice {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-block: clamp(56px, 9vw, 110px) clamp(72px, 10vw, 120px);
}
.notice h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.1;
}
.notice .effective { margin: 0 0 48px; color: var(--umber); }
.notice h2 {
  margin: 44px 0 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
}
.notice p, .notice li { font-size: 15px; line-height: 1.75; color: #2b2825; max-width: 64ch; }
.notice ul { padding-left: 1.1em; margin: 0 0 1em; }
.notice p { margin: 0 0 1em; }
.notice a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 760px) {
  .principle__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .topbar { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .arrival__light { animation: none; }
  * { transition: none !important; }
}
