/* vaterregnskap.no – static, no JavaScript, no external requests (brief 10.11.2026, rule 12).
   Brand values as the workspace (apps/workspace/app/tokens.css). Fonts: SIL OFL 1.1, fonts/OFL-*.txt. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --brand-dark: #1f2a24;
  --brand-bg: #f6f4ec;
  --brand-accent: #c8d44e; /* never text on a light background */
  --brand-moss: #4f6a22;
  --text: #1f2a24;
  --text-muted: #5f6559;
  --on-dark: #f6f4ec;
  --on-dark-muted: #c3cab9;
  --surface: #ffffff;
  --card-border: #dcdfd4;
  --radius: 12px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --gap: 16px;
  --section: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}
p {
  margin: 0;
}
a {
  color: var(--brand-moss);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--brand-accent);
  color: var(--brand-dark);
  border-radius: 8px;
  font-weight: 600;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}

/* Top: dark band with the menu mark and the message */
.top {
  background: var(--brand-dark);
  color: var(--on-dark);
}
.top a {
  color: var(--on-dark);
}
.top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
}
/* The same mark as the workspace menu (.ui-nav__mark) */
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 24px;
  height: 13px;
  padding: 0 2px;
  border: 2px solid var(--brand-accent);
  border-radius: 7px;
}
.brand__mark span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--brand-accent);
}
.top__contact {
  font-size: 16px;
  white-space: nowrap;
}
.hero {
  padding-top: 40px;
  padding-bottom: 64px;
}
.hero h1 {
  max-width: 14ch;
}
.hero__lead {
  margin-top: 20px;
  max-width: 40em;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--on-dark);
}
.hero__status {
  margin-top: 24px;
  font-size: 15px;
  color: var(--on-dark-muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}
.top a.btn--primary {
  background: var(--brand-accent);
  color: var(--brand-dark);
}
.top a.btn--ghost {
  border: 2px solid var(--on-dark-muted);
  color: var(--on-dark);
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:focus-visible {
  outline: 3px solid var(--on-dark);
  outline-offset: 3px;
}

/* Sections */
.section {
  padding-top: var(--section);
}
main > .section:last-child {
  padding-bottom: var(--section);
}
.cards {
  display: grid;
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
}
.card p {
  color: var(--text-muted);
}
.card--accent {
  border-color: var(--brand-moss);
  box-shadow: inset 0 4px 0 var(--brand-accent);
}
.card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--brand-moss);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  display: grid;
  gap: var(--gap);
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 74px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-accent);
  font: 600 18px/1 var(--font-heading);
}
.step p {
  color: var(--text-muted);
}

/* Screenshots from Farmable */
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--surface);
}
.shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.step .shot,
.split .shot {
  margin-top: 18px;
}
.step .shot {
  margin-left: -52px;
}
.shot--hero {
  margin-top: 40px;
}
.shot--hero img {
  border-color: transparent;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
}
.shot--hero figcaption {
  color: var(--on-dark-muted);
}

.split {
  display: grid;
  gap: 32px;
}
.ticks li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-top: 1px solid var(--card-border);
}
.ticks li:last-child {
  border-bottom: 1px solid var(--card-border);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--brand-moss);
  border-bottom: 2.5px solid var(--brand-moss);
  transform: rotate(-45deg);
}
.panel {
  background: var(--brand-dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.ticks--dark li,
.ticks--dark li:last-child {
  border-color: #3a4840;
}
.ticks--dark li::before {
  border-color: var(--brand-accent);
}

.about {
  display: grid;
  gap: 16px;
  max-width: 44em;
}
.note {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-moss);
  border-radius: var(--radius);
}

.prose {
  max-width: 44em;
  padding-bottom: var(--section);
}
.prose h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 20px;
}
.prose p + p {
  margin-top: 14px;
}

.foot {
  background: var(--brand-dark);
  color: var(--on-dark-muted);
  font-size: 15px;
}
.foot a {
  color: var(--on-dark);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (min-width: 720px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrap {
    padding-inline: 32px;
  }
  .hero {
    padding-top: 56px;
    padding-bottom: 88px;
  }
  :root {
    --section: 80px;
  }
}
@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 48px;
  }
  .shot--hero {
    margin-top: 0;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step:first-child {
    grid-column: 1 / -1;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Short pages keep the footer at the bottom; a hyphenated word never splits («e-post»). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
.nb {
  white-space: nowrap;
}
