/* Spacing is on an 8px grid: 8, 16, 24, 32, 48, 64. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --soft: #6b6b6b;
  --line: #e4e4e4;
  --card: #ffffff;
  --accent: #b5441a;
  --button: #111111;
  --button-ink: #ffffff;
  --accent-ink: #ffffff;
  --focus: #b5441a55;
  --highlight: #f4c9b4;
  --band: #141414;
  --band-ink: #f2f2f0;
  --band-soft: #a3a39f;
  --band-line: #2e2e2c;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --ink: #f2f2f0;
    --soft: #9a9a96;
    --line: #2a2a28;
    --card: #0f0f0f;
    --accent: #e57a4a;
    --button: #f2f2f0;
    --button-ink: #0f0f0f;
    --accent-ink: #0f0f0f;
    --highlight: #7a3417;
    --band: #1d1d1b;
    --band-line: #343432;
    --focus: #e57a4a77;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  color: var(--ink);
  font: 400 1.0625rem/1 var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
/* The logo: a few city blocks, with the business in the middle one. */
.mark svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.mark .here { fill: #d9572a; }

/* Headlines are a regular-weight serif, set tight: the weight comes from size, not boldness. */
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 24px; }
h2 { font-size: 1.625rem; margin: 64px 0 16px; }
p, li { text-wrap: pretty; }
.lead { font-size: 1.1875rem; color: var(--soft); margin: 0; }

.button, button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  font: 500 0.9375rem var(--sans);
  letter-spacing: 0.01em;
  background: var(--button);
  color: var(--button-ink);
  border: 1px solid var(--button);
  border-radius: 2px;
  padding: 0 28px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.button:hover, button:hover { opacity: 0.85; }
.button:active, button:active { opacity: 0.7; }
button.quiet { background: transparent; color: var(--ink); }
@media (min-width: 560px) { .button, button { width: auto; display: inline-flex; } }

ul, ol { margin: 0; padding: 0; list-style: none; }
.lines li, ol li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--line); }
.lines li:last-child, ol li:last-child { border-bottom: 1px solid var(--line); }
.lines li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 23px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
ol { counter-reset: step; }
ol li { counter-increment: step; padding-left: 32px; }
ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* home page: wider than the 640px text column */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
}
.wrap main { max-width: none; padding: 0; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
/* Masthead: logo, menu and the sample button, pinned to the top with a double rule under it.
   The box-shadow and clip-path stretch its white background to the edges of the window. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 32px;
  margin: -24px 0 48px;
  padding: 20px 0 16px;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
  border-bottom: 3px double var(--ink);
}
.top .mark { margin: 0; }
.top nav { display: flex; justify-content: center; gap: 32px; }
.top nav a, .cta {
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.top nav a { color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: var(--accent); }
.cta { color: var(--ink); padding: 11px 16px; border: 1px solid var(--ink); transition: background 0.15s, color 0.15s; }
.cta:hover { background: var(--ink); color: var(--bg); }
/* On phones the menu gets its own row under the logo and scrolls sideways if it has to. */
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; padding-bottom: 0; }
  .top nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 calc(-1 * max(24px, env(safe-area-inset-left)));
    padding: 12px max(24px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav { grid-row: 2; justify-content: space-between; }
  .top nav a { font-size: 0.6875rem; letter-spacing: 0.06em; }
  .mark { font-size: 0.9375rem; letter-spacing: 0.14em; }
  .cta { grid-row: 1; grid-column: 2; padding: 9px 12px; }
}

.hero { display: grid; gap: 48px; align-items: center; }
.hero .lead { margin-bottom: 32px; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 32px;
}
.hero .phone { width: min(300px, 80%); margin: 0 auto; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 300px; gap: 96px; padding: 48px 0 32px; }
  .hero .phone { width: 300px; }
  .hero h1 { font-size: 4.5rem; }
}

.note { color: var(--soft); margin: 0; }
.page-head { padding: 24px 0 8px; }
.page-head .lead { margin-bottom: 32px; }
.points li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--soft); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points strong { color: var(--ink); font-weight: 600; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 24px;
  margin: 32px calc(-1 * max(24px, env(safe-area-inset-left))) 0;
  padding: 0 max(24px, env(safe-area-inset-left)) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.gallery p { margin: 16px 0 0; font-size: 0.9375rem; color: var(--soft); }
.gallery strong { color: var(--ink); }
@media (min-width: 1000px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; padding: 0; overflow: visible; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.quiet:hover { opacity: 1; background: var(--ink); color: var(--bg); }

.portfolio {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 320px);
  gap: 24px;
  margin: 32px calc(-1 * max(24px, env(safe-area-inset-left))) 0;
  padding: 0 max(24px, env(safe-area-inset-left)) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.portfolio::-webkit-scrollbar { display: none; }
.portfolio li { scroll-snap-align: start; }
.portfolio a { display: block; color: var(--ink); text-decoration: none; }
.portfolio img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}
.portfolio a:hover img { opacity: 0.9; }
.portfolio strong { display: block; font-weight: 600; }
.portfolio span { color: var(--soft); font-size: 0.9375rem; }
@media (min-width: 1000px) {
  .portfolio { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; padding: 0; overflow: visible; }
}

.plans { display: grid; gap: 24px; }
/* One-time items share the first row, the two monthly plans the second. */
@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(12, 1fr); }
  .plan { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .plan { grid-column: span 3; }
  .plan.monthly { grid-column: span 6; }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  scroll-margin-top: 24px;
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.plan .amount { margin: 0 0 16px; color: var(--soft); }
.plan .amount strong { color: var(--ink); font-family: var(--serif); font-size: 2.25rem; font-weight: 400; letter-spacing: -0.02em; }
.plan > p:not(.amount) { margin: 0 0 24px; flex: 1; }
.plan .button { width: 100%; padding: 0 12px; }
.plan h3 a { color: var(--ink); }

#addons { margin-top: 48px; scroll-margin-top: 24px; }
.addons li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.addons li:last-child { border-bottom: 1px solid var(--line); }
.addons li > span:first-child { color: var(--soft); }
.addons strong { display: block; color: var(--ink); font-weight: 600; }
.cost { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
#addons .note { margin-top: 16px; font-size: 0.9375rem; }
.free { margin-top: 48px; padding: 32px; border: 1px solid var(--ink); border-radius: 2px; background: var(--card); }
.free h3 { margin-top: 0; }
.free p { margin: 0 0 16px; }

/* order page */
form.order fieldset { border: 0; padding: 0; margin: 0 0 32px; }
form.order legend { padding: 0; }
form.order legend h2 { margin: 32px 0 8px; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pick:last-child { border-bottom: 1px solid var(--line); }
.pick > span:nth-child(2) { color: var(--soft); }
.pick strong { display: block; color: var(--ink); font-weight: 600; }
.pick input[type=radio], .pick input[type=checkbox] { margin-top: 3px; }
.pick input[type=number] { width: 56px; min-height: 36px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; text-align: center; }
.total { padding: 16px 0 8px; }
.total p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 1.125rem; }
.total strong { font-variant-numeric: tabular-nums; }
form.order button { width: 100%; margin-top: 16px; }

h3 { font-size: 1.0625rem; margin: 32px 0 8px; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--soft); font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--soft); }

footer { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--ink); color: var(--soft); font-size: 0.875rem; }
footer a { color: inherit; }

/* intake form */
form.intake h2 { margin-top: 48px; }
form.intake label { display: block; font-weight: 600; margin: 24px 0 8px; }
form.intake fieldset { border: 0; padding: 0; margin: 24px 0 0; }
form.intake legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
form.intake fieldset label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 24px 8px 0; }
input[type=text], input[type=url], input[type=email], input[type=tel], textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
form.intake button { margin-top: 48px; }
.hp { position: absolute; left: -9999px; }
.wrap h2 { font-size: clamp(2.125rem, 5vw, 3rem); letter-spacing: -0.025em; margin-top: 120px; padding-top: 20px; border-top: 1px solid var(--ink); }
/* Section text lines up with the left edge of the wide image grids instead of floating in a centered column. */
.wrap .narrow { margin-left: 0; }
.wrap .narrow:has(> h2) { max-width: none; }
.wrap h2.narrow { max-width: none; }
.wrap .narrow > p, .wrap .narrow > ol, .wrap .narrow > .lines, .wrap .narrow > details { max-width: 720px; }

/* after-you-pay steps, used on the home page, the order page and the portal */
#after { margin-top: 48px; }
.after { margin: 32px 0 8px; }
.after h2 { margin-top: 0; }
ol.steps li.past { color: var(--soft); }
ol.steps li.past::before { content: "✓"; }
ol.steps li.now { font-weight: 600; }
.start { margin: 16px 0 0; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.small { color: var(--soft); font-size: 0.9375rem; }
.ok { color: #2f7a3b; font-weight: 600; margin: 16px 0 0; }
@media (prefers-color-scheme: dark) { .ok { color: #7cc48a; } }
button:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
button.link { display: inline; width: auto; min-height: 0; padding: 0; background: none; border: 0; color: var(--accent); font: inherit; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; }

/* terms, refunds, privacy and contact */
.legal h2 { font-size: 1.25rem; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.draft-banner { margin: 0 0 32px; padding: 12px 16px; border-radius: 12px; background: #fff3cd; color: #5c4400; font-weight: 600; font-size: 0.9375rem; }
.draft-note { background: #fff3cd; color: #5c4400; border-radius: 4px; padding: 0 4px; font-size: 0.875rem; }
.draft-note.block { display: block; padding: 8px 12px; }
@media (prefers-color-scheme: dark) { .draft-banner, .draft-note { background: #3d3214; color: #f3dc94; } }
.agree { margin: 16px 0 0; }
.conspicuous { margin: 16px 0; padding: 16px 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.conspicuous p { margin: 0 0 12px; }
.conspicuous p:last-child { margin: 0; }
.fingerprint code { font-size: 0.8125rem; overflow-wrap: anywhere; }
@media print { .top, nav, footer, .draft-banner, form, button { display: none !important; } body { background: #fff; color: #000; } .conspicuous { border-color: #000; } }
.sign { margin: 32px 0 0; }
.sign h2 { margin: 0 0 8px; }
.agreement-box { max-height: 320px; overflow-y: auto; margin: 16px 0 8px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 0.9375rem; }
.agreement-box h2 { font-size: 1.0625rem; margin: 20px 0 6px; }
.agreement-check, .agree-check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-weight: 400; cursor: pointer; }
.agree-check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.renews { margin: 16px 0 0; font-weight: 600; }
form.order .sign label:not(.agree-check) { display: block; font-weight: 600; margin: 16px 0 8px; }
.summary { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.summary td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 16px; }
.summary small { display: block; color: var(--soft); font-size: 0.875rem; }
.summary tfoot td { font-weight: 600; }
.sig { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 16px 0; }
.sig dt { color: var(--soft); }
.sig dd { margin: 0; overflow-wrap: anywhere; }
.warn { color: var(--accent); font-weight: 600; }
@media print { .noprint { display: none !important; } .agreement-copy { font-size: 11pt; } }
.split { display: block; color: var(--soft); font-size: 0.9375rem; font-style: normal; margin: -8px 0 16px; }
.pick .split { margin: 4px 0 0; font-size: 0.875rem; }
@media (min-width: 1000px) { .portfolio.real { grid-template-columns: repeat(3, 1fr); } }

.guide { padding-top: 24px; }
.guide h2 { font-size: 1.375rem; margin: 40px 0 8px; }
.guide ul { padding-left: 1.25em; }
.guide li { margin: 6px 0; }
.guide .free h2 { margin-top: 0; }
.points a { color: var(--ink); }

/* Case studies and the salons and shops pages: what we did, and a screenshot. */
.tags { font-size: 0.9375rem; color: var(--soft); margin: 12px 0 0; }
.shot { margin: 24px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 2px; border: 1px solid var(--line); }
.shot figcaption { color: var(--soft); font-size: 0.9375rem; margin-top: 8px; }
.guide .points { padding-left: 0; }

/* Our work (/clients/): one row per project. */
.worklist { list-style: none; padding: 0; margin: 8px auto 0; display: grid; gap: 40px; }
.worklist a { display: block; color: var(--ink); text-decoration: none; }
.worklist img { display: block; width: 100%; height: auto; border-radius: 2px; border: 1px solid var(--line); margin-bottom: 16px; }
.worklist strong { display: block; font-weight: 600; font-size: 1.125rem; }
.worklist span { color: var(--soft); }
.worklist p { margin: 8px 0 0; }

/* Under the hero: four plain facts on a black strip that runs edge to edge. */
.hero-actions { align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.arrow { color: var(--ink); font-weight: 500; text-decoration: none; }
.arrow::after { content: " →"; transition: margin-left 0.15s; }
.arrow:hover::after { margin-left: 4px; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 48px 0 0;
  padding: 20px 0;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
  color: var(--band-ink);
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts li { padding: 8px 16px 8px 0; }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li + li { padding-left: 20px; border-left: 1px solid var(--band-line); }
}

/* What we do: the one dark section, heading on the left and numbered rows on the right. */
.band {
  display: grid;
  gap: 32px;
  margin-top: 120px;
  padding: 80px 0;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
  color: var(--band-ink);
}
@media (min-width: 860px) {
  .band { grid-template-columns: 1fr 1.6fr; gap: 32px 64px; padding: 112px 0; }
  .band-head { position: sticky; top: 120px; align-self: start; }
}
.wrap .band h2 { margin: 0 0 16px; padding: 0; border: 0; }
.band-head p { margin: 0; color: var(--band-soft); max-width: 340px; }
.services { counter-reset: service; }
.services li { counter-increment: service; display: grid; grid-template-columns: 48px 1fr; padding: 28px 0; border-top: 1px solid var(--band-line); }
.services li:last-child { border-bottom: 1px solid var(--band-line); }
.services li::before { content: counter(service, decimal-leading-zero); position: static; color: var(--band-soft); font: 500 0.75rem/2.4 var(--sans); letter-spacing: 0.08em; }
.services li > * { grid-column: 2; }
.services h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.services p { margin: 0 0 8px; }
.services .small { color: var(--band-soft); margin: 0; }
.band .workswith { grid-column: 1 / -1; max-width: 720px; margin: 16px 0 0; color: var(--band-soft); }
.band .workswith strong { color: var(--band-ink); font-weight: 600; }
.wrap .facts + section h2 { margin-top: 80px; }

/* County pages: the towns we write pages for. */
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.towns li { padding: 6px 12px; border: 1px solid var(--line); font-size: 0.9375rem; }

/* The one highlighted phrase in the home page headline, like a marker stroke behind the words. */
h1 mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.06em;
}
