/* Project Book marketing site.
   World: a mid-century physical-culture manual's plate section, printed in
   two colours (ink and one spot blue) on pale stock. Plates, crop marks and
   captions carry the structure. Screenshots appear only as real plates. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #edeeea;
  --paper-2: #e1e4de;
  --plate: #f8f9f6;
  --ink: #14181f;
  --ink-soft: #3f4955;
  --rule: #b9beb6;
  --blue: #1f36e8;
  --blue-deep: #1629b8;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::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(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--plate); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible { outline-color: var(--plate); }

html { scrollbar-color: var(--ink) var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-stretch: 78%; font-weight: 760; line-height: 0.98; letter-spacing: -0.012em; word-spacing: 0.07em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8.4vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.04; }
p { margin: 0; }
.lede { font-size: clamp(1.1875rem, 1.8vw, 1.4rem); line-height: 1.5; max-width: 38em; color: var(--ink-soft); }
.copy { max-width: 36em; color: var(--ink-soft); }
.copy + .copy { margin-top: 1em; }
.cap { font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.005em; word-spacing: 0.12em;
  background: var(--blue); color: var(--plate);
  border: 2px solid var(--blue); border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--plate); border-color: var(--ink); }
.on-ink .btn { background: var(--plate); color: var(--ink); border-color: var(--plate); }
.on-ink .btn:hover { background: var(--paper-2); border-color: var(--paper-2); }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.mark { word-spacing: 0; font-family: var(--display); font-stretch: 72%; font-weight: 820; font-size: 1.9rem; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 1rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Plates (screenshots) ---------- */
.plate { margin: 0; position: relative; }
.plate-frame {
  position: relative; background: var(--plate); border: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 18px 36px -22px rgba(20, 24, 31, 0.45);
}
.plate-frame img { width: 100%; height: auto; }
/* crop marks at the corners, as on a printed plate */
.plate-frame::before, .plate-frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.plate-frame::before { left: -12px; top: -12px; border-left: 2px solid var(--blue); border-top: 2px solid var(--blue); }
.plate-frame::after { right: -12px; bottom: -12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.plate figcaption { margin-top: 18px; display: grid; gap: 2px; }
.plate figcaption strong { word-spacing: 0.1em; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.05rem; }

/* Until the real screenshot has loaded (or if the file is not there yet) the
   plate shows a labelled placeholder. The image waits invisibly in the frame. */
.plate:not(.loaded) .plate-frame {
  aspect-ratio: var(--ratio, 16 / 10); display: grid; place-items: center; text-align: center; padding: 28px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 24, 31, 0.05) 14px 15px), var(--plate);
  border-style: dashed;
}
.plate:not(.loaded) .plate-frame img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.plate .need { max-width: 26em; color: var(--ink-soft); font-size: 0.95rem; }
.plate .need b { display: block; color: var(--ink); font-family: var(--display); font-stretch: 85%; font-size: 1.15rem; margin-bottom: 6px; }
.plate.loaded .need { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(44px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 12.5em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.09s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.18s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .line > span { animation: none; } }

.hero-row { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.hero-actions .note { flex-basis: 100%; text-align: right; font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.hero-plate { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 820px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .note { text-align: left; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 128px); }
.rule-top { border-top: 1px solid var(--ink); }
.tint { background: var(--paper-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* problem */
.tools { list-style: none; margin: 0; padding: 0; display: grid; }
.tools li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.tools li:last-child { border-bottom: 1px solid var(--rule); }
.tools b { word-spacing: 0.1em; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.1rem; }
.tools span { color: var(--ink-soft); }
@media (max-width: 560px) { .tools li { grid-template-columns: 1fr; gap: 4px; } }

/* features: three columns laid out like the days of a timetable */
.week { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.day h3 { padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.day li b { word-spacing: 0.1em; display: block; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.15rem; line-height: 1.15; margin-bottom: 6px; }
.day li span { color: var(--ink-soft); font-size: 0.98rem; display: block; max-width: 26em; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; gap: 56px; } }

/* deep dives */
.dive { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.dive + .dive { margin-top: clamp(72px, 10vw, 140px); }
.dive.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dive.flip .dive-text { order: -1; }
.dive-text h2 { margin-bottom: 20px; font-size: clamp(2rem, 4.2vw, 3rem); }
.dive-text ul { list-style: none; margin: 22px 0 0; padding: 0; max-width: 30em; }
.dive-text li { padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.98rem; }
.dive-text li:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .dive, .dive.flip { grid-template-columns: 1fr; } .dive.flip .dive-text { order: 0; } }

/* built by a studio (ink section) */
.on-ink { background: var(--ink); color: var(--plate); }
.on-ink .copy, .on-ink .lede, .on-ink .cap { color: #c9cfd6; }
.on-ink .rule-line { border-top: 1px solid #3a4350; }
.studio h2 { max-width: 11em; }
.facts { margin: 0; display: grid; }
.facts div { padding: 16px 0; border-top: 1px solid #3a4350; display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 20px; }
.facts div:last-child { border-bottom: 1px solid #3a4350; }
.facts dt { word-spacing: 0.1em; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.1rem; }
.facts dd { margin: 0; color: #c9cfd6; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* switching */
.moves { list-style: none; margin: 0; padding: 0; }
.moves li { padding: 16px 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 20px; }
.moves li:last-child { border-bottom: 1px solid var(--ink); }
.moves b { word-spacing: 0.1em; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.1rem; }
.moves span { color: var(--ink-soft); }
@media (max-width: 560px) { .moves li { grid-template-columns: 1fr; gap: 4px; } }

/* pricing */
.tiers { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--plate); }
.tier { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.tier + .tier { border-left: 1px solid var(--ink); }
.tier.pick { background: var(--ink); color: var(--plate); }
.tier h3 { font-size: 1.7rem; }
.price { font-family: var(--display); font-stretch: 78%; font-weight: 780; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; font-stretch: 90%; margin-left: 6px; }
.tier .for { color: var(--ink-soft); font-size: 0.98rem; min-height: 3.4em; }
.tier.pick .for, .tier.pick li { color: #c9cfd6; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; }
.tier li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.98rem; color: var(--ink-soft); }
.tier.pick li { border-color: #3a4350; }
.tier .btn { margin-top: auto; }
.tier.pick .btn { background: var(--plate); color: var(--ink); border-color: var(--plate); }
.tier.pick .btn:hover { background: var(--paper-2); }
.fine { margin-top: 18px; display: grid; gap: 4px; max-width: 46em; }
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--ink); }
  .tier .for { min-height: 0; }
}

/* faq */
.faq { max-width: 52em; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { word-spacing: 0.1em; cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .ans { padding: 0 48px 26px 0; color: var(--ink-soft); max-width: 40em; }

/* final call */
.final h2 { max-width: 10em; font-size: clamp(2.6rem, 7vw, 5rem); }
.final .row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.final .addr { color: #c9cfd6; }

footer { padding-block: 36px 56px; background: var(--ink); color: #c9cfd6; border-top: 1px solid #3a4350; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 0.95rem; }
footer a { color: var(--plate); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* phone-shaped plate */
.plate.phone .plate-frame { max-width: 340px; margin-inline: auto; --ratio: 9 / 18; }
.plate.phone figcaption { max-width: 340px; margin-inline: auto; }

/* Legal pages (privacy, terms) */
.legal { padding-block: 4rem 6rem; max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; }
.legal .updated { color: var(--muted, #5b6170); margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.75rem 0 0.9rem; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 0.9rem; }
.legal ul { padding-left: 1.2rem; margin: 0.9rem 0 0; }
.legal li + li { margin-top: 0.45rem; }
