/* ==========================================================================
   Hypernova Rising Inc.
   styles.css — one stylesheet for the whole site.

   Edit colors in :root below and every page changes with it.
   ========================================================================== */

:root {
  /* Ink & paper */
  --ink:        #0B0E14;   /* near-black, faint blue in it */
  --ink-soft:   #141924;
  --ink-line:   #222B3A;
  --paper:      #FFFFFF;
  --paper-warm: #F7F5F1;   /* warm off-white for alternating bands */
  --line:       #E4E0D9;

  /* Text */
  --text:       #13161C;
  --text-muted: #58616F;
  --text-on-dark:       #F2F0EC;
  --text-on-dark-muted: #A8B0BE;

  /* The nova — gold through to ember */
  --nova:       #F0B443;
  --nova-deep:  #DC6A1C;
  --nova-ink:   #8A5A12;   /* dark enough to read as text on white */

  /* Shape */
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(11, 14, 20, .05), 0 8px 28px rgba(11, 14, 20, .07);
  --shadow-lift: 0 2px 6px rgba(11, 14, 20, .07), 0 18px 48px rgba(11, 14, 20, .12);

  /* Rhythm */
  --gutter:  clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 116px);
  --measure: 68ch;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

.band { padding-block: var(--section); }
.band--warm { background: var(--paper-warm); }
.band--dark { background: var(--ink); color: var(--text-on-dark); }
.band--dark .lede,
.band--dark p { color: var(--text-on-dark-muted); }
.band--tight { padding-block: clamp(44px, 6vw, 72px); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.12rem, 1.9vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nova-ink);
  margin: 0 0 1.1rem;
}
.band--dark .eyebrow { color: var(--nova); }

.rule {
  width: 62px;
  height: 3px;
  border: 0;
  margin: 0 0 1.8rem;
  background: linear-gradient(90deg, var(--nova), var(--nova-deep));
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .82em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--nova), var(--nova-deep));
  color: #2A1703;
  box-shadow: 0 6px 20px rgba(220, 106, 28, .28);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(220, 106, 28, .38); }

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }

/*
 * Every dark surface, not just the ones tagged .band--dark. The hero and the
 * inner-page headers are dark too, and a ghost button on them was inheriting
 * near-black text on a near-black background — legible in the CSS, invisible
 * on the page.
 */
.band--dark .btn--ghost,
.hero .btn--ghost,
.pagehead .btn--ghost,
.mailcard .btn--ghost {
  border-color: #39425A;
  color: var(--text-on-dark);
}

.band--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.pagehead .btn--ghost:hover,
.mailcard .btn--ghost:hover {
  border-color: var(--nova);
  color: var(--nova);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  fill: url(#novaGradient);
}

/* Fallback if the gradient def is not on the page */
.brand__mark--flat { fill: var(--nova-deep); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .55em .85em;
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}

.nav a:hover { color: var(--text); background: var(--paper-warm); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.nav .btn { margin-left: 8px; padding: .62em 1.15em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .8em .6em; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-block: clamp(76px, 12vw, 150px);
  isolation: isolate;
}

/* The nova itself — a light source behind the words, not a picture of one. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -32%;
  right: -12%;
  width: min(880px, 92vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(240, 180, 67, .30) 0%,
      rgba(220, 106, 28, .17) 34%,
      rgba(220, 106, 28, 0) 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero h1 { color: var(--text-on-dark); max-width: 17ch; }
.hero .lede { color: var(--text-on-dark-muted); margin-top: 1.5rem; }

.hero__note {
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: .9rem;
  color: var(--text-on-dark-muted);
  max-width: 52ch;
}

/* A slimmer hero for the inner pages */
.pagehead {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pagehead::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  left: 55%;
  width: min(680px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(240, 180, 67, .22) 0%,
    rgba(220, 106, 28, .10) 40%,
    rgba(220, 106, 28, 0) 70%);
  pointer-events: none;
}

.pagehead h1 { color: var(--text-on-dark); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.pagehead .lede { color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(34px, 5vw, 56px);
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #D3CEC4;
}

.card h3 { margin-bottom: .55em; }
.card p { color: var(--text-muted); font-size: .97rem; }

.card__num {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--nova-ink);
  letter-spacing: .04em;
  display: block;
  margin-bottom: 1.1rem;
}

.band--dark .card {
  background: var(--ink-soft);
  border-color: var(--ink-line);
  box-shadow: none;
}
.band--dark .card:hover { border-color: #33405A; transform: translateY(-3px); }
.band--dark .card h3 { color: var(--text-on-dark); }
.band--dark .card p { color: var(--text-on-dark-muted); }
.band--dark .card__num { color: var(--nova); }

/* Principles — a numbered list that reads like a list, not a grid of boxes */
.principles {
  list-style: none;
  margin: clamp(30px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.principles li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(24px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.principles li:last-child { border-bottom: 1px solid var(--line); }

.band--dark .principles li { border-color: var(--ink-line); }

.principles__n {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--nova-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.band--dark .principles__n { color: var(--nova); }

.principles h3 { margin-bottom: .4em; }
.principles p { color: var(--text-muted); margin: 0; }
.band--dark .principles p { color: var(--text-on-dark-muted); }

/* Two-column split: heading left, prose right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* --------------------------------------------------------------------------
   Prose blocks (about / privacy / terms)
   -------------------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--nova-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--nova-deep); }

.prose__meta {
  font-size: .88rem;
  color: var(--text-muted);
  border-left: 3px solid var(--line);
  padding-left: 1em;
  margin-bottom: 2.6em;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.mailcard {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4.5vw, 52px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mailcard::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  right: -18%;
  width: 520px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(240, 180, 67, .22), rgba(220, 106, 28, 0) 66%);
}

.mailcard__label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nova);
  margin: 0 0 .9rem;
}

.mailcard__addr {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 2px solid rgba(240, 180, 67, .45);
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
  word-break: break-word;
}

.mailcard__addr:hover { border-color: var(--nova); color: var(--nova); }

.copy-btn {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--text-on-dark-muted);
  font-family: var(--sans);
  font-size: .87rem;
  font-weight: 500;
  padding: .6em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.copy-btn:hover { border-color: var(--nova); color: var(--nova); }
.copy-btn[data-copied="true"] { border-color: var(--nova); color: var(--nova); }

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

.checklist li {
  position: relative;
  padding-left: 1.9em;
  margin-bottom: .85em;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nova), var(--nova-deep));
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lede { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-foot {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding-block: clamp(46px, 6vw, 70px) 34px;
  font-size: .92rem;
}

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 38px;
  border-bottom: 1px solid var(--ink-line);
}

.site-foot .brand { color: var(--text-on-dark); }
.site-foot p { max-width: 40ch; margin-top: 1rem; font-size: .9rem; }

.site-foot h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 1.1rem;
}

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .62em; }

.site-foot a {
  text-decoration: none;
  color: var(--text-on-dark-muted);
  transition: color .15s ease;
}
.site-foot a:hover { color: var(--nova); }

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .85rem;
}

@media (max-width: 700px) {
  .site-foot__top { grid-template-columns: 1fr 1fr; }
  .site-foot__brandcol { grid-column: 1 / -1; }
}

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

.lost {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.lost .lede { margin-inline: auto; }
