/* Nesbyen Hytteservice — design tokens (delt mellom alle sider) */

:root {
  /* Forside-palett (lys, premium) */
  --navy-900: #161f3e;
  --navy-800: #1f2d5c;
  --navy-700: #2a3a6b;
  --navy-600: #455478;
  --navy-200: #c9cfdd;

  --coral-500: #e8896b;
  --coral-600: #d9755a;
  --coral-200: #f4c4b3;
  --coral-50:  #fbeee7;

  --bone:      #f6f1ea;
  --bone-2:    #ece5da;
  --paper:     #faf7f2;
  --ink:       #1a1d24;
  --ink-2:     #54545b;
  --line:      rgba(31, 45, 92, 0.12);
  --line-2:    rgba(31, 45, 92, 0.06);
  --moss:      #5b6a4f;

  /* Landingsside-palett (mørk, kinematisk) */
  --tv-dark:    #0F1729;
  --tv-mid:     #1A2540;
  --tv-blue:    #24355E;
  --tv-accent:  #EC8A5E;
  --tv-glow:    #F4A57A;
  --tv-snow:    #F4F6F9;
  --tv-frost:   #E4E8EE;
  --tv-stone:   #8694A8;
  --tv-granite: #4F5D73;
  --tv-white:   #FAFBFD;

  /* Radius */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  /* Fonter */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --tv-head: 'Playfair Display', Georgia, serif;
  --tv-body: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Felles bilde-plassholder med diagonale striper og caption.
   Bruk: <div class="img-ph" data-label="foto · torvtak"></div>
   Kan også brukes som wrapper rundt en <img>. */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(31,45,92,0.05) 0 6px,
      rgba(31,45,92,0.02) 6px 12px),
    var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  background: rgba(246,241,234,0.85);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.img-ph > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Når et bilde er inni .img-ph: skjul plassholder-UI (striper, ramme, caption) */
.img-ph:has(> img) {
  background: none;
  border: none;
}
.img-ph:has(> img)::after { display: none; }

/* Mørk variant */
.img-ph--dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(244,246,249,0.04) 0 6px,
      rgba(244,246,249,0.02) 6px 12px),
    var(--tv-mid);
  border-color: rgba(244,246,249,0.08);
}
.img-ph--dark::after {
  color: var(--tv-stone);
  background: rgba(15,23,41,0.85);
  border-color: rgba(236,138,94,0.25);
}

/* Hjelp: skjul scrollbar i mockup-følelsen er ikke nødvendig på faktisk side */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
