/* OneRead.News home. Paper, pen and real screenshots.
   Two faces only: Shantell Sans for everything set, Nanum Pen Script for notes
   written over the page. Both hand-drawn; nothing italic. Self-hosted. */

@font-face { font-family: 'Shantell'; src: url('fonts/shantell-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; 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: 'Shantell'; src: url('fonts/shantell-latinext.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pen'; src: url('fonts/nanum-pen-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --paper: #F6F1E7;
  --paper-deep: #EAE2D2;
  --card: #FFFCF6;
  --navy: #0B2A4F;
  --ink: #26282D;
  --muted: #5F5A50;
  --crimson: #A3262F;
  --graphite: #77705F;
  --rule: rgba(11, 42, 79, 0.14);
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  /* Real paper: a seamless 640px tile (home/paper-source.html renders it). */
  background-image: url('img/paper.webp');
  background-size: 640px 640px;
  color: var(--ink);
  font-family: 'Shantell', ui-rounded, system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--navy); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.pen { font-family: 'Pen', 'Shantell', cursive; font-weight: 400; line-height: 1.05; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
svg.ink { display: block; width: 100%; height: auto; overflow: visible; }
svg.ink text { font-family: 'Pen', cursive; }

/* Header */
.top { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-get { border: 2px solid var(--navy); border-radius: 999px; padding: 6px 16px; font-weight: 700; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(12px, 3vw, 36px) var(--gutter) 40px; }
.hero-head { text-align: center; }
.hero-head .kicker { transform-origin: center; }
.kicker { color: var(--crimson); font-size: clamp(26px, 2.6vw, 32px); transform: rotate(-1.5deg); transform-origin: left; display: inline-block; }
h1 { font-size: clamp(44px, 7vw, 92px); margin-top: 10px; }
.hero-head .sub { color: var(--navy); font-weight: 700; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.25; margin: 12px auto 0; max-width: 28em; }
.hero-head .sub em { font-style: normal; color: var(--crimson); }
.hero > *, .steps > * { min-width: 0; }
.free { color: var(--crimson); font-size: 34px; margin-top: 18px; display: inline-block; position: relative; }
.free svg { position: absolute; inset: -14px -22px; width: calc(100% + 44px); height: calc(100% + 28px); pointer-events: none; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.store { display: inline-block; border-radius: 10px; transition: transform .15s ease; }
.store img { height: 50px; width: auto; }
.store:hover { transform: translateY(-2px); }
.hero-fig { margin: 34px auto 0; max-width: 640px; width: 100%; }
.hero > svg.ink { margin-top: 6px; }
.points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.points li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.points svg.ink { width: 54px; height: 54px; }
.points span { color: var(--navy); font-size: clamp(23px, 2vw, 27px); line-height: 1.12; max-width: 12em; }
.hero-act { display: flex; flex-direction: column; align-items: center; margin-top: 28px; }
.hero-act .stores { justify-content: center; margin-top: 16px; }

section { scroll-margin-top: 20px; }
.not, .how, .free-block, .faq, .get { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 18em; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
.step svg.ink { max-width: 290px; margin: 0 auto 6px; }
.step h3 { font-size: 24px; }
.step p { margin-top: 6px; color: var(--muted); }


/* Free */
.free-block p { max-width: 36em; margin-top: 16px; font-size: 19px; }
.mission { color: var(--navy); font-size: clamp(30px, 3.4vw, 40px) !important; margin-top: 30px !important; transform: rotate(-1deg); }
.mission span { display: block; color: var(--crimson); font-size: 28px; margin-top: 8px; padding-left: 40%; }

/* FAQ */
.faq details { border-bottom: 1.5px dashed var(--rule); padding: 16px 0; max-width: 46em; }
.faq details:first-of-type { margin-top: 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 20px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--crimson); font-weight: 800; font-size: 24px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* The last ask */
.get { text-align: center; padding-bottom: 72px; }
.get h2 { margin: 0 auto; }
.get svg.ink { width: 140px; margin: 0 auto 10px; }
.get .stores { justify-content: center; }

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 120px; border-top: 1.5px solid var(--rule); display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--navy); text-decoration: underline; }
.small { font-size: 13px; color: var(--muted); }

/* Sticky store bar: phones only, once the hero is out of view. */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky { display: flex; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: rgba(251,248,242,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 12px 34px -14px rgba(11,42,79,.45); transform: translateY(140%); transition: transform .3s ease; }
  .sticky.on { transform: none; }
  .sticky-text { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.2; }
  .sticky .store img { height: 40px; }
  .sticky [data-store].other { display: none; }
}

/* Layout below desktop */
@media (max-width: 960px) {
  .hero-fig { max-width: 460px; }
  .hero > svg.ink { display: none; }
  .points { grid-template-columns: repeat(2, 1fr); row-gap: 26px; margin-top: 26px; }
  }
@media (max-width: 760px) {
  .top-nav a:not(.top-get) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps { max-width: 320px; }
  .step svg.ink { max-width: 260px; }
  .mission span { padding-left: 20%; }
}
@media (max-width: 420px) {
  .store img { height: 44px; }
      }
@media (prefers-reduced-motion: reduce) {
  .store, }

/* Motion. Only under .anim, which home.js sets and reduced motion withholds,
   so with no script or with motion turned off everything is simply there. */
html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .hero-fig { opacity: 0; transform: translateY(26px) rotate(1deg); animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slide { to { opacity: 1; transform: none; } }
html.anim svg.ink image { opacity: 0; transition: opacity .6s ease; }
html.anim svg.ink.drawn image { opacity: 1; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); max-width: 680px; } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; max-width: 320px; } }


/* We are not: each line struck through in pen, one after another. */
.not-title { font-size: clamp(30px, 3.6vw, 44px); }
.not-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; }
.not-list li { font-weight: 700; font-size: clamp(21px, 3.4vw, 42px); line-height: 1.3; color: #4A4740; }
.not-list .s { background-repeat: no-repeat; background-position: 0 60%; background-size: 100% 0.5em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }
.s1 { background-image: url('img/strike-1.svg'); }
.s2 { background-image: url('img/strike-2.svg'); }
.s3 { background-image: url('img/strike-3.svg'); }
.s4 { background-image: url('img/strike-4.svg'); }
.s5 { background-image: url('img/strike-5.svg'); }
.not-answer { color: var(--navy); font-size: clamp(34px, 4vw, 50px); margin-top: 26px; transform: rotate(-1.2deg); transform-origin: left; }
html.anim .not.reveal { opacity: 1; transform: none; }
html.anim .not-list .s { background-size: 0% 0.5em; transition: background-size .55s cubic-bezier(.5,.1,.3,1); }
html.anim .not.in .not-list .s { background-size: 100% 0.5em; }
html.anim .not.in .not-list li:nth-child(1) .s { transition-delay: .2s; }
html.anim .not.in .not-list li:nth-child(2) .s { transition-delay: .55s; }
html.anim .not.in .not-list li:nth-child(3) .s { transition-delay: .9s; }
html.anim .not.in .not-list li:nth-child(4) .s { transition-delay: 1.25s; }
html.anim .not.in .not-list li:nth-child(5) .s { transition-delay: 1.6s; }
html.anim .not-answer { opacity: 0; transition: opacity .7s ease 2.1s; }
html.anim .not.in .not-answer { opacity: 1; }

.not-answer span { display: block; font-size: 0.72em; color: var(--crimson); margin-top: 10px; }

html.anim .points li { opacity: 0; transform: translateY(10px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
html.anim .points li:nth-child(1) { animation-delay: .9s; }
html.anim .points li:nth-child(2) { animation-delay: 1.02s; }
html.anim .points li:nth-child(3) { animation-delay: 1.14s; }
html.anim .points li:nth-child(4) { animation-delay: 1.26s; }
html.anim .hero-act { opacity: 0; animation: rise .7s 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
html.anim .hero-head > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
html.anim .hero-head > *:nth-child(2) { animation-delay: .1s; }

/* The roundup: the rest of the day. */
.more { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.more-text h3 { font-size: clamp(26px, 3vw, 36px); }
.more-text p { margin-top: 10px; color: var(--muted); font-size: 19px; max-width: 26em; }
@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; text-align: left; row-gap: 14px; }
  .points li { flex-direction: row; align-items: center; gap: 14px; }
  .points svg.ink { width: 44px; height: 44px; flex: 0 0 44px; }
  .more { grid-template-columns: 1fr; }
  .more svg.ink { max-width: 300px; margin: 0 auto; }
}

/* The next brief, counted down in pen. */
.next { color: var(--graphite); font-size: 26px; margin-top: 12px; min-height: 1.1em; }
.next b { color: var(--crimson); font-weight: 400; }
/* A London skyline, drawn in pen over the last ask. */
.get svg.skyline { width: 100%; max-width: 900px; margin: 0 auto 6px; }
.mission span a { color: inherit; text-decoration: none; }
.editor-line { margin-top: 14px; font-size: 26px; }
.editor-line a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(163, 38, 47, .5); text-underline-offset: 5px; }
