/* saswatlife · site stylesheet · one source of truth */

:root {
  --navy: #0F1E2E;
  --navy-deep: #0A1520;
  --ivory: #F7F3E9;
  --ink: #1C2B3A;
  --muted: #56677A;
  --gold: #C9A227;
  --hairline: rgba(28, 43, 58, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Arrival (homepage cover) ---------- */

.arrival {
  min-height: 100svh;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.wordmark {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-transform: lowercase;
  animation: settle 1.2s ease-out both;
}

.tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  animation: settle 1.2s ease-out 0.35s both;
}

.arrival-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 243, 233, 0.45);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  animation: settle 1.2s ease-out 1s both;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark, .tagline, .arrival-hint { animation: none; }
}

/* ---------- Menu ---------- */

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu a {
  color: var(--ivory);
  text-decoration: none;
  padding-bottom: 2px;
}

.menu a:hover { border-bottom: 1px solid var(--ivory); }

.menu a.menu-call { color: var(--gold); }
.menu a.menu-call:hover { border-bottom-color: var(--gold); }

.menu a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.arrival .menu {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
}

/* ---------- Band (inner-page header) ---------- */

.band {
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 2rem 1.4rem 1.8rem;
  text-align: center;
}

.band .mark {
  font-family: "Anton", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-transform: lowercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.band .mark:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.band-arrow {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
}

/* ---------- Reading column ---------- */

main {
  max-width: 39rem;
  margin: 0 auto;
  padding: 4.2rem 1.4rem 0;
}

section { padding-top: 4.5rem; }
section:first-of-type { padding-top: 0; }

p + p { margin-top: 1.3rem; }

em { font-style: italic; }

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2.2rem;
  font-weight: 400;
}

h2 {
  font-family: "Anton", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 400;
  margin: 2.8rem 0 1rem;
}

.subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin-top: -1.2rem;
  margin-bottom: 2.2rem;
}

/* ---------- Ruled lists (dimensions, shelf, doors) ---------- */

.ruled { list-style: none; margin-top: 2.6rem; }

.ruled > li, .ruled > div {
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline);
}

.ruled > li:last-child, .ruled > div:last-child {
  border-bottom: 1px solid var(--hairline);
}

.rule-name {
  font-family: "Anton", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 0.45rem;
}

.rule-name a {
  color: var(--navy);
  text-decoration: none;
}

.rule-name a:hover { color: var(--gold); }

.rule-note {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.ruled + p { margin-top: 2.6rem; }

/* ---------- Terms block ---------- */

.terms {
  margin: 2.6rem 0;
  padding: 1.8rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.terms p + p { margin-top: 1rem; }

/* ---------- Doors and actions ---------- */

.door {
  text-align: center;
  padding-top: 5rem;
}

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

.door-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 1.25rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.door-link:hover, .door-link:focus-visible { opacity: 0.75; }

.door-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.begin { text-align: center; padding-top: 4.5rem; }

.begin-note { color: var(--muted); }

.wa-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 1.25rem;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.85rem 2.2rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.wa-link:hover, .wa-link:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

.wa-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.after-note {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.not-yet {
  margin-top: 4.5rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--muted);
}

.not-yet a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-yet a:hover { color: var(--ink); }

.gold-links a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.gold-links a:hover { opacity: 0.75; }

.place {
  margin-top: 3rem;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- Essay ---------- */

.essay p + p { margin-top: 1.4rem; }

.essay-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2.8rem auto;
  width: 5rem;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 6.5rem;
  padding: 2.4rem 1.4rem 3rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

.policy-rail {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  body { font-size: 1.0925rem; }
  main { padding-top: 3.4rem; }
  section { padding-top: 3.8rem; }
}

/* ---------- Swan mark ---------- */

.swan {
  width: 76px;
  height: auto;
  margin-bottom: 1.8rem;
  animation: settle 1.2s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .swan { animation: none; }
}

/* ---------- Essay byline ---------- */

.byline {
  font-size: 1rem;
  color: var(--muted);
  margin-top: -1.4rem;
  margin-bottom: 0.6rem;
}

.byline a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.byline a:hover { color: var(--gold); }

/* ---------- Essay illustration ---------- */

.essay-figure {
  margin: 2.4rem 0 2.8rem;
}

.essay-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* When a byline precedes the subtitle, cancel the subtitle's tuck-under */

.byline + .subtitle {
  margin-top: 0;
}
