/* Pocket Seminar site. One stylesheet, no scripts.
   The drawing-set language (sheet numbers, blueprint field, narrow display type)
   is shared with jeffbuilds.cloud, the publisher's own site. */

@font-face {
  font-family: "Big Shoulders";
  src: url("/assets/fonts/big-shoulders-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}
/* Big Shoulders is narrow. Scaled to match it, the stand-in breaks lines in the
   same places, so a heading doesn't rewrap when the real font lands. */
@font-face {
  font-family: "Big Shoulders Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold");
  font-style: normal;
  font-weight: 500 800;
  size-adjust: 67%;
  ascent-override: 148%;
  descent-override: 31%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --fog: #A9AFBC;
  --blueprint: #131A28;
  --blueprint-deep: #0E1320;
  --line: #ECF0F7;
  --line-faint: rgba(236, 240, 247, .15);
  --line-grid: rgba(236, 240, 247, .06);
  --line-grid-major: rgba(236, 240, 247, .1);
  --paper: #E9EBEF;
  --paper-2: #DDE0E6;
  --paper-edge: #C6CBD5;
  --ink: #0F1420;
  --ink-soft: #454C5A;
  --ink-mute: rgba(236, 240, 247, .78);
  /* One orange: fill under ink text, lifted for labels on dark, deepened for text on paper. */
  --safety: #E8893A;
  --safety-lift: #FFB067;
  --safety-ink: #9A4509;

  --font-display: "Big Shoulders", "Big Shoulders Fallback", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --edge: clamp(16px, 3.4vw, 48px);
  --bar: 61px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: #4A5366 var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--line);
  background: var(--blueprint-deep);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--safety-lift); color: var(--ink); }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }
.hero a:focus-visible, .plans a:focus-visible, .notes a:focus-visible, .doc-body a:focus-visible { outline-color: var(--safety-ink); }
main[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-160%);
  background: var(--safety-ink); color: #fff;
  padding: 10px 14px;
  font-family: var(--font-mono); font-size: 13px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--bar);
  padding: 12px var(--edge);
  color: var(--line);
  background: var(--blueprint-deep);
  border-bottom: 1px solid var(--line-faint);
}
.topbar-brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: .04em; line-height: 1;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  word-spacing: -.12em;
}
.topbar-brand span, .footer-brand span { color: var(--safety-lift); }
.topbar-nav { display: flex; align-items: center; gap: 26px; }
.topbar-nav a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
  opacity: .85;
}
.topbar-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.topbar-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--safety-lift); text-decoration-thickness: 2px;
}
.topbar-nav .topbar-cta {
  opacity: 1;
  background: var(--safety); color: var(--ink);
  padding: 8px 14px;
}
.topbar-nav .topbar-cta:hover,
.topbar-nav .topbar-cta[aria-current="page"] { background: var(--safety-lift); text-decoration: none; }

/* The small-screen menu is a details element: it opens without a script. */
.menu { display: none; }
.menu summary {
  position: relative; z-index: 1;
  list-style: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 8px 14px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--line); color: var(--ink); border-color: var(--line); }
/* Behind the bar's own content, over the page: the brand and the button stay in reach. */
.menu-sheet {
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column;
  padding: calc(var(--bar) + 28px) var(--edge) 32px;
  overflow-y: auto;
  background: var(--blueprint-deep);
}
.menu-sheet a {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(44px, 12vw, 64px); line-height: 1.15;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
  padding: 10px 0;
}
.menu-sheet a[aria-current="page"] { color: var(--safety-lift); }

.draft {
  margin-top: var(--bar);
  padding: 10px var(--edge);
  background: var(--safety); color: var(--ink);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- shared marks ---------- */
/* The blueprint field: a flat ground with a ruled grid, sized in px so every band reads as the same sheet. */
.stations, .statement, .pagehead {
  background:
    linear-gradient(var(--line-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-grid-major) 1px, transparent 1px),
    linear-gradient(var(--line-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-grid) 1px, transparent 1px),
    var(--blueprint);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, auto;
  color: var(--line);
}

/* A sheet label and its hairline. The words come from the attribute, so they stay out of the page text. */
.sheet-no {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; line-height: 1.4;
  text-transform: uppercase;
  color: var(--safety-lift);
}
.sheet-no::before { content: attr(data-label); white-space: nowrap; }
.sheet-no::after { content: ""; flex: 1; min-width: 32px; height: 1px; background: currentColor; opacity: .45; }

/* The phone: an ink frame around a real screen. */
.device {
  width: 100%;
  padding: 2.6%;
  background: #05080F;
  border-radius: 15.5% / 7.2%;
  box-shadow: 0 0 0 1px rgba(236, 240, 247, .3);
}
.device img { width: 100%; border-radius: 13.5% / 6.2%; }

/* ---------- hero: the app in daylight ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  column-gap: var(--edge);
  padding: calc(var(--bar) + 40px) var(--edge) 0;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(15, 20, 32, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 20, 32, .07) 1px, transparent 1px),
    var(--fog);
  background-size: 120px 120px, 120px 120px, auto;
}
/* Headline at the head of the sheet, the plain statement at its foot. */
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-bottom: 84px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, min(10.4vw, 19svh), 168px);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero-sub {
  max-width: 500px;
  font-size: 19px; line-height: 1.5; font-weight: 500;
  text-wrap: pretty;
}
.hero-spec {
  margin-top: 22px; padding-top: 14px;
  max-width: 500px;
  border-top: 1.5px solid var(--ink);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; line-height: 1.7;
  text-transform: uppercase;
}
/* The phone stands on the hero's lower edge and runs past it. */
.hero-shot { align-self: end; justify-self: center; width: clamp(240px, min(27vw, 42svh), 420px); margin-bottom: -9svh; }
.hero-shot .device { box-shadow: 22px 22px 0 rgba(15, 20, 32, .16); }
.hero > .sheet-no {
  position: absolute; left: var(--edge); bottom: 22px;
  width: min(46vw, 520px);
  color: var(--ink);
}

/* ---------- stations: one tab of the app per sheet ---------- */
.stop {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; column-gap: var(--edge);
  min-height: min(92svh, 900px);
  padding: 112px var(--edge) 96px;
}
.stop + .stop { border-top: 1px solid var(--line-faint); }
.stop-flip .stop-card { order: 2; }
.stop-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 11vw, 176px);
  line-height: .86; text-transform: uppercase;
  margin: 18px 0 20px;
}
.stop-card .lede {
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; font-weight: 500;
  color: var(--line);
  margin-bottom: 14px;
}
.stop-card p { max-width: 46ch; color: var(--ink-mute); text-wrap: pretty; }
.stop-shot { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 32px); }
.stop-shot .device { width: min(100%, 330px); }
.stop-shot-pair .device { width: min(47%, 290px); }
.stop-shot-pair .device + .device { margin-top: 56px; }

/* ---------- free and Pro: two columns on paper ---------- */
.plans {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px var(--edge);
  padding: 104px var(--edge) 112px;
  color: var(--ink);
  background: var(--paper);
}
.plans .sheet-no, .notes .sheet-no, .doc-body .sheet-no { color: var(--safety-ink); }
.band-head h2, .note h2 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(48px, 6vw, 88px);
  line-height: .9; text-transform: uppercase;
  margin-top: 16px;
}
.plan { border-top: 2px solid var(--ink); padding-top: 16px; }
.plan h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(40px, 4.4vw, 64px);
  line-height: .95; text-transform: uppercase;
  margin-bottom: 12px;
}
.plan p { font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- on this iPhone: one statement on the blueprint ---------- */
.statement { padding: 128px var(--edge) 136px; text-align: center; }
/* Centred label: one hairline across, cut by the label's own ground. */
.statement .sheet-no {
  max-width: 860px; margin-inline: auto; justify-content: center;
  background: linear-gradient(rgba(255, 176, 103, .45), rgba(255, 176, 103, .45)) center / 100% 1px no-repeat;
}
.statement .sheet-no::before { padding: 0 16px; background: var(--blueprint); }
.statement .sheet-no::after { display: none; }
.statement h2 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(64px, 11.4vw, 176px);
  line-height: .86; text-transform: uppercase;
  margin: 22px 0 24px;
}
.statement p { max-width: 54ch; margin-inline: auto; font-size: 19px; color: var(--ink-mute); text-wrap: pretty; }

/* ---------- closing notes ---------- */
.notes {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px var(--edge);
  padding: 104px var(--edge) 112px;
  color: var(--ink);
  background: var(--paper-2);
}
.note h2 { margin-bottom: 18px; }
.note p { max-width: 50ch; font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }
.note a, .doc-text a { color: var(--safety-ink); text-underline-offset: 3px; }
.note a:hover, .doc-text a:hover { color: var(--ink); }

/* ---------- documents ---------- */
.pagehead {
  min-height: 56svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--bar) + 72px) var(--edge) 48px;
}
.pagehead .sheet-no { max-width: 640px; margin-bottom: 22px; }
.pagehead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 10.4vw, 156px);
  line-height: .86; text-transform: uppercase;
  margin-bottom: 22px;
}
.pagehead-sub {
  max-width: 620px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; line-height: 1.7;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.doc-body {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 60ch);
  column-gap: clamp(32px, 6vw, 96px);
  padding: 72px var(--edge) 120px;
  color: var(--ink);
  background: var(--paper);
}
.contents { position: sticky; top: calc(var(--bar) + 28px); align-self: start; max-height: calc(100svh - var(--bar) - 56px); overflow-y: auto; }
.contents-title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--safety-ink);
  padding-bottom: 12px;
}
.contents a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--paper-edge);
  font-size: 15px; line-height: 1.35; text-decoration: none;
  color: var(--ink-soft);
}
.contents a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-text { counter-reset: part; }
.doc-text h2 {
  counter-increment: part;
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1; text-transform: uppercase;
  margin: 64px 0 16px; padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.doc-text h2:first-child { margin-top: 0; }
.doc-text h2::before {
  content: counter(part, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .2em;
  color: var(--safety-ink);
}
.doc-text h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.doc-text p { margin-bottom: 16px; color: #262C39; overflow-wrap: break-word; }

/* ---------- footer ---------- */
.footer { padding: 72px var(--edge) 28px; background: var(--blueprint-deep); border-top: 1px solid var(--line-faint); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px var(--edge); align-items: end; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(56px, 9vw, 136px);
  line-height: .86; letter-spacing: .01em; text-transform: uppercase;
  word-spacing: -.1em;
}
.footer-tag { margin-top: 18px; max-width: 460px; font-size: 15px; color: var(--ink-mute); }
.footer-nav a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
}
.footer-nav a:hover { color: var(--safety-lift); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  margin-top: 56px; padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- narrower screens ---------- */
@media (max-width: 960px) {
  .hero { min-height: min(100svh, 760px); }
  .hero h1 { font-size: clamp(64px, 13vw, 124px); }
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .band-head { grid-column: 1 / -1; }
  .doc-body { grid-template-columns: minmax(0, 60ch); row-gap: 48px; }
  .contents { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .topbar-nav { display: none; }
  .menu { display: block; }
  /* The open menu covers the page, so the page behind it leaves the tab order until the menu closes. */
  body:has(.menu[open]) main, body:has(.menu[open]) .footer { visibility: hidden; }

  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 40px; min-height: 0; padding-top: calc(var(--bar) + 28px); }
  .hero h1 { font-size: clamp(60px, 19vw, 112px); }
  .hero-copy { gap: 22px; padding-bottom: 0; }
  .hero-shot { width: min(72vw, 320px); margin-bottom: -120px; }
  .hero > .sheet-no { display: none; }

  .stop { grid-template-columns: minmax(0, 1fr); row-gap: 48px; min-height: 0; padding: 80px var(--edge) 88px; }
  .stop-flip .stop-card { order: 0; }
  .stop-card h2 { font-size: clamp(72px, 24vw, 128px); }
  .stop-shot .device { width: min(78%, 320px); }
  .stop-shot-pair .device { width: 47%; }
  .stop-shot-pair .device + .device { margin-top: 36px; }

  .plans, .notes { grid-template-columns: minmax(0, 1fr); padding-block: 80px 88px; }
  .statement { padding-block: 96px 104px; }
  .statement p { font-size: 18px; }
  .pagehead { min-height: 0; padding-top: calc(var(--bar) + 64px); }
  .doc-body { padding-block: 48px 88px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .topbar, .contents, .footer-nav, .skip-link { display: none; }
  .pagehead { min-height: 0; padding: 0 0 16px; background: none; color: #000; }
  .pagehead-sub { color: #000; }
  .doc-body { display: block; padding: 0; background: none; }
  body { background: #fff; color: #000; }
}
