/* snipesheet.app: the marketing look at the medium dial (SnipeSheet's docs/marketing/visual.md, M20).
   Barlow Condensed 800 italic headlines with no closing period, Inter text, goal orange as one block (the close).
   Always light, whatever the device's setting (M28). The hero is a phone that holds the launch clip (M28; until launch, a line of copy, M22).
   No inline styles anywhere (the Content Security Policy in _headers). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800-italic-latin.woff") format("woff");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --ink: #0B0B0F;
  --sub: #5B5B66;
  --rule: #E2E2E7;
  --line: #A9A9B3;
  --orange: #FF5F00;
  --on-orange: #0B0B0F;
  --focus: #0B0B0F;
  --wrap: 1120px;
  --read: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.read { max-width: var(--read); }

/* Type */
.display, h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(56px, 9vw, 116px); line-height: 0.88; text-transform: uppercase; }
h2 { font-size: clamp(36px, 5.2vw, 60px); line-height: 0.92; text-transform: uppercase; }
h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; max-width: 34ch; }
/* The joke under each section (voice.md's medium dial), in the coach's-note voice. */
.aside {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--sub);
  margin: 0;
}
/* The coach's double underline under a phrase (the header images' mark). */
.mark {
  background: url("img/underline.svg") no-repeat left bottom / 100% 0.2em;
  padding-bottom: 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Header and footer */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: block; width: 168px; }
.logo img { width: 100%; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); }

.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 15px; color: var(--sub); }
.site-foot .wrap { display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--ink); }
.site-foot p { margin: 0; }

/* Home: the hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
/* The play from the header images (M23), faded across the hero, with the phone on top (M28). */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background: url("img/play-board.svg") no-repeat center bottom 6% / 170vw auto;
}
@media (min-width: 900px) { .hero::before { background-position: center; background-size: min(1080px, 80vw) auto; } }
.hero .wrap { position: relative; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 7fr 5fr; } }
.hero h1 { margin-bottom: 40px; }
/* What the app is, one size down from the headline so it doesn't compete with it. */
.intro { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.5; color: var(--sub); max-width: 42ch; margin-bottom: 28px; }
.launch { display: inline-block; font-weight: 700; font-size: 17px; border-left: 4px solid var(--orange); padding: 2px 0 2px 12px; margin-bottom: 24px; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.follow-label { margin: 0; font-weight: 600; font-size: 16px; }

/* The phone: a plain frame (no device artwork) around a portrait screen, sized for an iPhone recording. */
.phone {
  width: min(300px, 64vw); margin: 0 auto;
  background: var(--ink); border-radius: 48px; padding: 12px;
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1179 / 2556; border-radius: 37px;
  background: var(--orange); color: var(--on-orange);
  display: grid; place-items: center;
}
.screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 26px; border-radius: 999px; background: var(--ink);
}
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen-soon { padding: 0 24px; text-align: center; }
.screen-line {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 52px); line-height: 0.9; margin: 0 0 16px;
}
.screen-note { font-weight: 600; font-size: 15px; margin: 0; }

/* Home: sections */
.section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 24px; text-wrap: balance; }
.problem p:not(.aside) { max-width: 60ch; font-size: 20px; }

.cols { display: grid; gap: 40px; margin-top: 8px; }
@media (min-width: 860px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.col { border-top: 4px solid var(--ink); padding-top: 20px; }
.col h3 { margin-bottom: 12px; }
.col p { font-size: 18px; margin: 0 0 12px; max-width: 30ch; }
.col .aside { font-size: 19px; }
/* The app's own icons (SnipeSheet's brand/assets/icons/set, Block leaned 7°), one per column. */
.col-icon { display: block; width: 32px; height: 32px; color: var(--orange); margin-bottom: 14px; }

.faq details { border-top: 1px solid var(--rule); padding: 18px 0; max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
/* The app's plus and minus (img/icons), drawn in the text color through a mask. */
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: currentColor;
  -webkit-mask: url("img/icons/plus.svg") center / contain no-repeat; mask: url("img/icons/plus.svg") center / contain no-repeat;
}
.faq details[open] summary::after { -webkit-mask-image: url("img/icons/minus.svg"); mask-image: url("img/icons/minus.svg"); }
.faq details p { margin: 12px 0 0; color: var(--sub); }

/* The close: goal orange as the one block (visual.md, medium) */
.close { background: var(--orange); color: var(--on-orange); padding: clamp(56px, 8vw, 104px) 0; }
.close h2 { font-size: clamp(56px, 9vw, 116px); line-height: 0.88; margin-bottom: 24px; max-width: none; }
.close p { font-size: 20px; max-width: 46ch; font-weight: 500; }
.close .social { margin-top: 28px; }
.close .social a { color: var(--on-orange); }
.close .social a:hover { background: var(--on-orange); color: var(--orange); }
.close :focus-visible { outline-color: var(--on-orange); }

/* Social icons (img/social.svg): round 44px targets, the brand mark in the text color. */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid currentColor; border-radius: 999px; color: var(--ink);
}
.social a:hover { background: var(--ink); color: var(--bg); }
.icon { width: 20px; height: 20px; fill: currentColor; }

/* Blog */
.page-head { padding: clamp(40px, 6vw, 80px) 0 24px; }
.page-head h1 { font-size: clamp(48px, 7vw, 88px); margin-bottom: 16px; }
.posts { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; }
.posts li { border-top: 1px solid var(--rule); padding: 28px 0; }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.section .posts { margin-bottom: 0; }
.posts h2, .posts h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1; text-transform: none; margin: 6px 0 10px; }
.posts h2 a, .posts h3 a { text-decoration: none; }
.posts h2 a:hover, .posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.track { font-size: 15px; font-weight: 600; color: var(--sub); margin: 0; }

.post { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.post .read { margin: 0 auto; }
.post h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.92; text-transform: none; margin: 8px 0 14px; }
.post .aside { margin-bottom: 36px; }
.post p, .post li { font-size: 18px; }
.post ul, .post ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.post li { margin-bottom: 0.4em; }
.post .sign-off { border-top: 4px solid var(--ink); padding-top: 18px; margin-top: 40px; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 600; }
.back::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("img/icons/chevron-left.svg") center / contain no-repeat; mask: url("img/icons/chevron-left.svg") center / contain no-repeat;
}

/* 404 */
.lost { padding: clamp(56px, 10vw, 140px) 0; }
.lost h1 { margin-bottom: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .social a { transition: background-color 120ms, color 120ms; }
}
