:root {
  --cream: #F8F5F0;
  --cream-2: #F1ECE3;
  --espresso: #2A1F17;
  --espresso-2: #4A3A2C;
  --gray: #4A4A4A;
  --gray-2: #8A8070;
  --rule: rgba(42, 31, 23, 0.12);
  /* Måste vara identiska med tokens.css — båda filerna laddas på alla sidor
     och definierar samma variabler. Går de isär beror typografin på
     laddningsordning/cache och sidan kan tyst falla till systemfont. */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--espresso);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--espresso); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--espresso-2); }

/* Top nav — samma som landningssidan */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto; padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav .wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  letter-spacing: -0.02em; line-height: 0.9;
  text-decoration: none; color: var(--espresso);
}
.nav-links { display: flex; gap: 36px; font-family: var(--sans); font-size: 14px; color: var(--espresso-2); }
.nav-links a { text-decoration: none; color: inherit; }
.nav-links a:hover { color: var(--espresso); }
.nav-cta {
  font-family: var(--sans); font-size: 13px; padding: 10px 18px;
  border: 1px solid var(--espresso); border-radius: 999px;
  text-decoration: none; color: var(--espresso);
  transition: all 200ms ease;
}
.nav-cta:hover { background: var(--espresso); color: var(--cream); }

/* Article wrap */
article { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; }
article .breadcrumb { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-2); margin-bottom: 32px; }
article .breadcrumb a { color: var(--gray-2); text-decoration: none; }
article .breadcrumb a:hover { color: var(--espresso); }

article h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
article h1 em { font-style: italic; font-weight: 300; }

article .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--espresso-2);
  margin: 0 0 48px;
  border-left: 2px solid var(--espresso);
  padding-left: 24px;
}

article h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  line-height: 1.2;
}
article h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  margin: 32px 0 12px;
}

article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 24px; padding-left: 28px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 600; }

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
article th, article td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
article th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-2);
  font-weight: 400;
  background: var(--cream-2);
}

article blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: #fff;
  border-left: 3px solid var(--espresso);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--espresso-2);
}

article .callout {
  background: var(--espresso);
  color: var(--cream);
  padding: 32px;
  margin: 48px 0;
  border-radius: 0;
}
article .callout h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; margin: 0 0 12px; color: var(--cream); }
article .callout p { color: rgba(248, 245, 240, 0.85); margin-bottom: 16px; }
article .callout a.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  background: var(--cream);
  color: var(--espresso);
  text-decoration: none;
  margin-top: 8px;
}
article .callout a.btn:hover { background: #fff; }

/* FAQ accordion */
article details {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
article details:last-of-type { border-bottom: 1px solid var(--rule); }
article details summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
article details summary::-webkit-details-marker { display: none; }
article details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--gray-2);
}
article details[open] summary::after { content: '–'; }
article details > p, article details > ul { margin-top: 12px; color: var(--gray); }

/* Related links footer */
article .related {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
article .related h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  font-weight: 400;
  margin: 0 0 16px;
}
article .related ul { list-style: none; padding: 0; }
article .related li { margin-bottom: 8px; font-family: var(--serif); font-size: 18px; }

/* Page footer */
footer.site {
  background: var(--espresso);
  color: rgba(248, 245, 240, 0.7);
  padding: 48px 32px;
  font-size: 13px;
  text-align: center;
}
footer.site a { color: var(--cream); }
footer.site .word { font-family: var(--serif); font-size: 28px; color: var(--cream); display: block; margin-bottom: 4px; letter-spacing: -0.03em; }
footer.site .ipa { font-family: var(--serif); font-style: italic; color: rgba(248, 245, 240, 0.5); font-size: 14px; }

@media (max-width: 720px) {
  .nav-inner { padding: 14px 24px; }
  .nav .wordmark { font-size: 22px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 12px; padding: 8px 14px; }
  article { padding: 40px 20px 64px; }
  article h2 { font-size: 26px; margin-top: 40px; }
  article .lead { font-size: 18px; padding-left: 16px; }
  article details summary { font-size: 19px; }
}
