/* plotish-site — tokens from ~/Projects/plotish/design/design-tokens.css and Theme.swift */

@font-face { font-family: "Gloock"; src: url("fonts/Gloock-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --blush: #ffd1e8;
  --raspberry: #e0457b;
  --tangerine: #ff7a3d;
  --plum: #2e1522;
  --ink: #4a1f33;
  --ink-muted: #8a4a62;
  --cream: #fff1f1;
  --pink: #ffb0c8;
  --accent: #ffb347;
  --green-flag: #3b8a47;
  --verified: #1d9bf0; /* the verified check on curators: the blue readers know from other apps (Julie, Nov 12) */

  --display: "Gloock", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;

  --inset: clamp(16px, 5vw, 56px);
  --measure: 34rem;
  --cover-shadow: 0 18px 40px rgba(74, 31, 51, .35);
  --sticker-shadow: drop-shadow(0 12px 18px rgba(120, 20, 60, .35));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font: 400 17px/1.5 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--inset); top: 12px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 999px; z-index: 10; }

/* One flat color per band, like one color per screen in the app. */
.tone-blush     { --bg: var(--blush);     --fg: var(--ink);   --head: var(--raspberry); --muted: var(--ink-muted); }
.tone-raspberry { --bg: var(--raspberry); --fg: var(--cream); --head: var(--blush);     --muted: rgba(255, 241, 241, .85); }
.tone-tangerine { --bg: var(--tangerine); --fg: var(--ink);   --head: var(--blush);     --muted: var(--ink); }
.tone-plum      { --bg: var(--plum);      --fg: var(--cream); --head: var(--pink);      --muted: rgba(255, 241, 241, .75); }
.tone-cream     { --bg: var(--cream);     --fg: var(--ink);   --head: var(--raspberry); --muted: var(--ink-muted); }
[class*="tone-"] { background: var(--bg); color: var(--fg); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--inset); }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .9;
  text-transform: lowercase;
  color: var(--head);
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--fg); }
.kicker {
  font: 600 13px/1.3 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: var(--measure); color: var(--muted); margin: 0; }

.wordmark {
  font-family: var(--display);
  letter-spacing: -.03em;
  color: var(--head);
  text-decoration: none;
  line-height: 1;
}
.wordmark i { color: var(--fg); }

/* Header row: wordmark, links, 2pt ink rule beneath (login screen). */
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px 0 14px; border-bottom: 2px solid var(--fg); }
.masthead .wordmark { font-size: 28px; }
.masthead nav { display: flex; gap: 22px; }
.masthead nav a { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2.5px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font: 600 17px/1 var(--body);
  text-decoration: none;
}
.pill:hover { filter: brightness(1.15); }

.rule { border: 0; border-top: 1.5px solid currentColor; opacity: .35; margin: 0; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-body { display: grid; gap: 28px; padding: clamp(48px, 9vw, 104px) 0 0; }
.hero h1 { font-size: clamp(64px, 15.5vw, 208px); }
.hero h1 span { display: block; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .actions small { color: var(--muted); font-size: 15px; }

/* Closing band + footer */
.closer { text-align: center; }
.closer h2 { margin-left: auto; margin-right: auto; }
.closer .lede { margin: 0 auto 30px; }

/* The rule sits on the row, inside the side padding, so it lines up with the masthead's rule above (Julie). */
.footer { padding-bottom: 48px; }
.footer > .footer-row { padding-top: 40px; border-top: 2px solid var(--fg); }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 28px; }
.footer .wordmark { font-size: 26px; }
.footer nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.footer p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Text pages (privacy, support) ---------- */
.page-head { padding: clamp(48px, 9vw, 96px) 0 clamp(36px, 6vw, 56px); }
.page-head h1 { font-size: clamp(56px, 11vw, 132px); margin: 16px 0 22px; }
.prose { max-width: 40rem; padding-bottom: clamp(64px, 10vw, 112px); }
.prose section { padding: 28px 0; border-top: 1.5px solid rgba(74, 31, 51, .35); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1; letter-spacing: -.02em; color: var(--head); margin: 0 0 14px; text-transform: lowercase; }
.prose h3 { font: 600 17px/1.35 var(--body); margin: 22px 0 6px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .label { font-weight: 600; }

/* A computer: each section's heading on the left and its text on the right, so the text isn't a strip down one side. */
@media (min-width: 960px) {
  .prose { max-width: none; }
  .prose section { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 44rem); column-gap: 56px; align-items: start; }
  .prose section > * { grid-column: 2; }
  .prose section > h2 { grid-column: 1; grid-row: 1 / span 40; margin: 0; }
}

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
}

/* ---------- Big screens (iMac and up): a wider column, larger type. Laptops and phones are unchanged. ---------- */
@media (min-width: 1500px) {
  :root { --inset: 72px; }
  .wrap { max-width: 1440px; }
  .lede { font-size: 22px; }
  .page-head h1 { font-size: clamp(132px, 8.5vw, 168px); }
}
