:root {
  color-scheme: light;
  --paper: #edeae2;
  --ink: #221d16;
  --ink-soft: #6d6555;
  --rule: #d7d1c4;
  --accent: #31688f;
  --accent-soft: #e2e9ee;
  --good: #2f6b34;
  --bad: #b23a2e;
  --term-bg: #12161a;
  --term-ink: #dde5ec;
  --term-dim: #74808c;
  --term-accent: #7cb8e4;
  --term-good: #86c186;
  --term-bad: #eb8474;
  --maxw: 46rem;
  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #131518;
    --ink: #e2e6ea;
    --ink-soft: #939aa2;
    --rule: #272c31;
    --accent: #74b4e0;
    --accent-soft: #1a2229;
    --good: #74b874;
    --bad: #e4735f;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #edeae2;
  --ink: #221d16;
  --ink-soft: #6d6555;
  --rule: #d7d1c4;
  --accent: #31688f;
  --accent-soft: #e2e9ee;
  --good: #2f6b34;
  --bad: #b23a2e;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131518;
  --ink: #e2e6ea;
  --ink-soft: #939aa2;
  --rule: #272c31;
  --accent: #74b4e0;
  --accent-soft: #1a2229;
  --good: #74b874;
  --bad: #e4735f;
}

.theme-cro {
  --accent: #9c630f;
  --accent-soft: #f0e7d4;
  --term-bg: #17140e;
  --term-ink: #e9e3d4;
  --term-dim: #8b8266;
  --term-accent: #e0a955;
}

@media (prefers-color-scheme: dark) {
  .theme-cro {
    --paper: #16130d;
    --ink: #e8e1d3;
    --ink-soft: #9a9180;
    --rule: #2d2820;
    --accent: #d99f43;
    --accent-soft: #241d10;
    --good: #74b874;
    --bad: #e4735f;
  }
}

:root[data-theme="light"] .theme-cro {
  --paper: #edeae2;
  --ink: #221d16;
  --ink-soft: #6d6555;
  --rule: #d7d1c4;
  --accent: #9c630f;
  --accent-soft: #f0e7d4;
  --good: #2f6b34;
  --bad: #b23a2e;
}

:root[data-theme="dark"] .theme-cro {
  --paper: #16130d;
  --ink: #e8e1d3;
  --ink-soft: #9a9180;
  --rule: #2d2820;
  --accent: #d99f43;
  --accent-soft: #241d10;
  --good: #74b874;
  --bad: #e4735f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  font-size: 1.165rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

header.hero {
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 9vh, 6rem) 0 2.6rem;
  margin-bottom: 2.4rem;
  overflow-x: hidden;
}

.page-home header.hero .wrap { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow .dot {
  width: .42rem;
  height: .42rem;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

h1 {
  font-family: var(--sans);
  font-weight: 640;
  letter-spacing: -0.019em;
  line-height: 1.08;
  font-size: clamp(2.05rem, 6vw, 3.2rem);
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.standfirst {
  font-size: 1.24rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 2.2rem;
  max-width: 34rem;
  text-wrap: pretty;
}

.page-mail .standfirst {
  margin-bottom: 0;
  max-width: 38rem;
}

.intro-grid {
  position: relative;
  margin: 0 0 2.2rem;
}

.intro-grid h1 { max-width: 34rem; }
.intro-grid .standfirst { margin-bottom: 0; }

.alias-note {
  margin-top: 1rem;
  max-width: 34rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink-soft);
  padding: .15rem 0 .15rem 1rem;
  position: relative;
}

.alias-note::before {
  background: var(--rule);
  bottom: .2rem;
  content: "";
  left: 0;
  position: absolute;
  top: .2rem;
  width: 1px;
}

.alias-note p { margin: 0; }

.alias-note .alias-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  line-height: 1.35;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}

.alias-note .alias-copy {
  font-family: var(--sans);
  font-size: .78rem;
  line-height: 1.45;
}

.alias-note .alias-copy a { font: inherit; }

.byline {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
  border-top: 1px dashed var(--rule);
  padding-top: 1rem;
  max-width: 40rem;
}

.term {
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.65;
  padding: 1.05rem 1.15rem;
  margin: 2.1rem 0 0;
  overflow-x: auto;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -28px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .05);
}

.term .c { color: var(--term-dim); }
.term .a { color: var(--term-accent); }
.term .g { color: var(--term-good); }
.term .b { color: var(--term-bad); }
.term .row {
  white-space: pre;
  display: block;
}

article { padding-bottom: 4rem; }
section { margin: 0 0 2.9rem; }

h2 {
  font-family: var(--sans);
  font-weight: 640;
  font-size: 1.58rem;
  letter-spacing: -0.012em;
  line-height: 1.16;
  margin: 3.4rem 0 1.15rem;
  text-wrap: balance;
}

.page-mail h2 {
  font-size: 1.42rem;
  margin: 2.8rem 0 1rem;
}

h2 .off {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: .5rem;
}

.page-mail h2 .off {
  font-size: .7rem;
  margin-bottom: .45rem;
}

p { margin: 0 0 1.15rem; }
a { color: var(--accent); text-decoration: none; }
em { font-style: italic; }

code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: .09em .34em;
  border-radius: 4px;
  border: 1px solid var(--rule);
  white-space: nowrap;
}

pre {
  background: var(--term-bg);
  color: var(--term-ink);
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.62;
  padding: 1.05rem 1.15rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, .5);
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

pre .c { color: var(--term-dim); }
pre .a { color: var(--term-accent); }
pre .k { color: #c99bd8; }
pre .g { color: var(--term-good); }

.log,
.template {
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 8px;
  border: 0;
  font-family: var(--mono);
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 14px 34px -28px rgba(0, 0, 0, .5);
}

.log {
  margin: 1.7rem 0;
  padding: .95rem 1.1rem;
  font-size: .8rem;
  line-height: 1.6;
}

.template {
  font-size: .82rem;
  line-height: 1.62;
  padding: 1.05rem 1.15rem;
}

.log .row {
  white-space: pre;
  display: block;
}

.template .row {
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.template .dim,
.log .tag { color: var(--term-dim); }
.log .win-t { color: var(--term-good); }
.log .fail-t { color: var(--term-bad); }
.log .a { color: var(--term-accent); }

.chip {
  font-family: var(--mono);
  font-size: .72em;
  letter-spacing: .04em;
  padding: .05em .45em;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid;
}

.chip.win {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 40%, transparent);
  background: color-mix(in srgb, var(--good) 10%, transparent);
}

.chip.fail {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
  background: color-mix(in srgb, var(--bad) 10%, transparent);
}

.kicker { color: var(--accent); }

.aside,
.panel,
.price-row {
  background: var(--accent-soft);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule);
}

.aside {
  margin: 1.9rem 0;
  padding: 1.1rem 1.25rem 1.15rem;
}

.aside .aside-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .65rem;
}

.aside p {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  line-height: 1.66;
}

.aside p:last-child,
.panel p:last-child { margin-bottom: 0; }

.panel { padding: 1.05rem 1.2rem 1.15rem; }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  border-top: 1px solid var(--rule);
  padding: .72rem 0;
}

.list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.list strong {
  font-family: var(--sans);
  font-size: .98rem;
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}

.price-row {
  display: grid;
  gap: .45rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: .85rem 1rem;
}

.price-row p { margin: 0; }

.price-row .label {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 640;
}

.price-row .amount {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .78rem;
  white-space: nowrap;
}

.wizard {
  background: var(--accent-soft);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule);
  padding: 1.05rem 1.2rem 1.15rem;
}

.wizard-progress {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  margin-bottom: .9rem;
  text-transform: uppercase;
}

.wizard fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.wizard legend {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 640;
  line-height: 1.25;
  margin: 0 0 .85rem;
  padding: 0;
}

.wizard label {
  color: var(--ink);
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 620;
  line-height: 1.35;
  margin: .95rem 0 .35rem;
}

.wizard input,
.wizard textarea {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font: inherit;
  line-height: 1.45;
  padding: .68rem .75rem;
  width: 100%;
}

.wizard textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.wizard input:focus,
.wizard textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 0;
}

.field-help {
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.55;
  margin: .35rem 0 0;
}

.check-row {
  align-items: flex-start;
  display: grid;
  gap: .65rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin: .8rem 0;
}

.check-row input {
  appearance: auto;
  margin-top: .24rem;
  width: auto;
}

.wizard-actions {
  align-items: center;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: .7rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
  padding-top: 1rem;
}

.button {
  appearance: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1;
  padding: .78rem .95rem;
  text-transform: uppercase;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button:disabled {
  cursor: wait;
  opacity: .62;
}

.form-status {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.5;
  margin: .85rem 0 0;
  min-height: 1.5em;
}

.form-status[data-kind="success"] { color: var(--good); }
.form-status[data-kind="error"] { color: var(--bad); }
.form-status[data-kind="pending"] { color: var(--accent); }

.theme-toggle {
  appearance: none;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--rule);
  border-radius: 999px;
  bottom: .9rem;
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, .55);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: .62rem;
  gap: .42rem;
  letter-spacing: .12em;
  line-height: 1;
  padding: .48rem .62rem;
  position: fixed;
  right: .9rem;
  text-transform: uppercase;
  z-index: 20;
}

.theme-toggle::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: .42rem;
  width: .42rem;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.site-field {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 3rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (max-width: 36rem) {
  .price-row { grid-template-columns: 1fr; }
}

@media (min-width: 72rem) {
  .intro-grid { margin-right: calc(50% - 50vw); }

  .alias-note {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 36rem;
    margin-top: 0;
    max-width: 24rem;
    min-height: 100%;
    padding: .2rem 0 .2rem 1.35rem;
    position: absolute;
    right: auto;
    top: 0;
    width: clamp(16rem, 24vw, 24rem);
  }

  .alias-note::before {
    background: var(--rule);
    bottom: .25rem;
    content: "";
    left: 0;
    position: absolute;
    top: .25rem;
    width: 1px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

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