/* ============================================================
   ORBUS TEMPORUM — Design tokens
   Palett hentet fra Symbelon-logoen: dyp natthimmel, gull, teal.
   ============================================================ */

:root {
  /* Farger */
  --bg: #0a0d13;
  --bg-raised: #12161f;
  --bg-raised-2: #171c27;
  --line: #262c39;
  --line-soft: #1a1f2a;

  --gold: #c9a15a;
  --gold-bright: #e0bc7a;
  --teal: #3f8079;
  --teal-bright: #5aa89f;

  --ink: #eae5d6;
  --ink-dim: #a9a48f;
  --ink-faint: #6b6a63;

  --almen-tint: #caa96222;
  --vit-tint: #3f807922;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --measure: 66ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle starfield texture on the base background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(234,229,214,0.35), transparent),
    radial-gradient(1px 1px at 75% 15%, rgba(234,229,214,0.25), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(234,229,214,0.2), transparent),
    radial-gradient(1px 1px at 33% 82%, rgba(234,229,214,0.3), transparent),
    radial-gradient(1px 1px at 90% 55%, rgba(234,229,214,0.2), transparent),
    radial-gradient(1.5px 1.5px at 10% 65%, rgba(234,229,214,0.25), transparent);
  background-repeat: repeat;
  background-size: 600px 600px;
  opacity: 0.5;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

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

::selection { background: var(--gold); color: #16130a; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,13,19,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.main-nav {
  display: flex;
  gap: 16px;
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 38px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 100px;
  padding: 40px 0 60px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Reusable pieces ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-bright);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.voice-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: var(--bg-raised);
}
.voice-toggle button {
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.voice-toggle button.active {
  background: var(--gold);
  color: #17130a;
  font-weight: 600;
}

.voice-block { display: none; }
.voice-block.active { display: block; }
.voice-block.almen { border-left: 2px solid var(--gold); padding-left: 20px; }
.voice-block.vitenskapelig { border-left: 2px solid var(--teal-bright); padding-left: 20px; }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 28px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-decoration: none;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: #17130a; }

.btn-quiet {
  border-color: var(--line);
  color: var(--ink-dim);
}
.btn-quiet:hover { background: var(--bg-raised-2); color: var(--ink); border-color: var(--ink-dim); }

.crumbs {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 28px 0 8px;
}
.crumbs a { color: var(--ink-dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }

.page-head {
  padding: 20px 0 40px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 48px;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.page-head .lede { color: var(--ink-dim); font-size: 1.05rem; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-header { position: sticky; }
  .wrap { padding: 0 20px; }
}
