/* blot.today — a riso print shop: paper ground, flat inks that overprint (multiply), a
   little grain and misregistration, DM Mono stamps. Colours match Palette.swift; change
   them there and redraw (README.md), then update these. The page is paper in dark mode
   too, like a printed sheet (and like the app's canvas). */

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/DMMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F4EFE6;
  --federal: #3D5588;
  --periwinkle: #8E9BDB;
  --teal: #00838A;
  --mint: #82D8D5;
  --sunflower: #FFB511;
  --pumpkin: #FF6F4C;
  --pink: #FF48B0;

  --chrome: #E6DFD2;
  --surface: #FBF9F4;
  --text: #2B2B2B;
  --text-2: #5E5B66;
  --hairline: rgb(61 85 136 / 0.18);
  --forever-soft: #FFF1CC;

  --ui: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 20px;
  --max: 1160px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0.5 -0.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; } /* decorative blots may spill off the edge */

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain over everything, printed-in. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
  z-index: 50;
}

a { color: var(--federal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--federal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.02em; font-weight: 900; color: var(--federal); }
h1 { font-size: clamp(52px, 7.4vw, 96px); }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 30em; }

/* Misregistration: a fluo pink pass printed slightly off. */
.misprint { text-shadow: 0.035em 0.03em 0 rgb(255 72 176 / 0.75); }

/* Wordmark */
.wordmark { display: block; width: 100%; height: auto; overflow: visible; }
.wordmark .letters { fill: var(--federal); }
.o-paper { display: none; }

.site-header { padding: 22px 0 0; position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .home { display: block; width: 104px; }
.site-header nav, .site-footer nav { display: flex; gap: 22px; font-weight: 800; font-size: 15px; }
.site-header nav a, .site-footer nav a { text-decoration: none; }

/* Stamps */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--federal);
  border: 1.5px solid currentColor;
  border-radius: 6px;
  padding: 6px 10px;
  text-transform: uppercase;
}
.stamp[data-stamp], .stamp[data-same-stamp] { text-transform: none; }
.stamp-paper { color: var(--paper); }
.stamp-sm {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--federal);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--federal);
  color: var(--paper);
  font-weight: 800;
  font-size: 17px;
  box-shadow: 4px 4px 0 var(--sunflower);
}
.button-paper { background: var(--paper); color: var(--federal); box-shadow: 4px 4px 0 var(--sunflower); }

section { padding: 72px 0; position: relative; }

/* Hero */
.hero { padding: 40px 0 80px; }
/* Phones: stamp, headline, the devices, then the words. Wide screens: two columns. */
.hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-text { display: contents; }
.hero .stamp { order: 1; }
.hero h1 { order: 2; position: relative; z-index: 2; }
.hero-art { order: 3; margin: 12px 0 28px; }
.hero .lede { order: 4; }
.hero .button { order: 5; }
@media (min-width: 960px) {
  .hero .wrap { display: grid; grid-template-columns: 6fr 7fr; gap: 32px; align-items: center; }
  .hero-text { display: grid; gap: 22px; justify-items: start; position: relative; z-index: 2; }
  .hero-art { margin: 0; }
}

.hero-art { position: relative; aspect-ratio: 1.18; width: 100%; }
.hero-art .block-teal {
  position: absolute;
  left: 8%; top: 4%; width: 84%; height: 78%;
  background: var(--teal);
  border-radius: 28px;
  mix-blend-mode: multiply;
}
.hero-art .block-blot {
  position: absolute;
  left: -16%; bottom: -24%; width: 50%;
  fill: var(--sunflower);
  mix-blend-mode: multiply;
  transform: rotate(-12deg);
}

/* Devices, drawn simply; the screens show the app's drawing screen. */
.device {
  position: absolute;
  background: #1C1E24;
  box-shadow: 0 30px 60px -30px rgb(21 23 31 / 0.55), inset 0 0 0 1.5px #3A3D46;
}
.device .screen { position: absolute; overflow: hidden; background: var(--chrome); }
/* Tilted into a V: each device's outer edge slopes inward towards the bottom. */
.ipad { left: 2%; top: 10%; width: 72%; aspect-ratio: 1.43; border-radius: 5.2% / 7.4%; transform: rotate(-9deg); }
.ipad .screen { inset: 2.6% 1.9%; border-radius: 3.4% / 4.9%; }
.iphone { right: 5%; top: 24%; width: 26%; aspect-ratio: 0.47; border-radius: 17% / 8%; transform: rotate(10deg); }
.iphone .screen { inset: 3.4%; border-radius: 14% / 6.6%; }
.island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 32%; height: 3.4%; background: #111; border-radius: 99px; z-index: 2; }

.pencil { position: absolute; left: 30%; bottom: 0; width: 44%; transform: rotate(-20deg); filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.18)); }

/* The app, in miniature: top bar, paper canvas, tools. */
.app { display: grid; }
.app .dot { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: rgb(61 85 136 / 0.1); }
.app-stamp {
  font-family: var(--mono);
  color: var(--federal);
  border: 1px solid var(--federal);
  border-radius: 3px;
  white-space: nowrap;
  justify-self: center;
  letter-spacing: 0.06em;
}
.app-canvas { position: relative; background: var(--paper); aspect-ratio: 1; overflow: hidden; }
.app-canvas svg, .app-canvas img { display: block; width: 100%; height: 100%; }
.app-puck { border-radius: 50%; background: #E4EEEA; border: 1.5px dashed rgb(0 131 138 / 0.6); aspect-ratio: 1; }
.app-pill { background: var(--surface); border-radius: 99px; display: flex; justify-content: space-around; align-items: center; }
.app-pill i, .app-rail i { display: block; border-radius: 50%; background: rgb(61 85 136 / 0.35); aspect-ratio: 1; }

.landscape { grid-template-columns: 1fr; }
.landscape .app-top { position: absolute; top: 3%; left: 3%; right: 3%; display: grid; grid-template-columns: 5% 1fr 5%; align-items: center; }
.landscape .app-stamp { font-size: clamp(5px, 0.8vw, 10px); padding: 0.3em 0.7em; }
.landscape .app-canvas { position: absolute; top: 13%; bottom: 3%; left: 50%; transform: translateX(-50%); height: 84%; box-shadow: 0 4px 14px -8px rgb(0 0 0 / 0.3); }
.landscape .app-rail { position: absolute; right: 3%; top: 30%; width: 6%; padding: 0.7vw 0; background: var(--surface); border-radius: 99px; display: grid; gap: 0.5vw; justify-items: center; }
.landscape .app-rail i { width: 55%; }
.landscape .app-puck { position: absolute; left: 3%; bottom: 6%; width: 8%; }

.portrait .app-top { position: absolute; top: 8%; left: 6%; right: 6%; display: grid; grid-template-columns: 13% 1fr 13%; align-items: center; }
.portrait .app-stamp { font-size: clamp(4px, 0.55vw, 7px); padding: 0.3em 0.6em; }
.portrait .app-canvas { position: absolute; left: 0; right: 0; top: 24%; }
.portrait .app-bottom { position: absolute; bottom: 7%; left: 8%; right: 8%; display: grid; grid-template-columns: 22% 1fr; gap: 8%; align-items: center; }
.portrait .app-pill { height: 70%; padding: 0 8%; aspect-ratio: auto; min-height: 18px; }
.portrait .app-pill i { width: 18%; }

.placeholder-tag {
  position: absolute;
  left: 50%; bottom: 6%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: clamp(7px, 0.8vw, 11px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgb(251 249 244 / 0.85);
  border: 1px dashed rgb(94 91 102 / 0.5);
  border-radius: 4px;
  padding: 0.3em 0.7em;
  white-space: nowrap;
}

/* Colour bands */
.band { overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; z-index: -1; }
.band-sunflower::before { background: var(--sunflower); opacity: 0.85; }
.band-teal::before { background: var(--teal); }
.band-teal, .band-teal h2 { color: var(--paper); }
.band-teal p { color: rgb(244 239 230 / 0.88); }
main { isolation: isolate; }

.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 34em; justify-items: start; }
.section-head p { color: var(--text-2); }
.band-sunflower .section-head { max-width: 920px; }

/* Drawing tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tile { margin: 0; display: grid; gap: 10px; }
.tile > svg, .tile > img, .tile-art { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; }
.tile { position: relative; }
.tile > svg, .tile > img { box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 16px 30px -22px rgb(21 23 31 / 0.5); }
.iphone .placeholder-tag { font-size: clamp(4px, 0.5vw, 7px); }
.tile .placeholder-tag { bottom: calc(6% + 30px); }
.tile figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--federal); }
.tile-bare figcaption { text-transform: uppercase; }
.band-sunflower .tile figcaption { color: var(--text); }

/* Steps */
.steps { display: grid; gap: 36px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--text-2); }
.big-num {
  font-family: var(--mono);
  font-size: 64px;
  line-height: 1;
  color: var(--pumpkin);
  mix-blend-mode: multiply;
  text-shadow: 3px 2px 0 rgb(0 131 138 / 0.5);
}

/* Calendar run */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 4fr 6fr; gap: 56px; } .split .section-head { margin: 0; } }
.week { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 600px) { .week { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.week .tile figcaption { font-size: 11.5px; }

/* Your turn */
.your-turn .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .your-turn .wrap { grid-template-columns: 1fr 1fr; gap: 64px; } }
.turn-text { display: grid; gap: 20px; justify-items: start; }
/* Phones: the button comes after the blot. */
@media (max-width: 859px) {
  .your-turn .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .turn-text { display: contents; }
  .turn-card { order: 1; margin: 8px 0; }
  .your-turn .button { order: 2; }
}

/* App Store call to action */
.get { text-align: center; padding: 24px 0 48px; }
.get .wrap { display: grid; gap: 18px; justify-items: center; }
.get-icon { width: 104px; height: 104px; border-radius: 23px; box-shadow: 0 16px 30px -18px rgb(21 23 31 / 0.5); }
.get h2 { font-size: clamp(30px, 4vw, 44px); }
.get p { color: var(--text-2); }
.turn-card { background: var(--paper); border-radius: 22px; padding: 14px; box-shadow: 8px 8px 0 var(--federal); max-width: 520px; width: 100%; justify-self: center; }
.blot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  touch-action: pan-y; /* swipe up and down to scroll; drag sideways or around to turn */
  cursor: grab;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.blot.is-ready { opacity: 1; }
.blot.is-turning { cursor: grabbing; }
.blot-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px 2px; color: var(--text-2); font-size: 15px; }
.readout { font-family: var(--mono); font-size: 13px; color: var(--federal); }
@media (prefers-reduced-motion: reduce) { .blot { transition: none; } }

/* Blot Forever, with a fluo pink blot at its bottom-right corner: behind the card on
   phones, overprinting it on wide screens. */
.forever-wrap { position: relative; }
.deco-blot {
  position: absolute;
  right: -8%; bottom: -12%;
  width: min(40vw, 360px);
  fill: var(--pink);
  opacity: 0.85;
  transform: rotate(24deg);
  pointer-events: none;
  overflow: visible;
}
@media (min-width: 860px) {
  .deco-blot { right: -4%; bottom: -34%; width: 300px; z-index: 2; mix-blend-mode: multiply; opacity: 0.8; }
}
.forever { position: relative; }
.forever {
  background: var(--forever-soft);
  border-radius: 28px;
  padding: 36px 26px;
  display: grid;
  gap: 28px;
  box-shadow: 8px 8px 0 var(--sunflower);
}
@media (min-width: 860px) { .forever { padding: 56px; grid-template-columns: 5fr 7fr; gap: 56px; } }
.forever-head { display: grid; gap: 14px; align-content: start; justify-items: start; }
.forever-head .stamp-sm { color: #7A5A00; }
.forever ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.forever li strong { display: block; font-weight: 800; }
.forever li span { color: var(--text-2); }

.promise { text-align: center; padding-top: 24px; }
.promise .wrap { display: grid; gap: 16px; justify-items: center; }
.promise p { color: var(--text-2); max-width: 30em; }

/* Text pages (privacy, support) */
.page { padding: 40px 0 72px; }
.page .wrap { max-width: 780px; display: grid; gap: 26px; }
.page h1 { font-size: clamp(44px, 7vw, 72px); }
.page h2 { font-size: 24px; margin-top: 14px; }
.page p, .page li { color: var(--text-2); }
.page strong { color: var(--text); }
.page ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.card { background: var(--surface); border-radius: 20px; padding: 24px; display: grid; gap: 10px; box-shadow: 6px 6px 0 var(--mint); }
.page .card h2 { margin-top: 0; }
.qa { display: grid; gap: 12px; }
details { background: var(--surface); border-radius: 16px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 800; color: var(--federal); }
details p, details ul { margin-top: 10px; }
.contact { gap: 10px; }
.email { font-weight: 800; font-size: 19px; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1.5px solid var(--hairline); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .mark { width: 72px; display: block; }
.site-footer small { color: var(--text-2); font-size: 13px; width: 100%; }
