/* Moonwalker by Moonads: structure shared by every design.
   A design sets the variables (colour, type) and adds its own decoration in theme-*.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(64px, 9vw, 120px);
  --radius: 0px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }

.wrap { max-width: 1160px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.lead { font-size: 1.1875rem; max-width: 38rem; }
.dim { color: var(--muted); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; }
.alt { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 9.5em; text-align: right; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 560px) { .alt { display: none; } .brand span { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 0.9375rem; line-height: 1.2;
  padding: 0.8rem 1.25rem; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.top .btn { padding: 0.6rem 1rem; white-space: nowrap; }
@media (max-width: 560px) { .top .wrap { gap: 12px; } .top .btn { padding: 0.55rem 0.8rem; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.terms-line { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.hero-art { position: relative; min-width: 0; display: flex; flex-direction: column; }
.plate { margin: 0; position: relative; }
.plate img { width: 100%; }
.log { width: 100%; position: relative; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; }
.log-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.log ol { list-style: none; margin: 0; padding: 8px 16px 12px; display: grid; gap: 8px; }
.log li { display: grid; grid-template-columns: 3.4em 3.6em minmax(0, 1fr); gap: 8px; }
.log-foot { padding: 10px 16px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .log li { grid-template-columns: 3.2em minmax(0, 1fr); } .log .who { display: none; } }

/* who built it */
.proof { padding-block: clamp(28px, 4vw, 48px); }
.proof .wrap { display: grid; gap: 20px; }
.proof dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px clamp(16px, 2.6vw, 36px); }
.proof dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; }
.proof dt { font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.proof dd { margin: 0; font-family: var(--display); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .proof dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proof dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sections */
.sec { padding-block: var(--section); }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.work article { padding-block: 22px 26px; display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 6px 16px; align-content: start; }
.work article .tag { padding-top: 0.42em; }
.work article h3, .work article p { grid-column: 2; }
.work article p { font-size: 1rem; }
.work article.wide { grid-column: 1 / -1; }
.work article.wide p { max-width: 46rem; }
@media (max-width: 760px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work article { grid-template-columns: minmax(0, 1fr); }
  .work article h3, .work article p { grid-column: 1; }
}

.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: method; }
.method > div { counter-increment: method; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 18px; }
.method p { font-size: 1rem; }
@media (max-width: 760px) { .method { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .sec-head { margin-bottom: 0; }
.rows { margin: 0; display: grid; }
.rows > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 6px 20px; padding-block: 18px; }
.rows dt { font-family: var(--display); }
.rows dd { margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rows > div { grid-template-columns: minmax(0, 1fr); } }

.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.plan li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 16px; }
.plan p { font-size: 1rem; }
@media (max-width: 900px) { .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plan { grid-template-columns: minmax(0, 1fr); } }

.data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.data h3 { margin-bottom: 12px; }
.data ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 1rem; }
.data li { padding-left: 1.5em; position: relative; }
.data li::before { position: absolute; left: 0; font-family: var(--mono); }
.data .yes li::before { content: "+"; }
.data .no li::before { content: "\00d7"; }
.data-note { margin-top: clamp(24px, 4vw, 40px); max-width: 46rem; font-size: 1rem; }
@media (max-width: 760px) { .data { grid-template-columns: minmax(0, 1fr); } }

/* lower half */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans > div { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plans .price { font-family: var(--display); line-height: 1; font-variant-numeric: tabular-nums; margin-top: 10px; }
.plans .per { font-size: 0.9375rem; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.over { margin-top: 14px; font-size: 1rem; }
.incl { margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 56px); font-size: 1rem; }
.incl li { padding-left: 1.5em; position: relative; }
.incl li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); }
@media (max-width: 760px) { .incl { grid-template-columns: minmax(0, 1fr); } }
.managed { margin-top: clamp(24px, 4vw, 40px); max-width: 46rem; font-size: 1rem; }

.next { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.next .sec-head { margin-bottom: 0; }
.next p + p { margin-top: 12px; }
.status { display: inline-block; }
@media (max-width: 900px) { .next { grid-template-columns: minmax(0, 1fr); } }

.touchdown { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.touchdown .sec-head { margin-bottom: 0; }
.mail { font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 500; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 760px) { .touchdown { grid-template-columns: minmax(0, 1fr); } }

.foot { padding-block: 36px; font-size: 0.875rem; }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot p { max-width: 60rem; }

/* legal pages */
.doc { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: 10px; }
.doc h2 { margin: 2.2em 0 0.6em; }
.doc p, .doc ul { margin: 0 0 1em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { font-family: var(--mono); font-size: 0.8125rem; margin-bottom: 2em; }
.tablewrap { overflow-x: auto; margin: 0 0 1em; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; }
.doc th { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* the bar that switches between design options; preview only, never part of the live site */
.optbar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; display: flex; gap: 2px; padding: 4px; background: rgba(14, 14, 14, 0.94); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font: 500 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; max-width: calc(100vw - 16px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.optbar a { color: #d6d6d6; text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.optbar a:hover { color: #fff; }
.optbar a[aria-current="page"] { background: #fff; color: #000; }
@media (max-width: 460px) { .optbar a { padding: 8px 9px; font-size: 11px; } }

/* Design 1, "Flight plan": the printed documents of the Apollo years.
   Paper, black ink and one red. Heavy grotesque headlines, typewriter data, ruled tables. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-var.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ece8dd;
  --bg-2: #f6f3eb;
  --fg: #0c0c0c;
  --muted: #56534c;
  --hair: #b9b3a5;
  --accent: #d7321b;
  --link: #0c0c0c;
  --paper-dim: #b5b0a6;
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
}

body { counter-reset: sec; }
a:hover { color: var(--accent); }

h1, h2 { text-transform: uppercase; font-weight: 800; letter-spacing: -0.028em; line-height: 0.93; }
h1 { font-size: clamp(2.6rem, 7.6vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.75rem); }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.005em; }
.lead { font-size: 1.25rem; line-height: 1.42; font-weight: 500; }

.label { font-family: var(--display); font-weight: 700; font-stretch: 82%; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.hero .label::before, .proof .label::before { content: ""; width: 44px; height: 10px; background: var(--accent); flex: none; }

/* header */
.top { background: var(--bg); border-bottom: 2px solid var(--fg); }
.brand b { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.05rem; letter-spacing: 0.05em; }
.brand span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.nav a { color: var(--fg); font-weight: 600; font-stretch: 88%; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a:hover { color: var(--accent); }
.alt { font-family: var(--mono); font-weight: 700; font-size: 0.8125rem; color: var(--accent); }
.btn { text-transform: uppercase; font-weight: 700; font-stretch: 90%; letter-spacing: 0.08em; font-size: 0.8125rem; border-width: 2px; }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--fg); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* hero: the headline runs the full width like a poster, the copy and the plate sit under it */
.hero { padding-block: clamp(32px, 4.5vw, 60px) clamp(48px, 7vw, 88px); }
.hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto auto auto 1fr; align-items: start; gap: 24px clamp(32px, 5vw, 72px); }
.hero-copy { display: contents; }
.hero-copy .label, .hero-copy h1 { grid-column: 1 / -1; }
.hero-copy h1 { margin-bottom: clamp(8px, 1.6vw, 24px); }
.hero-copy .lead, .hero-copy .cta, .hero-copy .terms-line { grid-column: 1; }
.hero-art { grid-column: 2; grid-row: 3 / 7; }
.terms-line { font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 2px solid var(--fg); }
.terms-line li::before { content: "\25A0"; color: var(--accent); margin-right: 10px; font-size: 0.7em; vertical-align: 0.15em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero-copy .label, .hero-copy h1, .hero-art { grid-column: 1; grid-row: auto; }
}

.plate { --cap: 34px; border: 2px solid var(--fg); background: #000; }
.plate img { aspect-ratio: 16 / 8.2; object-fit: cover; object-position: 50% 58%; filter: grayscale(1) contrast(1.12); }
.plate::after {
  content: ""; position: absolute; inset: 0 0 var(--cap) 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 52v16M52 60h16' stroke='%23fff' stroke-opacity='.8' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 120px; background-position: center;
}
.plate figcaption { height: var(--cap); display: flex; align-items: center; padding: 2px 12px 0; background: var(--bg); border-top: 2px solid var(--fg); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.log { background: var(--bg-2); border: 2px solid var(--fg); border-top: 0; font-size: 0.875rem; line-height: 1.45; }
.log-head { background: var(--fg); color: var(--bg); font-family: var(--display); font-weight: 700; font-stretch: 85%; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; padding: 9px 14px; }
.log ol { padding: 4px 14px 8px; gap: 0; }
.log li { padding-block: 7px; border-bottom: 1px dashed var(--hair); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--muted); }
.log .who { font-weight: 700; color: var(--accent); }
.log .you .who { color: var(--fg); }
.log-foot { border-top: 2px solid var(--fg); color: var(--muted); font-size: 0.75rem; padding: 8px 14px 6px; }

/* who built it */
.proof { border-top: 2px solid var(--fg); padding-block: 0; }
.proof .wrap { gap: 0; }
.proof .label { padding-block: 14px 12px; border-bottom: 1px solid var(--hair); }
.proof dl { gap: 0; }
.proof dl > div { padding: 22px 16px 26px 0; }
.proof dl > div + div { padding-left: 18px; border-left: 1px solid var(--hair); }
.proof dd { font-weight: 800; font-size: clamp(1.9rem, 3.3vw, 2.75rem); letter-spacing: -0.035em; }
.proof dt { font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; color: var(--fg); line-height: 1.3; }
@media (max-width: 960px) {
  .proof dl > div, .proof dl > div + div { padding: 16px 12px 18px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
}

/* sections, numbered like a manual */
.sec { counter-increment: sec; border-top: 2px solid var(--fg); }
.sec .sec-head .label::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; font-size: 0.875rem; color: var(--fg); border: 2px solid var(--fg); padding: 3px 7px 0; line-height: 1.3; }
.dim { color: var(--muted); }
.sec-head { max-width: 60rem; }

.work article { border-top: 1px solid var(--hair); }
.work article.wide { border-top: 2px solid var(--fg); }
.work .tag { font-family: var(--mono); font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; color: var(--accent); }
.work p { color: var(--muted); }
.work article.wide p { color: var(--fg); font-size: 1.125rem; }

.method > div { border-top: 10px solid var(--fg); padding-top: 14px; }
.method > div::before { content: "M-" counter(method); font-family: var(--mono); font-weight: 700; font-size: 0.8125rem; color: var(--accent); }
.method p { color: var(--muted); }

.rows > div { border-top: 1px solid var(--hair); }
.rows > div:first-child { border-top: 2px solid var(--fg); }
.rows dt { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.rows dd { color: var(--muted); }

.plan li { border-top: 2px solid var(--fg); }
.plan li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.plan p { color: var(--muted); }

.data h3 { text-transform: uppercase; font-stretch: 85%; letter-spacing: 0.08em; font-size: 0.9375rem; border-bottom: 2px solid var(--fg); padding-bottom: 8px; }
.data li { border-bottom: 1px solid var(--hair); padding-bottom: 8px; }
.data li::before { font-weight: 700; }
.data .yes li::before { color: var(--accent); }
.data-note { color: var(--muted); }

/* lower half: black, then a red closing page */
.surface { background: var(--fg); color: var(--bg); --hair: #3b3934; }
.surface .sec { border-top: 1px solid var(--hair); }
.surface .sec:first-child { border-top: 0; }
.surface .sec .sec-head .label::before { color: var(--bg); border-color: var(--bg); }
.surface .lead, .surface .dim, .over, .managed { color: var(--paper-dim); }
.surface a { color: var(--bg); }
.surface :focus-visible { outline-color: var(--bg); }

.plans { border: 2px solid var(--bg); }
.plans > div + div { border-left: 2px solid var(--bg); }
.plans .band { font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; color: var(--paper-dim); }
.plans h3 { font-size: 1.35rem; text-transform: uppercase; font-stretch: 90%; letter-spacing: 0.05em; }
.plans .price { font-weight: 800; font-size: clamp(3.2rem, 7vw, 5.4rem); letter-spacing: -0.04em; }
.plans .per { font-family: var(--mono); text-transform: uppercase; font-size: 0.8125rem; color: var(--paper-dim); }
@media (max-width: 760px) { .plans > div + div { border-left: 0; border-top: 2px solid var(--bg); } }
.incl li::before { color: var(--accent); font-weight: 700; }
.status { font-family: var(--mono); font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 9px 2px; }

.surface #contact { background: var(--accent); color: #fff; border-top: 0; }
#contact .label { color: #fff; }
.surface #contact .sec-head .label::before { color: #fff; border-color: #fff; }
#contact h2 { font-size: clamp(2.8rem, 9vw, 7.5rem); }
#contact .lead { color: #fff; }
#contact .sec-head { max-width: none; }
#contact .lead { max-width: 40rem; }
.touchdown { grid-template-columns: minmax(0, 1fr); }
.mail { font-weight: 700; }
.btn-ink, .surface a.btn-ink { background: var(--fg); color: #fff; border-color: var(--fg); }
.btn-ink:hover, .surface a.btn-ink:hover { background: #fff; color: var(--fg); border-color: #fff; }

.foot { background: var(--fg); color: var(--paper-dim); }
.foot a { color: var(--bg); }

/* legal pages */
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.doc h2 { font-size: 1.2rem; letter-spacing: 0.02em; line-height: 1.2; font-stretch: 90%; }
.doc .updated { color: var(--muted); }
.doc th, .doc td { border-bottom: 1px solid var(--hair); }
.doc th { color: var(--muted); }

@media (max-width: 560px) {
  .brand b { font-size: 0.9rem; letter-spacing: 0.03em; }
  .top .btn { font-size: 0.75rem; letter-spacing: 0.05em; }
  .plate figcaption { font-size: 0.625rem; padding-inline: 8px; }
}
