/* Bygmer-tokens + fælles komponent-styles — ÉN sandhedskilde for hele bygmer.dk.
   Importeres af landing-index.html OG blog/blog.css.
   Hvis du vil skifte tema/farver/font/nav/knapper: GØR DET HER. Ingen andre steder.

   Søsterfil i app.bygmer.dk: src/app/globals.css (Next.js bygges separat,
   så hold tokens identiske manuelt — se project_bygmer_theme_v1.md).

   v1 (2026-05-31): sand + amber + Hanken Grotesk + Space Mono. */

/* ============================================================
   1. TOKENS (farver, surfaces)
   ============================================================ */
:root {
  /* Sand-palette (baggrund) */
  --cream: #EFE9DC;
  --cream-2: #E7E0D1;

  /* Tekst */
  --ink: #1A1815;
  --ink-2: #2A2620;
  --muted: #6B6253;
  --rule: #DCD3C1;

  /* Accent (hi-vis amber) */
  --coral: #E8870E;
  --coral-dark: #D2780A;
  --coral-soft: #F7E6CC;

  /* Surface (lys kort-baggrund) */
  --surface: #FBF8F1;
}

/* ============================================================
   2. BASE RESET + TYPOGRAFI
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Bedre tap-feedback på iOS — amber-tone i stedet for grå flash */
a, button {
  -webkit-tap-highlight-color: rgba(232, 135, 14, 0.12);
}

/* ============================================================
   3. HEADINGS (standard-vægte, kan overrides per side)
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
h2 { font-weight: 700; line-height: 1.15; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; }
h4 { font-weight: 700; font-size: 18px; line-height: 1.3; }

/* Italic-em → bold amber (matcher tema, undgår serif-italic-styling) */
em { font-style: normal; font-weight: 800; color: var(--coral); }

/* ============================================================
   4. TYPOGRAFI-HELPERS
   ============================================================ */
.serif {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 700;
}

/* ============================================================
   5. KNAPPER (delt mellem landing + blog)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s ease, background .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(232, 135, 14, .6);
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--rule);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink-2); }

.link-underline {
  border-bottom: 1px solid var(--coral);
  padding-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
}
.link-underline:hover { color: var(--coral); }

/* ============================================================
   6. NAVIGATION (sticky + blur — gælder hele bygmer.dk)
   ============================================================ */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 233, 220, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.logo-tagline {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: lowercase;
  border-left: 1px solid var(--rule);
  padding-left: 12px;
  margin-left: 4px;
  white-space: nowrap;
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; font-size: 14px; }

@media (max-width: 640px) {
  .logo-tagline { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ============================================================
   7. FOOTER (delt — sand-mørk baggrund)
   ============================================================ */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  color: var(--ink-2);
  font-size: 14px;
  background: var(--cream-2);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-links a:hover { color: var(--coral); }

/* ============================================================
   8. LAYOUT-WRAPS (delte container-bredder)
   ============================================================ */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
