/* Moshi by Cristian Castillo — moshi.co
   One stylesheet for every page. The sample Blueprint, the terms and the privacy note add
   blueprint/blueprint.css on top of it. */

/* Accent blue is reserved for the next action: the buttons, and the first of the three steps.
   Green says one thing only: open, as in "open for bookings". */
:root {
  --ink: #0b0b0f;
  --text-2: #5c5c66;
  --text-3: #86868b;
  --text-3-on-band: #7c7c82;
  --line: #e5e5ea;
  --line-2: #d9d9de;
  --band: #f5f5f7;
  --paper: #ffffff;
  --accent: #0033ff;
  --accent-hover: #0029d1;
  --open: #30d158;
  --on-dark-2: #a1a1aa;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 11vw, 160px);
  --header: 64px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  -webkit-text-size-adjust: 100%;
}

/* Dark at both ends. Every page opens on an ink header and closes on an ink footer, so on a
   phone the browser's own bars are black at the top and the bottom, and nothing white shows
   when the page is pulled past either end. The page's background is ink for that reason; the
   light part of the page is painted by main. */
html,
body {
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main {
  background: var(--paper);
}

/* On paper the page is white; only the parts that are ink by design keep their colour. */
@media print {
  html,
  body {
    background: #fff;
  }

  .site-header,
  .hero--home,
  .book,
  .site-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* The hidden attribute always hides, whatever display a class sets. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(0, 51, 255, 0.16);
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  left: 12px;
}

/* It lands on the ink header, where the blue ring is too faint. */
.skip:focus-visible {
  outline-color: #fff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Type */

h1 {
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h1 span,
h2 span,
.panel-title span {
  display: block;
  text-wrap: balance;
}

.dim {
  color: var(--text-3);
}

.section--band .dim {
  color: var(--text-3-on-band);
}

.sub {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 640px;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fine {
  font-size: 15px;
  color: var(--text-2);
  text-wrap: pretty;
}

.fine a,
.about-foot p a {
  text-underline-offset: 3px;
}

.title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}

.eyebrow {
  color: var(--text-2);
  line-height: 1.7;
  text-wrap: balance;
}

.eyebrow .dot {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* The dot beside a line that says bookings are open. It is green on every ground. */
.dot--open {
  background: var(--open);
}

/* The marker on a step's tab. Hollow by default; the first step's is filled. */
.node {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  background: var(--band);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn svg {
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn .short {
  display: none;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-hover);
}

/* The header's button is quiet, so the blue button of the hero or the booking section is the
   only solid one in view. */
.btn--quiet {
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
}

.btn--quiet:hover {
  background: rgba(255, 255, 255, 0.24);
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.link:hover {
  color: var(--accent);
}

.link--plain {
  font-size: 17px;
  text-decoration: none;
}

/* Header: stays in view, so the next step is always one click away. It is nearly solid, so the
   bar stays ink over the light sections and does not turn grey. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-header .wrap {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.brand b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand span {
  font-size: 15px;
  color: var(--on-dark-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--on-dark-2);
}

.site-header a:focus-visible,
.hero--home a:focus-visible {
  outline-color: #fff;
}

/* Hero */

.hero {
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 5vw, 72px);
  text-align: center;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero .lead {
  max-width: 680px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
}

/* Words that stay on one line, such as "Money-back guarantee". */
.nb {
  white-space: nowrap;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  padding-top: 8px;
}

/* A fact picked out of the lead, such as the dates of a booked week. */
.hero .lead b {
  font-weight: 500;
  color: var(--ink);
}

.hero .fine {
  font-size: 14px;
}

/* The questions page (brief/): its heading leads into a form, so on a wide screen it is set at
   the section-heading size instead of the hero's 104px. Below about 556px wide it is 40px, like
   every other hero, so a phone sees no change. */
.hero--form h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* The home hero has the first screen to itself: the promise, the button and room around
   them. It fills the window up to a point, so on a tall screen it does not turn into a void.
   It is ink, like the booking section the page ends on. */
.hero--home {
  min-height: min(calc(100svh - var(--header)), 860px);
  padding: clamp(72px, 9vw, 136px) 0;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.hero--home .wrap {
  width: 100%;
  gap: 32px;
}

.hero--home .lead,
.hero--home .eyebrow,
.hero--home .fine {
  color: var(--on-dark-2);
}

/* The not-found page and the answers-sent page are the hero alone, centred in the window
   between header and footer. */
.notfound,
.alone {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.notfound .hero,
.alone .hero {
  flex: 1;
  display: flex;
  align-items: center;
}

.notfound .hero .wrap,
.alone .hero .wrap {
  width: 100%;
}

/* Sections. Every one sits in the same 1200px column and opens the same way: a small label, a
   two-line heading and a lead, set to the left. Under that the content either runs the full
   width or splits four columns to eight, with the smaller side naming what the larger side
   holds. */

.section {
  padding: var(--section) 0;
}

.section--band {
  background: var(--band);
}

.section--line {
  border-top: 1px solid var(--line);
}

.sec-head {
  max-width: 860px;
  margin-bottom: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sec-head .mono {
  color: var(--text-2);
}

/* Four columns to eight: a name on the left, what it names on the right. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 64px;
}

.split-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cols-3 + .split,
.split + .split {
  margin-top: clamp(56px, 6vw, 96px);
}

/* The rail: a narrow label column beside the content. About uses it for the portrait, and the
   after-payment page for its section labels. */

.rail {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px 64px;
}

.rail-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Side by side, a label and its heading line up by the top of their capitals, and so do the
   portrait and the About heading. text-box trims the empty space a line carries above its
   letters; browsers without it keep the boxes aligned, which leaves the label a few pixels high. */
@media (min-width: 901px) {
  @supports (text-box: trim-start cap alphabetic) {
    .rail-label > .mono,
    .rail-body > .head > h2 > span:first-child {
      text-box: trim-start cap alphabetic;
    }
  }
}

.rail-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}

/* Under the four sheets: the link to the sample on the left, a note for one kind of reader on the right. */
.sub-row .fine {
  max-width: 460px;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
}

.rule-item {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-item .mono {
  font-weight: 400;
  color: var(--text-2);
}

.rule-item p:last-child {
  font-size: 17px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Who it's for: the options a visitor is weighing */

.options {
  border-top: 1px solid var(--ink);
}

.option {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 4px 32px;
  border-bottom: 1px solid var(--line-2);
}

.option dt {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.option dd {
  max-width: 560px;
  font-size: 17px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* The last row is the answer. It is pulled out by its own padding so its text still lines up with the rows above. */
.option--me {
  margin: 16px -28px 0;
  padding: 26px 28px 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.option--me dd {
  font-size: 18px;
  color: #fff;
}

.option--me .trade {
  margin-top: 10px;
  font-size: 16px;
  color: var(--on-dark-2);
}

/* How it works: the three steps as tabs. The bar is a tray; the chosen step is the raised one,
   and its content fills the space below. */

.tabs-bar {
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 24px;
  background: rgba(11, 11, 15, 0.055);
}

.tab {
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 18px;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.6);
}

.tab.is-on,
.tab.is-on:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.06), 0 16px 34px -20px rgba(11, 11, 15, 0.35);
}

.tab-track {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: var(--text-2);
}

/* The line that leads from each step to the next. After the last one it is dashed. */
.tab-track::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.tab:last-child .tab-track::after {
  background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px);
}

.tab-track b {
  font-weight: 500;
  color: var(--accent);
}

.tab:first-child .node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 51, 255, 0.14);
}

.tab-name {
  display: flex;
  flex-direction: column;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* The price and the duration under a step's name. */
.tab-name .dim {
  margin-top: 4px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-2);
}

.tab-desc {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}

/* A step in full. With the script running only the chosen one shows; without it they follow
   one another, each under a rule. */
.tab-panel {
  padding-top: clamp(48px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 5vw, 72px);
}

.tabs:not(.is-live) .tab-panel + .tab-panel {
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line-2);
}

.tabs.is-live .tab-panel {
  animation: panel 0.35s ease both;
}

@keyframes panel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-head {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-title {
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

/* The foot of a step: the button, a line, and the way to the next step. */
.panel-foot {
  border-top: 1px solid var(--line-2);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.panel-foot .fine {
  flex: 1 1 300px;
  max-width: 440px;
}

.panel-foot > .link {
  margin-left: auto;
}

/* Blueprint: the four pages. Each sheet opens that part of the sample, and lifts a little to say so. */

.pages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 20px;
}

.pages li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-open {
  display: block;
  border-radius: 6px;
  text-decoration: none;
}

.page {
  margin-bottom: 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.06), 0 26px 36px -26px rgba(11, 11, 15, 0.32);
  transition: transform 0.25s ease;
}

.pages li:hover .page {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.06), 0 34px 40px -26px rgba(11, 11, 15, 0.36);
}

.page svg {
  width: 100%;
  height: auto;
}

.page text {
  font-family: var(--sans);
  fill: var(--ink);
}

.page .pm,
.page .pk {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  fill: var(--text-2);
}

.page .ph {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.page .pt {
  font-size: 11.5px;
  font-weight: 500;
}

.page .pt--on {
  fill: #fff;
}

.page .pq {
  font-size: 12px;
  fill: var(--text-2);
}

.page .pl {
  fill: #e4e4ea;
}

.page .pd {
  fill: #c2c2cb;
}

.page .pi {
  fill: var(--ink);
}

.page .pa {
  fill: var(--accent);
}

.page .par {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.28;
  stroke-width: 1.5;
}

.page .pb2 {
  fill: var(--band);
}

.page .pf,
.page .pb {
  fill: #fff;
  stroke: var(--line-2);
  stroke-width: 1.2;
}

.page .pbi {
  fill: var(--ink);
}

.page .pr {
  stroke: var(--line);
  stroke-width: 1;
}

.page .px {
  stroke: var(--text-2);
  stroke-width: 1;
}

.page .pc {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1;
}

.pages .num {
  font-weight: 400;
  color: var(--text-2);
}

.pages .title {
  font-size: 17px;
}

.pages li p:last-child {
  font-size: 16px;
  color: var(--text-2);
  text-wrap: pretty;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice p:last-child {
  font-size: 16px;
  color: var(--text-2);
  text-wrap: pretty;
}

.choice--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.choice--ink p:last-child {
  color: #c7c7cc;
}

/* Build: the three payments, on one line */

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-track {
  padding: 30px 28px 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* Each milestone draws its own dot, the line to the next one, and a tick for every weekly preview. */
.plan-track li {
  position: relative;
  padding: 32px 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: repeating-linear-gradient(90deg, var(--text-3) 0 1px, transparent 1px 25%) 11px 2px / calc(100% - 11px) 7px no-repeat;
}

.plan-track li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}

.plan-track li::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--ink);
}

.plan-track li:last-child {
  background: none;
}

.plan-track li:last-child::after {
  background: repeating-linear-gradient(90deg, var(--text-3) 0 4px, transparent 4px 8px);
}

.plan-track .mono {
  font-weight: 400;
  color: var(--text-2);
}

.plan-amount {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.plan-track li p:last-child {
  max-width: 220px;
  font-size: 16px;
  color: var(--text-2);
  text-wrap: pretty;
}

figcaption {
  max-width: 620px;
  font-size: 16px;
  color: var(--text-2);
  text-wrap: pretty;
}

.get-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  font-size: 17px;
}

.get-list li {
  border-top: 1px solid var(--line-2);
  padding: 16px 0;
  text-wrap: pretty;
}

.spec {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec .mono {
  font-weight: 400;
  color: var(--text-2);
}

.spec p:last-child {
  text-wrap: pretty;
}

/* A short list inside one of these: what fits a first release, and what doesn't. */
.spec ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-wrap: pretty;
}

/* Beyond: the list of requests, and its terms */

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  align-items: start;
}

.queue-card {
  padding: 6px 22px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 44px -34px rgba(11, 11, 15, 0.3);
}

.queue-top {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
}

.queue-card li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.queue-card .state {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.queue-card b {
  font-weight: 500;
}

.queue-card .when {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.queue-card .is-now .state {
  color: var(--ink);
}

.queue-card .is-now b {
  font-weight: 600;
}

.queue-card .is-done b {
  font-weight: 400;
  color: var(--text-3);
  text-decoration: line-through;
}

.terms li {
  border-top: 1px solid var(--ink);
  padding: 16px 0 22px;
}

.terms p:last-child {
  font-size: 17px;
  color: var(--text-2);
}

/* About. It splits four to eight like the rest, and the portrait stays in view beside the history. */

.rail--about {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

/* The label takes a row of its own, so the portrait and the heading start on the same line. */
.rail--about > .mono {
  grid-column: 1 / -1;
}

@media (min-width: 901px) {
  .rail--about > .rail-label {
    position: sticky;
    top: calc(var(--header) + 32px);
    align-self: start;
  }
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.portrait-cap {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.45;
}

.portrait-cap b {
  font-weight: 600;
}

.portrait-cap span {
  color: var(--text-2);
}

.timeline {
  border-bottom: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 6px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline li:first-child {
  border-top-color: var(--ink);
}

/* On the grey band the lighter rule disappears, so the list takes the darker one. */
.section--band .timeline,
.section--band .timeline li:not(:first-child) {
  border-color: var(--line-2);
}

.timeline .years {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}

.timeline h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline p:last-child {
  max-width: 620px;
  margin-top: 4px;
  font-size: 17px;
  color: var(--text-2);
  text-wrap: pretty;
}

.about-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
}

.about-foot p {
  flex: 1 1 320px;
  max-width: 620px;
  font-size: 16px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px 24px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plate {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band);
  transition: box-shadow 0.25s ease;
}

/* The whole card, billboard and label, opens the product. */
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
}

.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product:hover .plate {
  box-shadow: 0 24px 48px -24px rgba(11, 11, 15, 0.35);
}

.product:hover .plate img {
  transform: scale(1.02);
}

/* Work is two columns, each a kind of product. A column opens with one product shown large, on
   its billboard, and lists the others under it: the same label, between hairlines. */
.work-col {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}

.work-col .product--lg {
  padding-bottom: 22px;
}

.product--row {
  gap: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
}

.product--row:last-child {
  border-bottom: 1px solid var(--line-2);
}

/* A row has no billboard: its link is empty, and still covers the whole row. */
.plate--bare {
  border: 0;
  border-radius: 0;
  background: none;
}

/* An arrow at the end of every label says the product opens. The label is positioned only to
   place the arrow, so the link's cover is raised to stay above it. */
.work-col .product-meta {
  position: relative;
}

.work-col .plate::after {
  z-index: 1;
}

/* The focus ring goes round the whole card the link covers. On the link itself it would be a
   flat line across the top of a row, whose link is empty. */
.plate:focus-visible {
  outline: 0;
}

.plate:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.work-col h3 {
  padding-right: 28px;
}

.out {
  position: absolute;
  top: 3px;
  right: 0;
  color: var(--text-2);
  transition: transform 0.2s ease, color 0.2s ease;
}

.product:hover .out {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* Label: the icon is exactly as tall as the name and one line of tags beside it. */
.product-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.08);
}

/* Clips the separator that would otherwise start each line of tags. */
.product-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product h3 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Every tag carries a leading dot and the list is pulled left by one dot,
   so a line never starts or ends with a separator, however it wraps. */
.tags {
  --sep: 22px;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--sep));
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.tags li {
  white-space: nowrap;
}

.tags li::before {
  content: '·';
  display: inline-block;
  width: var(--sep);
  text-align: center;
  letter-spacing: 0;
  color: var(--text-3);
}

/* Questions */

.faq {
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  min-height: 68px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  text-wrap: balance;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .plus {
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-2);
  transition: transform 0.2s ease;
}

.faq details[open] .plus {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Book */

.book {
  background: var(--ink);
  color: #fff;
}

.book .wrap {
  padding-top: clamp(88px, 11vw, 152px);
  padding-bottom: var(--section);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.book .eyebrow {
  color: var(--on-dark-2);
}

.book h2 {
  max-width: 900px;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.book .lead {
  max-width: 600px;
  color: var(--on-dark-2);
}

.book a:focus-visible {
  outline-color: #fff;
}

/* A line of supporting text on the dark booking section. */
.book .fine {
  max-width: 560px;
  color: var(--on-dark-2);
}

/* The four questions, a page of their own (brief/), opened by every Start button. The fields sit
   in one column under the centred heading. Ink and greys only; the one blue is the Send button. */
.form {
  width: 100%;
  max-width: 560px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field > label,
.field legend {
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* A legend stands outside its fieldset's flow, so the gap above the taps is its own. */
.field legend {
  margin-bottom: 10px;
}

.field > input,
.field > textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.field textarea {
  resize: vertical;
}

/* A choice of one, as taps: each option is a box with its radio inside. */
.taps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taps label {
  min-height: 52px;
  padding: 0 18px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
}

.taps input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.taps label:has(:checked) {
  border-color: var(--ink);
}

.field > input:focus-visible,
.field > textarea:focus-visible,
.taps label:has(:focus-visible) {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

/* The label carries the ring, so the radio inside it draws none of its own. */
.taps input:focus-visible {
  outline: 0;
}

/* Filled only by programs that fill every field; the server sets aside what comes with it. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  align-self: flex-start;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* Footer: only what the header does not hold, which is how to reach me and the terms. */

.site-footer {
  background: var(--ink);
  border-top: 1px solid #26262b;
  color: var(--on-dark-2);
  font-size: 14px;
}

.site-footer .wrap {
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark-2);
}

.site-footer a:focus-visible {
  outline-color: #fff;
}

/* Sections rise into place as they come into view, each over a short, fixed stretch of
   scrolling. Only where the browser can tie an animation to the scroll position, and never
   for someone who has asked for less motion. */
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sec-head,
    .work-grid .product,
    .cols-3,
    .split,
    .tabs-bar,
    #about .head,
    #about .timeline {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 240px;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Smaller screens */

@media (max-width: 1100px) {
  .pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Too narrow for a label and its arrow in half the width: the columns stack, each still
   opening with its billboard. */
@media (max-width: 760px) {
  .work-col {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .rail,
  .rail--about,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-label .portrait {
    max-width: 240px;
  }
}

@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }

  .cols-3,
  .cols-2,
  .choices,
  .get-list,
  .beyond-grid,
  .plan-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .cols-2 {
    gap: 32px;
  }

  .option {
    grid-template-columns: minmax(0, 1fr);
  }

  .option--me {
    margin-inline: -12px;
    padding: 22px 20px 24px;
  }

  /* The three tabs stay side by side on a phone and follow the reader under the header, as
     names only: the line of description is in the step itself. Against the ink header the
     tray needs a little more body. */
  .tabs-bar {
    position: sticky;
    top: calc(var(--header) + 8px);
    z-index: 5;
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    background: rgba(214, 214, 220, 0.9);
    border-radius: 18px;
  }

  .tab {
    padding: 12px 10px;
    gap: 6px;
    border-radius: 13px;
    text-align: center;
  }

  .tab-track,
  .tab-desc {
    display: none;
  }

  .tab-name {
    align-items: center;
    font-size: 17px;
  }

  /* Each tab reads in three lines: the step, its price, its duration. Left to wrap, a narrow
     tab leaves "One" or "a" stranded at the end of the price line. */
  .tab-name .dim {
    margin-top: 2px;
    font-size: 12px;
  }

  .tab-name .dim > span {
    display: block;
  }

  .tab-name .dim > .sep {
    display: none;
  }

  .panel-foot > .link {
    margin-left: 0;
  }

  /* A focused link inside a step is not left hidden under the header and the tabs. */
  .tab-panel a,
  .tab-panel button,
  .tab-panel summary {
    scroll-margin-top: 96px;
  }

  /* The build line turns to run down the page. */
  .plan-track {
    padding: 26px 22px 6px;
  }

  .plan-track li,
  .plan-track li:last-child {
    padding: 0 0 26px 30px;
    background: none;
  }

  .plan-track li::before {
    top: 2px;
  }

  .plan-track li::after {
    left: 5px;
    right: auto;
    top: 13px;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .plan-track li:last-child::after {
    background: repeating-linear-gradient(var(--text-3) 0 4px, transparent 4px 8px);
  }

  .plan-track li p:last-child {
    max-width: none;
  }

  .timeline li {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-body {
    gap: 48px;
  }

  .faq summary {
    font-size: 18px;
  }

  /* The four footer links sit above the copyright's rule as two pairs: contact on the left,
     terms on the right. */
  .site-footer .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 0 24px;
    font-size: 15px;
  }

  .site-footer p {
    order: 2;
    padding-top: 14px;
    border-top: 1px solid #26262b;
  }
}

/* On a phone the hero title takes nearly the full width: four lines, as large as the longest
   of them ("Your product,") allows. */
@media (max-width: 600px) {
  .hero--home h1 {
    font-size: clamp(40px, 13.6vw, 72px);
  }
}

@media (max-width: 520px) {
  .work-grid {
    gap: 44px 24px;
  }

  .work-col .product--lg {
    padding-bottom: 18px;
  }

  .product--row {
    padding: 18px 0;
  }

  .hero .btn,
  .panel-foot .btn,
  .book .btn {
    width: 100%;
  }

  .nav .btn .long {
    display: none;
  }

  .nav .btn .short {
    display: inline;
  }

  .pages {
    gap: 28px 14px;
  }
}

/* On a short phone the room around the hero gives way first, so the price line under the
   button stays on the first screen. */
@media (max-width: 520px) and (max-height: 700px) {
  .hero--home {
    padding: 28px 0 36px;
  }

  .hero--home .wrap {
    gap: 20px;
  }
}

/* On a short laptop window the room around the hero gives way too, for the same reason. */
@media (min-width: 521px) and (max-height: 800px) {
  .hero--home {
    padding: 48px 0;
  }
}

/* On a narrow phone the hero's small line takes two lines, as on the sharing image: the step and
   its price, then the guarantee, with no dot left hanging between them. */
@media (max-width: 400px) {
  .hero--home .fine .sep {
    display: none;
  }

  .hero--home .fine .nb {
    display: block;
  }
}

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

  * {
    transition: none !important;
  }

  .tabs.is-live .tab-panel {
    animation: none;
  }
}
