/* WHOLN one-page site. Mobile-first, no frameworks, no external fonts. */

:root {
  --ivory: #faf6ee;
  --ivory-deep: #f1eadb;
  --ink: #231d18;
  --ink-soft: #4a4038;
  --gold: #d2a63e;        /* matches the logo */
  --gold-dark: #7a5c14;   /* readable gold for small text on ivory */
  --gold-line: #c9a24a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Focus and skip link */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--gold);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(35, 29, 24, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}
.brand { display: block; width: 5rem; height: 5rem; margin-block: -0.75rem; margin-left: -0.6rem; flex: none; }
.brand img { width: 100%; height: 100%; }

.header-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.55rem 0.15rem;
  border-bottom: 2px solid var(--gold);
}
.header-link:hover { color: var(--gold-dark); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.75rem); }
p { margin: 0 0 1.1rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.rule {
  display: block;
  width: 4.5rem;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 1.75rem 0;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--ink); color: var(--ivory); }
.button:active { transform: translateY(1px); }
.cta-row { margin: 2rem 0 0; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; }
.hero-inner { display: grid; gap: 0; }
.hero-copy { max-width: 40rem; }
.hero h1 { max-width: 16ch; }
.hero-mark { display: none; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; margin: 0; }
.pronounce { margin: 2rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.ipa { font-family: var(--serif); font-style: italic; letter-spacing: 0.04em; }

/* Feature */
.feature { background: var(--ivory-deep); padding: 4rem 0; }
.feature-inner { display: grid; gap: 2.5rem; }

.cover { margin: 0; justify-self: center; width: min(100%, 22rem); }
.cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(35, 29, 24, 0.45), 0 2px 6px rgba(35, 29, 24, 0.12);
}

.feature-copy h2 { margin-bottom: 1.25rem; }
.feature-copy p { max-width: 36rem; }
.phases-title {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 1.75rem 0 0.9rem;
}
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; max-width: 30rem; }
.phases li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--ivory);
  border: 1px solid rgba(35, 29, 24, 0.12);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}
.fine { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Why */
.why { padding: 4.5rem 0; }
.why-inner > * { max-width: 38rem; }
.why h2 { margin-bottom: 1.5rem; }
.why-lead { font-family: var(--serif); font-size: clamp(1.35rem, 4.5vw, 1.8rem); line-height: 1.3; font-style: italic; margin-bottom: 1.4rem; }

/* Closing */
.closing { background: var(--ink); color: var(--ivory); padding: 4.5rem 0; text-align: center; }
.closing-inner { max-width: 44rem; }
.closing h2 { margin-bottom: 1rem; }
.closing p { color: #e9e1d2; }
.closing .button { border-color: var(--gold); }
.closing .button:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.closing :focus-visible { outline-color: var(--ivory); box-shadow: 0 0 0 6px var(--gold); }

/* Footer */
.site-footer { background: var(--ink); color: #d9d0bf; border-top: 1px solid rgba(250, 246, 238, 0.14); padding: 1.5rem 0 2rem; font-size: 0.9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--gold); text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--ivory); }

/* Gentle reveal, only when JS is running and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Wider screens */
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  body { font-size: 1.125rem; }
  .brand { width: 6rem; height: 6rem; margin-block: -1rem; margin-left: -0.9rem; }
  .hero-inner { grid-template-columns: 1fr minmax(15rem, 24rem); gap: 3rem; align-items: center; }
  .hero-mark { display: block; width: 100%; }
  .hero { padding: 6rem 0 7rem; }
  .feature { padding: 6rem 0; }
  .feature-inner { grid-template-columns: minmax(16rem, 22rem) 1fr; gap: 4rem; align-items: center; }
  .cover { justify-self: start; }
  .why, .closing { padding: 6.5rem 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
