:root {
  --paper: #F6F1E7;
  --ink: #1C1A17;
  --ink-secondary: #6E665B;
  --hairline: #E6DFD1;
  --accent: #C26A3A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161412;
    --ink: #EDE8DD;
    --ink-secondary: #9A9085;
    --hairline: #2A2520;
    --accent: #D07A4A;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', 'Source Serif Pro', 'Charter', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 96px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--hairline);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
}

nav .brand {
  font-family: 'Newsreader', 'Source Serif Pro', 'Charter', Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.005em;
}

nav a:not(.brand) {
  text-decoration: none;
  color: var(--ink-secondary);
  padding: 4px 0;
}

nav a:not(.brand):hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

h1 {
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  line-height: 1.05;
}

h2 {
  font-size: 1.375rem;
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.hero {
  margin-bottom: 96px;
}

/* Persimmon brand mark sitting inline to the left of the h1. Mirrors the
   small persimmon disc used as the In the Retelling app-icon brand mark.
   Decorative only; hidden from screen readers via aria-hidden on the span. */
h1 .brand-mark {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.42em;
  vertical-align: 0.14em;
}

.hero .lead {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 52ch;
  color: var(--ink-secondary);
  margin: 0;
}

/* App screenshots: two iPhone screen grabs from In the Retelling shown
   side by side as a before-and-after pair. Sourced from the project's
   marketing/screenshots folder, captured 2026-06-01 against the post-
   rename "In the Retelling" branding. */
.app-shots {
  margin: 56px 0 0;
}

.shots-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.shots-row img {
  width: calc(50% - 8px);
  max-width: 260px;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(28, 26, 23, 0.18);
  background: var(--paper);
  display: block;
}

@media (prefers-color-scheme: dark) {
  .shots-row img {
    border-color: rgba(237, 232, 221, 0.22);
  }
}

.app-shots figcaption {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 20px 0 0;
}

@media (max-width: 480px) {
  .shots-row {
    gap: 10px;
  }

  .shots-row img {
    width: calc(50% - 5px);
    max-width: none;
    border-radius: 20px;
  }
}

section {
  margin: 0 0 56px;
  padding-top: 24px;
  border-top: 0.5px solid var(--hairline);
}

.section-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0 0 14px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 1.5px;
}

ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.3em;
}

hr {
  border: none;
  border-top: 0.5px solid var(--hairline);
  margin: 48px 0;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--ink);
}

.meta {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.faq {
  margin-top: 32px;
}

.faq-item {
  margin-bottom: 40px;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
}

.contact-block {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
}

.contact-block h2 {
  margin-top: 0;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 0.5px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 0.85rem;
}

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

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* Tablet-and-down: ease the hero size below the desktop 3.25rem before
   the narrow-phone breakpoint takes over. */
@media (max-width: 720px) {
  .container {
    padding: 64px 24px 72px;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.08;
    letter-spacing: -0.022em;
    margin-bottom: 28px;
  }

  .hero {
    margin-bottom: 72px;
  }

  .hero .lead {
    font-size: 1.15rem;
  }
}

/* Narrow-phone: bring the hero down further so "Considered Ideas Ltd"
   sits comfortably on a single line at iPhone-SE widths, and tighten
   vertical rhythm so the page reads without excessive scrolling. */
@media (max-width: 480px) {
  .container {
    padding: 48px 20px 64px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }

  .hero {
    margin-bottom: 56px;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  section {
    margin-bottom: 44px;
  }

  .app-shots {
    margin-top: 40px;
  }
}
