/* achromaops.com. Grayscale only: no accent color without Shane's OK.
   Nothing here relies on color alone to carry meaning (links are underlined,
   the current page is marked with a rule, focus shows an outline). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --ink-3: #5c5c5c;
  --rule: #d6d6d6;
  --wash: #f3f3f3;
  --paper: #ffffff;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999rem; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.wordmark-sub { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.56rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: inline-block; padding: 0.4rem 0; font-size: 0.98rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--rule); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.wash { background: var(--wash); }
.section.dark { background: var(--ink); color: var(--paper); border-top: 0; }
.section.dark .label { color: #bdbdbd; }
.section.dark :focus-visible { outline-color: var(--paper); }

.hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 17ch; }
.page-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
.lead { max-width: 40rem; margin-top: 1.75rem; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.section.dark .lead { color: #e2e2e2; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.button { display: inline-block; padding: 0.85rem 1.4rem; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; }
.button:hover { background: var(--paper); color: var(--ink); }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--ink); color: var(--paper); }
.section.dark .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.section.dark .button:hover { background: var(--ink); color: var(--paper); }
.section.dark .button.quiet { background: transparent; color: var(--paper); }
.section.dark .button.quiet:hover { background: var(--paper); color: var(--ink); }

/* Step wedge: ten grays from paper to ink. Decorative only. */
.wedge { display: flex; height: 0.6rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.wedge span { flex: 1; }
.wedge span:nth-child(1) { background: #ffffff; }
.wedge span:nth-child(2) { background: #e6e6e6; }
.wedge span:nth-child(3) { background: #cccccc; }
.wedge span:nth-child(4) { background: #b3b3b3; }
.wedge span:nth-child(5) { background: #999999; }
.wedge span:nth-child(6) { background: #808080; }
.wedge span:nth-child(7) { background: #666666; }
.wedge span:nth-child(8) { background: #4d4d4d; }
.wedge span:nth-child(9) { background: #333333; }
.wedge span:nth-child(10) { background: #111111; }

/* Two-column section: heading left, content right */
.split { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split .body { max-width: 40rem; color: var(--ink-2); }
.split .body strong { color: var(--ink); }

/* Card row */
.cards { display: grid; gap: 0; margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards li { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 52rem) {
  .cards li { padding: 1.75rem 2rem 0.5rem 0; border-bottom: 0; }
  .cards li + li { padding-left: 2rem; border-left: 1px solid var(--rule); }
}
.cards h3 { margin-bottom: 0.6rem; }
.cards p { color: var(--ink-2); }

/* Numbered steps */
.steps { margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--ink-3); padding-top: 0.2rem; }
.steps h3 { margin-bottom: 0.45rem; }
.steps p { max-width: 38rem; color: var(--ink-2); }
@media (min-width: 52rem) {
  .steps li { grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 7fr); gap: 0 2rem; align-items: baseline; padding: 1.75rem 0; }
  .steps li > div { display: contents; }
  .steps h3 { margin: 0; font-size: 1.35rem; }
}

/* Plain lists */
.plain { margin: 0; padding: 0; list-style: none; }
.plain li + li { margin-top: 0.35rem; }

/* Contact details */
.details { margin: 0; border-top: 1px solid var(--ink); }
.details > div { display: grid; gap: 0.25rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 36rem) { .details > div { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; } }
.details dt { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.details dd { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }
.details dd small { display: block; margin-top: 0.3rem; font-size: 0.98rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

.notice { margin-top: 2.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--ink); max-width: 44rem; font-size: 0.98rem; color: var(--ink-2); }
.notice h2 { margin-bottom: 0.6rem; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }

/* Long-form pages (privacy, terms) */
.prose { max-width: 44rem; }
.prose h2 { margin: 2.75rem 0 0.9rem; font-size: 1.45rem; scroll-margin-top: 1.5rem; }
.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.08rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0 0 1em; padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--ink); }
.prose .meta { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); }
.prose .key { margin: 1.25rem 0; padding: 1.1rem 1.3rem; border-left: 4px solid var(--ink); background: var(--wash); }
.prose .key p { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); padding: 3rem 0 2.5rem; font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); } }
.footer-mark { margin-bottom: 0.75rem; font-size: 1.5rem; color: var(--ink); }
.fineprint { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.82rem; line-height: 1.55; color: var(--ink-3); }
.fineprint p { max-width: 58rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header nav, .actions, .wedge, .skip { display: none; } }
