/* VarselLuftNå privacy policy — observation-station logbook.
   Light is the day shift, dark is the night shift; both keep the same ruled language. */

:root {
  color-scheme: light dark;

  --paper: #f1f2ef;
  --ink: #1c1b18;
  --ink-soft: #4d4a44;
  --ink-faint: #6d6a62;
  --rule: rgba(28, 27, 24, 0.16);
  --rule-strong: rgba(28, 27, 24, 0.34);
  --accent: #a35f14;
  --accent-soft: #c77b22;
  --accent-text: #8a4f10;
  --card: #fafaf8;

  --font-display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --measure: 44rem;
  --pad-x: clamp(1.1rem, 4vw, 2.5rem);
}

[data-theme="dark"] {
  --paper: #151412;
  --ink: #e8e4dc;
  --ink-soft: #b5b0a6;
  --ink-faint: #948f85;
  --rule: rgba(232, 228, 220, 0.14);
  --rule-strong: rgba(232, 228, 220, 0.34);
  --accent: #e8a44e;
  --accent-soft: #d69440;
  --accent-text: #e8a44e;
  --card: #1c1b18;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* one authored moment: the top rule doubles as the reading progress line */
}

::selection { background: var(--accent-soft); color: var(--paper); }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-soft); }
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* thin top rule + live progress */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--rule);
  z-index: 10;
}
#progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  width: 0;
  background: var(--accent-soft);
  z-index: 11;
  transition: width 120ms linear;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip:focus { left: 0.5rem; }

/* ---- masthead: the station header ---- */
.masthead {
  padding-block: clamp(2.2rem, 7vw, 4.5rem) 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.title-rest {
  display: block;
  font-weight: 500;
  font-size: clamp(1.05rem, 3.2vw, 1.8rem);
  letter-spacing: 0.02em;
  margin-top: 0.45em;
  color: var(--ink-soft);
}
.issuer {
  margin: 0.9rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.masthead-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 2.4rem);
}
.meta div {
  display: grid;
  gap: 0.15rem;
}
.meta dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
}

.theme-toggle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.theme-toggle:hover { border-color: var(--accent-soft); color: var(--accent-text); }

/* ---- contents strip ---- */
.contents {
  position: sticky;
  top: 0;
  z-index: 9;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.contents .wrap { padding-block: 0; }
.contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.contents a {
  display: block;
  white-space: nowrap;
  padding: 0.7rem 0.1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 2px solid transparent;
}
.contents .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-text);
  margin-right: 0.45rem;
}
.contents a:hover { color: var(--ink); }
.contents a.active {
  color: var(--ink);
  border-bottom-color: var(--accent-soft);
}

/* ---- the log itself ---- */
.policy {
  padding-block: clamp(2rem, 6vw, 3.5rem) 3rem;
}
.policy .wrap { max-width: var(--measure); }

.preamble p {
  margin: 0 0 1.2rem;
}

.entry {
  border-top: 1px solid var(--rule);
  margin-top: 2.6rem;
  padding-top: 1.7rem;
}
.entry-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.entry .num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-text);
  flex: none;
}
.entry h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.entry p { margin: 0 0 1.1rem; }
.entry p:last-child { margin-bottom: 0; }

ul.dots {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}
ul.dots li {
  padding: 0.2rem 0 0.2rem 1.4rem;
  position: relative;
}
ul.dots li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.credit {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.8rem 2.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .run-by { margin: 0 0 0.4rem; color: var(--ink); }
.site-footer .foot-links { margin: 0 0 0.6rem; }
.site-footer .migrated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .meta { gap: 1rem; }
  .masthead-row { align-items: flex-start; }
  .theme-toggle { order: -1; }
}
