/* Twinread: stylesheet for every page of the site. An exercise book on its navy cover: a white sheet with a red margin line, faint blue rules, the original in ink and the translation between the lines in a second ink (a red-brown italic), kept phrases struck with a ragged yellow highlighter. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/Newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("/fonts/Newsreader-italic-latin.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --table: #1a2233;
  --desk-ink: #eef2f9;
  --desk-muted: #b7c2d8;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f1f5fb;
  --ink: #1a2233;
  --muted: #4a556d;
  --trans: #9a3b2e;
  --line: #cdd6e4;
  --rule: #d8e2f0;
  --margin: #e7b9b0;
  --accent: #4e6a12;
  --accent-hover: #3b5010;
  --accent-ink: #ffffff;
  --accent-soft: #eef3de;
  --cta: #9a3b2e;
  --cta-hover: #7e2f24;
  --cta-ink: #ffffff;
  --link: #8a3226;
  --mark: #fce68a;
  --mark-ink: #1a2233;
  --mark-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 5L7 2.5 28 3.5 52 1.5 78 3 96 2 98.5 6 95.5 9.5 99 13 96.5 18 72 16.5 46 18.5 22 17 5 18.5 1.5 14 4 10.5 0 7z' fill='%23fce68a'/%3E%3C/svg%3E");
  --twin: #9a3b2e;
  --twin-soft: #fce68a;
  --radius: 3px;
  --radius-sm: 2px;
  --font: "Newsreader", Georgia, "Times New Roman", serif;
  --serif: var(--font);
  --step: 34px;
  --shadow: 0 1px 2px rgba(10, 14, 22, 0.25), 0 18px 48px rgba(10, 14, 22, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --table: #0a0d13;
    --bg: #141925;
    --surface: #141925;
    --soft: #1b2230;
    --ink: #e8ecf4;
    --muted: #a9b4cc;
    --trans: #e8a595;
    --line: #2f3a52;
    --rule: #232d42;
    --margin: #5a3a3a;
    --accent: #a9c46a;
    --accent-hover: #c2d98a;
    --accent-ink: #141925;
    --accent-soft: #232b17;
    --cta: #e8a595;
    --cta-hover: #f2b8a8;
    --cta-ink: #141925;
    --link: #f0b3a3;
    --mark: #6a5d1e;
    --mark-ink: #fff4c7;
    --mark-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 5L7 2.5 28 3.5 52 1.5 78 3 96 2 98.5 6 95.5 9.5 99 13 96.5 18 72 16.5 46 18.5 22 17 5 18.5 1.5 14 4 10.5 0 7z' fill='%236a5d1e'/%3E%3C/svg%3E");
    --twin: #e8a595;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 48px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; font-family: var(--font); font-size: 20px; line-height: 1.6; color: var(--ink); background: var(--table); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 12px; color: var(--cta-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font); font-weight: 500; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
mark { background: var(--mark-img) 0 60% / 100% 94% no-repeat; color: var(--mark-ink); padding: 0.05em 0.3em; margin: 0 -0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (forced-colors: active) { mark { background: Mark; color: MarkText; } }

/* the nameplate: centred, between two rules */
.site-header { background: var(--table); }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #f2b8a8; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-top: 22px; padding-bottom: 18px; max-width: 900px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--desk-ink); text-decoration: none; font-weight: 500; font-size: 1.7rem; letter-spacing: -0.015em; }
.brand:hover { color: var(--desk-ink); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.nav a { color: var(--desk-ink); text-decoration: none; font-size: 1.05rem; padding: 4px 0; }
.nav a:hover { color: var(--desk-ink); text-decoration: underline; text-decoration-color: #e8a595; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 11px 22px; border-radius: var(--radius-sm); border: 1px solid var(--cta); background: var(--cta); color: var(--cta-ink); font: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }

/* the page itself */
#main { max-width: 900px; margin: 8px auto 40px; background: var(--bg) linear-gradient(90deg, transparent 71px, var(--margin) 71px 73px, transparent 73px); box-shadow: var(--shadow); padding-left: 104px; padding-right: 56px; }

/* hero: a title page */
.hero { padding: 64px 0 40px; text-align: left; }
.hero .wrap { padding: 0; max-width: none; }
.hero h1 { max-width: 13em; margin: 0 0 22px; }
.hero .lede { font-size: 1.28rem; line-height: 1.5; color: var(--muted); max-width: 33rem; margin: 0 0 36px; }
.spread { text-align: left; max-width: 36rem; margin: 0 0 40px; padding: 17px 0; border-top: 2px solid var(--ink); line-height: var(--step); background: linear-gradient(to bottom, transparent calc(var(--step) - 1px), var(--rule) 0) 0 17px / 100% var(--step); }
.spread .o { font-size: 1.34rem; line-height: var(--step); margin: 0; }
.spread .t { font-size: 1.2rem; line-height: var(--step); font-style: italic; color: var(--trans); margin: 0; animation: dry 0.18s ease-out 0.5s backwards; }
.spread .o + .t + .o + .t { animation-delay: 1.1s; }
.spread mark { animation: stroke 0.5s ease-out 0.2s backwards; }
@keyframes dry { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: blur(0); } }
@keyframes stroke { from { background-size: 0 94%; } to { background-size: 100% 94%; } }
@media (prefers-reduced-motion: reduce) { .spread .t, .spread mark { animation: none; } }
.hero .cta-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px 22px; align-items: center; }
.hero .cta-note { margin-top: 20px; font-size: 1rem; color: var(--muted); font-style: italic; }

/* chapters */
main > section { padding: 56px 0 8px; border: 0; }
main > section:last-child { padding-bottom: 64px; }
main > section > .wrap { max-width: none; padding: 0; }
.rule { display: block; height: 6px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 30px; }
.rule + h2, .feature h2 { margin-top: 0; }
main > section h2 { text-align: left; }
.sub { color: var(--muted); font-size: 1.15rem; font-style: italic; max-width: 34rem; margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 36rem; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: "\2013"; position: absolute; left: 0; top: 0; color: var(--trans); }
.ticks + .store-note { margin: 14px 0 0; font-size: .95rem; font-style: italic; color: var(--muted); }
.feature { display: block; }
.plate { margin: 30px 0 6px; max-width: 28rem; background: var(--surface); border: 1px solid var(--line); padding: 8px; box-shadow: 0 6px 20px rgba(26, 34, 51, 0.10); }
.plate figcaption { padding: 10px 6px 4px; font-size: 0.95rem; font-style: italic; color: var(--trans); text-align: left; }
.plate.wide { max-width: 100%; }
.looks-title { text-align: left; font-size: 1.15rem; font-style: italic; font-weight: 400; margin: 36px 0 14px; color: var(--muted); }
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.look { padding: 16px 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
.look b { display: block; font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.look .t { display: block; margin-top: 4px; font-style: italic; color: var(--trans); }
.look.subtle .t { color: var(--trans); }
.look.underline .t { text-decoration: underline; text-decoration-color: var(--trans); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.look.highlight .t { background: color-mix(in srgb, var(--trans) 12%, transparent); padding: 0 0.2em; border-radius: 2px; }
.look.dim .o { color: var(--muted); }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 6px; box-shadow: var(--shadow); }

/* pricing */
.price-table { width: 100%; max-width: 860px; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.price-table th:first-child, .price-table td:first-child { padding-left: 0; width: 42%; }
.price-table thead th { font-size: 0.95rem; color: var(--muted); font-weight: 650; }
.price-table tbody th { font-weight: 500; }
.price-table .yes { color: var(--accent); font-weight: 600; }
.price-table .no { color: var(--muted); }
.price-table tfoot th, .price-table tfoot td { border-bottom: 0; padding-top: 22px; }
.price { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: 0 0 4px; font-variant-numeric: lining-nums; }
.price small { font-family: var(--font); font-size: 0.9rem; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.price-table .btn { display: flex; width: 100%; max-width: 240px; margin: 0 0 8px; }
.table-note { color: var(--muted); max-width: 46rem; margin-top: 20px; }

/* faq */
.faq { max-width: 46rem; margin: 24px 0 0; }
.faq dt { font-weight: 650; font-size: 1.1rem; margin-top: 24px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); }
.faq dd + dd { margin-top: 8px; }

/* privacy policy and other text pages */
main.doc { max-width: 760px; margin: 0 auto; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 16px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.doc a { overflow-wrap: anywhere; }

/* guides: long-form pages that share the .doc layout */
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.doc .lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.doc .cta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 8px; }
.doc .cta-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.doc .btn { text-decoration: none; }
.doc figure.shot { margin: 24px 0; }
.doc figure.shot.tall { max-width: 300px; }
.doc figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
.doc blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 4px solid var(--twin); color: var(--ink); }
.doc blockquote p { margin: 0 0 8px; }
.doc blockquote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.doc .source { color: var(--muted); font-size: 0.9rem; }
.doc .box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 36px 0 0; }
.doc .box h2 { margin: 0 0 8px; font-size: 1.4rem; }
.doc .box p:last-child { margin-bottom: 0; }
.doc .more { list-style: none; padding: 0; }
.doc .more li { margin: 8px 0; }

.compare { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0 0 20px; font-size: 0.95rem; }
.compare th, .compare td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; overflow-wrap: anywhere; }
.compare thead th { color: var(--muted); font-weight: 650; }
.compare thead th:first-child { width: 22%; }
.compare tbody th { font-weight: 600; width: 22%; padding-left: 0; }
.compare th:first-child { padding-left: 0; }

.doc .guide-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.guide-list li { margin: 0; }
.guide-list a { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--accent); color: var(--ink); }
.guide-list b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.25; color: var(--accent); margin-bottom: 4px; }
.guide-list span { color: var(--muted); }

/* 404 */
.notfound { padding-top: 88px; padding-bottom: 96px; max-width: 720px; margin: 0 auto; }
.notfound h1 { margin-bottom: 12px; }
.notfound p { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }
.notfound .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .nav { gap: 4px 12px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doc .box { padding: 18px 16px; }
  .doc .cta-row .btn { width: 100%; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td, .compare tbody th { padding: 0; border: 0; width: 100%; }
  .compare tbody th { margin-bottom: 4px; }
  .compare td { padding: 2px 0; }
  .compare td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }

  /* the pricing table stacks: one block per feature, then one block per plan */
  .price-table, .price-table tbody, .price-table tfoot, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; max-width: none; }
  .price-table thead { display: none; }
  .price-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td, .price-table th:first-child, .price-table td:first-child { padding: 0; border: 0; width: 100%; }
  .price-table tbody th { font-weight: 600; margin-bottom: 6px; }
  .price-table tbody td { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
  .price-table tbody td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .price-table tfoot tr { padding: 20px 0 0; }
  .price-table tfoot th, .price-table tfoot th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .price-table tfoot td { padding: 0 0 20px; }
  .price-table tfoot td::before { content: attr(data-label); display: block; font-size: 0.85rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
  .price-table tfoot .btn { display: flex; width: 100%; margin: 0 0 8px; }
}

.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; line-height: 1.6; vertical-align: 0.1em; }


/* overrides on the shared table and text rules */
.price-table thead th { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.price-table .yes { color: var(--link); font-weight: 600; }
.price { font-weight: 500; font-size: 2.2rem; }
.price small { font-style: italic; }
.faq dt { font-weight: 600; font-size: 1.15rem; }
.guide-list a { border-radius: var(--radius); }
.guide-list b { font-family: var(--font); font-weight: 500; font-size: 1.35rem; color: var(--link); }
.doc .box { border: 0; border-top: 3px double var(--line); border-bottom: 3px double var(--line); background: transparent; border-radius: 0; }
.doc blockquote { border-left: 3px solid var(--trans); font-style: italic; }
.doc code { font-size: 0.85em; }
.tag { background: var(--mark-img) 0 50% / 100% 100% no-repeat; color: var(--mark-ink); border-radius: 0; padding: 0 10px; font-weight: 600; }
.doc .lede { color: var(--muted); }
main.doc, main.notfound { max-width: 900px; margin: 8px auto 40px; background: var(--bg) linear-gradient(90deg, transparent 71px, var(--margin) 71px 73px, transparent 73px); box-shadow: var(--shadow); padding-left: 104px; padding-right: 56px; }
.doc figure.shot { box-shadow: none; }

.site-footer { padding: 24px 0 0; background: var(--table); color: var(--desk-ink); }
.site-footer .wrap { max-width: 900px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 48px; padding-bottom: 20px; }
.footer-col h2 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; font-style: italic; letter-spacing: 0; margin: 0 0 8px; color: var(--desk-ink); }
.footer-col a { display: block; color: var(--desk-muted); text-decoration: none; padding: 3px 0; font-size: 1rem; }
.footer-col a:hover { color: var(--desk-ink); text-decoration: underline; }
.trademark { border-top: 1px solid rgba(238, 242, 249, 0.2); padding: 18px 0 40px; color: var(--desk-muted); font-size: 0.9rem; font-style: italic; }

@media (max-width: 900px) {
  #main, main.doc, main.notfound { margin: 0 auto; padding-left: 72px; padding-right: 28px; box-shadow: none; background-image: linear-gradient(90deg, transparent 47px, var(--margin) 47px 49px, transparent 49px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  #main, main.doc, main.notfound { padding-left: 44px; padding-right: 16px; background-image: linear-gradient(90deg, transparent 27px, var(--margin) 27px 29px, transparent 29px); }
  .hero { padding: 44px 0 40px; }
  :root { --step: 30px; }
  .spread .o { font-size: 1.15rem; }
  .spread .t { font-size: 1.05rem; }
  .looks { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .btn { width: 100%; }
}

/* store-soon */
.btn.store-soon, .btn.store-soon:hover { background: transparent; color: inherit; border-style: dashed; opacity: .6; cursor: default; filter: none; box-shadow: none; transform: none }
.footer-col .store-soon { display: block; padding: 4px 0; opacity: .6; cursor: default }
.updated { margin: 4px 0 18px; color: var(--muted); font-size: 0.9rem; }

/* changelog: one article per release, version and date on one line */

.offer-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border: 1px dashed currentColor; border-radius: 3px; }
.copy-code { margin-left: 4px; padding: 0; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }
