/* Slate and Site
   The page is built like a film slate: a black board, chalk-white lines,
   printed labels and hand-written values. Gold marks the price and the one
   action we want (it also ties the site to the ads). Change the look by
   editing the variables in :root. */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../fonts/permanent-marker.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --board: #101113;
  --raised: #191b1e;
  --chalk: #f3f1ea;
  --muted: #aaa69d;
  --line: rgba(243, 241, 234, 0.22);
  --accent: #d4b477;
  --accent-ink: #17130a;
  --hand-color: #d4b477;
  --sticks: repeating-linear-gradient(115deg, #f3f1ea 0 26px, #101113 26px 52px);
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Permanent Marker", "Bradley Hand", "Comic Sans MS", cursive;
  --gutter: 20px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--board);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 20; background: var(--chalk); color: var(--board); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 10px; }

/* Type */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.88; letter-spacing: 0.01em; }
h1.display { font-size: clamp(72px, 19vw, 176px); }
h2.display { font-size: clamp(46px, 11vw, 84px); line-height: 0.92; }
h3.display { font-size: clamp(28px, 6vw, 34px); line-height: 1; letter-spacing: 0.02em; }
.lede { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.5; max-width: 34ch; }
.muted { color: var(--muted); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0.9em; }
.text-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 600; }
.text-link:hover { color: var(--accent); }
.hero__actions .text-link { display: inline-block; padding-block: 10px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 2px;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--chalk); border-color: var(--chalk); color: var(--board); }
.button--small { min-height: 44px; padding: 8px 16px; font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--board); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-size: 26px; letter-spacing: 0.06em; line-height: 1; padding-top: 3px; }
.wordmark svg { width: 30px; height: 26px; flex: none; margin-top: -4px; }
.wordmark:hover { color: var(--accent); }

/* Hero */
.hero { padding-block: 34px 56px; }
.hero__grid { display: grid; gap: 34px; }
.hero .lede { margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 26px; }

/* The slate: the offer, written the way a slate is written */
.slate { max-width: 520px; }
.slate__sticks { position: relative; height: 72px; }
.slate__arm, .slate__base { position: absolute; left: 0; right: 0; height: 26px; background: var(--sticks); border: 2px solid var(--chalk); }
.slate__base { bottom: 0; }
.slate__arm { bottom: 24px; transform-origin: 13px 100%; transform: rotate(-5deg); animation: clap 1.1s cubic-bezier(0.3, 0, 0.2, 1) 0.4s both; }
@keyframes clap {
  0% { transform: rotate(-9deg); }
  38% { transform: rotate(0deg); }
  55% { transform: rotate(0deg); }
  100% { transform: rotate(-5deg); }
}
.slate__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--chalk); border-top: 0; background: var(--raised); }
.slate__cell { padding: 12px 12px 14px; border-top: 2px solid var(--chalk); min-width: 0; }
.slate__cell + .slate__cell { border-left: 2px solid var(--chalk); }
.slate__cell--wide { grid-column: 1 / -1; border-left: 0 !important; }
.slate__cell:first-child { border-top: 0; }
.slate dt { font: 600 11px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.slate dd { margin-top: 6px; font-family: var(--hand); color: var(--hand-color); font-size: clamp(24px, 6.6vw, 38px); line-height: 1.05; white-space: nowrap; }
.slate dd small { font-size: 0.56em; }
.slate__cell--wide dd { font-size: clamp(21px, 5.8vw, 30px); white-space: normal; }
.slate__cell--plain dd { color: var(--chalk); }
.slate__note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 520px; }

/* Sections */
.band { padding-block: 64px; border-top: 1px solid var(--line); }
.band > .wrap > .display + * { margin-top: 22px; }

/* Proof: three real sites */
.sites { display: grid; gap: 38px; margin-top: 30px; }
.site-card img { width: 100%; border: 1px solid var(--line); background: var(--raised); }
.site-card h3 { margin-top: 16px; }
.site-card p { margin-top: 6px; color: var(--muted); max-width: 44ch; }
.site-card .text-link { display: inline-block; margin-top: 10px; padding-block: 9px; }
.built-by { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: var(--measure); color: var(--muted); }
.built-by a { color: var(--chalk); }

/* What it does: four plain statements, not a sequence */
.does { display: grid; gap: 0 56px; margin-top: 26px; }
.does li { padding-block: 20px; border-top: 1px solid var(--line); }
.does strong { display: block; font-size: 20px; line-height: 1.3; font-weight: 600; }
.does span { display: block; margin-top: 6px; color: var(--muted); max-width: 46ch; }

/* Steps: a real sequence, so it is numbered */
.steps { display: grid; gap: 26px; margin-top: 30px; counter-reset: take; }
.steps li { counter-increment: take; display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; align-items: start; }
.steps li::before { content: counter(take); font-family: var(--display); font-size: 64px; line-height: 0.8; color: var(--accent); }
.steps strong { display: block; font-size: 20px; line-height: 1.3; font-weight: 600; }
.steps span { display: block; margin-top: 6px; color: var(--muted); max-width: 40ch; }

/* Portal */
.portal { background: var(--raised); border: 2px solid var(--chalk); padding: 26px 22px 28px; }
.portal .prose { margin-top: 16px; }
.portal ul { display: grid; gap: 8px; margin-top: 18px; }
.portal li { padding-left: 26px; position: relative; }
.portal li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; background: var(--sticks); background-size: 220px; border: 1px solid var(--chalk); }
.portal__note { margin-top: 18px; color: var(--muted); }
.portal .button { margin-top: 24px; }

/* Answers */
.answers { margin-top: 22px; max-width: 760px; border-top: 1px solid var(--line); }
.answers details { border-bottom: 1px solid var(--line); }
.answers summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; line-height: 1.35; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { content: "+"; flex: none; font-family: var(--display); font-size: 34px; line-height: 0.6; color: var(--accent); }
.answers details[open] summary::after { content: "\2212"; }
.answers p { padding-bottom: 20px; color: var(--muted); max-width: var(--measure); }

/* Form */
.start__grid { display: grid; gap: 30px; }
.start__copy { margin-top: 20px; }
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; padding: 14px; min-height: 52px;
  background: var(--raised); color: var(--chalk);
  border: 2px solid var(--line); border-radius: 0;
  font: 400 17px/1.4 var(--body);
}
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
.form textarea { min-height: 132px; resize: vertical; }
.form ::placeholder { color: var(--muted); opacity: 0.85; }
.form .check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; }
.form .check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form__note { font-size: 14px; color: var(--muted); }
.form .button { justify-self: start; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 34px 44px; font-size: 15px; color: var(--muted); }
.foot__in { display: grid; gap: 18px; }
.foot a { color: var(--chalk); text-underline-offset: 4px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { display: inline-block; padding-block: 10px; }

/* Simple pages: thank you, privacy, 404 */
.page { padding-block: 56px 80px; min-height: 60vh; }
.page .prose { margin-top: 22px; }
.page h2 { font: 600 20px/1.3 var(--body); margin-top: 30px; }
.page h2 + p { margin-top: 8px; }
.page .button { margin-top: 30px; }

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero { padding-block: 60px 84px; }
  .band { padding-block: 92px; }
  .sites { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .does { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .portal { padding: 40px 44px 44px; }
  .portal ul { grid-template-columns: 1fr 1fr; gap: 10px 40px; max-width: 760px; }
  .foot__in { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: end; }
  h1.display { font-size: clamp(104px, 9.4vw, 148px); }
  .slate { justify-self: end; width: 100%; }
  .slate dd { font-size: 36px; }
  .slate__cell--wide dd { font-size: 28px; }
  .start__grid { grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slate__arm { animation: none; }
}
