/* Menrva — site styles. No external fonts or resources (see privacy policy). */

/* Dark only, by design. */
:root {
  --paper: #0b0d0c;
  --paper-2: #131615;
  --ink: #ebe7de;
  --muted: #9a9e97;
  --line: #242926;
  --deep: #cfe0d8;
  --accent: #d9825f;
  --focus: #d9825f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 0.875rem; z-index: 10; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 600 1.25rem/1 var(--serif); letter-spacing: 0.01em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 1.75rem; height: 1.75rem; }
.brand .m { stroke: var(--deep); }
.brand .d { fill: var(--accent); }
.nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Type */
.eyebrow {
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.25rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); color: var(--muted); max-width: 36em; margin: 1.5rem 0 0; }
em.accent { font-style: italic; color: var(--accent); }

/* Hero */
/* Home: one dark screen, one graphic */
.home {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse 55% 45% at 50% 38%, #15201c 0%, var(--paper) 72%) var(--paper);
}
.home main { padding: 0 var(--gutter); }
.stage { min-height: 88vh; min-height: 88svh; display: grid; place-items: center; align-content: center; gap: 1.75rem; padding-top: clamp(2rem, 6vh, 4rem); }
.about { max-width: 38rem; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 6vh, 4rem); border-top: 1px solid var(--line); color: var(--muted); }
.about { font-size: 0.9375rem; }
.about h2 { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.about p { margin: 0 0 1rem; }
.about a { color: var(--ink); }
.home .site-footer { padding: 1.5rem 0 2rem; font-size: 0.8125rem; }
.home .site-footer .wrap { justify-content: center; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.portal { width: min(88vw, 34rem, 58svh); height: auto; overflow: visible; }
.portal .arch { fill: none; stroke: var(--deep); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.portal .arch.faint { stroke-opacity: 0.3; }
.portal .arch:nth-child(2) { animation-delay: 0.25s; }
.portal .arch:nth-child(3) { animation-delay: 0.5s; }
.portal .arch:nth-child(4) { animation-delay: 0.75s; }
.portal .arch:nth-child(5) { animation-delay: 1s; }
.portal .arch:nth-child(6) { animation-delay: 1.25s; }
.portal .reflection { opacity: 0.18; }
.portal .horizon { stroke-width: 1; }
/* Sunrise: the ember climbs from the horizon through the arches while the dawn glow builds. */
.portal .sun { transform: translateY(300px); animation: rise 7s cubic-bezier(0.25, 0.1, 0.1, 1) 1.4s forwards; }
.portal .ember { fill: var(--accent); opacity: 0; animation: appear 1.6s ease 1.4s forwards, breathe 5s ease-in-out 8.4s infinite; }
.portal .halo { opacity: 0; animation: appear 4s ease 2.4s forwards, breathe 5s ease-in-out 8.4s infinite; }
.portal .dawn { opacity: 0; transform-origin: 300px 500px; transform: scaleY(0.4); animation: dawn 9s ease-out 1s forwards, swell 9s ease-in-out 10s infinite; }
.portal .stars circle { fill: var(--ink); opacity: 0.08; animation: twinkle 6s ease-in-out infinite; }
.portal .stars circle:nth-child(3n) { animation-duration: 8.5s; animation-delay: 1.5s; }
.portal .stars circle:nth-child(3n + 1) { animation-duration: 7s; animation-delay: 3s; }
.portal .stars circle:nth-child(5n) { animation-duration: 11s; animation-delay: 0.6s; }
.wordmark {
  margin: 0; color: var(--muted);
  font: 400 clamp(0.95rem, 2vw, 1.15rem)/1 var(--serif);
  letter-spacing: 0.65em; text-indent: 0.65em; text-transform: uppercase;
  opacity: 0; animation: appear 2.4s ease 5s forwards;
}
/* A hairline that keeps filling and never quite finishes: something on its way. */
.signal {
  position: relative; display: block; width: 7.5rem; height: 1px; margin-top: -0.25rem;
  background: var(--line); overflow: hidden;
  opacity: 0; animation: appear 2s ease 6s forwards;
}
.signal::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform-origin: left; transform: scaleX(0);
  animation: load 14s cubic-bezier(0.2, 0.6, 0.1, 1) 6.5s forwards, flicker 3.5s ease-in-out 20s infinite;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes dawn { to { opacity: 1; transform: scaleY(1); } }
@keyframes swell { 50% { opacity: 0.75; } }
@keyframes load { to { transform: scaleX(0.86); } }
@keyframes flicker { 50% { opacity: 0.45; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes breathe { 50% { opacity: 0.5; } }
@keyframes twinkle { 50% { opacity: 0.65; } }
@media (prefers-reduced-motion: reduce) {
  .portal .arch { animation: none; stroke-dashoffset: 0; }
  .portal .sun { animation: none; transform: none; }
  .portal .dawn { animation: none; transform: none; opacity: 1; }
  .portal .ember, .portal .halo, .wordmark, .signal { animation: none; opacity: 1; }
  .signal::after { animation: none; transform: scaleX(0.86); }
  .portal .stars circle { animation: none; opacity: 0.3; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2.25rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--deep); color: var(--paper);
  padding: 0.8rem 1.25rem; border-radius: 999px;
  font-weight: 500; font-size: 0.9375rem; text-decoration: none;
}
.button:hover { color: var(--paper); background: var(--accent); }

/* Legal / prose pages */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head-bare { border-bottom: 0; }
.flush { margin: 0; }
.page-head .meta { margin: 1rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.prose { max-width: 42rem; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.prose h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .note { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 0.5rem 0.5rem 0; color: var(--muted); }

.contact-card { margin: 0 0 2rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--paper-2); }
.contact-card .big { font: 500 clamp(1.375rem, 3vw, 1.75rem)/1.2 var(--serif); }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

