/* VideoDiary — Pressed Paper, from the app's PaperTheme.swift.
   Deliberately no dark variant: paper doesn't change color at night. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f4efe4;
  --cream-bright: #fbf7ec;
  --ink: #2b2418;
  --amber: #b97f24;
  --amber-deep: #8a5f1b;
  --sage: #7a8b5a;
  --clay: #c2543e;
  --ink-secondary: rgba(43, 36, 24, 0.55);
  --ink-tertiary: rgba(43, 36, 24, 0.45);
  --hairline: rgba(43, 36, 24, 0.1);
  --stroke: rgba(43, 36, 24, 0.18);
  --card-border: rgba(43, 36, 24, 0.12);
  --card-fill: rgba(43, 36, 24, 0.05);
  --serif: "Newsreader", georgia, serif;
  --sans: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", menlo, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.sheet {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

a {
  color: inherit;
}

::selection {
  background: rgba(185, 127, 36, 0.25);
}

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

/* Masthead */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 22px;
}

.masthead nav a {
  font-size: 14px;
  color: var(--ink-secondary);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

/* Shared text roles */

.label {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.voice {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

/* Hero */

.hero {
  padding: 84px 0 24px;
}

.hero .label {
  display: block;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 10vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero .lede {
  margin-top: 26px;
  max-width: 34em;
  font-size: 17.5px;
  color: var(--ink-secondary);
}

.hero .lede strong {
  color: var(--ink);
  font-weight: 600;
}

.soon {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  background: rgba(185, 127, 36, 0.12);
  border-radius: 999px;
  padding: 7px 14px;
}

/* The mock entry (signature element) */

.entry-demo {
  margin: 56px 0 0;
}

.entry-demo figcaption {
  margin-bottom: 12px;
}

.entry-card {
  background: var(--cream-bright);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 40px -24px rgba(43, 36, 24, 0.35);
}

.entry-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.entry-thumb {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(251, 247, 236, 0.5), transparent 60%),
    linear-gradient(160deg, #c9a76a, #8a6a3a 70%, #6e5430);
  position: relative;
}

.entry-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 11px solid rgba(251, 247, 236, 0.9);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  translate: 2px 0;
}

.entry-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
}

.entry-meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-tertiary);
}

.entry-transcript {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.entry-saved {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 7px;
}

.entry-saved svg {
  flex: none;
}

/* Sections */

.section {
  padding: 72px 0 0;
}

.section > .label {
  display: block;
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5.5vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

.section h2 em {
  font-style: normal;
  color: var(--amber);
}

.section .body {
  margin-top: 16px;
  max-width: 36em;
  color: var(--ink-secondary);
}

.section .body strong {
  color: var(--ink);
  font-weight: 600;
}

/* Ruled promise rows (onboarding's promise list) */

.rows {
  margin-top: 28px;
  list-style: none;
}

.rows li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
}

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

.rows .row-icon {
  flex: none;
  translate: 0 2px;
  color: var(--amber-deep);
}

.rows p {
  color: var(--ink-secondary);
}

.rows p strong {
  color: var(--ink);
  font-weight: 600;
}

/* FAQ */

.page-title {
  padding: 64px 0 8px;
}

.page-title h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.08;
}

.page-title .body {
  margin-top: 14px;
  color: var(--ink-secondary);
  max-width: 36em;
}

.qa {
  margin-top: 40px;
}

.qa section {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.qa section:last-child {
  border-bottom: 1px solid var(--hairline);
}

.qa h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
}

.qa p {
  margin-top: 10px;
  color: var(--ink-secondary);
  max-width: 38em;
}

.qa p + p {
  margin-top: 8px;
}

.qa strong {
  color: var(--ink);
  font-weight: 600;
}

/* Policy */

.policy {
  margin-top: 40px;
}

.policy section {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.policy section:last-child {
  border-bottom: 1px solid var(--hairline);
}

.policy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
}

.policy p,
.policy li {
  margin-top: 12px;
  color: var(--ink-secondary);
  max-width: 40em;
}

.policy strong {
  color: var(--ink);
  font-weight: 600;
}

.policy em {
  font-family: var(--serif);
  font-style: italic;
}

.policy ul {
  list-style: none;
  margin-top: 4px;
}

.policy li {
  padding-left: 20px;
  position: relative;
}

.policy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(185, 127, 36, 0.55);
}

.policy .status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-tertiary);
  max-width: 40em;
}

/* Stub pages */

.stub {
  padding: 24px 0 0;
}

.stub .card {
  margin-top: 28px;
  background: var(--card-fill);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 22px;
  color: var(--ink-secondary);
  max-width: 38em;
}

/* Footer */

footer {
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-tertiary);
}

footer nav {
  display: flex;
  gap: 18px;
}

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

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

/* Page-load moment: masthead, then headline, then the rest settle in. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    translate: 0 14px;
    animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }

  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.24s; }

  @keyframes rise {
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 56px; }
  .entry-card { padding: 18px 18px 16px; }
  .entry-title { font-size: 19px; }
}
