/* Snorfle landing page. Plain CSS, no framework. */

/* Self-hosted fonts (latin subset), so visitors make no requests to Google */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/BricolageGrotesque-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: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/DMSans-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; }
:root {
  --ink: #111;
  --paper: #fff;
  --blue: #2767d9;
  --blue-tint: #d5e8fc;
  --orange-tint: #fde3cf;
  --yellow-tint: #fdf6d4;
  --purple-tint: #f0d3f7;
  --green-tint: #e0f3e0;
  --muted-on-dark: #ececec;
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", -apple-system, system-ui, sans-serif;
  --radius-card: 28px;
  --gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.5; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; }
h1, h2 { font-weight: 800; line-height: 0.95; }
h2 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 12px; }
h3 { font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lede { font-size: 21px; max-width: 620px; margin-bottom: 44px; }
.pill {
  display: inline-block; align-self: flex-start; border: 2.5px solid currentColor;
  border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 700 17px var(--font-body); text-decoration: none; transition: transform .15s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--small { min-height: 46px; padding: 0 22px; font-size: 16px; }
.btn--white { background: var(--paper); color: var(--ink); min-height: 60px; padding: 0 36px; font-size: 19px; }

/* Halftone dot textures (SVG tiles) */
.dots-lg { background: url("../images/dots-lg.svg") 0 0 / 14px 14px; }
.dots-white { background: url("../images/dots-sm-white.svg") 0 0 / 14px 14px; }

/* Halftone dividers: SVG images with <pattern> bands, dots grow from tiny to big */
.divider { display: block; width: 100%; height: 112px; background-size: 100% 100%; background-repeat: no-repeat; }
.divider--white-yellow { background-image: url("../images/halftone-white-to-yellow.svg"); }
.divider--yellow-black { background-image: url("../images/halftone-yellow-to-black.svg"); }
.divider--black-blue { background-image: url("../images/halftone-black-to-blue.svg"); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font: 800 30px var(--font-display); letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 12px 4px; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

/* Hero (black and white) */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 24px; padding-top: 32px; padding-bottom: 40px; }
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero h1 { font-size: clamp(52px, 9vw, 112px); line-height: .92; }
.hero__copy p { font-size: 21px; max-width: 520px; }
.hero__copy .avail { font-size: 16px; font-weight: 500; }
.hero__art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.mascot-stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; }
.mascot-stage .halftone-disc { position: absolute; inset: 6%; border-radius: 50%; }
.mascot-stage .white-disc { position: absolute; inset: 18%; border-radius: 50%; background: var(--paper); }
.mascot-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Menu (colour) */
.menu { background: var(--yellow-tint); padding: 56px 0 88px; }
.menu__head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-bottom: 48px; }
.menu__head img { width: 260px; height: 260px; object-fit: contain; flex: none; }
.menu__head div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.menu__head p { font-size: 21px; max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); }
.card { border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.snack { min-height: 260px; }
.snack--web { background: var(--blue-tint); }
.snack--rss { background: var(--orange-tint); }
.snack--md { background: var(--purple-tint); }
.snack h3 { font-size: 30px; }
.snack p { font-size: 17px; }
.icon-disc { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; }

/* E-ink (black) */
.eink { background: var(--ink); color: var(--paper); padding: 48px 0 96px; }
.eink .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.eink__device { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.reader { width: 100%; max-width: 380px; background: #2a2a2a; border: 3px solid var(--paper); border-radius: 34px; padding: 22px 22px 34px; }
.reader__screen { background: #d9d9d4; color: var(--ink); border-radius: 10px; padding: 26px 24px 20px; min-height: 470px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.reader__bar { display: flex; justify-content: space-between; font: 700 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.reader hr { width: 100%; height: 2px; border: 0; background: var(--ink); margin: 0; }
.reader__title { font: 800 25px/1.05 var(--font-display); letter-spacing: -0.02em; }
.reader__lines { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.reader__lines span { display: block; height: 7px; border-radius: 4px; background: #555; }
.reader__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; font: 700 12px var(--font-body); }
.reader__foot img { width: 92px; height: 92px; object-fit: contain; filter: grayscale(1) contrast(1.1); }
.eink__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eink__copy .lede { color: #e8e8e8; max-width: 560px; margin: 0; }
.eink__list { display: flex; flex-direction: column; gap: 14px; font-size: 19px; }
.eink__list li { display: flex; gap: 14px; align-items: center; }
.eink__list li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--paper); background: url("../images/dots-sm-white.svg") 0 0 / 14px 14px; }

/* How it works (colour) */
.how { background: var(--blue-tint); padding: 56px 0 96px; }
.how .lede { margin-bottom: 48px; }
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font: 800 26px var(--font-display); }
.step h3 { font-size: 32px; }
.step p { font-size: 18px; }
.phone { margin-top: auto; align-self: flex-start; max-width: 100%; border: 4px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--paper); }
.phone img { width: 100%; max-width: 300px; }

/* Pricing / on-device (colour) */
.promise { background: var(--green-tint); padding: 80px 0; }
.promise .lede { max-width: 640px; }
.promise .cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.promise .card { background: var(--paper); border: 3px solid var(--ink); padding: 36px; gap: 16px; }
.promise h3 { font-size: 36px; font-weight: 800; line-height: 1; }
.promise p { font-size: 18px; }
.icon-disc--dark { width: 64px; height: 64px; background: var(--ink); }

/* Features (black and white) */
.features { padding: 88px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3px; background: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius-card); overflow: hidden; }
.feature-grid > div { background: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.feature-grid h3, .readers h3 { font-size: 28px; }
.feature-grid p, .readers p { font-size: 17px; }
.readers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.readers .card { background: var(--ink); color: var(--paper); padding: 32px; gap: 10px; }
.readers p { color: var(--muted-on-dark); }

/* Closing call to action (colour) */
.cta { background: var(--blue); color: var(--paper); padding: 72px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.cta__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta h2 { font-size: clamp(48px, 8vw, 100px); line-height: .92; margin: 0; }
.cta p { font-size: 22px; font-weight: 500; max-width: 520px; line-height: 1.45; }
.cta .avail { font-size: 18px; }
.cta__art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.cta__disc { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cta__disc::before { content: ""; position: absolute; inset: 0; opacity: .18; background: url("../images/dots-cta.svg") 0 0 / 14px 14px; }
.cta__disc img { position: relative; width: 88%; height: 88%; object-fit: contain; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer strong { font: 800 28px var(--font-display); letter-spacing: -0.02em; }
.site-footer span { font-size: 15px; color: #d8d8d8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Footer links */
.site-footer a { color: inherit; }

/* Privacy page */
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(44px, 7vw, 80px); line-height: .95; margin-bottom: 16px; }
.prose h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.05; margin: 48px 0 12px; }
.prose p, .prose li { font-size: 18px; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.prose .updated { font-weight: 500; color: #444; }
.prose .tldr { border: 3px solid var(--ink); border-radius: var(--radius-card); padding: 24px 28px; margin: 28px 0 8px; background: var(--yellow-tint); }
.prose .tldr p { margin: 0; font-size: 20px; font-weight: 500; }
