/* didread.app: the app's calm, bookish dark style (SPEC section 8). System fonts only; no outside requests. */
:root {
  --background: #1B1917;
  --surface: #25231F;
  --text: #ECE6DA;
  --muted: #A29C8F;
  --border: #39352E;
  --accent: #8DBE9F;
  --on-accent: #1B1917;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
main, .site-header, .site-footer { max-width: 44rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (prefers-reduced-motion: no-preference) {
  main { animation: fade 0.5s ease-out both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .wordmark, .wordmark-large { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--text); }
h1 { font-size: 36px; margin: 0 0 16px; }
h2 { font-size: 25px; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding: 0; list-style: none; }
strong { font-weight: 600; }
.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; margin: 0; }

/* Top bar (every page but home) */
.site-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 8px; }
.wordmark { font-size: 22px; text-decoration: none; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

/* Footer */
.site-footer { margin-top: 64px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* Cards */
.card { background: var(--surface); border-radius: 16px; padding: 20px; }
.cards { display: grid; gap: 12px; }
.cards p:last-child { margin-bottom: 0; }

/* Button (the early-access email) */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
}
.button:hover { filter: brightness(1.06); }

/* Home */
.home { padding-top: 56px; }
.home section { margin-bottom: 64px; }
.hero h1 { font-size: 40px; }
.wordmark-large { font-size: 24px; margin: 0 0 24px; }
.hero .cta { margin: 32px 0 14px; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 20px 30px 1fr; column-gap: 10px; align-items: start; margin-bottom: 18px; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--muted);
}
.step-icon { color: var(--accent); margin-top: 1px; }

/* Phone frame (screenshot and video) */
.phone {
  margin: 0;
  padding: 7px;
  border-radius: 38px;
  background: #121110;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
}
.phone img, .phone video { display: block; width: 100%; height: auto; border-radius: 31px; background: #181615; }
.buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.shot-phone { width: min(64%, 250px); margin: 28px auto 8px; }
.day-phone { width: min(72%, 270px); margin: 8px auto 28px; }

/* Dropdowns: native details/summary, no JavaScript */
.rows { background: var(--surface); border-radius: 16px; padding: 0 20px; margin-bottom: 20px; }
.row + .row { border-top: 1px solid var(--border); }
.row > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  font-weight: 600;
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary::after {
  content: "+"; content: "+" / "";
  flex: none; width: 24px; text-align: center;
  font: 400 26px/1 var(--sans); color: var(--accent);
}
.row[open] > summary::after { content: "\2212"; content: "\2212" / ""; }
.row > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.row > summary h2, .row > summary h3 { margin: 0; }
.row > :not(summary):last-child { padding-bottom: 18px; margin-bottom: 0; }
.rows .row > p { margin-top: -4px; }
@media (prefers-reduced-motion: no-preference) {
  .row[open] > :not(summary) { animation: reveal 0.25s ease-out; }
  @keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.why { padding: 0 20px; background: var(--surface); border-radius: 16px; }
.why h3 { font-size: 22px; margin: 4px 0 12px; }
.why .principles { margin-bottom: 0; }
.passage {
  margin: 0 0 16px;
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 22px 8px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
.question { font-family: var(--serif); font-size: 19px; }
.small-heading { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 24px 0 8px; }
.principles li { margin-bottom: 12px; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card .meta { margin-bottom: 8px; }
.more { font-size: 15px; }

/* Inner pages */
.page { padding-top: 32px; }
.back { font-size: 15px; margin-bottom: 24px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }
.article-header { margin-bottom: 32px; }
.dek { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin-bottom: 12px; }
.dek em { font-style: normal; }
.prose { max-width: 65ch; font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.prose h2 { font-size: 23px; margin-top: 40px; }
.prose .findings li { margin-bottom: 16px; padding-left: 18px; position: relative; }
.prose .findings li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }
.closing { font-style: italic; margin-top: 32px; }
.note { margin-top: 48px; padding: 24px 20px 8px; background: var(--surface); border-radius: 16px; }
.faq { margin: 0; display: grid; gap: 12px; }
.faq dt { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.faq dd { margin: 0; }
.page > h2 { margin-top: 40px; }

@media (min-width: 640px) {
  h1 { font-size: 42px; }
  .hero h1 { font-size: 50px; }
  .home { padding-top: 88px; }
}
