/* Nunito (variabel, latin), från @fontsource-variable/nunito 5.3.0. Licens: fonts/OFL.txt */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbf6ee;
  --fg: #23201b;
  --muted: #6b645a;
  --accent: #1f7a5c;
  --accent-2: #e2674c;
  --soft: #e2f1e9;
  --soft-2: #fbe4db;
  --card: #ffffff;
  --line: #eadfcf;
  --band: #f4eadb;
  --shadow: 0 1px 2px rgb(60 40 10 / 6%), 0 8px 24px rgb(60 40 10 / 8%);
  --round: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
.wrap { max-width: 960px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: var(--accent); }
h1, h2, h3, .brand, .btn { font-family: var(--round); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.3rem); line-height: 1.1; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin: 0 0 20px; font-weight: 800; }
h3 { margin: 0 0 8px; font-weight: 700; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); text-decoration: none; font-size: 1.2rem; }
.brand small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.brand img { flex: none; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 6px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--fg); background: var(--band); }
nav a[aria-current] { color: var(--accent); background: var(--soft); font-weight: 600; }

/* Sektioner */
section { padding: 48px 16px; }
.band { background: var(--band); }
.hero { padding-top: 48px; padding-bottom: 56px; }
.hero + section { padding-top: 8px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 32px; }
.hero p { font-size: 1.1rem; }
.ill { width: 100%; max-width: 360px; justify-self: center; }
.ill * { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ill .a { stroke: var(--accent); }
.ill .b { stroke: var(--accent-2); }
.ill .dot { fill: var(--accent-2); stroke: none; }
.ill .box { fill: var(--card); }
.ill .wifi { animation: pulse 2.4s ease-in-out infinite; }
.ill .wifi:nth-of-type(2) { animation-delay: 0.3s; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ill { max-width: 240px; order: -1; }
}

/* Knappar */
.btn {
  display: inline-block; margin-top: 12px; padding: 13px 26px;
  background: var(--accent); color: var(--bg); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards article {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow); transition: transform 0.15s;
  display: flex; flex-direction: column;
}
/* Priset (och Läs mer under) hamnar längst ner, på samma höjd i alla kort */
.cards .price { margin-top: auto; align-self: flex-start; }
.cards article:hover { transform: translateY(-3px); }
.cards h3 a { color: inherit; text-decoration: none; }
.cards h3 a:hover { color: var(--accent); }
.icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--soft); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cards article:nth-child(2) .icon { background: var(--soft-2); }
.cards article:nth-child(2) .icon svg { stroke: var(--accent-2); }
.price { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 700; }
.small { font-size: 0.9rem; color: var(--muted); }
code { font-size: 0.95em; background: var(--band); padding: 1px 6px; border-radius: 6px; }

/* Om: text och porträtt bredvid varandra */
.about-intro { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.portrait { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 700px) {
  .about-intro { grid-template-columns: 1fr; gap: 0; }
  .portrait { order: -1; max-width: 200px; justify-self: center; margin-bottom: 24px; }
}

/* Löptext på tjänstesidorna */
.prose > * { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose h3 { font-size: 1.05rem; margin-top: 20px; }
.prose li { margin-bottom: 6px; }
.prose ul { padding-left: 1.2em; }
.prose ul li::marker { content: "● "; color: var(--accent-2); font-size: 0.8em; }
.prose ol li::marker { color: var(--accent); font-family: var(--round); font-weight: 800; }
.lead { font-size: 1.2rem; }
.crumbs { margin: 0 0 8px; }

/* Sidfot */
footer { padding-top: 32px; padding-bottom: 40px; }
footer p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
