:root {
  --bg: #ece6db;
  --ink: #2a2521;
  --muted: #7d746a;
  --rule: #c6bcae;
  --rule-strong: #2a2521;
}

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

html { scroll-snap-type: y proximity; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main { flex: 1; }

/* Home: two full-height screens. The first is the original page, untouched. */
.hero,
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10vh 1.5rem 6vh;
  scroll-snap-align: start;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
}

/* Quiet hint that the page continues: a short hairline, nothing animated. */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 1px;
  height: 2rem;
  background: var(--rule);
}

.about {
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100dvh - 4.25rem);
  text-align: left;
}

.about > * {
  width: 100%;
  max-width: 34rem;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.about p:first-of-type { text-wrap: balance; }

.lede-quiet {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.rules li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}

.rules li:last-child { border-bottom: 1px solid var(--rule); }

.more {
  margin: 3rem 0 0;
  font-size: 1.0625rem;
}

.more a,
.wordmark {
  color: inherit;
  text-decoration: none;
}

.more a {
  border-bottom: 1px solid var(--rule);
  transition: border-color 150ms ease;
}

.more a:hover,
.more a:focus-visible { border-color: var(--rule-strong); }

/* Inner pages (about.html): small wordmark on top, one column of prose. */
.masthead {
  padding: 2.25rem 1.5rem 0;
  text-align: center;
}

.wordmark {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.story {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 9vh 1.5rem 6vh;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.story p { margin: 0 0 1.5em; }

/* Signature. Comforter Brush is the one hand-drawn face on the site; keep it to this line. */
.signoff {
  margin-top: 2.5rem;
  font-family: "Comforter Brush", "Newsreader", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1.2;
}

/* Not-found page: wordmark first, then the note. */
.lost {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10vh 1.5rem 6vh;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(3.75rem, 14vw, 10rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

.note {
  margin: 1.5rem 0 0;
  max-width: 22rem;
  font-size: 1.0625rem;
  color: var(--muted);
  text-wrap: balance;
}

form {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  width: 100%;
  max-width: 22rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  transition: border-color 200ms ease;
}

form:focus-within { border-color: var(--rule-strong); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  padding: 0.25rem 0;
  outline: none;
}

input[type="email"]::placeholder { color: var(--muted); opacity: 1; }

button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  padding: 0.25rem 0;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 150ms ease;
}

button:hover, button:focus-visible { opacity: 1; }
button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
button[disabled] { cursor: default; opacity: 0.4; }

.status {
  margin-top: 1.25rem;
  min-height: 1.5rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.status.done { color: var(--ink); }

/* Honeypot: real users never see or fill this. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

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