/* nrrtv.com: the home page and the two documents.
   Paper and ink, the product's own. Literata sets the claims because the app
   is a reading app; Manrope carries everything around them. The page's colour
   is committed where it matters: the footer is set in ink, the rest is paper
   so the footage reads. Spacing runs on a 4px scale. */

:root {
  color-scheme: light dark;
  --paper: #f4efe6;
  --raised: #fbf8f2;
  --ink: #1b1813;
  --ink-soft: #3f392f;
  --muted: #62594c;
  --accent: #805f33;
  --line: color-mix(in oklab, var(--ink) 14%, transparent);
  --shade: color-mix(in oklab, #2a2116 34%, transparent);
  --band: #1b1813;
  --band-ink: #f3ebe1;
  --band-muted: #bdb2a4;
  --band-accent: #d4ba92;

  --display: Literata, "Iowan Old Style", Georgia, serif;
  --ui: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wide: 88rem;
  --gutter: clamp(20px, 5vw, 56px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12100d;
    --raised: #1c1914;
    --ink: #f3ebe1;
    --ink-soft: #d8cec2;
    --muted: #aca193;
    --accent: #d4ba92;
    --line: color-mix(in oklab, var(--ink) 12%, transparent);
    --shade: color-mix(in oklab, #000 60%, transparent);
    --band: #0a0907;
  }
}

@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/literata-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- surfaces */

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

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: color-mix(in oklab, var(--ink) 34%, transparent) var(--paper);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection { background: color-mix(in oklab, var(--accent) 28%, transparent); color: var(--ink); }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: var(--s3) var(--gutter);
  padding-top: max(var(--s3), env(safe-area-inset-top));
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.top nav { display: flex; gap: var(--s5); margin-left: auto; }
.top nav a { font-size: 0.95rem; text-decoration: none; color: var(--ink-soft); padding: var(--s2) 0; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s5);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: color-mix(in oklab, var(--ink) 86%, var(--accent)); }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 40px; padding: 0 var(--s4); font-size: 0.93rem; }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

/* -------------------------------------------------------------------- hero */

main { display: block; }

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(var(--s8), 7vw, var(--s9)) var(--gutter) var(--s9);
}
.hero .copy { max-width: 46rem; }
.hero .lede { margin-top: var(--s5); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 38rem; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s6); }
.hero .meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s5); font-size: 0.95rem; color: var(--muted); }
.hero .meta span:first-child { color: var(--accent); font-weight: 600; }
.hero .screen { margin-top: var(--s8); }
/* On a wide screen the headline and its promise share one line of sight, so
   the film starts higher. */
@media (min-width: 1100px) {
  .hero .copy {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto auto;
    column-gap: var(--s8);
  }
  .hero h1 { grid-row: 1 / span 3; align-self: end; }
  .hero .lede { margin-top: 0; align-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .screen { animation: arrive 800ms var(--ease) 150ms both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------------------------------------------------------------- footage */

.screen { margin: 0; }
.screen video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--raised);
  border-radius: 12px;
  box-shadow: 0 30px 60px -32px var(--shade), 0 2px 6px -2px var(--shade);
}
.screen .tall { display: none; }

/* ---------------------------------------------------------------- sections */

.feature {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--s9) var(--gutter);
  display: grid;
  grid-template-columns: minmax(16rem, 4fr) 9fr;
  gap: var(--s7);
  align-items: center;
}
.feature .copy { max-width: 26rem; }
.feature .copy p { margin-top: var(--s4); font-size: 1.1rem; }
.feature.flip { grid-template-columns: 9fr minmax(16rem, 4fr); }
.feature.flip .copy { order: 2; }

.pair {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--s7) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature.half { display: flex; flex-direction: column; align-items: stretch; gap: var(--s5); padding: var(--s7) 0; }
.feature.half .copy { max-width: 30rem; }
/* Side by side, the two halves share rows: headline, body, film. A two-line
   headline or a longer body on one side then moves both, so the films start
   on one line instead of wherever each column's copy happens to end. */
@media (min-width: 761px) {
  .pair { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .feature.half { display: grid; grid-template-columns: minmax(0, 1fr); grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .feature.half .copy { display: contents; }
  .feature.half h2 { max-width: 30rem; align-self: end; }
  .feature.half .copy p { max-width: 30rem; }
  .feature.half .screen { margin-top: var(--s5); }
}

/* ----------------------------------------------------------------- pricing */

.pricing {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--s10) var(--gutter) var(--s9);
}
.pricing .copy { max-width: 38rem; }
.pricing .copy p { margin-top: var(--s4); font-size: 1.1rem; }
.plans {
  list-style: none;
  padding: 0;
  margin: var(--s7) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.plan { padding: var(--s6) var(--s6) var(--s6) 0; display: flex; flex-direction: column; gap: var(--s2); }
.plan + .plan { padding-left: var(--s6); border-left: 1px solid var(--line); }
.plan .price { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan .price b { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--ink); margin-right: var(--s1); }
.plan .tagline { color: var(--ink-soft); }
.plan .choose { margin-top: auto; padding-top: var(--s4); font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.pricing .close { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s7); color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--band);
  color: var(--band-muted);
  padding: var(--s9) var(--gutter) max(var(--s7), env(safe-area-inset-bottom));
}
.foot > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.foot h2 { color: var(--band-ink); }
.foot .platforms { margin-top: var(--s3); }
.get { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.get a, .get span.off {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  min-width: 9rem;
  padding: var(--s2) var(--s5);
  border: 1px solid color-mix(in oklab, var(--band-ink) 22%, transparent);
  border-radius: 8px;
  color: var(--band-ink);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.get a:hover { border-color: var(--band-accent); background: color-mix(in oklab, var(--band-ink) 6%, transparent); }
.get .state { font-weight: 400; font-size: 0.85rem; color: var(--band-muted); }
.get span.off { opacity: 0.7; }
.foot .note { margin-top: var(--s5); font-size: 0.9rem; }
.foot .fine { display: flex; gap: var(--s5); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid color-mix(in oklab, var(--band-ink) 14%, transparent); font-size: 0.9rem; }
.foot a:focus-visible { outline-color: var(--band-accent); }

/* ----------------------------------------------------------------- a hand */

@media (max-width: 760px) {
  .top { gap: var(--s4); }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding-top: var(--s7); padding-bottom: var(--s7); }
  .hero .screen { margin-top: var(--s7); }

  .screen .wide { display: none; }
  .screen .tall {
    display: block;
    width: min(100%, 340px);
    margin: 0 auto;
    border-radius: 28px;
  }

  .feature, .feature.flip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s6);
    padding: var(--s8) var(--gutter);
  }
  .feature.flip .copy { order: 0; }
  .pair { display: block; padding: 0; border: 0; }
  .feature.half { padding: var(--s8) var(--gutter); }

  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: var(--s5) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .get a, .get span.off { flex: 1 1 40%; }
}

/* ------------------------------------------------------------ the documents */

body.doc { background: var(--paper); }
.doc .sheet { max-width: 44rem; margin: 0 auto; padding: var(--s7) var(--gutter) var(--s9); }
.doc .mast { padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.doc .leaf h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: var(--s7); }
.doc .dateline { margin-top: var(--s3); color: var(--muted); font-size: 0.95rem; }
.doc .lede { margin-top: var(--s5); font-size: 1.2rem; }
.doc .leaf h2 { font-size: 1.5rem; margin-top: var(--s7); }
.doc .leaf p { margin-top: var(--s4); max-width: 68ch; }
.doc .rates { margin-top: var(--s4); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc .rates th, .doc .rates td { text-align: left; padding: var(--s2) var(--s6) var(--s2) 0; border-bottom: 1px solid var(--line); }
.doc .foot { background: none; color: var(--muted); padding: var(--s7) 0 0; }
.doc .foot .fine { border-top: 1px solid var(--line); }
