/*
 * nord · magisketroefler.com
 * 1. Concept: a Scandinavian question-and-answer booklet. One calm page of the big questions, answered
 *    short first and fully later, like a well-made public information leaflet in a Nordic library.
 * 2. Type: Crimson Pro (light 300, quiet serif) for questions and titles; Familjen Grotesk (Swedish
 *    grotesk, 400-600) for answers, labels and UI. Self-hosted woff2, latin + latin-ext.
 * 3. Palette: off-white #f6f5f1, charcoal #24282a, muted pine #3e5c4f, soft clay #b7836b (decorative
 *    only; #8a5a45 where clay carries text), pine tint #e9ede8, hairline #dcd9d1.
 * 4. Layout signature: home = big serif questions on the left, the short answer and one link on the
 *    right, separated by hairlines; the last block folds open with native <details>. Articles: every
 *    h2 is a question, followed by a pine-tinted "Kort svar" box, then the explanation.
 * 5. Finishing detail: a small clay dot before every short answer label and every open question; the
 *    "next question" closes each page as one large serif link.
 */

@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/crimson-pro-latin.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; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/crimson-pro-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("fonts/crimson-pro-italic-latin.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; }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("fonts/crimson-pro-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/familjen-grotesk-latin.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; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f5f1;
  --ink: #24282a;
  --muted: #5a5f5d;
  --pine: #3e5c4f;
  --pine-tint: #e9ede8;
  --clay: #b7836b;
  --clay-ink: #8a5a45;
  --line: #dcd9d1;
  --stone: #ecebe5;
  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --read: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--pine); text-decoration-color: var(--pine); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }
p, ul, ol { margin: 0 0 1.1em; }
strong { font-weight: 600; }
em { font-style: italic; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 500; letter-spacing: .01em; }
.brand img { width: 30px; height: auto; }
.brand span { font-size: 1.02rem; }
.menu { display: none; }
.menu a, .menu-m nav a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--clay); }
.menu-m summary { list-style: none; cursor: pointer; font-size: .94rem; color: var(--muted); padding: .4rem 0; }
.menu-m summary::-webkit-details-marker { display: none; }
.menu-m summary::after { content: ""; display: inline-block; width: .38rem; height: .38rem; margin-left: .5rem; border-radius: 50%; background: var(--clay); vertical-align: .12em; }
.menu-m[open] nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: grid; }
.menu-m nav a { padding: .65rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.langs a { font-size: .8rem; letter-spacing: .08em; margin-left: .6rem; text-decoration: none; }
@media (min-width: 60rem) {
  .menu { display: flex; gap: 1.6rem; }
  .menu-m { display: none; }
}

/* shared type */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.02; margin: 0 0 1.5rem; max-width: 15ch; }
.eyebrow, .label, .crumb, .stamp { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lede p { font-size: 1.2rem; line-height: 1.55; max-width: 36rem; }

/* home */
.intro { padding-top: clamp(3.5rem, 9vw, 7.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro .eyebrow { margin-bottom: 2rem; }
.intro .eyebrow::before, .label::before { content: ""; display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--clay); margin-right: .6rem; vertical-align: .1em; }
.hero { margin-top: 0; margin-bottom: clamp(3rem, 8vw, 6rem); }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 60%; }
@media (min-width: 48rem) { .hero img { aspect-ratio: 21 / 9; } }

.qas { padding-bottom: clamp(3rem, 8vw, 6rem); }
.qa { border-top: 1px solid var(--line); padding: 2.25rem 0 2.5rem; }
.qa h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); line-height: 1.08; margin: 0 0 1.1rem; max-width: 18ch; }
.qa .a p { max-width: 34rem; color: var(--ink); }
.qa .a p:last-child { margin-bottom: 0; }
.go a { display: inline-block; text-decoration: none; color: var(--pine); font-weight: 500; border-bottom: 1px solid var(--pine); padding-bottom: .1rem; }
.go a::after { content: " \2192"; }
.go a:hover { color: var(--ink); border-color: var(--ink); }
@media (min-width: 52rem) {
  .qa { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; padding: 3.25rem 0 3.5rem; }
  .qa h2 { margin: 0; }
  .qa .a { padding-top: .55rem; }
}

.more { border-top: 1px solid var(--ink); padding-top: 2.5rem; }
.more h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.5rem; }
.folds { max-width: 48rem; }
@media (min-width: 52rem) {
  .more { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; }
  .more h2 { margin: 0; font-size: clamp(1.85rem, 4.2vw, 2.9rem); line-height: 1.08; max-width: 12ch; }
  .folds { order: 0; }
}
.fold { border-top: 1px solid var(--line); }
.fold:last-child { border-bottom: 1px solid var(--line); }
.fold summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-family: var(--sans); font-size: 1.35rem; font-weight: 400; color: var(--pine); }
.fold[open] summary::after { content: "\2212"; }
.fold summary:hover { color: var(--pine); }
.fold-body { padding: 0 0 1.4rem; max-width: 38rem; }
.fold-body p:last-child { margin-bottom: 0; }

/* article */
.article { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.art-head, .spm, .sec, .next { max-width: var(--read); }
@media (min-width: 64rem) { .art-head, .spm, .sec, .next { margin-left: 8rem; } }
.crumb { margin-bottom: 2.25rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--pine); }
.article h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 18ch; }
.lede p { color: var(--ink); }
.stamp { margin: 1.5rem 0 0; }
.spm { margin-top: 3rem; margin-bottom: 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.spm ol { list-style: none; padding: 0; margin: .9rem 0 0; counter-reset: q; }
.spm li { counter-increment: q; border-bottom: 1px solid var(--line); }
.spm a { display: grid; grid-template-columns: 2.25rem 1fr; padding: .6rem 0; text-decoration: none; font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; }
.spm a::before { content: counter(q, decimal-leading-zero); font-family: var(--sans); font-size: .78rem; color: var(--clay-ink); padding-top: .32rem; letter-spacing: .04em; }
.spm a:hover { color: var(--pine); }

.sec { padding-top: 3.25rem; }
.sec h2 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); line-height: 1.12; margin: 0 0 1.25rem; scroll-margin-top: 1.5rem; }
.sec h3 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.svar { background: var(--pine-tint); border-left: 2px solid var(--pine); padding: 1.1rem 1.35rem 1.15rem; margin: 0 0 1.75rem; }
.svar .label { margin: 0 0 .45rem; color: var(--pine); }
.svar p:last-child { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.sec ul, .sec ol { padding-left: 1.2rem; }
.sec li { margin-bottom: .55rem; }
.sec li::marker { color: var(--clay-ink); }
.sec blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 1px solid var(--clay); font-family: var(--serif); font-size: 1.3rem; }
.sec figure { margin: 2rem 0; }

.table { overflow-x: auto; margin: 1.5rem 0 1.9rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; }
th { text-align: left; font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 1rem .6rem 0; border-bottom: 1px solid var(--ink); }
td { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 500; white-space: nowrap; }

.next { display: block; margin-top: 4.5rem; padding: 2rem 0 0; border-top: 1px solid var(--ink); text-decoration: none; }
.next .label { display: block; margin-bottom: .6rem; }
.next-q { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; display: inline; border-bottom: 1px solid var(--clay); }
.next:hover .next-q { color: var(--pine); border-color: var(--pine); }

/* products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.1rem; margin: 2rem 0 2.25rem; }
@media (min-width: 40rem) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-feature { margin: 2rem 0 2.25rem; }
.vare { display: block; text-decoration: none; }
.vare-img { display: block; background: var(--stone); aspect-ratio: 1; padding: 10%; }
.vare-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vare-txt { display: block; padding-top: .7rem; }
.vare-name { display: block; font-size: .95rem; line-height: 1.35; font-weight: 500; }
.vare-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.vare-shop::before { content: "\00b7\00a0"; }
.vare:hover .vare-name { color: var(--pine); }
.vare.is-single { display: grid; grid-template-columns: 9rem 1fr; gap: 1.35rem; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.vare.is-single .vare-txt { padding-top: 0; }
.vare.is-single .vare-name { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.vare-go { display: inline-block; margin-top: .65rem; font-size: .9rem; color: var(--pine); font-weight: 500; border-bottom: 1px solid var(--pine); }
.vare-go::after { content: " \2192"; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg); padding: 3rem 0 2.5rem; font-size: .92rem; color: var(--muted); }
.foot-in { display: grid; gap: 1.75rem; }
.pub { display: flex; gap: 1rem; align-items: center; }
.pub img { width: 64px; height: 64px; flex: none; }
.pub p, .disc { margin: 0; max-width: 34rem; }
.pub a { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.foot-nav a { text-decoration: none; color: var(--ink); }
.foot-nav a:hover { color: var(--pine); }
.host { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 52rem) {
  .foot-in { grid-template-columns: 7fr 5fr; gap: 2rem 4rem; }
  .foot-nav, .host { grid-column: 1 / -1; }
}

/* about page mascot inside content */
.sec figure img[src*="mascot"] { width: 140px; }

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