/* Hesperion — hesperion.app */

@font-face {
  font-family: "Marcellus";
  src: url("/fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #050d17;
  --deep: #02070e;
  --ink: #ebe5d6;
  --ink-2: #b1b6bf;
  --ink-3: #7f8793;
  --gold: #d9ac4d;
  --gold-2: #f0cf7a;
  --gold-line: rgba(217, 172, 77, 0.32);
  --sea: #31c9a0;
  --sea-2: #8afdef;
  --line: rgba(235, 229, 214, 0.1);
  --focus: #8afdef;

  --serif: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  background: var(--night);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) {
  body { font-size: 1.125rem; }
}

a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-color: var(--gold-2); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }
strong { font-weight: 600; color: var(--ink); }
small { font-size: 0.9em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-header {
  padding-top: 22px;
  padding-bottom: 22px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand .star { width: 18px; height: 18px; color: var(--gold); flex: none; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 30px); }
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.97rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.35em;
}

/* Horizon rule: a thin line with the evening star where it sets */
.horizon {
  position: relative;
  height: 24px;
  margin: 0;
  border: 0;
}
.horizon::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line) 0%, var(--gold-line) 64%, transparent 100%);
}
.horizon::after {
  content: "";
  position: absolute;
  top: 50%; left: 62%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
@media (min-width: 900px) {
  .horizon::after { left: 58%; }
}

main { flex: 1; }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero-copy { order: 2; }
.hero-emblem { order: 1; justify-self: start; }
.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-2);
  margin-top: 1.4em;
  max-width: 34em;
}
.hero .status {
  margin-top: 1.6em;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
}
.hero .status a { color: var(--ink-2); }

.emblem {
  position: relative;
  width: clamp(150px, 40vw, 380px);
  aspect-ratio: 1;
}
.emblem::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 54% 52%, rgba(49, 201, 160, 0.32), rgba(49, 201, 160, 0) 70%),
    radial-gradient(closest-side at 42% 60%, rgba(217, 172, 77, 0.22), rgba(217, 172, 77, 0) 72%);
  filter: blur(14px);
  z-index: 0;
}
.emblem img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(138, 253, 239, 0.08);
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
  }
  .hero-copy { order: 1; }
  .hero-emblem { order: 2; justify-self: end; }
}

/* Sections */
.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--ink-2); margin-top: 0.9em; }

/* Definition list: what the wallet does */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 48px;
  margin: 0;
}
.features > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.features dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.45em;
}
.features dd { margin: 0; color: var(--ink-2); max-width: 36em; }
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
}

/* Keys: plain statements with a small gold mark */
.keys {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44em;
}
.keys li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1.1em;
  color: var(--ink-2);
}
.keys li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 10px; height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
}
.keys li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.15em; }

/* Notice */
.notice {
  border-left: 2px solid var(--sea);
  padding: 4px 0 4px 22px;
  max-width: 44em;
}
.notice p { color: var(--ink-2); }
.notice p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 48px;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.site-footer p { margin: 0 0 0.5em; max-width: 40em; }
.site-footer .brand { font-size: 1.15rem; margin-bottom: 10px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 6px; }
@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; }
}

/* Long-form pages (privacy, terms, support) */
.doc { padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(48px, 8vw, 96px); }
.doc header { margin-bottom: clamp(28px, 5vw, 56px); }
.doc header .updated { color: var(--ink-3); margin-top: 1em; }
.doc article { max-width: 68ch; }
.doc h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin-top: 2.2em;
  margin-bottom: 0.55em;
}
.doc h3 { margin-top: 1.6em; margin-bottom: 0.4em; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 0.45em; }
.doc ul { padding-left: 1.2em; }
.doc .summary {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 22px;
  margin: 0 0 2.4em;
}
.doc .summary p:last-child { margin-bottom: 0; }
.doc .toc { padding-left: 1.2em; margin: 0 0 1em; columns: 1; }
.doc .toc a { color: var(--ink-2); text-decoration: none; }
.doc .toc a:hover { color: var(--ink); }
@media (min-width: 720px) { .doc .toc { columns: 2; column-gap: 40px; } }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: 0.95em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }

/* 404 */
.lost { padding-top: 10vh; padding-bottom: 14vh; }
.lost p { color: var(--ink-2); margin-top: 1.2em; }

::selection { background: rgba(217, 172, 77, 0.35); color: var(--ink); }
