/* ==========================================================================
   DM Sans, self-hosted. SIL Open Font License 1.1 — see fonts/OFL.txt.
   A variable font, so these two files cover every weight the site uses
   (400/500/700) rather than one file per weight. No third-party request is
   made for type: the privacy policy's claim that this site contacts nobody
   is only true while these stay local.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   monochrome.digital
   One ink, four values. Plain CSS, no build step, no JavaScript.
   ========================================================================== */

:root {
  /* Ground and text */
  --bg:        #ffffff;
  --bg-2:      #f4f4f2;
  --ink:       #0a0a0a;
  --ink-2:     #6b6b6b;
  --rule:      #e2e2e0;
  --rule-2:    #cfcfcc;
  --focus:     #1f4fff;

  /* The ramp — one ink, four values. Practice identity, never text. */
  --t1: #0a0a0a;
  --t2: #4d4d4d;
  --t3: #8c8c8c;
  --t4: #c9c9c9;

  /* Rhythm */
  --pad:    clamp(20px, 4.5vw, 56px);
  --bay:    clamp(72px, 11vw, 152px);
  --measure: 60ch;

  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #0a0a0a;
    --bg-2:   #141413;
    --ink:    #f7f7f5;
    --ink-2:  #9b9b98;
    --rule:   #262625;
    --rule-2: #3a3a38;
    --focus:  #8fa9ff;

    --t1: #f7f7f5;
    --t2: #c9c9c9;
    --t3: #8c8c8c;
    --t4: #4d4d4d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

/* --- Shell -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.bay { padding-block: var(--bay); }
.bay + .bay { border-top: 1px solid var(--rule); }

/* Editorial two-column: label rail, then content. */
.rail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 clamp(24px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 800px) {
  .rail { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Type --------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.032em; line-height: 1.04; }

.display {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.97;
  text-wrap: balance;
  max-width: 15ch;
}

.title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 18ch;
}

.sub { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.3; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.014em;
  color: var(--ink-2);
  max-width: 46ch;
}

.dim { color: var(--ink-2); }

.label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  margin: 0 0 1.5rem;
  display: block;
}
@media (min-width: 801px) {
  .rail > .label { margin: 0.7rem 0 0; position: sticky; top: 28px; }
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--bg);
  padding: 14px 20px; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 0; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

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

.wordmark {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.045em;
  text-decoration: none; line-height: 1;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 26px;
}
.site-nav a {
  text-decoration: none; color: var(--ink-2);
  font-size: 0.875rem; letter-spacing: -0.008em;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* --- Hero --------------------------------------------------------------- */

.hero { padding-block: clamp(56px, 10vw, 130px) clamp(40px, 6vw, 72px); }
.hero .lede { margin-top: clamp(20px, 2.6vw, 32px); }

/* The ramp as a rule: the identity, stated once, full bleed. */
.ramp { display: flex; height: 6px; width: 100%; }
.ramp span { flex: 1; }
.ramp .r1 { background: var(--t1); }
.ramp .r2 { background: var(--t2); }
.ramp .r3 { background: var(--t3); }
.ramp .r4 { background: var(--t4); }

/* --- Buttons ------------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: clamp(28px, 3.5vw, 44px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.012em;
  text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .88; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }

/* --- Index rows: the four practices ------------------------------------- */

.index { border-top: 1px solid var(--rule); }

.index-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 18px;
  align-items: baseline;
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
}
.index-row::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--ink);
  transition: width .34s cubic-bezier(.2,.7,.3,1);
}
.index-row:hover::after { width: 100%; }

.index-num {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 9px;
}
.index-num::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--tone); box-shadow: inset 0 0 0 1px var(--rule-2);
  flex: none;
}

.index-name {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
}
.index-desc {
  grid-column: 2; color: var(--ink-2);
  font-size: 0.9375rem; max-width: 44ch; margin-top: 6px;
}

@media (min-width: 861px) {
  .index-row { grid-template-columns: 46px minmax(240px, 0.9fr) 1.1fr; align-items: center; }
  .index-desc { grid-column: 3; margin-top: 0; }
}

.t1 { --tone: var(--t1); }
.t2 { --tone: var(--t2); }
.t3 { --tone: var(--t3); }
.t4 { --tone: var(--t4); }

/* --- Cards -------------------------------------------------------------- */

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.card p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }
.card .label { margin: 0 0 4px; }

/* --- Practice sections (What we do) ------------------------------------- */

.practice { border-top: 2px solid var(--tone); padding-top: 26px; }
.practice + .practice { margin-top: clamp(56px, 7vw, 96px); }
.practice h3 { font-size: 1.0625rem; letter-spacing: -0.02em; margin: 2rem 0 0.5em; }
.practice h3:first-of-type { margin-top: 1.6rem; }
.practice p { color: var(--ink-2); }
.practice .title { color: var(--ink); margin-bottom: 0.6em; }

.spec {
  margin-top: 1.1em;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-2);
  max-width: var(--measure);
}
.spec b {
  display: block; color: var(--ink);
  font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 6px;
}

/* --- Numbered steps ----------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.steps li { background: var(--bg); padding: 24px 0; }
.steps b { display: block; font-size: 1.0625rem; letter-spacing: -0.022em; margin-bottom: 5px; }
.steps p { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
@media (min-width: 861px) {
  .steps li { display: grid; grid-template-columns: 46px minmax(200px, 0.8fr) 1.2fr; gap: 18px; align-items: baseline; }
  .steps .step-n { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .steps b { margin: 0; }
}
.steps .step-n { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-2); margin-bottom: 8px; }

/* --- Statement ---------------------------------------------------------- */

.statement {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.038em; line-height: 1.08;
  max-width: 20ch; margin: clamp(28px, 4vw, 48px) 0 0;
}

/* --- Contact ------------------------------------------------------------ */

.email {
  font-size: clamp(1.5rem, 4.6vw, 3rem);
  font-weight: 700; letter-spacing: -0.042em;
  text-decoration: none; display: inline-block;
  border-bottom: 2px solid var(--rule-2);
  padding-bottom: 4px; word-break: break-word;
  transition: border-color .18s ease;
}
.email:hover { border-color: var(--ink); }

/* --- Legal -------------------------------------------------------------- */

.legal { max-width: 68ch; }
.legal h2 {
  font-size: 1.0625rem; letter-spacing: -0.02em;
  margin: 2.6em 0 0.7em; padding-top: 1.4em; border-top: 1px solid var(--rule);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 0.9375rem; letter-spacing: -0.01em; margin: 1.8em 0 0.5em; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.9375rem; }
.legal ul { padding-left: 1.15em; margin: 0 0 1.05em; max-width: var(--measure); }
.legal li { margin-bottom: 0.5em; }
.legal strong { color: var(--ink); }

/* --- Footer ------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(40px, 6vw, 72px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer p { font-size: 0.8125rem; color: var(--ink-2); margin: 0; max-width: 30ch; }
.site-footer .wordmark { display: block; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { font-size: 0.8125rem; color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .site-nav ul { gap: 6px 14px; }
  .site-nav a { font-size: 0.8125rem; }
  .site-header .wrap { padding-block: 14px; }
}

/* Card footer link — sits at the bottom of a card regardless of body length. */
.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
}
.card-link::after {
  content: "\2192";
  transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.card-link:hover::after { transform: translateX(4px); }

/* --- Spacing utilities -------------------------------------------------- */
/* Kept as classes rather than inline style attributes so the Content-Security-
   Policy can stay strict — no 'unsafe-inline' anywhere on the site. */

.u-top      { margin-top: 1.4em; }
.u-top-lg   { margin-top: 2rem; }
.u-top-xl   { margin-top: 2.5rem; }
.u-lead-gap { margin: 1.4em 0 2rem; }
.u-note     { margin-top: 1.6em; font-size: 0.875rem; }
.u-meta     { margin-top: 1.4em; font-size: 0.8125rem; }

/* --- Visually hidden ---------------------------------------------------- */

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Form --------------------------------------------------------------- */

.form { margin-top: clamp(28px, 3.5vw, 44px); max-width: 34rem; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.006em;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 150px; }

.hint {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin: 9px 0 0;
  max-width: 46ch;
}

.form button.btn { margin-top: 8px; cursor: pointer; font-family: inherit; }

/* Honeypot: off-screen, never focusable, invisible to real users. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Facts list --------------------------------------------------------- */

.facts {
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 3px;
}
.facts dd { margin: 0; font-size: 0.9375rem; }
@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Turnstile ---------------------------------------------------------- */
/* Invisible mode draws nothing, so no space is reserved. The container still
   exists to hold the <noscript> fallback for anyone without JavaScript. */

.turnstile:not(:empty) { margin: 0 0 20px; }
.turnstile .hint { margin-top: 0; }
