/* FLOGVIT-portalen — tokens fra STYLE.md / design/tokens.css */

:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1b1b18;
  --ink-2: #67665f;
  --line: #dcdacf;

  --blaa: #2b5bb7;
  --rav: #8a5d0b;
  --oliven: #5c6b1a;
  --teal: #0f6e77;
  --baer: #b0355f;
  --fiolett: #6743b8;
  --groenn: #2f7d43;

  --accent: var(--ink);

  --radius: 10px;
  --radius-pill: 999px;
  --maxw: 880px;

  --font-ui: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161614;
    --surface: #1e1e1b;
    --ink: #edece6;
    --ink-2: #99978d;
    --line: #2e2d29;

    --blaa: #7ea6ec;
    --rav: #e0aa4f;
    --oliven: #b5c46a;
    --teal: #6fc7cd;
    --baer: #ef8fb1;
    --fiolett: #b39df0;
    --groenn: #85c795;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

.hero,
main,
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--ink);
}

a:focus-visible,
.kort-lenke:focus-visible {
  outline: 2px solid var(--blaa);
  outline-offset: 2px;
  border-radius: 2px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

section {
  margin-top: 72px;
}

/* wordmark */
.wm {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.wm-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wm-dot {
  font-weight: 800;
  color: var(--accent);
}

.wm-prod {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95em;
}

/* hero */
.hero {
  padding-top: 88px;
}

.hero-wm {
  font-size: clamp(52px, 12vw, 96px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 20px;
}

.hero-dot {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-dot {
    animation: dot-inn 0.5s cubic-bezier(0.2, 0.7, 0.3, 1.2) 0.15s backwards;
  }

  @keyframes dot-inn {
    from {
      opacity: 0;
      transform: translateY(-0.35em) scale(0.4);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.lede {
  font-size: 21px;
  line-height: 1.4;
  max-width: 34ch;
  margin: 0 0 20px;
  text-wrap: balance;
}

.bygging {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* produktkort */
.kort-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.kort {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.kort-teaser {
  display: block;
  width: 100%;
  margin: -6px 0 2px;
}

.kort-teaser svg {
  display: block;
  width: 100%;
  height: auto;
}

.kort-lenke {
  transition: border-color 0.18s ease-out;
}

.kort-lenke:hover {
  border-color: var(--ink-2);
}

.kort-tittel {
  font-size: 19px;
}

.kort-hva {
  color: var(--ink-2);
  font-size: 14.5px;
  flex-grow: 1;
}

.chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.chip-live {
  color: var(--ink);
  border-color: var(--ink-2);
}

/* faktastripe */
.fakta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 72px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
}

/* plus + foto + om */
.plus p,
.foto p,
.om p {
  max-width: 58ch;
  margin: 0 0 14px;
}

.plus-punkter {
  max-width: 58ch;
  margin: 0 0 18px;
  padding-left: 20px;
}

.plus-punkter li {
  margin-bottom: 8px;
}

.plus .chip,
.foto .chip {
  display: inline-block;
  margin: 0;
}

/* footer */
footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 96px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
}

.footer-note {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
}
