@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Lora:wght@400;500&display=swap');

:root {
  --bg: #ece0cc;
  --bg-card: #ddcca6;
  --ink: #232019;
  --heading: #4b5a44;
  --muted: #57503f;
  --accent: #171512;
  --line: rgba(35, 32, 25, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--max);
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.logo img {
  height: 68px;
  display: block;
}

.nav {
  display: flex;
  gap: 44px;
  font-size: 1.05rem;
}

.nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
}

/* Hero (home) */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 40px 30px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.hero-photos {
  display: flex;
  gap: 20px;
  width: 100%;
}

.hero-photo {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.hero-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.hero-photo figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.hero-photo figcaption span {
  color: var(--muted);
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 0.3em;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1.1em;
}

/* Dagens byråkratiske / Dagens lærdalsord */
.word-of-day-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 130px 40px 70px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.word-of-day-inner {
  background: var(--bg-card);
  border: 1px solid rgba(35, 32, 25, 0.1);
  border-radius: 6px;
  padding: 18px 22px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(35, 32, 25, 0.08);
}

.wod-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.wod-word {
  font-size: 1.45rem;
  margin: 0 0 6px;
}

.wod-word a {
  border-bottom: 1px solid transparent;
}

.wod-word a:hover {
  border-bottom-color: var(--heading);
}

.wod-def {
  font-size: 0.92rem;
  margin: 0 0 8px;
}

.wod-credit {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
}

.wod-credit a:hover {
  text-decoration: underline;
}

.nn-question {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.nn-highlight {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: #c0392b;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.nn-answer {
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 8px;
}

.nn-answer em {
  font-size: 1.05rem;
  color: var(--heading);
  font-style: italic;
}

.btn {
  display: inline-block;
  background: #3a4634;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  padding: 15px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--heading);
}

/* Generic page header block */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 40px 60px;
}

.page-hero h1 {
  font-size: 2.8rem;
}

/* Om oss layout */
.about-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 40px 100px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
}

.about-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1.15rem;
  padding-top: 8px;
}

.about-nav a.active {
  color: var(--heading);
  font-weight: 500;
}

.about-section {
  margin-bottom: 90px;
  scroll-margin-top: 40px;
}

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.6em;
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.person img {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 16px;
}

.person h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2em;
}

.person .role {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8em;
}

.book-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.book-block img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

/* Tenester overview */
.services-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 40px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  display: block;
}

.service-card .thumb {
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border-radius: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

.service-card:hover h3 {
  text-decoration: underline;
}

.intro-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 20px;
  color: var(--muted);
}

/* Course listing */
.kurs-subnav {
  position: sticky;
  top: 92px;
  z-index: 90;
  background: var(--bg);
  max-width: var(--max);
  margin: 0 auto 20px;
  padding: 14px 40px;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  font-family: 'Playfair Display', Georgia, serif;
}

.kurs-subnav a {
  font-size: 1.02rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.kurs-subnav a:hover {
  border-bottom-color: var(--heading);
}

.course-group {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 20px;
  scroll-margin-top: 150px;
}

.course-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 0;
}

.course-group summary::-webkit-details-marker {
  display: none;
}

.course-group summary h2 {
  margin: 0;
  font-size: 1.9rem;
}

.course-group summary::after {
  content: 'vis';
  flex-shrink: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: underline;
}

.course-group[open] summary::after {
  content: 'gøym';
}

.course-group .course-group-body {
  padding-top: 40px;
}

.course {
  padding: 0 0 50px;
  max-width: 780px;
}

.course h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

.course .lede {
  margin-bottom: 1em;
}

.course ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.course li {
  margin-bottom: 0.35em;
}

.course .target {
  color: var(--muted);
  font-size: 0.95rem;
}

.course .target strong {
  color: var(--ink);
}

/* Contact page */
.contact-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 40px 120px;
}

.contact-block .email {
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  color: var(--heading);
  display: inline-block;
  margin: 20px 0 40px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 40px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.coming-soon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 120px;
  color: var(--muted);
  max-width: 700px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .word-of-day-row {
    grid-template-columns: 1fr;
  }
  .hero-text {
    order: 1;
  }
  .hero-photos {
    order: 2;
    max-width: 420px;
    margin: 40px auto 0;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 28px;
  }
  .people {
    grid-template-columns: 1fr;
  }
  .book-block {
    grid-template-columns: 1fr;
  }
  .book-block img {
    max-width: 260px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    flex-wrap: wrap;
    gap: 20px;
  }
  .nav {
    gap: 24px;
    font-size: 0.95rem;
  }
}
