/* Plan Norway — shared styles
   Palette: north-sea ink, fjord green-blue, ice, snow, a restrained aurora green.
   Type: Fraunces (display) + Inter (body). */

:root {
  --ink: #0e2a3a;
  --fjord: #1f5f6b;
  --fjord-deep: #163f48;
  --ice: #e9f1f2;
  --snow: #ffffff;
  --aurora: #4dbe8c;
  --amber: #e0a42b;
  --mist: #c9d8dc;
  --text: #16303c;
  --muted: #5a707a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 66ch;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ice);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

p { max-width: var(--measure); margin: 0 0 1em; }
a { color: var(--fjord); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fjord-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--aurora);
  outline-offset: 2px;
}

.wrap { width: min(1100px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--snow);
  border-bottom: 1px solid var(--mist);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--fjord); }
.site-nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
}
.site-nav a[aria-current="page"] { color: var(--fjord); border-bottom: 2px solid var(--aurora); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--fjord); color: var(--fjord); }

@media (max-width: 800px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mist);
  }
  .site-nav.open { display: flex; }
  .site-nav a { margin-left: 0; padding: 0.6rem 0.2rem; font-size: 1rem; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--snow);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 62%, transparent), color-mix(in srgb, var(--ink) 78%, transparent));
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--snow); max-width: 14ch; }
.hero p { color: var(--mist); font-size: 1.15rem; max-width: 52ch; }
.hero-live {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.5rem; padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.95rem; color: var(--snow);
  text-decoration: none;
}
.hero-live .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 0 4px rgba(77,190,140,0.25);
}

/* Sections */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-lead { color: var(--muted); }

/* Tool list — deliberately not identical cards: a numbered-free stacked list with a rule */
.tool-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--mist); }
.tool-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--mist);
}
.tool-list h3 { margin: 0 0 0.25rem; }
.tool-list p { margin: 0; color: var(--muted); }
.tool-list li.has-icon { grid-template-columns: auto 1fr auto; }
.tool-icon { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); }
.tool-list a.go {
  white-space: nowrap; text-decoration: none;
  padding: 0.6rem 1rem; border-radius: var(--radius);
  background: var(--fjord); color: var(--snow);
}
.tool-list a.go:hover { background: var(--fjord-deep); color: var(--snow); }
@media (max-width: 640px) {
  .tool-list li, .tool-list li.has-icon { grid-template-columns: 1fr; padding: 1.5rem 0; gap: 0.75rem; }
}

/* Panels / forms */
.panel {
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.panel h2, .panel h3 { margin-top: 0; }

label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.25rem; }
input[type="number"], input[type="text"], select {
  width: 100%; padding: 0.55rem 0.7rem;
  font: inherit; color: var(--text);
  border: 1px solid var(--mist); border-radius: var(--radius);
  background: var(--snow);
}
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

button.primary {
  font: inherit; cursor: pointer;
  padding: 0.7rem 1.2rem; border-radius: var(--radius);
  background: var(--fjord); color: var(--snow); border: 0;
}
button.primary:hover { background: var(--fjord-deep); }
button.secondary {
  font: inherit; cursor: pointer;
  padding: 0.6rem 1rem; border-radius: var(--radius);
  background: transparent; color: var(--fjord); border: 1px solid var(--fjord);
}

/* Result */
.result {
  border-left: 4px solid var(--aurora);
  background: var(--snow);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}
.result strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.result.warn { border-left-color: var(--amber); }
.result.quiet { border-left-color: var(--mist); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; background: var(--snow); }
th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--mist); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Aurora gauge */
.gauge {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center;
}
@media (max-width: 480px) {
  .gauge { grid-template-columns: 1fr; }
}
.gauge-value {
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1;
  color: var(--ink);
}
.gauge-label { color: var(--muted); font-size: 0.9rem; }
.meter { height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.meter > span { display: block; height: 100%; background: var(--aurora); width: 0; transition: width 400ms ease; }

/* Aurora ranking rows */
.rank-row { cursor: pointer; }
.rank-row:hover td { background: var(--ice); }
.rank-row.active td { background: var(--ice); font-weight: 500; }
.rank-score { font-family: var(--font-display); color: var(--ink); }

/* Booking CTA — the one place we let colour breathe */
.book {
  background: var(--fjord);
  color: var(--snow);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.book h3 { color: var(--snow); margin-top: 0; }
.book p { color: var(--ice); }
.book a { color: var(--snow); font-weight: 500; }

/* Notes & disclosure */
.note { font-size: 0.9rem; color: var(--muted); }
.disclosure {
  font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--mist); padding-top: 0.75rem; margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--snow); border-top: 1px solid var(--mist);
  padding: 2rem 0; margin-top: 3rem;
  font-size: 0.9rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
