/* Blank Slate Apps (apps.blankslate.biz).
   Its own site, cohesive with blankslate.biz: the same Fraunces display face, JetBrains Mono labels,
   and the paper / ink / copper palette (company/BRAND.md), but dark-first, with each app's own colors
   in its band and the system face for body text, the way the apps themselves read. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --ink: #14141c;
  --copper: #b8601f;
  --soft-copper: #dda374;

  /* Dark is the default surface; light follows the visitor's system setting. */
  --bg: #0f0f15;
  --surface: #17171f;
  --fg: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --hairline: rgba(245, 241, 232, 0.12);
  --accent: var(--soft-copper);
  --accent-text: var(--soft-copper);

  --display: "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ece5d6;
    --surface: #f5f1e8;
    --fg: #14141c;
    --muted: rgba(20, 20, 28, 0.72);
    --hairline: rgba(20, 20, 28, 0.14);
    --accent: var(--copper);
    --accent-text: #8a4616;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

h1, h2, .tagline, .trip-title {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 120, "SOFT" 28, "WONK" 1;
  letter-spacing: -0.02em;
}
.eyebrow, .chip, .status, .trip-kicker, nav a, .fine {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.copper { color: var(--accent-text); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--display); font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 18, "WONK" 1;
  font-size: 19px; letter-spacing: -0.01em; white-space: nowrap;
}
.brand em { font-style: normal; color: var(--accent-text); }
.mark { width: 28px; height: 28px; }
.copper-fill { fill: var(--accent); }
nav { display: flex; gap: clamp(12px, 3vw, 28px); }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }
@media (max-width: 560px) { nav { display: none; } }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 11vw, 132px) var(--gutter) clamp(56px, 9vw, 112px);
  text-align: center;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 10% 15% auto; height: 60%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(40px);
}
.hero .eyebrow { color: var(--accent-text); margin: 0 0 22px; }
.hero h1 {
  font-size: clamp(42px, 8.4vw, 104px);
  line-height: 1.0;
  margin: 0 auto;
  max-width: 11.5em;
}
.lede {
  max-width: 34em; margin: 28px auto 0;
  font-size: clamp(18px, 2.1vw, 21px); color: var(--muted);
}

/* Dock of icons */
.dock {
  list-style: none; margin: clamp(48px, 7vw, 80px) auto 0; padding: clamp(18px, 3vw, 28px);
  display: inline-flex; gap: clamp(18px, 5vw, 56px);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 40px;
}
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
}
.dock .icon { width: clamp(76px, 15vw, 132px); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.dock a:hover .icon, .dock a:focus-visible .icon { transform: translateY(-6px) scale(1.04); }
.dock-name { font-weight: 600; font-size: clamp(14px, 1.8vw, 17px); }
.chip {
  font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--muted); white-space: nowrap;
}
.chip-live { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-text); }
@media (max-width: 420px) { .chip { display: none; } }

.icon {
  border-radius: 22.5%;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -16px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.25);
}
/* WhichCraft's icon art sits on white, so it gets a tile of its own. */
.icon-wc { background: #fff; }
.icon-sm { width: 64px; height: 64px; }

/* App bands */
.app {
  --app-bg: #222; --app-fg: #fff; --app-muted: rgba(255,255,255,.78); --app-line: rgba(255,255,255,.22);
  background: var(--app-bg); color: var(--app-fg);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  overflow: hidden; position: relative;
}
.app-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 88px);
}
@media (max-width: 860px) { .app-inner { grid-template-columns: 1fr; } }
.app-head { display: flex; align-items: center; gap: 16px; }
.app h2 {
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1; margin: 0;
  font-variation-settings: "opsz" 36, "SOFT" 18, "WONK" 1; letter-spacing: -0.015em;
}
.status { margin: 8px 0 0; color: var(--app-muted); }
.tagline {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; margin: 36px 0 18px; max-width: 13em;
}
.body { font-size: 18.5px; color: var(--app-muted); max-width: 33em; margin: 0; }
.features { list-style: none; padding: 0; margin: 28px 0 0; max-width: 33em; }
.features li {
  padding: 14px 0 14px 26px; border-top: 1px solid var(--app-line); position: relative;
  color: var(--app-muted); font-size: 16.5px;
}
.features li::before {
  content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--app-dot, currentColor);
}
.features strong { color: var(--app-fg); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--app-fg); color: var(--app-bg-solid, var(--app-bg));
  padding: 13px 20px 13px 16px; border-radius: 14px;
  font-weight: 600; text-decoration: none; transition: transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--app-line); padding-bottom: 2px; }
.link:hover { border-color: currentColor; }
.app-art { margin: 0; position: relative; }
.app :focus-visible { outline-color: var(--app-fg); }
.art-note {
  margin-top: 14px; text-align: right; color: var(--app-muted);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
}

/* WhichCraft: the App Store screenshots' warm orange. */
.app-wc {
  --app-bg: #e9784e; --app-bg-solid: #b84a20; --app-fg: #1a0f0a;
  --app-muted: rgba(26, 15, 10, .78); --app-line: rgba(26, 15, 10, .2); --app-dot: #1a0f0a;
}
.app-wc .button { color: #fff; }
.phones { height: clamp(460px, 52vw, 620px); }
.phone {
  position: absolute; width: clamp(200px, 21vw, 270px);
  border-radius: 40px; padding: 9px; background: #101012;
  box-shadow: 0 40px 80px -30px rgba(60, 20, 0, .7), 0 0 0 1.5px rgba(255,255,255,.12) inset;
}
.phone img { border-radius: 32px; width: 100%; }
.phone-front { left: 50%; top: 0; transform: translateX(-78%) rotate(-4deg); z-index: 2; }
.phone-back { left: 50%; top: 9%; transform: translateX(-4%) rotate(5deg); opacity: .96; }
@media (max-width: 860px) {
  .phones { height: auto; display: flex; justify-content: center; gap: 0; padding: 12px 0 24px; }
  .phone { position: relative; left: auto; top: auto; width: min(46vw, 250px); }
  .phone-front { transform: rotate(-4deg); margin-right: -10%; }
  .phone-back { transform: rotate(5deg) translateY(28px); }
}

/* Itinerary: the icon's sunset gradient. */
.app-it {
  /* Darker stops than the icon's, so white text clears 4.5:1 across the whole band. */
  --app-bg: linear-gradient(135deg, #c8431c 0%, #b93a1c 30%, #c2305e 60%, #6a35b5 100%);
  --app-bg-solid: #c2305e; --app-fg: #fff; --app-muted: #fff; --app-line: rgba(255,255,255,.4);
}
.it-scene { position: relative; height: clamp(360px, 40vw, 480px); color: rgba(255,255,255,.9); }
.it-arc { position: absolute; inset: 0 auto auto 0; width: 92%; }
.trip-card {
  position: absolute; right: 0; bottom: 0; width: min(100%, 380px);
  background: rgba(255,255,255,.94); color: #1d1630;
  border-radius: 28px; padding: 26px 26px 18px;
  box-shadow: 0 40px 80px -30px rgba(40, 0, 60, .65);
}
.trip-kicker { margin: 0; color: #9a3d6a; font-size: 11.5px; }
.trip-title { font-size: 30px; line-height: 1.05; margin: 8px 0 16px; }
.trip-rows { list-style: none; margin: 0; padding: 0; }
.trip-rows li {
  display: grid; grid-template-columns: 12px 54px 1fr; align-items: center; gap: 10px;
  padding: 11px 0; border-top: 1px solid rgba(29, 22, 48, .1); font-size: 15.5px;
}
.trip-rows .t { font-family: var(--mono); font-size: 13px; color: rgba(29, 22, 48, .62); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-a { background: #ff8a4c; } .dot-b { background: #ec3f6a; } .dot-c { background: #6a35b5; }

/* Crate: the icon's warm black and label orange. */
.app-cr {
  --app-bg: radial-gradient(120% 90% at 85% 50%, #2a1d17 0%, #0e0c0b 60%);
  --app-bg-solid: #0e0c0b; --app-fg: #f5efe9; --app-muted: rgba(245,239,233,.74); --app-line: rgba(245,239,233,.16);
  --app-dot: #e86b33;
}
.cr-scene { position: relative; height: clamp(340px, 38vw, 460px); }
.sleeve {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(-3deg);
  width: 62%; aspect-ratio: 1; border-radius: 6px; z-index: 2;
  background: linear-gradient(145deg, #e86b33 0%, #b8461a 55%, #6e2a10 100%);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.sleeve span {
  position: absolute; inset: 14%; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 0 0 40px rgba(255,255,255,.03);
}
.disc {
  position: absolute; right: 2%; top: 50%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.05) 31.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle, #121011 0 2px, #1b1819 2px 3.4px),
    #111;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  animation: spin 14s linear infinite;
}
.disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.09) 12%, transparent 18% 58%, rgba(255,255,255,.07) 62%, transparent 68%);
}
.label {
  position: absolute; inset: 34%; border-radius: 50%; background: #e86b33;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.label::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8%; aspect-ratio: 1; border-radius: 50%;
  background: #0e0c0b; transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .disc { animation: none; } }

/* Closing */
.bench {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
}
.bench .eyebrow { color: var(--accent-text); margin: 0 0 16px; }
.bench h2 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; margin: 0 0 20px; }
.bench p:last-child { color: var(--muted); font-size: 18.5px; margin: 0; }
.bench a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 4px; }

.foot {
  border-top: 1px solid var(--hairline);
  padding: 32px var(--gutter) 40px; text-align: center; color: var(--muted); font-size: 15px;
}
.foot p { margin: 6px 0; }
.foot a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.foot .fine { font-size: 11px; letter-spacing: .04em; text-transform: none; opacity: .85; }

/* Document pages (an app's privacy policy and support page) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 10vw, 120px); }
.doc .eyebrow { color: var(--accent-text); margin: 0 0 14px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.02; margin: 0 0 12px; }
.doc .meta { color: var(--muted); margin: 0 0 40px; }
.doc h2 {
  font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 36, "SOFT" 18, "WONK" 1;
  letter-spacing: -0.01em; font-size: 26px; margin: 44px 0 10px;
}
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.doc-app { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; text-decoration: none; }
.doc-app .icon { width: 56px; height: 56px; }
.doc-app span { font-weight: 600; font-size: 19px; }
