/* ARCLERA DIGITAL, LLC — arclera.net
   Dark-only by deliberate choice. No webfonts, no external requests. */

:root {
  --bg:        #080808;
  --fg:        #fafafa;
  /* Contrast ratios measured against --bg (#080808). Every colour used for
     text is one of these two tokens, so the prefers-contrast override below
     covers the whole page — no literal greys anywhere else in this file. */
  --muted:     #8a8a8a;   /* 5.80:1 — AA for small text */
  --dim:       #787878;   /* 4.54:1 — AA floor for small text */
  --hair:      #1c1c1c;
  --accent:    #c8763f;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.5rem, 6vw, 5.5rem);
  --measure: 44rem;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

/* Prose gets the better line-breaker where it exists; the headline balances. */
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- shell ---------- */

.shell {
  min-height: 100svh;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(2rem, 7vh, 4.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* The page carries real content now, so the zones sit closer than they did
     when it was three lines; the rhythm still comes from the empty space. */
  gap: clamp(2.75rem, 9vh, 6rem);
}

.zone { margin: 0; }
.zone--mid { flex: 0 1 auto; }

/* ---------- type ---------- */

/* The wordmark is the legal name. It reads first, plainly, at full contrast —
   small enough not to compete with the statement, bright enough to be read
   in a screenshot. 19.19:1 on --bg. */
.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.26em;
  color: var(--fg);
  text-transform: uppercase;
}

.statement {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 7.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.activity {
  margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.rule {
  width: 2.25rem;
  height: 1px;
  margin: clamp(1.75rem, 4vh, 2.75rem) 0 clamp(1.25rem, 3vh, 1.75rem);
  border: 0;
  background: var(--accent);
}

.services {
  margin: 0;
  max-width: 34rem;
}

.services dt {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.services dd + dt { margin-block-start: 1.35rem; }

.services dd {
  margin-inline-start: 0;
  margin-block: 0.35rem 0;
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--dim);
}


.services__note {
  margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
  max-width: 34rem;
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--dim);
}

/* ---------- contact ---------- */

.label {
  margin: 0 0 0.625rem;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.mail {
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15em;
  transition: color 140ms ease, border-color 140ms ease;
}
.mail:hover { color: var(--accent); }

.copy {
  appearance: none;
  background: none;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--dim);
  font: inherit;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  /* Reserve the width of "copied" so the button never jumps when it fires. */
  min-width: 4.25rem;
  text-align: center;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}
.copy:hover { color: var(--fg); border-color: var(--dim); }
.copy[data-done="true"] { color: var(--accent); border-color: var(--accent); }

.contact-note {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--dim);
}

.status {
  margin: 0.625rem 0 0;
  min-height: 1em;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--dim);
}

/* ---------- agent surface ---------- */

.agents {
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.agents__k {
  color: var(--dim);       /* 4.54:1 on --bg */
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.agents__k::after { content: " \2500\2500"; }
.agents__ep { color: var(--dim); }
.agents__ep code {
  font: inherit;
  color: var(--muted);
}
.agents a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.agents a:hover { color: var(--fg); border-bottom-color: var(--hair); }

/* ---------- colophon ---------- */

/* Entity identity line. Legible on purpose: a reviewer should be able to read
   the registration facts off a screenshot. 4.54:1 on --bg. */
.colophon {
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
  max-width: 40rem;
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------- 404 ---------- */

.shell--minor { justify-content: flex-start; gap: clamp(4rem, 22vh, 12rem); }
.statement--minor { font-size: clamp(1.75rem, 5vw, 2.75rem); }

.plain {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1em;
  transition: color 140ms ease;
}
.plain:hover { color: var(--fg); }

/* ---------- focus + motion ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Every text colour on the page resolves to --fg, --muted, --dim or --accent,
   so remapping the two grey tokens lifts the whole page: --muted 12.98:1,
   --dim 10.10:1 on --bg. (--fg 19.19:1 and --accent 5.84:1 already pass.) */
@media (prefers-contrast: more) {
  :root { --muted: #d0d0d0; --dim: #b8b8b8; --hair: #3a3a3a; }
}

/* ---------- narrow ---------- */

/* Wide tracking is a luxury of wide viewports. On a phone it just makes the
   legal name wrap, so it tightens instead of breaking. */
@media (max-width: 26rem) {
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; }
  .agents { gap: 0.45rem; }
}

/* ---------- print ----------
   A compliance reviewer will print or PDF this page. It has to survive that:
   light paper, black ink, and every link resolved to a readable URL. */

@page { margin: 18mm; }

@media print {
  :root {
    --bg: #ffffff;
    --fg: #101010;
    --muted: #333333;
    --dim: #4a4a4a;
    --hair: #c4c4c4;
    --accent: #8a4a1c;
    color-scheme: light;
  }
  body { font-size: 11pt; }
  .shell {
    min-height: 0;
    max-width: none;
    padding: 0;
    gap: 1.75rem;
    display: block;
  }
  .statement { font-size: 2rem; }
  .zone + .zone { margin-block-start: 1.75rem; }
  .copy, .status { display: none; }
  .mail { border-bottom: 0; }
  .agents a[href]::after { content: " (arclera.net" attr(href) ")"; color: var(--dim); }
  .services dd, .services__note, .activity, .contact-note { max-width: none; }
  .colophon { break-inside: avoid; }
}
