/* Revere: night, lantern light and engraved paper. Self-hosted fonts (OFL, see fonts/LICENSE-*). */

@font-face { font-family: "Caslon Display"; src: url("/assets/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Franklin"; src: url("/assets/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Franklin"; src: url("/assets/fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "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: "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 {
  --night: #0b1120;
  --night-2: #121b2e;
  --night-3: #1a2540;
  --night-line: #2a3754;
  --moon: #ece6d9;
  --moon-dim: #aab3c5;
  --lantern: #f4a940;
  --lantern-hi: #ffc46b;
  --lantern-ink: #8a4f00;
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --paper-3: #fbf8f1;
  --ink: #131a2a;
  --ink-dim: #4a5366;
  --rule: #cdc3ad;
  --up: #2f8f5b;
  --up-ink: #22704a;
  --part: #e0a03a;
  --down: #c2362b;
  --down-hi: #ff6b5a;

  --serif: "Caslon Display", "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Franklin", "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1140px;
  color-scheme: dark light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--lantern-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--lantern); color: var(--night); padding: 10px 14px; font-weight: 600; text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---- surfaces ---- */
.night {
  background-color: var(--night);
  /* faint engraved horizontal lines, like a night sky in an old print */
  background-image: repeating-linear-gradient(0deg, rgba(160, 180, 220, .035) 0 1px, transparent 1px 5px);
  color: var(--moon);
}
.paper { background: var(--paper); color: var(--ink); }
section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.paper::before, .paper::after {
  /* double engraved rule at the top and bottom edge of each paper section */
  content: ""; position: absolute; left: 0; right: 0; height: 5px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); opacity: .55;
}
.paper::before { top: 10px; }
.paper::after { bottom: 10px; }

/* ---- type ---- */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.06; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.eyebrow {
  font: 500 .78rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--lantern); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.paper .eyebrow { color: var(--lantern-ink); }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--moon-dim); max-width: 40em; margin-top: 18px; }
.paper .lede { color: var(--ink-dim); }
.fine { font-size: .9rem; color: var(--moon-dim); }
.paper .fine { color: var(--ink-dim); }
.muted { color: var(--ink-dim); }
.link { color: var(--lantern-ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p code, li code, figcaption code { background: rgba(19, 26, 42, .07); padding: .08em .35em; border-radius: 3px; overflow-wrap: anywhere; }
.night p code { background: rgba(236, 230, 217, .09); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--night-line); color: var(--moon);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--moon-dim); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .92rem; }
.btn-lit { background: var(--lantern); border-color: var(--lantern); color: var(--night); box-shadow: 0 0 0 4px rgba(244, 169, 64, .14), 0 6px 26px -8px rgba(244, 169, 64, .6); }
.btn-lit:hover { background: var(--lantern-hi); border-color: var(--lantern-hi); }
.btn-ghost { background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---- header ---- */
.top { background: var(--night); border-bottom: 1px solid var(--night-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.65rem/1 var(--serif); color: var(--moon); }
.brand .mark { width: 30px; height: 30px; color: var(--moon); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--moon-dim); }
.nav a:not(.btn):hover { color: var(--moon); }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* ---- hero ---- */
.hero { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { max-width: 12.5em; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.hero .fine { margin-top: 18px; }
.hero-art { justify-self: center; width: min(100%, 380px); }
.hero-art svg { width: 100%; height: auto; }
.hero-art figcaption {
  margin-top: 12px; text-align: center; font: 400 1.3rem/1.2 var(--serif); color: var(--moon-dim); letter-spacing: .01em;
}
@media (max-width: 899px) { .hero-art { width: min(56%, 240px); order: -1; margin-bottom: -12px; } .hero-art figcaption { font-size: 1rem; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .glow { animation: flicker 5s ease-in-out infinite alternate; transform-origin: 180px 322px; }
  @keyframes flicker { 0% { opacity: .82; } 45% { opacity: 1; } 60% { opacity: .9; } 100% { opacity: 1; } }
}

/* ---- command box ---- */
.cmd {
  position: relative; margin-top: 28px; max-width: 600px;
  display: flex; align-items: flex-start; gap: 12px;
  background: #070b15; border: 1px solid var(--night-line); border-radius: 8px;
  padding: 14px 14px 14px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.cmd code { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.6; color: var(--moon); white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 4px; }
.cmd .pr { color: var(--lantern); user-select: none; }
.cmd .cm { color: var(--moon-dim); }
.copy {
  flex: none; min-height: 34px; padding: 0 12px; border-radius: 5px; cursor: pointer;
  font: 500 .82rem/1 var(--mono); color: var(--moon); background: var(--night-3); border: 1px solid var(--night-line);
}
.copy:hover { border-color: var(--moon-dim); }
@media (max-width: 520px) {
  .cmd { padding: 12px 12px 12px 14px; }
  .cmd code { font-size: .84rem; }
  .cmd-multi { flex-direction: column; align-items: stretch; }
  .cmd-multi .copy { align-self: flex-end; }
}
.copy.done { color: var(--night); background: var(--lantern); border-color: var(--lantern); }

/* ---- checks ---- */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.card {
  background: var(--paper-3); border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); border-radius: 2px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.card p { color: var(--ink-dim); }
.card h3 { font-size: 1.3rem; }
.reading { font: 500 .82rem/1.2 var(--mono); color: var(--up-ink) !important; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(47, 143, 91, .18); }
.code {
  margin-top: auto; background: var(--ink); color: var(--moon); border-radius: 4px;
  padding: 12px 14px; font-size: .84rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
.code code { font-size: inherit; }
.nw { white-space: nowrap; }
.card .code { margin-top: auto; }

/* ---- alarm ---- */
.alarm { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .alarm { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.letters { position: relative; padding: 0 0 0 0; }
.letter {
  position: relative; background: var(--paper-3); color: var(--ink); border-radius: 3px;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 24px 60px -24px rgba(0, 0, 0, .7), 0 0 80px -30px rgba(244, 169, 64, .35);
  padding: 22px 24px 24px; font-family: var(--mono); font-size: .9rem; line-height: 1.6;
}
.letter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--down); border-radius: 3px 3px 0 0; }
.letter-down { z-index: 2; }
.letter-back { z-index: 1; margin: 16px 0 0 clamp(16px, 5vw, 40px); font-size: .84rem; }
.letter-back::before { background: var(--up); }
.up-t { color: var(--up-ink); }
.hdrs { display: grid; gap: 2px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--rule); }
.hdrs div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); }
.hdrs dt { color: var(--ink-dim); }
.hdrs dd { margin: 0; overflow-wrap: anywhere; }
.down-t { color: var(--down); }
.letter .body { overflow-wrap: anywhere; }
.letter .body p + p { margin-top: 12px; }
.letter .muted { font-size: .82rem; }

.timeline { position: relative; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.timeline time { font: 500 .85rem/1.6 var(--mono); color: var(--moon-dim); padding-top: 1px; }
.timeline b { display: block; font-weight: 600; color: var(--moon); }
.timeline div { color: var(--moon-dim); font-size: .98rem; }
.timeline .is-down b { color: var(--down-hi); }
.timeline .is-down time { color: var(--down-hi); }
.timeline .is-up b { color: #6fd39a; }
.also { margin-top: 28px; }
.also-h { font: 500 .78rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--moon-dim); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips li { border: 1px solid var(--night-line); background: var(--night-2); border-radius: 999px; padding: 5px 12px; font-size: .92rem; }

/* ---- status page mock ---- */
.browser {
  background: var(--paper-3); border: 1px solid var(--ink); border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink); overflow: hidden; max-width: 880px; margin: 0 auto;
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.pips { display: flex; gap: 6px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-dim); opacity: .6; }
.url { flex: 1; min-width: 0; text-align: center; font: 400 .85rem/1.6 var(--mono); color: var(--ink-dim); background: var(--paper-3); border: 1px solid var(--rule); border-radius: 5px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp { padding: clamp(18px, 4vw, 36px); }
.sp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-name { font: 600 1.35rem/1.2 var(--sans); }
.sp-sub { font-size: .9rem; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.sp-ok { margin: 18px 0 22px; padding: 12px 16px; border-radius: 6px; background: #e1efe4; color: #1d5e3d; font-weight: 600; border: 1px solid #b9d8c3; }
.sp-mons { display: grid; gap: 18px; }
.sp-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .95rem; }
.sp-row span { color: var(--ink-dim); font-family: var(--mono); font-size: .85rem; white-space: nowrap; }
.sp-row em { font-style: normal; color: var(--up-ink); font-family: var(--sans); margin-right: 8px; }
.bars { display: flex; gap: 1px; height: 30px; }
.bars i { flex: 1 1 0; min-width: 0; background: var(--up); border-radius: 1px; }
.bars i.p { background: var(--part); }
.bars i.d { background: var(--down); }
@media (max-width: 520px) { .bars { gap: 0; } .bars i { border-radius: 0; box-shadow: inset -.5px 0 0 var(--paper-3); } .sp-row em { display: none; } }
.sp-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 400 .78rem/1 var(--mono); color: var(--ink-dim); }
.sp-past { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .95rem; }
.sp-past-h { font-weight: 600; margin-bottom: 8px; }
.sp-past .muted { display: block; font-size: .88rem; margin-top: 2px; }
.tag { display: inline-block; font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-radius: 3px; vertical-align: 2px; }
.tag-major { background: #f7dcd6; color: #8f2219; }
.browser figcaption { padding: 14px clamp(18px, 4vw, 36px); border-top: 1px solid var(--rule); background: var(--paper-2); font-size: .9rem; color: var(--ink-dim); }

.split { display: grid; gap: 40px; margin-top: clamp(48px, 7vw, 80px); }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.split > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.split h3 { font-size: 1.35rem; }
.split p { color: var(--ink-dim); }
.split .code { margin-top: 6px; }
.dns { border: 1px solid var(--ink); border-radius: 3px; font: 400 .82rem/1.45 var(--mono); background: var(--paper-3); }
.dns-r { display: grid; grid-template-columns: 4.6em minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-top: 1px solid var(--rule); }
.dns-r span { overflow-wrap: anywhere; }
.dns-h { border-top: 0; background: var(--paper-2); color: var(--ink-dim); font-weight: 500; }
@media (max-width: 520px) {
  .dns-r { grid-template-columns: 1fr; gap: 0; }
  .dns-h { display: none; }
  .dns-r span:first-child { font-weight: 500; color: var(--lantern-ink); }
  .dns-r span:last-child::before { content: "→ "; color: var(--ink-dim); }
}

/* ---- pricing ---- */
.plans { display: grid; gap: 20px; }
@media (min-width: 980px) { .plans { grid-template-columns: 1fr 1.15fr 1.15fr; gap: 24px; align-items: stretch; } }
@media (min-width: 680px) and (max-width: 979px) { .plans { grid-template-columns: 1fr 1fr; } .calc { grid-column: 1 / -1; } }
.plan, .calc { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 8px; padding: 26px; min-width: 0; }
.plan-lit { border-color: rgba(244, 169, 64, .55); box-shadow: 0 0 0 1px rgba(244, 169, 64, .2), 0 20px 60px -30px rgba(244, 169, 64, .45); }
.plan h3, .calc h3 { font-size: 1.05rem; color: var(--moon-dim); font-weight: 600; }
.price { margin: 10px 0 18px; color: var(--moon-dim); }
.price span { font: 400 3.4rem/1 var(--serif); color: var(--moon); margin-right: 4px; }
.plan-lit .price span { color: var(--lantern); }
.plan ul { display: grid; gap: 10px; border-top: 1px solid var(--night-line); padding-top: 18px; }
.plan li { padding-left: 22px; position: relative; color: var(--moon); font-size: .98rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 8px; height: 8px; border: 1.5px solid var(--lantern); transform: rotate(45deg); }
.calc { display: flex; flex-direction: column; gap: 10px; }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--moon); margin-top: 8px; }
.calc output { font: 500 1rem/1.4 var(--mono); color: var(--lantern); min-width: 2ch; text-align: right; }
.calc input[type="range"] { width: 100%; accent-color: var(--lantern); margin: 2px 0 6px; }
.calc-split { font: 400 .85rem/1.4 var(--mono); color: var(--moon-dim); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--night-line); }
.calc-total { font: 400 2.6rem/1 var(--serif); color: var(--moon); }
.calc-total small { font: 400 .95rem var(--sans); color: var(--moon-dim); }

/* ---- faq ---- */
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; } .faq-wrap .sec-head { margin-bottom: 0; } }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.5rem/1 var(--sans); color: var(--lantern-ink);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--lantern-ink); }
.faq details p { padding: 0 0 20px; color: var(--ink-dim); max-width: 42em; }

/* ---- cta ---- */
.cta { text-align: center; background-image: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(244, 169, 64, .16), transparent 70%), repeating-linear-gradient(0deg, rgba(160, 180, 220, .035) 0 1px, transparent 1px 5px); }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 56px; height: 56px; color: var(--moon); margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(244, 169, 64, .55)); }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .cmd { text-align: left; width: 100%; max-width: 640px; }
.cta .actions { justify-content: center; }

/* ---- footer ---- */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--night-line); font-size: .95rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot-made { display: flex; align-items: center; gap: 10px; }
.foot-made .mark { width: 24px; height: 24px; color: var(--moon); }
.foot a { color: var(--moon); text-underline-offset: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--moon-dim); text-decoration: none; }
.foot nav a:hover { color: var(--moon); text-decoration: underline; }
.foot-c { color: var(--moon-dim); width: 100%; font-size: .85rem; }
@media (min-width: 900px) { .foot-c { width: auto; } }
