/*
  Vinshowen – grundstil
  ---------------------------------------------------------------
  Neutral tills den riktiga identiteten är klar. Byt färger och
  typsnitt här i :root – resten av sajten följer med automatiskt.
*/

:root {
  /* Färger */
  --color-bg: #f6f3ee;        /* bakgrund */
  --color-surface: #ffffff;   /* kort/ytor */
  --color-text: #1d1b18;      /* brödtext */
  --color-muted: #6b655c;     /* sekundär text */
  --color-line: #d9d3c9;      /* tunna linjer */
  --color-accent: #1d1b18;    /* knappar/länkar – byts mot varumärkesfärg */
  --color-accent-text: #ffffff;

  /* Typsnitt (systemtypsnitt – inga externa anrop, ingen cookie-banner behövs) */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Mått */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max-width: 72rem;
  --radius: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  z-index: 10;
}

/* ---------- Platshållare ---------- */

.placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
}

.placeholder__inner {
  max-width: 36rem;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.75rem auto;
  border: 0;
  background: var(--color-line);
}

.lede {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2.6vw, 1.1875rem);
}

.site-footer {
  padding: 1.5rem var(--gutter);
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .placeholder__inner {
    animation: fade-in 900ms ease-out both;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
