/*
 * Gasda hosting landing page
 *
 * Identity follows the Gasda logo: black ink on paper, a heavy blocky sans with an
 * oblique accent, and the 45-degree "/" cut through the G. Colors stay inside the Gasda
 * web style guide palette (/appl/gasda/web-style-guide): slate/gray ink and paper, the
 * primary blues as a sparse accent, semantic green only where something passes.
 *
 * The diagonal motif is used in exactly three ways, always in the "/" direction:
 *   1. hatching   - the highlight under the hero headline, the strip atop the contact band
 *   2. .cut       - a clipped bottom-right corner on "paper" objects (setup sheet, mail slip, compose card)
 *   3. slant      - the angled top edge of the dark VM section
 */

/* ---------- Font: Archivo (SIL OFL 1.1, see ../fonts/OFL-Archivo.txt) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.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: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wght-italic.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;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Page palette, light: paper and ink */
  --page-bg: #f9fafb;          /* gray-50, paper */
  --page-bg-alt: #f3f4f6;      /* gray-100 */
  --page-sheet: #ffffff;
  --page-ink: #0f172a;         /* foreground */
  --page-ink-2: #374151;       /* gray-700 */
  --page-muted: #475569;
  --page-hair: #d1d5db;
  --page-accent: #2563eb;      /* primary-600 */
  --page-accent-strong: #1d4ed8;
  --page-success: #15803d;

  /* Always-dark bands (VM, contact) */
  --band-bg: #0f172a;
  --band-sheet: #1e293b;

  /* Active roles: components read these; bands re-point them */
  --bg: var(--page-bg);
  --bg-alt: var(--page-bg-alt);
  --sheet: var(--page-sheet);
  --ink: var(--page-ink);
  --ink-2: var(--page-ink-2);
  --muted: var(--page-muted);
  --hair: var(--page-hair);
  --accent: var(--page-accent);
  --accent-strong: var(--page-accent-strong);
  --success: var(--page-success);
  --focus: var(--accent);

  /* Primary button fill keeps white text at AA in both modes */
  --btn-bg: #2563eb;
  --btn-bg-hover: #1d4ed8;
  --btn-fg: #ffffff;

  /* Type */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --display-width: 76%;

  /* Spacing, 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --rule: 4px;
  --cut: 1.75rem;
  --slant: clamp(2rem, 5vw, 4.5rem);
  --label-col: 12rem;
  --head-gap: var(--space-10);

  --container: 72rem;
  --gutter: var(--space-4);
  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0f172a;
    --page-bg-alt: #111827;
    --page-sheet: #1e293b;
    --page-ink: #f8fafc;
    --page-ink-2: #cbd5e1;
    --page-muted: #94a3b8;
    --page-hair: #334155;
    --page-accent: #60a5fa;
    --page-accent-strong: #93c5fd;
    --page-success: #4ade80;

    --band-bg: #020617;
    --band-sheet: #1e293b;
  }
}

/* Dark bands re-point the active roles */
.band {
  --bg: var(--band-bg);
  --bg-alt: var(--band-bg);
  --sheet: var(--band-sheet);
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --hair: #334155;
  --accent: #93c5fd;
  --accent-strong: #bfdbfe;
  --success: #4ade80;
  --focus: #93c5fd;
  background: var(--bg);
  color: var(--ink);
}

/* A paper object placed on a band goes back to the page palette */
.band .on-page {
  --bg: var(--page-bg);
  --sheet: var(--page-sheet);
  --ink: var(--page-ink);
  --ink-2: var(--page-ink-2);
  --muted: var(--page-muted);
  --hair: var(--page-hair);
  --accent: var(--page-accent);
  --accent-strong: var(--page-accent-strong);
  --success: var(--page-success);
  --focus: var(--page-accent);
  color: var(--ink);
}

@media (min-width: 48rem) {
  :root { --gutter: var(--space-6); }
}
@media (min-width: 64rem) {
  :root { --gutter: var(--space-8); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: var(--display-width);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

abbr[title] {
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -10rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--bg);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--xs {
  width: 1rem;
  height: 1rem;
}

/* Small uppercase label in the wide cut of the face, like "GASDA" in the logo */
.kicker,
.section-label,
.spec__kicker,
.step__who,
.brand__tag,
.site-footer h2,
.included h3,
.sheet__head,
.slip__label {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------- Motif: diagonal ---------- */

/* Clipped bottom-right corner, with the border redrawn along the cut */
.cut {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.cut::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--cut);
  height: var(--cut);
  background: linear-gradient(to top left, transparent calc(50% - 0.5px), var(--ink) calc(50% - 0.5px), var(--ink) calc(50% + 2px), transparent calc(50% + 2px));
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-16);
}

@media (min-width: 64rem) {
  .section { padding-block: var(--space-24); }
}

.section--alt {
  background: var(--bg-alt);
}

/* Editorial section head: a ruled label column, then a left-aligned heading */
.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  padding-top: var(--space-4);
  border-top: var(--rule) solid var(--ink);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--ink);
}

.section-num {
  font-stretch: 70%;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 0.85;
  letter-spacing: 0;
  color: var(--ink);
}

@supports (-webkit-text-stroke: 1px black) {
  .section-num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
  }
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1;
}

.section-lead {
  max-width: 40rem;
  margin-top: var(--space-5);
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.section-lead--flush {
  margin-top: 0;
}

@media (min-width: 60rem) {
  .section-head {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: var(--head-gap);
    margin-bottom: var(--space-12);
    padding-top: var(--space-5);
  }

  .section-label {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .section-num {
    font-size: 4.5rem;
  }

  /* Content that sits in the heading column, leaving the label margin empty */
  .indent {
    margin-left: calc(var(--label-col) + var(--head-gap));
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-16);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.875rem;
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
}

.btn--primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}

.btn--ink:hover {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--sm {
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 128px;
  height: auto;
}

.brand__tag {
  display: none;
  padding: 0.15rem 0 0.15rem var(--space-3);
  border-left: 2px solid var(--ink);
  color: var(--ink);
}

@media (min-width: 30rem) {
  .brand__tag { display: inline; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav__links {
  display: none;
  list-style: none;
  gap: var(--space-1);
}

.site-nav__links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__links a:hover {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
}

@media (min-width: 60rem) {
  .site-nav__links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-12) var(--space-16);
}

@media (min-width: 64rem) {
  .hero { padding-block: var(--space-20) var(--space-24); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: var(--space-16);
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  color: var(--ink);
}

.kicker::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 4px;
  background: var(--ink);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5.25rem);
  font-stretch: 72%;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* The oblique accent, like "SOFTWARE" in the logo, over a "/" hatched bar */
.hl {
  font-style: italic;
  font-weight: 800;
  font-size: 0.86em;
  letter-spacing: 0.005em;
  word-spacing: 0.08em;
  background-image: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 7px);
  background-size: 100% 0.3em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--space-8);
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.hero .btn-row {
  margin-top: var(--space-8);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Setup sheet: a work order on paper */
.sheet {
  margin: 0;
  background: var(--sheet);
  border: 2px solid var(--ink);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--bg);
}

.sheet__head span:last-child {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.sheet__body {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
}

.sheet__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: var(--display-width);
  line-height: 1.05;
}

.sheet__sub {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 0.9375rem;
}

.sheet__list {
  margin-top: var(--space-5);
  list-style: none;
  border-top: 2px solid var(--ink);
}

.sheet__list li {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--hair);
  font-weight: 600;
  line-height: 1.35;
}

.sheet__list small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.sheet__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.05rem;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.sheet__box .icon {
  stroke-width: 3;
}

.sheet__stamp {
  position: absolute;
  right: var(--space-5);
  bottom: calc(-1 * var(--space-2));
  padding: 0.2rem 0.6rem;
  border: 2.5px solid var(--accent);
  color: var(--accent);
  background: var(--sheet);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.sheet figcaption {
  padding: var(--space-4) calc(var(--cut) + var(--space-3)) var(--space-4) var(--space-5);
  border-top: 1px dashed var(--hair);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- Who it's for: a ruled roster ---------- */
.roster {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.roster li {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--hair);
}

.roster h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.05;
}

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

@media (min-width: 48rem) {
  .roster li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-8);
    align-items: baseline;
  }
}

.callout {
  display: grid;
  gap: var(--space-2);
  max-width: 46rem;
  margin-top: var(--space-12);
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  border-left: 6px solid var(--accent);
  color: var(--ink-2);
}

.callout strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: var(--display-width);
  line-height: 1.1;
}

/* ---------- Services: spec sheet columns ---------- */
.specs {
  display: grid;
  gap: var(--space-12);
}

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

.spec--featured {
  border-top-color: var(--accent);
}

.spec__kicker {
  color: var(--muted);
}

.spec h3 {
  margin-top: var(--space-2);
  font-size: 2.25rem;
  line-height: 1;
}

.spec__lead {
  margin-top: var(--space-3);
  color: var(--ink-2);
}

.ticks {
  margin-top: var(--space-5);
  list-style: none;
  border-top: 2px solid var(--ink);
}

.ticks li {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--hair);
  line-height: 1.45;
}

.ticks .icon {
  margin-top: 0.05rem;
  color: var(--ink);
  stroke-width: 2.5;
}

.spec__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: auto;
  padding-top: var(--space-6);
}

@media (min-width: 60rem) {
  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .spec {
    padding-inline: var(--space-8);
    border-left: 1px solid var(--hair);
  }

  .spec:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .spec:last-child {
    padding-right: 0;
  }
}

.included {
  margin-top: var(--space-16);
  border: 2px solid var(--ink);
  background: var(--sheet);
}

.included h3 {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--bg);
}

.included__grid {
  display: grid;
  list-style: none;
}

.included__grid li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5);
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.included__grid strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: var(--display-width);
  line-height: 1.1;
}

@media (min-width: 40rem) {
  .included__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .included__grid li:nth-child(even) { border-left: 1px solid var(--hair); }
}

@media (min-width: 64rem) {
  .included__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .included__grid li { border-top: 0; }
  .included__grid li + li { border-left: 1px solid var(--hair); }
}

/* ---------- How it works: big numerals ---------- */
.steps {
  display: grid;
  gap: var(--space-10);
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
}

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--space-4);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.8;
}

@supports (-webkit-text-stroke: 1px black) {
  .step::before {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
  }

  .step--you::before {
    color: var(--ink);
  }
}

.step--you {
  border-top-width: 8px;
  padding-top: calc(var(--space-4) - 6px);
}

.step .step__who {
  position: absolute;
  top: var(--space-5);
  right: 0;
  padding: 0.2rem 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.75rem;
}

.step h3 {
  font-size: 1.625rem;
  line-height: 1.05;
}

.step p {
  margin-top: var(--space-3);
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
}

@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
}

/* ---------- Deliverability ---------- */
.records {
  margin-top: var(--space-8);
  list-style: none;
  border-top: 2px solid var(--ink);
}

.record {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--hair);
}

.record h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-3);
  font-size: 2rem;
  line-height: 1.05;
}

.record h3 em {
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 100%;
}

.record p {
  margin-top: var(--space-2);
  color: var(--ink-2);
}

.fineprint {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Mail slip: the checks a receiving server runs */
.slip {
  margin: 0;
  background: var(--sheet);
  border: 2px solid var(--ink);
}

@media (min-width: 60rem) {
  .slip { margin-top: var(--space-2); }
}

.slip__head {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5);
  border-bottom: 2px solid var(--ink);
}

.slip__label {
  color: var(--muted);
}

.slip__head strong {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: var(--display-width);
  line-height: 1.05;
}

.slip__head span:last-child {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.slip dl {
  margin: 0;
  padding-inline: var(--space-5);
}

.slip dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--hair);
}

.slip dt {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
}

.slip dt small {
  display: block;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
}

.slip dd {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0.1rem 0.5rem;
  border: 2px solid var(--success);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.slip dd .icon {
  stroke-width: 3;
}

.slip__result {
  margin: var(--space-5) var(--space-5) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slip figcaption {
  padding: var(--space-4) calc(var(--cut) + var(--space-3)) var(--space-5) var(--space-5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- VMs: dark band with a slanted top edge ---------- */
.vm {
  margin-top: calc(-1 * var(--slant));
  padding-top: calc(var(--space-16) + var(--slant));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 64rem) {
  .vm { padding-top: calc(var(--space-20) + var(--slant)); }
}

.split--vm {
  align-items: center;
}

.vm-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.vm-list li {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--hair);
  color: var(--ink-2);
}

.vm-list .icon {
  color: var(--accent);
}

.vm-list strong {
  color: var(--ink);
}

.vm .btn-row {
  margin-top: var(--space-8);
}

.terminal {
  margin: 0;
  background: #020617;
  border: 2px solid #475569;
}

.terminal__bar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-bottom: 2px solid #475569;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.terminal pre {
  margin: 0;
  padding: var(--space-5);
  overflow-x: auto;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.terminal code {
  font-size: inherit;
}

@media (max-width: 30rem) {
  .terminal pre {
    padding: var(--space-4);
    font-size: 0.75rem;
  }
}

.terminal .p {
  color: #4ade80;
}

.terminal .c {
  color: #94a3b8;
}

.terminal .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: #f8fafc;
}

.terminal figcaption {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.8125rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 52rem;
  border-top: 2px solid var(--ink);
}

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

.faq details:last-child {
  border-bottom: 2px solid var(--ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 82%;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

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

.faq summary:hover {
  color: var(--accent-strong);
}

.faq__mark {
  position: relative;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid currentColor;
}

.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] .faq__mark::after {
  display: none;
}

.faq__answer {
  display: grid;
  gap: var(--space-3);
  max-width: 44rem;
  padding-bottom: var(--space-6);
  color: var(--ink-2);
}

/* ---------- Contact: ink band, hatched top ---------- */
.contact {
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.875rem;
  background-image: repeating-linear-gradient(-45deg, var(--btn-bg) 0 3px, transparent 3px 10px);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 60rem) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-16);
  }
}

.section-label--plain {
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.contact .section-title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  font-stretch: 72%;
  line-height: 0.95;
}

.contact__address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 2px solid var(--ink);
}

.contact__address a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

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

.copy-status {
  min-height: 1.5rem;
  margin-top: var(--space-3);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.compose {
  padding: var(--space-6);
  background: var(--sheet);
  border: 2px solid var(--ink);
}

.compose h3 {
  font-size: 1.75rem;
}

.compose > p {
  margin-top: var(--space-2);
  color: var(--ink-2);
}

.compose__list {
  margin-top: var(--space-5);
  list-style: none;
  border-top: 2px solid var(--ink);
}

.compose__list li {
  border-bottom: 1px solid var(--hair);
}

.compose__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  margin-inline: calc(-1 * var(--space-2));
  color: var(--ink);
  text-decoration: none;
}

.compose__list a:hover {
  background: var(--bg-alt, var(--bg));
  color: var(--ink);
}

.compose__list a:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.compose__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.2;
}

.compose__list strong + span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

.compose__list .icon {
  color: var(--accent);
}

.compose__note {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-right: var(--cut);
  color: var(--muted);
  font-size: 0.875rem;
}

.compose__note .icon {
  margin-top: 0.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-12) var(--space-8);
  border-top: var(--rule) solid var(--ink);
  background: var(--bg);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-12);
  }
}

.site-footer img {
  width: 150px;
  height: auto;
}

.site-footer p {
  max-width: 26rem;
  margin-top: var(--space-4);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer h2 {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--ink);
}

.site-footer ul {
  display: grid;
  gap: var(--space-2);
  list-style: none;
}

.site-footer ul a {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.site-footer .site-footer__legal {
  max-width: none;
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .skip-link,
  .btn-row,
  .contact::before {
    display: none;
  }

  .band {
    --bg: #ffffff;
    --sheet: #ffffff;
    --ink: #000000;
    --ink-2: #000000;
    --muted: #333333;
    --hair: #999999;
    clip-path: none;
  }

  .section {
    padding-block: var(--space-8);
  }
}
