:root {
  --bg: #faf7f2;
  --bg-alt: #f2ede3;
  --text: #24302a;
  --text-muted: #5a6661;
  --accent: #2d5e3e;
  --accent-dark: #1f4429;
  --accent-light: #cfe0d3;
  --rule: #d9d2c3;
  --max: 1100px;
  --max-narrow: 720px;
}
.trousers-note { margin-top: 24px; }
.trousers-note figure { margin: 0; max-width: 340px; }
.trousers-note img {
  border-radius: 2px;
  box-shadow: 0 18px 35px -18px rgba(30, 40, 30, 0.35);
}
.trousers-note figcaption {
  text-align: left;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.8em; }

p { margin: 0 0 1.1em; }

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

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-narrow); }

.section {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
}

/* ---------- HERO ---------- */
.hero {
  background: #f2ede3;
  padding: 70px 24px 90px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Botanical decorative layer — Ranunculus glacialis (issoleie), Hartinger Atlas Alpenflora */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("bilder/botanikk_ranunculus_bred.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.5;
  filter: saturate(0.9);
  z-index: -2;
}
/* Cream gradient overlay so text and cover stay readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(242, 237, 227, 0.85) 0%, rgba(242, 237, 227, 0.4) 45%, rgba(242, 237, 227, 0.05) 80%),
    linear-gradient(180deg, rgba(242, 237, 227, 0.35) 0%, rgba(232, 226, 210, 0.5) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-cover img {
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(30, 40, 30, 0.35),
              0 10px 25px -10px rgba(30, 40, 30, 0.25);
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}
.hero-cover img:hover { transform: rotate(0deg) scale(1.02); }
.cover-credits {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  font-style: italic;
  margin-top: -1.4em;
  margin-bottom: 2em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2em;
}
.subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--text-muted);
  margin-top: -0.3em;
  margin-bottom: 1em;
}
.author {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2em;
}
.tagline {
  margin: 0 0 2em;
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--text);
  line-height: 1.5;
}

/* ---------- BUTTONS ---------- */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1.5px solid var(--accent);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- BOOK SECTION ---------- */
.section-book {
  background: var(--bg);
  border-top: none;
}
.section-book h2 {
  text-align: center;
  margin-bottom: 1.5em;
}
.section-book h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.5em auto 0;
}
.section-book p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.6rem;
  float: left;
  line-height: 0.9;
  padding: 0.1em 0.08em 0 0;
  color: var(--accent);
}

/* ---------- SPLIT LAYOUT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse .split-image { order: 2; }
.split figure { margin: 0; }
.split figure img {
  border-radius: 2px;
  box-shadow: 0 20px 40px -20px rgba(30, 40, 30, 0.3);
}
figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}
.inline-figure {
  margin-top: 30px;
  max-width: 280px;
}
.inline-figure img {
  border-radius: 2px;
  box-shadow: 0 15px 30px -15px rgba(30, 40, 30, 0.35);
}

.section-thekla { background: var(--bg-alt); }

.section-author { background: var(--bg-alt); text-align: center; }
.section-author h2 { margin-bottom: 1em; }
.section-author h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.5em auto 0;
}

/* ---------- TALK / BOOKING ---------- */
.section-talk { background: var(--bg-alt); }

.section-media { background: var(--bg); text-align: center; }
.section-media h2 { margin-bottom: 1.2em; }
.section-media h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.5em auto 0;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 1em;
}
.media-item { margin: 0; }
.media-item img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 18px 36px -18px rgba(30, 40, 30, 0.3);
}
.media-item figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: normal;
  text-align: center;
}
.media-item figcaption strong {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 820px) {
  .media-grid { grid-template-columns: 1fr; gap: 28px; }
}
.talk-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  box-shadow: 0 25px 50px -20px rgba(30, 40, 30, 0.25);
}
.talk-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.talk-content { padding: 44px 44px; }
.talk-content h2 { margin-top: 0; }
.talk-content .btn { margin-top: 10px; }
.email-fallback {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- BUY ---------- */
.section-buy { background: var(--bg); text-align: center; }
.section-buy h2 { margin-bottom: 0.8em; }
.buy-status {
  font-size: 1.1rem;
  padding: 24px 28px;
  background: var(--accent-light);
  border-radius: 2px;
  display: inline-block;
  border-left: 3px solid var(--accent);
  text-align: left;
  max-width: 600px;
}
.buy-actions {
  margin-top: 1.6em;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.buy-note {
  margin-top: 1.4em;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--accent-dark);
  color: #e8e2d2;
  padding: 50px 0;
  text-align: center;
  font-size: 0.92rem;
}
.footer p { margin: 0.3em 0; }
.footer a { color: #fff; }
.footer-contact { margin-top: 1.4em !important; }
.colophon {
  margin: 1.8em auto 0.6em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(232, 226, 210, 0.25);
  max-width: 520px;
  font-size: 0.82rem;
  color: rgba(232, 226, 210, 0.78);
  letter-spacing: 0.01em;
}
.colophon p { margin: 0.25em 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .section { padding: 60px 0; }
  .hero { padding: 50px 24px 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-cover { max-width: 280px; margin: 0 auto; }
  .tagline { text-align: left; }
  .hero-actions { justify-content: center; }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-reverse .split-image { order: 0; }
  .split-image { max-width: 420px; margin: 0 auto; }
  .inline-figure { margin-left: auto; margin-right: auto; }

  .talk-card { grid-template-columns: 1fr; }
  .talk-image { max-height: 340px; overflow: hidden; }
  .talk-image img { object-position: center 30%; }
  .talk-content { padding: 32px 28px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { padding: 12px 20px; width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}
