/* Whimsy — "Picnic Instant": warm paper, espresso ink, Kodachrome inks, instant prints.
   Mirrors Whimsy/Design/Tokens.swift. No build step: edit and upload. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Palette */
  --paper: #fbf4e6;
  --cream: #fffbf2;
  --white: #ffffff;
  --ink: #2b2118;
  --on-accent: #fff8ee;
  --tomato: #e2482f;
  --deep-pool: #22746f;
  --tangerine: #ee7f2d;
  --marigold: #f2b33d;
  --teal: #2f8f8a;
  --sky: #9cc7e6;
  --reagent: #1c2324;
  --fog: #3b4846;
  --fog-milk: #c4d4cf;

  /* Roles */
  --text: var(--ink);
  --text-2: rgba(43, 33, 24, 0.64);
  --text-3: rgba(43, 33, 24, 0.42);
  --surface: rgba(43, 33, 24, 0.05);
  --hairline: rgba(43, 33, 24, 0.12);
  --accent: var(--deep-pool);

  --shadow-print: 0 3px 6px rgba(43, 33, 24, 0.1), 0 1px 2px rgba(43, 33, 24, 0.06);
  --shadow-lifted: 0 10px 28px rgba(43, 33, 24, 0.16), 0 2px 6px rgba(43, 33, 24, 0.08);
  --shadow-float: 0 8px 30px rgba(43, 33, 24, 0.1);

  --display: "Bricolage", ui-rounded, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --edge: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.05);
  --page: 1080px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The paper's faint tooth. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img, svg { display: block; }

::selection { background: rgba(242, 179, 61, 0.45); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.edge {
  font-family: var(--edge);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
}

.display {
  font-family: var(--display);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}

.accent { color: var(--accent); }
/* The instant-camera stripe, one ink per letter. */
.rainbow span:nth-child(5n+1) { color: var(--tomato); }
.rainbow span:nth-child(5n+2) { color: var(--tangerine); }
.rainbow span:nth-child(5n+3) { color: var(--marigold); }
.rainbow span:nth-child(5n+4) { color: var(--teal); }
.rainbow span:nth-child(5n+5) { color: var(--sky); }

/* ---------- Brand ---------- */

.spectrum {
  display: flex;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
}
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: var(--tomato); }
.spectrum i:nth-child(2) { background: var(--tangerine); }
.spectrum i:nth-child(3) { background: var(--marigold); }
.spectrum i:nth-child(4) { background: var(--teal); }
.spectrum i:nth-child(5) { background: var(--sky); }

.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 760;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
}
.wordmark .spectrum {
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 34px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(var(--paper) 55%, rgba(251, 244, 230, 0));
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a:not(.button) {
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.2s;
}
.site-header nav a:not(.button):hover { color: var(--text); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font: 600 16px/1 var(--body);
  text-decoration: none;
  transition: transform 0.3s var(--spring), background 0.2s;
  white-space: nowrap;
}
.button:hover { background: #8dbde0; }
.button:active { transform: scale(0.97); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button.small { height: 36px; padding: 0 16px; font-size: 14px; }


/* ---------- Shared bits ---------- */

section { padding: 96px 0; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.section-note { color: var(--text-2); font-size: 18px; margin: 0 0 40px; max-width: 36em; }
.aside { color: var(--text-3); font-size: 15px; margin: 18px 0 0; }
.fineprint { margin-top: 26px; color: var(--text-3); font-size: 14px; max-width: 52em; }

/* An app screenshot: no device frame, just the screen with its own rounded corners. */
.screen {
  width: 100%;
  height: auto;
  border-radius: 38px;
  box-shadow: 0 1px 0 rgba(43, 33, 24, 0.06), 0 24px 60px rgba(43, 33, 24, 0.16);
  background: var(--paper);
}

/* A creation on the table: white border, a chin with the prompt in handwriting. */
.snap {
  position: relative;
  margin: 0;
  background: var(--white);
  border-radius: 3px;
  padding: 8px 8px 0;
  box-shadow: var(--shadow-print);
}
.snap img, .snap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5px;
  background: var(--fog-milk);
}
.snap video { cursor: pointer; }
.snap figcaption {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  color: rgba(43, 33, 24, 0.8);
  padding: 10px 4px 14px;
}

/* Handwritten notes in the margins. */
.tag-note, .scribble span {
  font-family: var(--hand);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.05;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 80px;
  padding: 72px 0 64px;
}
.hero h1 { font-size: clamp(56px, 8.6vw, 104px); margin-bottom: 26px; }
.hero .lede { font-size: 21px; color: var(--text-2); max-width: 24em; margin: 0 0 32px; }

.screen-wrap { position: relative; margin-right: 40px; }
.screen-wrap .screen { transform: rotate(1.5deg); }
.scribble {
  position: absolute;
  left: -168px;
  bottom: 96px;
  width: 160px;
  transform: rotate(-4deg);
}
.scribble span { display: block; font-size: 25px; }
.scribble svg {
  width: 110px;
  margin: 2px 0 0 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Made in Whimsy ---------- */

.made { padding-top: 64px; }
.wall {
  columns: 3 260px;
  column-gap: 28px;
}
.wall .snap {
  break-inside: avoid;
  margin: 0 0 30px;
  transition: transform 0.4s var(--spring), box-shadow 0.4s;
}
/* Dropped on a table, not placed on a grid. */
.wall .snap:nth-child(1) { transform: rotate(-1.6deg); }
.wall .snap:nth-child(2) { transform: rotate(1.2deg) translateX(6px); }
.wall .snap:nth-child(3) { transform: rotate(0.6deg); }
.wall .snap:nth-child(4) { transform: rotate(-0.8deg) translateX(-4px); }
.wall .snap:nth-child(5) { transform: rotate(2deg); margin-top: 12px; }
.wall .snap:nth-child(6) { transform: rotate(-1.9deg) translateX(5px); }
.wall .snap:nth-child(7) { transform: rotate(0.9deg); }
.wall .snap:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lifted); }
.wall .tag-note {
  position: absolute;
  right: -14px;
  top: -18px;
  font-size: 22px;
  transform: rotate(4deg);
  background: var(--paper);
  padding: 0 6px;
  border-radius: 6px;
}

/* ---------- Edit ---------- */

.pair {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 12px;
  max-width: 820px;
}
.pair .snap:first-child { transform: rotate(-1.4deg); }
.pair .snap:last-child { transform: rotate(1.1deg); }
.pair figcaption { font-size: 22px; }
.pair-arrow {
  width: 72px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- What you won't find ---------- */

.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: center;
}
.small-screen { transform: rotate(-1.2deg); }
.prose { max-width: 34em; }
.prose p { font-size: 19px; color: var(--text-2); margin: 0 0 18px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- What it costs ---------- */

.price-table {
  max-width: 820px;
  border-top: 1px solid var(--ink);
}
.price-table .row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr 1.4fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--hairline);
  font-size: 17px;
}
.price-table .head {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-3);
}
.price-table b { font-weight: 650; display: block; }
.price-table small { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }
.price-table .save {
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- The note ---------- */

.note {
  max-width: 560px;
  background: var(--cream);
  border: 0.5px solid var(--hairline);
  border-radius: 4px;
  padding: 34px 36px 26px;
  box-shadow: var(--shadow-print);
  transform: rotate(-0.6deg);
  margin-bottom: 40px;
}
.note p { font-size: 18px; color: rgba(43, 33, 24, 0.82); margin: 0 0 14px; }
.note a { color: var(--accent); text-underline-offset: 3px; }
.note .signature {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 34px;
  color: var(--ink);
  margin: 6px 0 0;
}
.note-section { padding-bottom: 120px; }

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

.site-footer { border-top: 0.5px solid var(--hairline); padding: 34px 0 48px; }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .made-by { font-size: 13px; color: var(--text-3); }
.site-footer .made-by a { color: var(--text-2); }


/* ---------- Legal pages ---------- */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
}
.doc header { margin-bottom: 40px; }
.doc header .edge { display: block; margin-bottom: 16px; }
.doc h1 { font-size: clamp(40px, 7vw, 60px); }
.doc .intro { font-size: 19px; color: var(--text-2); margin: 22px 0 0; }
.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 52px 0 12px;
}
.doc h3 { font-size: 16px; margin: 26px 0 6px; }
.doc p, .doc li { color: rgba(43, 33, 24, 0.82); font-size: 16.5px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc strong { color: var(--text); }

.glance {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  border-radius: 22px;
  background: var(--cream);
  border: 0.5px solid var(--hairline);
  box-shadow: var(--shadow-print);
}
.glance li {
  display: flex;
  gap: 14px;
  margin: 0 !important;
  padding: 18px 22px;
  font-size: 16px;
}
.glance li + li { border-top: 0.5px solid var(--hairline); }
.glance .dot { margin-top: 9px; }
.glance li > div { color: var(--text-2); }
.glance b { display: block; color: var(--text); font-weight: 600; }

.oxen-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 15.5px;
  color: var(--text-2);
}
.oxen-note p { margin: 0; font-size: 15.5px; color: var(--text-2); }


/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 24px 0 56px; }
  .screen-wrap { width: min(78%, 320px); margin: 0 auto; }
  .scribble { left: auto; right: -12px; bottom: auto; top: -54px; width: auto; transform: rotate(3deg); }
  .scribble svg { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .small-screen { width: min(72%, 300px); margin: 0 auto; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .site-header .wrap { height: 64px; }
  .site-header nav { gap: 16px; }
  .site-header nav .hide-sm { display: none; }
  .hero .lede { font-size: 18px; }
  .scribble span { font-size: 21px; }
  .button { height: 50px; }
  .wall { columns: 2 150px; column-gap: 14px; }
  .wall .snap { margin-bottom: 18px; padding: 5px 5px 0; }
  .snap figcaption { font-size: 15px; padding: 7px 2px 10px; }
  .wall .tag-note { font-size: 18px; right: -4px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pair-arrow { display: none; }
  .prose p { font-size: 17px; }
  .price-table .row { grid-template-columns: 1fr 1fr; row-gap: 4px; font-size: 16px; }
  .price-table .head { display: none; }
  .price-table .row span:nth-child(3)::after { content: " credits"; }
  .price-table .row span:nth-child(3), .price-table .row span:nth-child(4) { color: var(--text-2); font-size: 15px; }
  .note { padding: 26px 22px 20px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

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

.doc .updated { margin: 18px 0 0; font-size: 14px; color: var(--text-3); }

/* "Whimsy" in running text carries the logo's stripe underneath. */
.brand {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
}
.brand::after {
  content: "";
  position: absolute;
  left: 0.04em;
  bottom: -0.04em;
  width: 1.35em;
  height: max(2px, 0.11em);
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--tomato) 0 20%, var(--tangerine) 20% 40%, var(--marigold) 40% 60%,
    var(--teal) 60% 80%, var(--sky) 80% 100%);
}
