@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --green: #103326;
  --green-deep: #0b241a;
  --gold: #d29e3b;
  --gold-light: #e8c27a;
  --gold-ink: #8a6020;
  --paper: #ffffff;
  --mist: #eef3ef;
  --ink: #103326;
  --muted: #4b6157;
  --line: #c6d3ca;
  --on-green: #dfe8e2;
  --measure: 35rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: 1.55rem; margin-bottom: 0.4em; }
.sc { font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-weight: 700; }
.lining { font-variant-numeric: lining-nums; }

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

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band.green { background: var(--green); color: var(--on-green); }
.band.mist { background: var(--mist); }
.lead { font-size: 1.4rem; line-height: 1.45; max-width: var(--measure); }

/* Knapp */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.2rem; line-height: 1.2;
  padding: 0.85rem 1.7rem; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--gold); background: var(--gold); color: var(--green);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn.quiet { background: transparent; color: var(--gold); }
.btn.quiet:hover { background: rgba(210, 158, 59, .12); }

/* Sidhuvud */
.top { background: var(--green); color: var(--gold); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--gold); }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.9rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.top nav a { color: var(--on-green); text-decoration: none; font-size: 1.08rem; }
.top nav a:hover { color: var(--gold-light); text-decoration: underline; }
.top nav a.buy { color: var(--gold); font-weight: 700; }

/* Hero */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cover { position: relative; max-width: 25rem; justify-self: center; width: 100%; }
.cover img { width: 100%; border-radius: 2px 4px 4px 2px; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.45), 0 0.3rem 0.6rem rgba(0,0,0,.3); }
.cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5%;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.06) 55%, rgba(0,0,0,0)); border-radius: 2px 0 0 2px; pointer-events: none; }
.hero .display { color: var(--gold); font-weight: 700; font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 0.25em; }
.hero .display span { display: block; font-style: italic; font-weight: 500; color: var(--gold-light); }
.rule { width: 3.2rem; height: 1px; background: var(--gold); margin: 1.8rem 0 1.5rem; border: 0; }
.hero h1 { color: var(--gold); font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 0.2rem; }
.hero .sub { color: var(--on-green); font-size: 1.25rem; margin: 0 0 1.2rem; }
.hero-text { max-width: 34rem; }
.hero-text .lead { font-size: 1.3rem; }
.price { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin: 1.6rem 0 1.1rem; }
.price strong { font-size: 2.3rem; color: var(--gold); line-height: 1; font-variant-numeric: lining-nums; }
.price span { color: var(--on-green); }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

/* Parlör */
.parlor { text-align: center; }
.parlor h2 { margin-bottom: 1.2em; }
.parlor table { margin: 0 auto; border-collapse: collapse; font-size: clamp(1.15rem, 2.3vw, 1.55rem); line-height: 1.3; }
.parlor th, .parlor th.s { color: var(--gold-ink); padding: 0 0 0.6em; font-size: 0.82em; font-style: normal; }
.parlor td { padding: 0.32em 0; vertical-align: top; }
.parlor .s { text-align: right; padding-right: 0.7em; font-style: italic; }
.parlor .m { text-align: left; padding-left: 0.7em; font-weight: 600; }
.parlor caption { caption-side: bottom; padding-top: 1.6rem; font-size: 1.05rem; color: var(--muted); font-style: italic; }

/* Om boken */
.about .grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); gap: clamp(2rem, 6vw, 5rem); justify-content: center; }
.margin-notes { padding-top: 0.4rem; font-size: 1.02rem; line-height: 1.4; }
.note { margin-bottom: 2rem; }
.note .sc { display: block; color: var(--gold-ink); margin-bottom: 0.2rem; }
.quote { max-width: 44rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; text-align: center; }
.quote p { font-style: italic; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.32; margin-bottom: 0.6rem; }
.quote cite { font-style: normal; color: var(--muted); font-size: 1rem; }

.rules { margin-top: clamp(3rem, 7vw, 5rem); }
.rules h3 { text-align: center; margin-bottom: 1.4rem; }
.rules ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 62rem; }
.rules li { border: 1px solid var(--green); padding: 1rem 1.1rem 1.15rem; text-align: center; }
.rules li .sc { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.rules li i { font-size: 1.2rem; line-height: 1.3; display: block; }

/* Smakprov */
.excerpt-intro { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); gap: 0 clamp(2rem, 6vw, 5rem); justify-content: center; margin-bottom: 2.5rem; }
.chapter { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); gap: 0 clamp(2rem, 6vw, 5rem); justify-content: center; }
.chapter + .chapter { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.chapter h3 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 1.2rem; }
.chapter .body p { text-indent: 1.3em; margin: 0; }
.chapter .body p.first, .chapter .body p.flush, .chapter .body figure + p { text-indent: 0; }
.chapter .body p.say { text-indent: 1.3em; }
.chapter .body p b { font-weight: 700; }
.chapter figure { margin: 1.6rem 0; }
.chapter figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }
.chapter .side { font-size: 1.02rem; line-height: 1.4; padding-top: 4.2rem; }
.regeln { border: 1px solid var(--green); text-align: center; padding: 0.9rem 1.2rem 1rem; margin: 1.8rem 0 1.4rem; }
.regeln .sc { display: block; font-size: 1.02rem; }
.regeln i { font-size: 1.3rem; }
.varning-h { margin: 0 0 0.3rem; }
.rest[hidden] { display: none; }
.more { margin-top: 1.4rem; font: inherit; font-size: 1.08rem; font-weight: 700; color: var(--green); background: none;
  border: 1px solid var(--green); padding: 0.55rem 1.1rem; border-radius: 3px; cursor: pointer; }
.more:hover { background: var(--mist); }

/* Kort */
.cards-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.fold { background: var(--paper); border: 1px solid var(--line); padding: 1.2rem 1.4rem; font-size: 1.05rem; line-height: 1.4; }
.fold ol { margin: 0; padding-left: 1.3rem; }
.fold li + li { margin-top: 0.45rem; }
.fold-h { font-weight: 700; margin: 0 0 0.5rem; }
.group { margin-top: clamp(2.5rem, 6vw, 3.8rem); }
.group-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.group-head h3 { margin: 0; font-size: 1.8rem; }
.group-head p { margin: 0; color: var(--muted); font-style: italic; font-size: 1.1rem; }
.cardlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.card img { width: 100%; aspect-ratio: 1.414; object-fit: cover; box-shadow: 0 0.4rem 1.2rem rgba(16, 51, 38, .16); background: #fff; }
.card h4 { font-size: 1.25rem; margin: 0.8rem 0 0.3rem; }
.card .dl { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 1.05rem; }
.card .dl a { font-weight: 600; }


/* Köp */
.buy .wrap { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 34rem); gap: clamp(2rem, 6vw, 5rem); justify-content: center; align-items: center; }
.buy h2 { color: var(--gold); }
.buy .cover { max-width: 15rem; }
.facts { margin: 1.4rem 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.2rem; font-size: 1.1rem; }
.facts dt { color: var(--gold-light); }
.facts dd { margin: 0; font-variant-numeric: lining-nums; }
.buy .small { font-size: 1.02rem; margin-top: 1.1rem; }
.buy a:not(.btn) { color: var(--gold-light); }

/* Författaren */
.author .wrap { max-width: 50rem; }
.dedication { margin: 2rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.dedication p { font-style: italic; font-size: 1.5rem; line-height: 1.4; margin-bottom: 0.4rem; }
.dedication cite { font-style: normal; color: var(--muted); font-size: 1rem; }

/* Sidfot */
.foot { background: var(--green-deep); color: var(--on-green); padding: 2.6rem 0 3rem; font-size: 1.02rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.foot p { margin: 0 0 0.3rem; }
.foot .disclaimer { font-style: italic; color: var(--gold-light); }
.foot a { color: var(--on-green); }

/* Enkla sidor */
.page { max-width: 40rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1.2rem; }
.page h2 { font-size: 1.5rem; margin: 2rem 0 0.4rem; }
.page .fill { background: #fff3cf; padding: 0 0.2em; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .cover { max-width: 13rem; }
  .excerpt-intro { grid-template-columns: minmax(0, 1fr); }
  .about .grid, .chapter { grid-template-columns: minmax(0, 1fr); }
  .margin-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .note { margin: 0; }
  .chapter .side { padding-top: 1.8rem; order: 3; }
  .rules ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cardlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-intro,   .buy .wrap { grid-template-columns: 1fr; }
  .buy .cover { max-width: 11rem; justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 1.18rem; }
  .top .wrap { justify-content: center; }
  .top nav ul { justify-content: center; }
  .parlor table, .parlor tbody, .parlor tr, .parlor td { display: block; }
  .parlor thead { display: none; }
  .parlor tr { padding: 0.55em 0; border-bottom: 1px solid var(--line); }
  .parlor tr:last-child { border-bottom: 0; }
  .parlor .s, .parlor .m { text-align: center; padding: 0; }
  .parlor caption { display: block; text-align: center; }
  .margin-notes { grid-template-columns: 1fr; }
  .rules ul, .cardlist,   }
