/* The Deeper Symptom — root landing page.
   Newsreader + Source Sans 3, SIL Open Font License 1.1.
   See css/fonts/README.txt. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-opsz-wght.woff2") format("woff2-variations"),
       url("fonts/Newsreader-opsz-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic-opsz-wght.woff2") format("woff2-variations"),
       url("fonts/Newsreader-Italic-opsz-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-wght.woff2") format("woff2-variations"),
       url("fonts/SourceSans3-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Italic-wght.woff2") format("woff2-variations"),
       url("fonts/SourceSans3-Italic-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --ink: #1c1915;
  --ink-soft: #4a453c;
  --ink-faint: #5e584f;
  --rule: #d5ccbc;
  --accent: #8c2e20;
  --accent-hover: #6d2218;
  --footer-bg: #161310;
  --footer-text: #efe8dc;
  --footer-muted: #c2b8a8;
  --serif: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Libre Franklin", system-ui, sans-serif;
  --space: clamp(1.15rem, 4.5vw, 2rem);
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 450;
  font-optical-sizing: auto;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--footer-text);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--footer-text);
}

.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space);
}

.wrap.narrow {
  max-width: calc(var(--measure) + var(--space) * 2);
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.7rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-mark {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.15rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

@media (max-width: 419px) {
  .nav {
    flex-basis: 100%;
    gap: 0;
  }
  .nav a {
    padding-inline: 0.55rem;
  }
  .nav a:first-child {
    padding-left: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(2.4rem, 8vw, 5.25rem) 0 clamp(2.3rem, 6vw, 3.8rem);
  border-bottom: 1px solid var(--rule);
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 399px) {
  .kicker {
    letter-spacing: 0.08em;
  }
}

.hero h1 {
  margin: 0;
  font-weight: 520;
  font-size: clamp(2rem, 1.55rem + 3.4vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.subhead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Essay + shelves ---------- */

.believe,
.pages,
.newsletter {
  padding: clamp(2.2rem, 5.5vw, 3.6rem) 0;
  border-bottom: 1px solid var(--rule);
}

.believe h2,
.pages h2,
.newsletter h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem);
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.believe p,
.pages .lead,
.newsletter .lead {
  margin: 0;
  color: var(--ink);
}

.believe p {
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.pages .lead,
.newsletter .lead {
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
}

.shelf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.shelf-list li {
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin-bottom: 0.2rem;
}

.shelf-list h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 540;
  letter-spacing: -0.015em;
}

.soon {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.shelf-list p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ---------- Newsletter ---------- */

.status {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--accent);
}

.signup label {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signup input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9b09f;
  border-radius: 2px;
  background: #fffcf7;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.3;
}

.signup input[type="email"]::placeholder {
  color: #8a8276;
}

.signup button {
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--footer-text);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 650;
  cursor: pointer;
}

.signup button:hover {
  background: #000;
}

.form-note {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 560px) {
  .signup-row {
    flex-direction: row;
    align-items: stretch;
  }

  .signup input[type="email"] {
    flex: 1 1 auto;
  }

  .signup button {
    flex: 0 0 auto;
    padding-inline: 1.3rem;
  }
}

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

.colophon {
  background: var(--footer-bg);
  color: var(--footer-muted);
  padding: 2.2rem 0 2.6rem;
}

.disclaimer {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: #9c9486;
}

@media (min-width: 800px) {
  .masthead-inner {
    padding-block: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
