/* Standish — one stylesheet for standish.app.
   Hand-written. No framework, no build step, no external requests. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/newsreader-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 {
  --paper: #F7F5F1;
  --paper-2: #EFECE5;
  --ink: #1B2130;
  --ink-2: #474B55;
  --muted: #676B74;
  --blue: #1E3FA8;
  --blue-deep: #17328C;
  --night: #14171F;
  --night-2: #202634;
  --night-text: #B4B8C2;
  --sky: #5B86FF;
  --rule: rgba(27, 33, 48, .16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 600 18px/1 var(--sans);
  letter-spacing: .01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }

.head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
}
.head-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 600 16px/1.1 var(--sans);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(30, 63, 168, .22);
}
.button:hover { background: var(--blue-deep); color: #fff; }
.button svg { width: 18px; height: 18px; flex: none; }
.button--small { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 9px; box-shadow: none; }

/* ---------- Type ---------- */

.display {
  font: 500 clamp(40px, 9.6vw, 72px)/1.04 var(--serif);
  letter-spacing: -.018em;
  text-wrap: balance;
}

.title {
  font: 500 clamp(32px, 6.4vw, 48px)/1.1 var(--serif);
  letter-spacing: -.012em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.prose p { color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

.fine { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 8vw, 88px); }

.hero-text { max-width: 760px; }
.hero-text .lede { margin-top: 24px; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-cta .fine { max-width: 28em; }

/* The desk: Mac window, iPad and iPhone as one composition. */
.desk {
  position: relative;
  margin-top: clamp(48px, 8vw, 80px);
  aspect-ratio: 1120 / 610;
}
.desk > * { position: absolute; }
.desk-mac { left: 0; top: 11%; width: 70%; }
.desk-mac img { width: 100%; border-radius: 1.6% / 2.6%; box-shadow: 0 30px 80px -24px rgba(27, 33, 48, .5), 0 4px 16px rgba(27, 33, 48, .14); }
.desk-ipad { left: 56%; top: 0; width: 30%; --bezel: 8px; }
.desk-iphone { right: 0; bottom: 0; width: 16%; --bezel: 6px; }

@media (max-width: 700px) {
  .desk { aspect-ratio: 358 / 300; }
  .desk-mac { top: 0; width: 94%; }
  .desk-ipad { display: none; }
  .desk-iphone { right: 0; bottom: 0; width: 36%; --bezel: 5px; }
}

/* Device frames around the raw screenshots */
.device {
  background: var(--night);
  padding: var(--bezel, 10px);
  box-shadow: 0 24px 60px -18px rgba(20, 23, 31, .55), 0 3px 10px rgba(20, 23, 31, .18);
}
.device img { width: 100%; }
.device--phone { border-radius: 15% / 7%; }
.device--phone img { border-radius: 12% / 5.6%; }
.device--pad { border-radius: 6% / 4.5%; }
.device--pad img { border-radius: 3.6% / 2.7%; }

/* ---------- Sections ---------- */

.section { padding-top: clamp(80px, 12vw, 136px); }

.gap-note {
  max-width: 820px;
  font: 400 clamp(23px, 3.4vw, 32px)/1.38 var(--serif);
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.gap-note strong { font-weight: 600; }

.section-head { max-width: 720px; }
.section-head .lede, .split .lede { margin-top: 18px; }
.split .prose p:first-of-type { margin-top: 22px; }
.library-pic { max-width: 300px; width: 100%; margin: 0 auto; }

/* Steps: a real sequence, so numbers are earned */
.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps .device--phone { max-width: 300px; margin: 0 auto 0 0; }
.steps h3 {
  margin-top: 28px;
  font: 600 19px/1.3 var(--sans);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.steps h3::before {
  content: counter(step);
  font: 400 40px/1 var(--serif);
  color: var(--blue);
}
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 26em; text-wrap: pretty; }

@media (max-width: 760px) {
  .steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 24px;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { scroll-snap-align: start; }
  .steps .device--phone { max-width: none; }
}

.after-steps {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 56px;
}
.after-steps h3, .points h3 { font: 600 18px/1.3 var(--sans); }
.after-steps p, .points p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

/* Two-column feature with a picture */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--wide-pic { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 860px) {
  .split, .split--wide-pic { grid-template-columns: minmax(0, 1fr); }
}

.checks { list-style: none; padding: 0; margin-top: 28px; }
.checks li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  transform: rotate(-8deg);
}

.mac-pic img {
  width: 100%;
  border-radius: 1.6% / 2.6%;
  box-shadow: 0 30px 80px -24px rgba(27, 33, 48, .5), 0 4px 16px rgba(27, 33, 48, .14);
}

/* ---------- Night band: remembers how you stamp ---------- */

.night {
  margin-top: clamp(80px, 12vw, 136px);
  background: var(--night);
  color: var(--paper);
}
.night .split { padding-top: clamp(72px, 10vw, 112px); padding-bottom: clamp(72px, 10vw, 112px); }
.night .title { color: var(--paper); }
.night p { color: var(--night-text); }
.night .prose p { color: var(--night-text); }
.tilts { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 32px); }
.tilts svg { width: clamp(72px, 16vw, 112px); height: auto; }
.tilts svg:nth-child(1) { opacity: .35; }
.tilts svg:nth-child(2) { opacity: .6; }

/* ---------- Sync ---------- */

.pair {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 560 / 520;
}
.pair > * { position: absolute; }
.pair .device--pad { left: 0; top: 0; width: 66%; --bezel: 9px; }
.pair .device--phone { right: 2%; bottom: 0; width: 34%; --bezel: 7px; }

/* ---------- Points grid ---------- */

.points {
  list-style: none;
  padding: 0;
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px 64px;
}
.points li { border-top: 1.5px solid var(--ink); padding-top: 22px; }

/* ---------- Story ---------- */

.story { max-width: 680px; margin: 0 auto; }
.story .title { text-align: center; margin-bottom: 28px; }
.story p { color: var(--ink-2); text-wrap: pretty; }
.story p + p { margin-top: 1.1em; }

.etymology {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font: 400 clamp(20px, 2.6vw, 23px)/1.55 var(--serif);
  color: #5A5E68;
  text-wrap: balance;
}

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 0 auto; }
.faq .title { text-align: center; margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 4px;
  font: 600 17px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 4px 20px; color: var(--ink-2); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.faq .ask { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: 16px; }
.faq .ask a { font-weight: 600; }

/* ---------- Final call ---------- */

.final { text-align: center; padding-bottom: clamp(88px, 12vw, 128px); }
.final .button { margin-top: 28px; }
.final .fine { margin-top: 14px; }

/* ---------- Footer ---------- */

.site-foot { background: var(--night); color: var(--night-text); }
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
}
.site-foot .brand { color: var(--paper); font-size: 15px; }
.site-foot .brand svg { width: 22px; height: 22px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; list-style: none; padding: 0; }
.foot-links a, .foot-links span { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-text); text-decoration: none; }
.foot-links a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- Privacy page ---------- */

.policy { max-width: 680px; padding-top: clamp(48px, 9vw, 88px); padding-bottom: clamp(80px, 12vw, 120px); }
.policy h1 { font: 500 clamp(36px, 7vw, 52px)/1.1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.policy .effective { margin-top: 16px; color: var(--muted); font-size: 15px; }
.policy .effective strong { color: var(--ink); font-weight: 600; }
.policy .intro { margin-top: 32px; font-size: 19px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.policy h2 {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
  font: 600 19px/1.3 var(--sans);
}
.policy h2 + p { margin-top: 12px; }
.policy p { color: var(--ink-2); text-wrap: pretty; }
.policy p + p { margin-top: 1em; }
.policy a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
