/* ================================================
   Columbus application — light editorial theme
   ================================================ */
:root {
  /* palette — warm cream, near-black text, terracotta accent */
  --bg: #fbfaf7;
  --bg-2: #f3efe5;
  --surface: #ffffff;
  --surface-2: #faf6ea;
  --line: #e6e0d2;
  --line-2: #d4ccb7;

  --text: #111111;
  --text-dim: #3a3a3a;
  --text-mute: #6e6e6e;

  --accent: #8b3a1f;          /* terracotta */
  --accent-hi: #a8462a;
  --accent-soft: rgba(139, 58, 31, 0.07);
  --ok: #2f5233;              /* muted forest */
  --warn: #9a6a1f;            /* muted ochre */

  /* legacy token aliases — keeps rooms.css + room modules working
     without touching a dozen class names */
  --cyan: var(--accent);
  --cyan-soft: var(--accent-soft);
  --purple: var(--text-mute);
  --purple-soft: rgba(110, 110, 110, 0.06);
  --green: var(--ok);
  --amber: var(--warn);
  --pink: var(--accent);
  --grad: var(--accent);
  --grad-soft: var(--accent-soft);
  --shadow-1: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-glow: 0 1px 2px rgba(17, 17, 17, 0.04);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
code, pre { font-family: var(--mono); font-size: 0.9em; }

/* ================================================
   Top bar — sticky, minimal
   ================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem 2rem;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 0.55rem;
  font-size: 0.95rem;
}
.brand-dot { display: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-sep { color: var(--line-2); font-weight: 300; }
.brand-role { color: var(--text-mute); font-weight: 400; font-size: 0.88rem; }

.topnav {
  display: flex; gap: 1.6rem;
  margin-left: auto;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}
.topnav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-mute);
  padding: 0.25rem 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  background: none;
}
.topnav a::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--line-2);
  margin-right: 0.5rem;
  font-weight: 400;
  transition: color 0.15s;
}
.topnav a:hover {
  color: var(--text);
  background: none;
}
.topnav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: none;
  font-weight: 500;
  box-shadow: none;
}
.topnav a.active::before { color: var(--accent); opacity: 1; }

.cta-small {
  padding: 0.55rem 1.1rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.cta-small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: none;
}

/* ================================================
   Main layout — single long scroll
   ================================================ */
#app {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.view {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
  animation: none;
}
.view:last-of-type { border-bottom: none; }
.view[hidden] { display: block !important; } /* override the old router hide */
@keyframes fadeUp { from { opacity: 1; } to { opacity: 1; } }

/* ================================================
   Hero
   ================================================ */
.hero {
  max-width: 780px;
  padding: 5rem 0 3rem;
  text-align: left;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.8rem;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: none;
  animation: none;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.8rem;
  font-variation-settings: 'SOFT' 30, 'opsz' 144;
}
.hero-title .grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 2.4rem;
}
.hero-actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}
.btn-arrow { transition: transform 0.15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-chips {
  display: flex; gap: 0.45rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.hero-chips li {
  padding: 0.32rem 0.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* Hero stats — clean numeric grid, no animation */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 3rem;
  margin: 3rem 0 0;
  padding: 2.4rem 0 0;
  border-top: 1px solid var(--line);
}
.stat {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}
.stat::before { display: none; content: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  background: none;
  -webkit-text-fill-color: currentColor;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 0.5rem;
  line-height: 1.4;
  max-width: 180px;
}

/* ================================================
   Guide box — "slik leser du siden"
   ================================================ */
.guide {
  max-width: 780px;
  margin: 3rem 0 0;
  padding: 1.6rem 2rem;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.guide .gkicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
}
.guide p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ================================================
   Section header (formerly "room")
   ================================================ */
.room-header { margin-bottom: 3rem; max-width: 780px; }
.room-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0;
  background: none;
  border-radius: 0;
  margin-bottom: 1rem;
}
.room-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: var(--text);
}
.room-subtitle {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 680px;
}
.room-reqs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.req {
  padding: 0.3rem 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
}
.req::before { content: ''; color: var(--ok); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-1);
}
.card h3 { margin: 0 0 0.6rem; font-size: 1.08rem; font-weight: 600; color: var(--text); }
.card p { color: var(--text-dim); margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Section-to-section footer nav (inside each room) */
.room-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.room-nav a {
  display: flex; flex-direction: column;
  padding: 1rem 1.4rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
  min-width: 200px;
  box-shadow: none;
}
.room-nav a:hover {
  border-color: var(--text);
  transform: none;
  background: var(--surface);
}
.room-nav .prev { margin-right: auto; }
.room-nav .next { margin-left: auto; text-align: right; }
.room-nav .label {
  font-size: 0.7rem;
  color: var(--text-mute);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.room-nav .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin-top: 0.3rem;
  color: var(--text);
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
  max-width: 960px;
  margin: 6rem auto 0;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col strong {
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1rem;
}
.footer-col a:hover { color: var(--accent); }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 800px) {
  .site-footer { grid-template-columns: 1fr; padding: 2rem 1.2rem 3rem; }
  .topbar { flex-wrap: wrap; padding: 1rem 1.2rem; gap: 1rem; }
  .topnav { order: 3; width: 100%; overflow-x: auto; gap: 1.2rem; padding: 0.3rem 0; }
  .topnav a { white-space: nowrap; }
  .cta-small { order: 2; }
  #app { padding: 0 1.2rem; }
  .hero { padding: 3rem 0 2rem; }
  .view { padding: 3.5rem 0; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .room-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .room-nav { flex-direction: column; }
  .room-nav a { min-width: 0; width: 100%; text-align: left !important; }
}
