/*
  Linda Lundmark — Yoga, Dans & Mindfulness
  Design tokens
  -------------
  Background (linen):     #F6F1E7
  Background (blush):     #F1E4DB
  Ink:                     #38332C
  Ink, soft:               #6B6357
  Sage (primary):          #6E7F5C
  Sage, deep:              #4F5F42
  Clay (secondary/CTA):    #C17A56
  Clay, deep:              #A6613F
  Gold hairline:           #B99257
  Display face: Fraunces (warm serif, soft curves)
  Body face:    Work Sans (humanist, calm, legible in Swedish)
*/

:root {
  --linen: #F6F1E7;
  --blush: #F1E4DB;
  --card: #FFFDF8;
  --ink: #38332C;
  --ink-soft: #6B6357;
  --sage: #6E7F5C;
  --sage-deep: #4F5F42;
  --sage-pale: #E4E9DC;
  --clay: #C17A56;
  --clay-deep: #A6613F;
  --gold: #B99257;
  --line: rgba(56, 51, 44, 0.12);
  --shadow: 0 20px 45px -25px rgba(56, 51, 44, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(56, 51, 44, 0.3);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --measure: 68ch;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #23211c;
    --blush: #2a2620;
    --card: #2c2a24;
    --ink: #f2ede2;
    --ink-soft: #cbc3b2;
    --sage-pale: #333c2c;
    --line: rgba(242, 237, 226, 0.14);
    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, 0.55);
  }
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover, a:focus-visible { color: var(--clay-deep); }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 3vw + 1.6rem, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 1.6vw + 1.3rem, 2.6rem); }
h3 { font-size: 1.25rem; margin-top: 1.6em; color: var(--sage-deep); }
p { margin: 0 0 1.3em; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 6vw;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.measure { max-width: var(--measure); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); transform: translateY(-2px); }

/* -------------------- Header -------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
@media (prefers-color-scheme: dark) {
  #site-header { background: rgba(35, 33, 28, 0.82); }
}
#site-header.is-scrolled { border-bottom-color: var(--line); }
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1em;
  padding-bottom: 1.1em;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-top: 0.3em;
}

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
#nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
#nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.active span:nth-child(2) { opacity: 0; }
#nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#site-nav ul { list-style: none; display: flex; gap: 1.9em; margin: 0; padding: 0; }
#site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
#site-nav li.active a, #site-nav a:hover { color: var(--sage-deep); border-color: var(--gold); }

@media (max-width: 860px) {
  #nav-toggle { display: flex; }
  #site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 68px;
    background: var(--linen);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  #site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  #site-nav ul { flex-direction: column; gap: 0; padding: 1em 6vw 1.6em; }
  #site-nav li { border-bottom: 1px solid var(--line); }
  #site-nav a { display: block; padding: 0.9em 0; }
}

/* -------------------- Hero -------------------- */
#hem {
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, var(--blush) 0%, transparent 100%),
    var(--linen);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw;
  align-items: center;
}
.hero-copy .lede { font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; margin-top: 1.6em; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% 8% 8% / 58% 58% 8% 8%;
  box-shadow: var(--shadow);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(56,51,44,0.32) 100%);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { order: -1; max-width: 420px; margin: 0 auto; }
}

/* -------------------- Sections -------------------- */
.section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--blush); }
.section-head { max-width: 640px; margin: 0 0 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.divider {
  display: flex;
  justify-content: center;
  color: var(--gold);
  opacity: 0.75;
  margin: 0;
}

.prose :is(h3) { color: var(--sage-deep); }
.prose ul { columns: 1; }
.prose li { margin-bottom: 0.35em; }

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sage-deep);
  border-left: 3px solid var(--gold);
  padding-left: 0.9em;
  margin: 1.6em 0;
}

/* -------------------- Photo gallery -------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.gallery figure { margin: 0; grid-column: span 2; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; }
.gallery figure.wide { aspect-ratio: 3/2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure { grid-column: span 1; }
}

/* -------------------- Cards / schedule -------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.class-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.class-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 0 0 0.3em; color: var(--ink); }
.class-card .where { color: var(--clay-deep); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em; margin-bottom: 0.6em; display: block; }
.class-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------- Archive / details -------------------- */
details.archive {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
details.archive summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sage-deep);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1rem;
}
details.archive summary::marker,
details.archive summary::-webkit-details-marker { display: none; }
details.archive summary::before {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clay);
  transition: transform 0.2s ease;
}
details.archive[open] summary::before { content: "\2212"; }
.archive-body { padding-top: 1.6rem; color: var(--ink-soft); }
.archive-body h3:first-child { margin-top: 0; }

/* -------------------- Price list -------------------- */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5em;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--line);
}
.price-list strong { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* -------------------- Contact -------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4vw; margin-top: 2.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.8em; padding: 0.7em 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.contact-list li:first-child { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); border: none; padding-top: 0; }
.contact-list i { color: var(--sage-deep); font-size: 1.05em; margin-top: 0.2em; }
.contact-list a { color: var(--ink-soft); }
.contact-list a:hover { color: var(--clay-deep); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4em; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px var(--sage-pale); }

#map { height: 320px; border-radius: var(--radius-md); overflow: hidden; margin-top: 2.6rem; box-shadow: var(--shadow-sm); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* -------------------- Footer -------------------- */
footer {
  background: var(--sage-deep);
  color: #EFECE2;
  padding: 2.6rem 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gotop {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.gotop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* -------------------- Reveal on scroll -------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img, .btn, .gotop { transition: none; }
}
