/* victano.com — the page is set like a procurement notice that has been made
   legible: mono section references, ruled record headers, one dark ink field.
   No external font or asset hosts (the Caddy CSP is self-only by design). */

:root {
  --ink:      #10142e;   /* official-journal ink */
  --ink-soft: #262c52;
  --paper:    #f3f4f0;   /* form paper, cool drab */
  --paper-2:  #e8eae3;
  --brass:    #b3862a;   /* aged brass — the one loud colour */
  --indigo:   #2f3f96;
  --oxblood:  #7d2230;   /* reserved: stale feeds and closing deadlines only */
  --mute:     #6b7080;
  --rule:     #cfd2cb;
  --rule-dark:#3a3f66;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --max: 74rem;
  color-scheme: light;
}

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

/* min-width:auto on grid items let the code block and the coverage table push the
   page wider than the phone viewport. Scrolling belongs inside those elements. */
.hero-grid > *, .claim-grid > *, .steps > *, .tiers > *, .faq > div > * { min-width: 0; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  letter-spacing: -0.005em;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0 0 1rem; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brass);
  color: var(--ink); padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

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

.mono {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  border-bottom: 1px solid var(--rule-dark);
  background: var(--ink);
  color: var(--paper);
}
.masthead .wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem;
  min-height: 3.25rem; padding-block: .5rem;
}
.brand {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .32em;
  text-transform: uppercase; font-weight: 600; color: var(--paper);
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.brand:hover { color: var(--brass); }
.masthead nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.masthead nav a {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: #b9bccd; text-decoration: none; white-space: nowrap;
}
.masthead nav a:hover { color: var(--brass); }

/* ---------------------------------------------------------------- beta strip */

.strip {
  background: var(--brass); color: #1a1405;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase;
}
.strip .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; padding-block: .55rem; }
.strip b { font-weight: 700; }
.strip span { opacity: .78; }

/* ---------------------------------------------------------------- hero */

.hero { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; } }

.eyebrow { color: var(--brass); margin-bottom: 1.4rem; display: block; }

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  line-height: .98;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--brass); }

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: #c6c9d8; max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block; font: 600 .9375rem/1 var(--sans);
  padding: .875rem 1.375rem; border-radius: 3px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brass); color: #17110a; }
.btn-primary:hover { background: #cb9a34; color: #17110a; }
.btn-ghost { border-color: #4a4f78; color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- record card */

.record {
  border: 1px solid var(--rule-dark);
  background: #171c3d;
  border-radius: 3px;
  min-width: 0;
}
.record-head {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--rule-dark);
  color: #9ea2bd;
}
.record-head .dot {
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--brass); flex: none;
}
.record-head .grow { margin-left: auto; color: var(--brass); }
.record-note {
  margin: 0; padding: 1rem 1rem .25rem; color: #9ea2bd; font-size: .875rem;
}
.record pre {
  margin: 0; padding: 1.1rem 1rem; overflow-x: auto;
  font-family: var(--mono); font-size: .9375rem; line-height: 1.7; color: var(--brass);
}
.record pre .k { color: #8fa4ff; }
.record pre .s { color: #d9b25e; }
.record-foot {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .7rem 1rem; border-top: 1px solid var(--rule-dark); color: #9ea2bd;
}
.record-foot .grow { margin-left: auto; }

.copy {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  background: transparent; color: var(--brass); border: 1px solid #4a4f78;
  padding: .4rem .7rem; border-radius: 3px; cursor: pointer;
}
.copy:hover { border-color: var(--brass); }
.copy[data-state="done"] { color: #17110a; background: var(--brass); border-color: var(--brass); }

/* ---------------------------------------------------------------- bands */

.band { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.band-alt { background: var(--paper-2); }

/* Section reference rule: borrows the notice's own section grammar (I., II., III.) */
.ref { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; color: var(--mute); }
.ref .num { color: var(--ink); font-weight: 700; }
.ref .line { flex: 1; height: 1px; background: var(--rule); transform: translateY(-.25rem); }
.ref .note { color: var(--mute); }

.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); max-width: 24ch; margin-bottom: .9rem; }
.band-intro { color: #4c5164; max-width: 58ch; }

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

.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step .mono { color: var(--mute); display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.step p { color: #4c5164; margin: 0; font-size: .9375rem; }

.exchange {
  margin-top: 2.5rem; border: 1px solid var(--rule); border-radius: 3px;
  background: #fff; font-family: var(--mono); font-size: .8125rem; line-height: 1.75;
}
.exchange div { padding: .7rem 1rem; border-bottom: 1px solid var(--rule); }
.exchange div:last-child { border-bottom: 0; }
.exchange .who { color: var(--mute); letter-spacing: .12em; text-transform: uppercase; font-size: .6875rem; }
.exchange .tag {
  float: right; color: var(--mute); letter-spacing: .12em; text-transform: uppercase; font-size: .625rem;
}

/* ---------------------------------------------------------------- coverage */

.table-scroll { overflow-x: auto; margin-top: 2rem; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; }
thead th {
  text-align: left; font: 600 .6875rem/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute); padding: 0 1rem .6rem 0;
  border-bottom: 1px solid var(--ink);
}
tbody td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
tbody td:first-child { font-weight: 600; }
tbody .when { font-family: var(--mono); font-size: .8125rem; color: var(--mute); }

.state { font: 600 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.state-live    { color: #1c6b3a; }
.state-stale   { color: var(--oxblood); }
.state-planned { color: var(--mute); }

/* ---------------------------------------------------------------- pricing */

.tiers { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 52rem) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 1.5rem; display: flex; flex-direction: column;
}
.tier-mark { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tier .mono { color: var(--mute); }
.tier .price { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.04em; margin: .75rem 0 .25rem; }
.tier .price small { font-size: .875rem; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.tier .free-note { color: var(--mute); font-size: .8125rem; margin-bottom: 1.25rem; }
.tier ul { list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .9375rem; }
.tier li { padding: .4rem 0 .4rem 1.1rem; position: relative; color: #4c5164; border-bottom: 1px solid var(--paper-2); }
.tier li::before { content: "·"; position: absolute; left: .25rem; color: var(--brass); font-weight: 700; }
.tier form, .tier .btn { margin-top: auto; }

.field { display: flex; flex-wrap: wrap; gap: .5rem; }
input[type="email"], input[type="text"] {
  flex: 1 1 12rem; min-width: 0;
  font: 400 .9375rem/1 var(--sans); padding: .8rem .75rem;
  border: 1px solid var(--rule); border-radius: 3px; background: #fff; color: var(--ink);
}
input::placeholder { color: #9aa0ae; }
input:focus-visible { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.result {
  margin-top: .9rem; font-family: var(--mono); font-size: .8125rem; line-height: 1.6;
  padding: .8rem .9rem; border-radius: 3px; border: 1px solid var(--rule);
  background: var(--paper-2); word-break: break-all;
}
.result[hidden] { display: none; }
.result-bad { border-color: var(--oxblood); color: var(--oxblood); background: #fbf1f2; }
.result-key { background: var(--ink); color: #dfe2ef; border-color: var(--ink); }
.result-key b { color: var(--brass); display: block; margin-top: .4rem; font-size: .9375rem; }

.legal { color: var(--mute); font-size: .8125rem; margin-top: 1.5rem; max-width: 62ch; }

/* ---------------------------------------------------------------- faq */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.faq > div { border-bottom: 1px solid var(--rule); padding: 1.25rem 0; display: grid; gap: .35rem 2.5rem; }
@media (min-width: 52rem) { .faq > div { grid-template-columns: 22rem 1fr; } }
.faq h3 { font-size: 1rem; letter-spacing: -0.01em; }
.faq p { color: #4c5164; margin: 0; font-size: .9375rem; }

/* ---------------------------------------------------------------- signup band */

.claim { background: var(--ink); color: var(--paper); }
.claim .band-intro { color: #c6c9d8; }
.claim .ref { color: #8e93ad; }
.claim .ref .num { color: var(--paper); }
.claim .ref .line { background: var(--rule-dark); }
.claim input[type="email"], .claim input[type="text"] {
  background: #171c3d; border-color: var(--rule-dark); color: var(--paper);
}
.claim .result { background: #171c3d; border-color: var(--rule-dark); color: #c6c9d8; }
.claim .legal { color: #8e93ad; }
.claim-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .claim-grid { grid-template-columns: 1.1fr .9fr; } }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3.5rem; color: var(--mute); font-size: .875rem; }
.foot-top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; margin-bottom: 1.25rem; }
.foot-top a { color: var(--ink); }
.foot p { max-width: 70ch; margin-bottom: .6rem; }

/* ---------------------------------------------------------------- blog */

.post-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.post-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-list a:hover { color: var(--indigo); text-decoration: underline; }
.empty {
  margin-top: 2rem; border: 1px dashed var(--rule); border-radius: 3px;
  padding: 1.75rem; background: #fff; max-width: 46rem;
}
.empty h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.empty p { color: #4c5164; font-size: .9375rem; }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
  .reveal-1 { animation-delay: .04s; }
  .reveal-2 { animation-delay: .12s; }
  .reveal-3 { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
}
