:root {
  --cream: #f7f0e3;
  --paper: #fffaf1;
  --oat: #efe4cf;
  --sand: #e4d3b2;
  --moss: #5d6b3c;
  --moss-dark: #424d29;
  --moss-soft: #dfe3cc;
  --brown: #7a4b27;
  --ink: #3b2a1d;
  --muted: #7d6b59;
  --rust: #b8673a;
  --blush: #eeb39b;
  --mustard: #d9a94f;
  --line: #e2d4bb;
  --shadow: 0 1px 0 rgba(122, 75, 39, .06), 0 14px 40px -18px rgba(92, 58, 28, .35);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-dark); }
h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--paper); padding: 8px 14px; border-radius: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust); margin-bottom: .8em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px rgba(184, 103, 58, .18); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 1rem/1 var(--sans);
  padding: 15px 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--moss); color: #fffaf1; }
.btn-primary:hover { background: var(--moss-dark); }
.btn-ghost { box-shadow: none; border-color: transparent; background: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--mustard); }
.btn-ghost:hover { box-shadow: none; }
.btn-small { padding: 10px 16px; font-size: .88rem; box-shadow: 0 3px 0 var(--ink); }
.btn-light { background: var(--cream); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 240, 227, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 212, 187, .7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.4rem; }
.logo em { font-style: normal; color: var(--rust); }
.logo-btn { width: 30px; height: 30px; fill: var(--brown); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.logo-btn .h { fill: var(--cream); }
.logo:hover .logo-btn { transform: rotate(90deg); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--mustard); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }

/* hero */
.hero { position: relative; padding: 56px 0 0; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.squiggle { position: relative; white-space: nowrap; color: var(--moss); }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c12-6 22-6 30 0s20 6 30 0 20-6 28 0 18 6 28 0' fill='none' stroke='%23d9a94f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero-facts li { display: flex; flex-direction: column; line-height: 1.3; padding-left: 14px; border-left: 3px solid var(--sand); }
.hero-facts strong { font-weight: 800; }
.hero-facts span { color: var(--muted); font-size: .9rem; }

.hero-art { position: relative; height: 560px; }
.blob {
  position: absolute; inset: 40px 10px 30px 30px;
  background: var(--oat);
  border-radius: 58% 42% 48% 52% / 52% 46% 54% 48%;
  animation: morph 14s ease-in-out infinite;
}
.blob::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 1px 1px, rgba(122, 75, 39, .14) 1.2px, transparent 1.6px) 0 0 / 16px 16px;
}
.kid { position: absolute; bottom: 0; filter: drop-shadow(0 18px 18px rgba(92, 58, 28, .18)); }
.kid-a { height: 470px; width: auto; left: 8%; bottom: 20px; animation: bob 6s ease-in-out infinite; }
.kid-b { height: 510px; width: auto; right: 4%; animation: bob 6s ease-in-out -3s infinite; }
.yarn { position: absolute; width: 120px; left: 46%; bottom: 0; z-index: 2; }
.yarn circle:first-child { fill: var(--rust); }
.yarn path { fill: none; stroke: #8e4a24; stroke-width: 2.4; stroke-linecap: round; }
.yarn .needle { stroke: #b88a58; stroke-width: 4.5; }
.yarn .knob { fill: var(--brown); }
.thread { position: absolute; left: 0; right: 30%; bottom: 10px; height: 60px; width: 70%; z-index: 1; }
.thread path { fill: none; stroke: var(--rust); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; opacity: .7; }

.stitch-band {
  height: 26px; margin-top: 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26'%3E%3Cpath d='M3 4c2 9 6 15 9 18M21 4c-2 9-6 15-9 18' fill='none' stroke='%235d6b3c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 26px;
  opacity: .55;
}

@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes morph {
  50% { border-radius: 44% 56% 58% 42% / 46% 56% 44% 54%; }
}

/* sections */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head.left { text-align: left; margin-left: 0; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* calculator */
.calc-section { padding: 90px 0; }
.calc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.form-card { padding: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend, .more summary { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; padding: 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-dark); font: 800 .85rem var(--sans); flex: none; }
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { display: grid; gap: 2px; background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; transition: border-color .2s, background .2s; }
.field:focus-within { border-color: var(--moss); background: #fff; }
.field span { font-weight: 800; font-size: .8rem; color: var(--muted); }
.field small { color: var(--muted); font-size: .76rem; }
.field input { border: 0; background: transparent; font: 700 1.35rem var(--sans); color: var(--ink); width: 100%; padding: 0; outline: none; -moz-appearance: textfield; }
.field input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.seg label, .fit label { position: relative; cursor: pointer; }
.seg input, .fit input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 800; transition: all .18s; }
.seg label:hover span, .fit label:hover span { border-color: var(--sand); background: #fff; }
.seg input:checked + span, .fit input:checked + span { background: var(--moss); border-color: var(--moss); color: #fffaf1; transform: translateY(-1px); box-shadow: 0 6px 14px -8px var(--moss-dark); }
.seg input:focus-visible + span, .fit input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.fit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fit span { display: grid; gap: 0; text-align: center; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); transition: all .18s; line-height: 1.25; }
.fit b { font-weight: 800; font-size: .95rem; }
.fit small { opacity: .75; font-size: .8rem; }

.more { margin: 0 0 26px; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); padding: 16px 0; }
.more summary { cursor: pointer; list-style: none; margin: 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary small { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 600; }
.more summary::after { content: "+"; margin-left: auto; font: 700 1.4rem/1 var(--sans); color: var(--moss); transition: transform .2s; }
.more[open] summary::after { transform: rotate(45deg); }
.more[open] summary { margin-bottom: 10px; }
.form-card fieldset:last-child { margin-bottom: 0; }

/* recipe */
.recipe { padding: 28px; position: sticky; top: 88px; background-image: repeating-linear-gradient(transparent 0 31px, rgba(226, 212, 187, .35) 31px 32px); background-color: var(--paper); }
.recipe::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg); background: rgba(217, 169, 79, .45); border-radius: 3px; }
.recipe-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.recipe-head h3 { font-size: 1.6rem; margin: 0; }
.recipe-head .eyebrow { margin-bottom: .3em; }
.recipe-actions { display: flex; gap: 8px; }
.recipe-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: center; padding: 16px; background: var(--cream); border-radius: 16px; margin-bottom: 22px; }
.schematic { width: 100%; height: auto; overflow: visible; }
.s-body { fill: var(--moss-soft); stroke: var(--moss-dark); stroke-width: 2; stroke-linejoin: round; }
.s-neck { fill: none; stroke: var(--moss-dark); stroke-width: 2; }
.s-front { stroke: var(--moss-dark); stroke-width: 1.5; stroke-dasharray: 4 4; }
.s-rib { stroke: var(--moss-dark); stroke-width: 1.2; opacity: .6; }
.s-dim path { stroke: var(--rust); stroke-width: 1.5; fill: none; }
.schematic text { font: 800 12.5px var(--sans); fill: var(--rust); text-anchor: middle; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats div { background: var(--paper); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); }
.stats dt { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats dd { white-space: nowrap; margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.2rem; line-height: 1.2; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px dashed var(--rust); color: var(--rust); font-weight: 800;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; border-left: 2px dotted var(--sand); }
.steps h4 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.12rem; font-weight: 600; margin: 4px 0 6px; }
.steps p { margin: 0 0 .5em; }
.steps b { color: var(--moss-dark); }
.steps .split { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.steps .split span { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font-size: .88rem; }
.steps .split span b { font-size: 1rem; }
.steps .note { font-size: .9rem; color: var(--muted); background: rgba(217, 169, 79, .14); border-radius: 10px; padding: 8px 12px; }
.recipe-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; padding-top: 14px; border-top: 1.5px dashed var(--line); }

/* how */
.how { padding: 90px 0; background: var(--paper); border-block: 1px solid var(--line); }
.how-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.how-art { position: relative; display: grid; place-items: center; min-height: 480px; }
.how-art img { position: relative; height: 470px; width: auto; filter: drop-shadow(0 18px 18px rgba(92, 58, 28, .16)); }
.blob-moss { background: var(--moss-soft); inset: 30px 0; }
.blob-sand { background: var(--oat); inset: 30px 0; }
.how-list { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: 14px; }
.how-list li { counter-increment: h; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px 20px; background: var(--cream); border-radius: 18px; border: 1px solid var(--line); transition: transform .2s; }
.how-list li:hover { transform: translateX(4px); }
.how-list li::before { content: counter(h); grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--moss); color: #fffaf1; font: 600 1.3rem var(--serif); }
.how-list h3 { margin: 4px 0 4px; }
.how-list p { margin: 0; color: var(--muted); }

/* measure */
.measure { padding: 90px 0 30px; }
.measure-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px; background: var(--moss); color: #f3eedd; border: 0; position: relative; overflow: hidden; }
.measure-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 22px dotted rgba(255, 250, 241, .12); }
.measure-card .eyebrow { color: var(--mustard); }
.measure-card p { color: rgba(243, 238, 221, .85); }
.measure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.measure-list li { background: rgba(255, 250, 241, .1); border-radius: 14px; padding: 12px 16px; }
.measure-list b { display: block; color: #fffaf1; }

/* yarn */
.yarn-section { padding: 90px 0; }
.yarn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.yarn-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 22px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
  font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.yarn-card:hover { transform: translateY(-5px) rotate(-.6deg); border-color: var(--sand); }
.yarn-card b { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 600; }
.yarn-card > span:not(.swatch) { color: var(--muted); font-size: .9rem; }
.yarn-card em { font-style: normal; font-weight: 800; color: var(--rust); margin: 6px 0; }
.yarn-card small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.yarn-card::after { content: "Bruk i kalkulatoren →"; margin-top: auto; padding-top: 12px; font-weight: 800; font-size: .82rem; color: var(--moss); }
.swatch { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px; position: relative; }
.swatch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(-35deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px var(--g, 7px)); }
.s1 { background: var(--blush); --g: 4px; }
.s2 { background: var(--mustard); --g: 5px; }
.s3 { background: var(--moss); --g: 7px; }
.s4 { background: var(--sand); --g: 9px; }
.s5 { background: var(--rust); --g: 13px; }

/* faq */
.faq { padding: 60px 0 90px; }
.faq-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 56px; align-items: center; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; transition: background .2s; }
.faq-list details[open] { background: #fff; box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 800; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--rust); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--muted); padding-bottom: 6px; }
.faq-art { position: relative; display: grid; place-items: center; min-height: 480px; }
.faq-art img { position: relative; height: 460px; width: auto; filter: drop-shadow(0 18px 18px rgba(92, 58, 28, .16)); }

/* cta + footer */
.cta { padding: 0 0 90px; }
.cta-inner { text-align: center; background: var(--brown); color: var(--cream); border-radius: 32px; padding: 64px 24px; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30'%3E%3Cpath d='M4 5c2 10 7 17 10 20M24 5c-2 10-7 17-10 20' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cta-inner > * { position: relative; }
.cta-inner p { color: rgba(247, 240, 227, .8); font-size: 1.1rem; }
.cta .btn { margin-top: 10px; border-color: var(--cream); box-shadow: 0 4px 0 #3e2612; }

.site-footer { padding: 40px 0 50px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 8px; }
.site-footer p { color: var(--muted); margin: 0; }
.site-footer .small { font-size: .85rem; }

/* responsive */
@media (max-width: 980px) {
  .hero-inner, .calc-grid, .how-inner, .faq-inner, .measure-card { grid-template-columns: 1fr; }
  .hero-art { height: 440px; }
  .kid-a { height: 370px; }
  .kid-b { height: 410px; }
  .recipe { position: static; }
  .yarn-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .how-art { min-height: 0; order: 2; }
  .how-art img { height: 340px; }
  .faq-art { min-height: 0; }
  .faq-art img { height: 340px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding-top: 32px; }
  .hero-art { height: 360px; }
  .kid-a { height: 290px; left: 2%; }
  .kid-b { height: 330px; right: 0; }
  .yarn { width: 84px; left: 42%; }
  .form-card, .recipe { padding: 20px 16px; }
  .fit { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .row3 .field { padding: 10px; }
  .recipe-top { grid-template-columns: 1fr; }
  .measure-card { padding: 28px 20px; }
  .calc-section, .how, .yarn-section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* print: only the recipe */
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .hero, .how, .measure, .yarn-section, .faq, .cta, .site-footer, .form-card, .section-head, .recipe-actions, .skip { display: none !important; }
  .calc-section { padding: 0; }
  .calc-grid { display: block; }
  .recipe { position: static; box-shadow: none; border: 0; padding: 0; background: #fff; }
  .recipe::before { display: none; }
  .steps > li { break-inside: avoid; }
}

/* oppskrift v2: beta, teknikk-lenker, pinneliste */
.beta { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mustard); color: var(--ink); font-size: .68rem; letter-spacing: .08em; }
.how-link { color: var(--rust); font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.steps ul.need { margin: 0 0 .6em; padding-left: 1.1em; }
.steps ul.need li { margin-bottom: 4px; }
.recipe-line { background: var(--cream); border-left: 4px solid var(--moss); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plan { margin: 12px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.plan summary { cursor: pointer; padding: 12px 14px; font-weight: 800; }
.plan summary small { font-weight: 600; color: var(--muted); }
.plan-scroll { max-height: 420px; overflow: auto; border-top: 1px solid var(--line); }
.plan table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.plan th { position: sticky; top: 0; background: var(--oat); text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px; z-index: 1; }
.plan td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan td:nth-child(2) { font-weight: 800; white-space: nowrap; }
.plan td:nth-child(2) small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.plan td:last-child { font-weight: 800; text-align: right; white-space: nowrap; }
.plan tr.act td:nth-child(3) { color: var(--ink); }
.plan tr:not(.act) td:nth-child(3) { color: var(--muted); }
.plan tr.done td { opacity: .45; text-decoration: line-through; }
.plan input { width: 18px; height: 18px; accent-color: var(--moss); }

.tech { padding: 90px 0 0; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.tech-grid details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; scroll-margin-top: 90px; }
.tech-grid details[open] { background: #fff; box-shadow: var(--shadow); }
.tech-grid summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 800; }
.tech-grid summary::-webkit-details-marker { display: none; }
.tech-grid summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--moss); transition: transform .2s; }
.tech-grid details[open] summary::after { transform: rotate(45deg); }
.tech-grid p { color: var(--muted); font-size: .95rem; }
.tech-grid p b { color: var(--ink); }
.tech-grid details:target { outline: 3px solid var(--mustard); }

@media print {
  .tech { display: none !important; }
  .plan-scroll { max-height: none; overflow: visible; }
  .plan th { position: static; }
}

.calc-left { display: grid; gap: 28px; align-self: stretch; align-content: start; }
.tip-card { position: sticky; top: 92px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: end; }
.tip-card img { width: 120px; height: auto; filter: drop-shadow(0 12px 12px rgba(92, 58, 28, .16)); }
.tip-card .bubble { position: relative; background: var(--moss-soft); border-radius: 20px 20px 20px 4px; padding: 18px 20px; margin-bottom: 40px; }
.tip-card .bubble p { margin: 0 0 .6em; font-size: .95rem; }
.tip-card .bubble p:last-child { margin: 0; }
.tip-card .bubble .eyebrow { color: var(--moss-dark); margin-bottom: .4em; }
@media (max-width: 980px) { .tip-card { position: static; } }
@media print { .calc-left { display: none !important; } }
.recipe { position: relative; top: auto; }
.recipe-warn { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(217, 169, 79, .18); border: 1px solid rgba(217, 169, 79, .5); font-size: .9rem; }

/* verktøy-kort på forsiden */
.tools { padding: 30px 0 60px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-5px) rotate(-.5deg); border-color: var(--sand); }
.tool-card b { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.4rem; font-weight: 600; }
.tool-card span:not(.tool-ic) { color: var(--muted); font-size: .95rem; }
.tool-card em { font-style: normal; font-weight: 800; color: var(--moss); margin-top: auto; padding-top: 10px; }
.tool-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--oat); font-size: 1.6rem; margin-bottom: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0; }
.footer-nav a { font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* undersider: verktøy */
.page-hero { padding: 56px 0 20px; }
.page-hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.page-art img { position: relative; height: 340px; width: auto; filter: drop-shadow(0 18px 18px rgba(92, 58, 28, .16)); animation: bob 6s ease-in-out infinite; }
.page-art .blob { inset: 20px 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.tool-section { padding: 30px 0 70px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tool-form { padding: 28px; }
.tool-form h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 10px; }
.tool-form .group + .group { margin-top: 24px; padding-top: 22px; border-top: 1.5px dashed var(--line); }
.result { padding: 28px; position: sticky; top: 92px; }
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; margin-bottom: 18px; background: var(--moss-soft); }
.verdict.warn { background: rgba(217, 169, 79, .22); }
.verdict.bad { background: rgba(184, 103, 58, .18); }
.verdict-ic { font-size: 1.8rem; line-height: 1; }
.verdict h3 { margin: 0 0 4px; font-size: 1.3rem; }
.verdict p { margin: 0; }
.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.big-stats div { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.big-stats dt { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.big-stats dd { margin: 2px 0 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.big-stats dd small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 700; }
.result-text p { margin: 0 0 .8em; }
.result-text b { color: var(--moss-dark); }
.result .btn { margin-top: 6px; }

/* prøvelapp-illustrasjon */
.swatch-art { width: 100%; max-width: 360px; margin: 0 auto 6px; display: block; }
.swatch-art .fabric { fill: var(--moss-soft); stroke: var(--moss-dark); stroke-width: 2; }
.swatch-art .st { fill: none; stroke: var(--moss); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.swatch-art .ruler { fill: var(--mustard); }
.swatch-art .tick { stroke: var(--ink); stroke-width: 1.2; }
.swatch-art .pin { fill: var(--rust); }
.swatch-art text { font: 800 12px var(--sans); fill: var(--ink); }

/* artikkel-innhold */
.prose-section { padding: 30px 0 70px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.howto-steps { padding: 18px 20px; }
.callout { background: var(--moss-soft); border-radius: 16px; padding: 16px 20px; margin: 1em 0; }
.callout.sand { background: var(--oat); }

/* nybegynnerkurs */
.course { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: 22px; }
.course > li { counter-increment: c; position: relative; padding: 28px 28px 22px 92px; }
.course > li::before { content: counter(c); position: absolute; left: 24px; top: 26px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--moss); color: #fffaf1; font: 600 1.4rem var(--serif); }
.course h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 6px 0 .4em; }
.course .meta { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--rust); text-transform: uppercase; letter-spacing: .1em; }
.course p, .course li { color: var(--ink); }
.course ul { padding-left: 1.1em; }
.course .done { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--mustard); background: var(--cream); border-radius: 0 12px 12px 0; font-size: .95rem; }
.course-art { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0; }
.course-art img { height: 300px; width: auto; justify-self: center; filter: drop-shadow(0 18px 18px rgba(92, 58, 28, .16)); }
.trouble { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.trouble details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.trouble details[open] { background: #fff; box-shadow: var(--shadow); }
.trouble summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 800; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--rust); }
.trouble details[open] summary::after { content: "−"; }
.trouble p { color: var(--muted); font-size: .95rem; }
.sub-faq { padding: 20px 0 80px; }
.sub-faq .faq-list { max-width: 760px; margin-inline: auto; }

@media (max-width: 980px) {
  .tool-grid { grid-template-columns: 1fr; }
  .page-hero-inner, .tool-layout { grid-template-columns: 1fr; }
  .page-art { min-height: 0; }
  .page-art img { height: 260px; }
  .result { position: static; }
}
@media (max-width: 640px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0 0; gap: 4px; }
  .nav { display: flex; width: 100%; overflow-x: auto; gap: 20px; padding: 6px 0 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; font-size: .9rem; }
  .tool-form, .result { padding: 20px 16px; }
  .course > li { padding: 76px 18px 18px; }
  .course > li::before { left: 18px; top: 18px; }
  .course-art img { height: 200px; }
  .page-hero { padding-top: 28px; }
}
@media print { .tools, .footer-nav { display: none !important; } }
.made-by a { color: var(--muted); text-underline-offset: 3px; }
.made-by a:hover { color: var(--ink); text-decoration-color: var(--mustard); }
