/*
Theme Name: Oyvind Fjellestad
Theme URI: https://oyvindfjellestad.no
Description: Custom WordPress theme for Oyvind Fjellestads personal site of reflections and faith story. Built from approved HTML prototypes by Nettsmed. Forest/sage/gold palette, Cormorant Garamond display + Lora body.
Author: Nettsmed
Author URI: https://nettsmed.no
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oyvind-fjellestad
*/


/* ============================================================
   SOURCE: Redesign / Front page (hero, welcome, post-card, posts-grid, footer, header/nav)
   (canonical :root tokens live here; merged --sidebar-w)
   ============================================================ */

/* ═══════════════════════════════════════════
       RESET & FOUNDATION
       ═══════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
  --sidebar-w: 300px;
      --forest: #1c3829;
      --forest-deep: #0f2318;
      --sage: #7a9e7e;
      --sage-light: #b8d4ba;
      --gold: #c4973b;
      --gold-muted: #d4b06a;
      --cream: #faf6f0;
      --linen: #f0ebe3;
      --parchment: #e8e0d4;
      --charcoal: #2a2a28;
      --text: #3a3832;
      --text-light: #6b6860;
      --white: #ffffff;
      --shadow-soft: 0 2px 20px rgba(28, 56, 41, 0.08);
      --shadow-card: 0 4px 30px rgba(28, 56, 41, 0.1);
      --shadow-elevated: 0 12px 48px rgba(28, 56, 41, 0.15);
      --radius: 4px;
      --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: 'Lora', Georgia, 'Times New Roman', serif;
      color: var(--text);
      background: var(--cream);
      line-height: 1.75;
      overflow-x: hidden;
    }

    ::selection {
      background: var(--sage-light);
      color: var(--forest-deep);
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; display: block; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      background: var(--forest);
      color: var(--cream);
      padding: 8px 16px;
      z-index: 1000;
      border-radius: var(--radius);
      font-size: 0.875rem;
    }
    .skip-link:focus { top: 16px; }

    /* ═══════════════════════════════════════════
       TYPOGRAPHY
       ═══════════════════════════════════════════ */
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
      font-weight: 400;
      line-height: 1.2;
      color: var(--charcoal);
    }

    h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -0.02em; }
    h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
    h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
    h4 { font-size: 1.1rem; font-weight: 600; }

    p { max-width: 65ch; }

    .section-label {
      font-family: 'Lora', serif;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::before {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--gold-muted);
    }

    /* ═══════════════════════════════════════════
       LAYOUT
       ═══════════════════════════════════════════ */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 clamp(20px, 4vw, 48px);
    }

    .container--narrow { max-width: 800px; }
    .container--wide { max-width: 1400px; }

    section {
      padding: clamp(60px, 10vw, 120px) 0;
    }

    /* ═══════════════════════════════════════════
       HEADER / NAVIGATION
       ═══════════════════════════════════════════ */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
      padding: 24px 0;
    }

    header.scrolled {
      background: rgba(250, 246, 240, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 0 rgba(28, 56, 41, 0.08);
      padding: 14px 0;
    }

    header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .site-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem;
      font-weight: 500;
      color: var(--cream);
      letter-spacing: 0.02em;
      transition: color var(--transition);
    }
    header.scrolled .site-name { color: var(--forest); }
    .site-name:hover { color: var(--gold); }

    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      z-index: 110;
    }
    .nav-toggle span {
      width: 24px;
      height: 1.5px;
      background: var(--cream);
      transition: var(--transition);
      display: block;
    }
    header.scrolled .nav-toggle span { background: var(--forest); }

    nav ul {
      list-style: none;
      display: flex;
      gap: clamp(20px, 3vw, 40px);
      align-items: center;
    }

    nav a {
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: rgba(250, 246, 240, 0.85);
      position: relative;
      padding: 4px 0;
      transition: color var(--transition);
    }
    header.scrolled nav a { color: var(--text-light); }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--gold);
      transition: width var(--transition);
    }

    nav a:hover, nav a.active {
      color: var(--cream);
    }
    header.scrolled nav a:hover, header.scrolled nav a.active {
      color: var(--forest);
    }
    nav a:hover::after, nav a.active::after {
      width: 100%;
    }

    /* ═══════════════════════════════════════════
       HERO
       ═══════════════════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      background: var(--forest-deep);
    }

    .hero__bg {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .hero__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
      opacity: 0.55;
      filter: saturate(0.7);
    }

    .hero__overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(180deg,
          rgba(15, 35, 24, 0.4) 0%,
          rgba(15, 35, 24, 0.15) 40%,
          rgba(15, 35, 24, 0.3) 70%,
          rgba(15, 35, 24, 0.85) 100%
        );
    }

    .hero__content {
      position: relative;
      z-index: 3;
      width: 100%;
      padding-top: 100px;
    }

    .hero__title {
      color: var(--cream);
      font-size: clamp(3rem, 8vw, 6rem);
      font-weight: 300;
      line-height: 1.05;
      margin-bottom: 1.5rem;
      letter-spacing: -0.03em;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 1s 0.3s ease-out forwards;
    }

    .hero__subtitle {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      font-weight: 300;
      font-style: italic;
      color: var(--sage-light);
      max-width: 500px;
      line-height: 1.6;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 1s 0.6s ease-out forwards;
    }

    .hero__name {
      font-family: 'Lora', serif;
      font-size: 0.8rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold-muted);
      margin-top: 2.5rem;
      opacity: 0;
      animation: fadeUp 1s 0.9s ease-out forwards;
    }

    .hero__scroll {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--sage-light);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      opacity: 0;
      animation: fadeUp 1s 1.2s ease-out forwards;
    }

    .hero__scroll-line {
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, var(--gold-muted), transparent);
      animation: scrollPulse 2s ease-in-out infinite;
    }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes scrollPulse {
      0%, 100% { opacity: 0.4; transform: scaleY(1); }
      50% { opacity: 1; transform: scaleY(1.2); }
    }

    /* ═══════════════════════════════════════════
       WELCOME SECTION
       ═══════════════════════════════════════════ */
    .welcome {
      background: var(--cream);
      position: relative;
    }

    .welcome__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(40px, 6vw, 80px);
      align-items: center;
    }

    .welcome__image-wrapper {
      position: relative;
    }

    .welcome__image-wrapper::before {
      content: '';
      position: absolute;
      top: -16px;
      left: -16px;
      right: 16px;
      bottom: 16px;
      border: 1px solid var(--gold-muted);
      border-radius: var(--radius);
      opacity: 0.4;
    }

    .welcome__image {
      border-radius: var(--radius);
      box-shadow: var(--shadow-elevated);
      position: relative;
      z-index: 1;
      aspect-ratio: 4/5;
      object-fit: cover;
    }

    .welcome__text h2 {
      margin-bottom: 1.5rem;
    }

    .welcome__text p {
      color: var(--text-light);
      margin-bottom: 1rem;
      font-size: 1.05rem;
    }

    /* ═══════════════════════════════════════════
       BUTTONS
       ═══════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      padding: 14px 32px;
      border-radius: var(--radius);
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }

    .btn--primary {
      background: var(--forest);
      color: var(--cream);
    }
    .btn--primary:hover {
      background: var(--forest-deep);
      transform: translateY(-2px);
      box-shadow: var(--shadow-card);
    }

    .btn--outline {
      border: 1px solid var(--forest);
      color: var(--forest);
      background: transparent;
    }
    .btn--outline:hover {
      background: var(--forest);
      color: var(--cream);
      transform: translateY(-2px);
    }

    .btn__arrow {
      transition: transform var(--transition);
      font-size: 1.1em;
    }
    .btn:hover .btn__arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════
       REFLEKSJONER (BLOG) SECTION
       ═══════════════════════════════════════════ */
    .reflections {
      background: var(--linen);
      position: relative;
    }

    .reflections::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--parchment), transparent);
    }

    .reflections__header {
      text-align: center;
      margin-bottom: clamp(40px, 6vw, 72px);
    }

    .reflections__header .section-label {
      justify-content: center;
    }
    .reflections__header .section-label::before { display: none; }
    .reflections__header .section-label::after {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--gold-muted);
    }

    .reflections__header h2 {
      margin-bottom: 1rem;
    }

    .reflections__header p {
      margin: 0 auto;
      color: var(--text-light);
      font-style: italic;
    }

    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 32px;
      margin-bottom: 48px;
    }

    .post-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: all var(--transition);
      position: relative;
    }

    .post-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-elevated);
    }

    .post-card__image {
      height: 200px;
      overflow: hidden;
      position: relative;
    }

    .post-card__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }

    .post-card:hover .post-card__image img {
      transform: scale(1.05);
    }

    .post-card__image-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(28, 56, 41, 0.3), transparent 60%);
    }

    .post-card__body {
      padding: 28px;
    }

    .post-card__date {
      font-size: 0.8rem;
      color: var(--sage);
      margin-bottom: 10px;
      font-style: italic;
    }

    .post-card__title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem;
      font-weight: 500;
      margin-bottom: 12px;
      line-height: 1.3;
      color: var(--charcoal);
      transition: color var(--transition);
    }

    .post-card:hover .post-card__title { color: var(--forest); }

    .post-card__excerpt {
      font-size: 0.9rem;
      color: var(--text-light);
      line-height: 1.65;
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .post-card__read-more {
      font-size: 0.85rem;
      color: var(--forest);
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap var(--transition), color var(--transition);
    }

    .post-card:hover .post-card__read-more {
      gap: 10px;
      color: var(--gold);
    }

    .reflections__cta {
      text-align: center;
    }

    /* ═══════════════════════════════════════════
       BIBELTEMA SECTION
       ═══════════════════════════════════════════ */
    .bibeltema {
      background: var(--cream);
      position: relative;
    }

    .bibeltema__intro {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: clamp(32px, 5vw, 64px);
      align-items: center;
      margin-bottom: clamp(48px, 8vw, 80px);
    }

    .bibeltema__verse-card {
      background: var(--forest-deep);
      color: var(--cream);
      padding: clamp(32px, 4vw, 48px);
      border-radius: var(--radius);
      max-width: 340px;
      position: relative;
      overflow: hidden;
    }

    .bibeltema__verse-card::before {
      content: '\201C';
      position: absolute;
      top: -10px;
      left: 16px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 8rem;
      color: var(--sage);
      opacity: 0.15;
      line-height: 1;
    }

    .bibeltema__verse-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.5rem;
      font-style: italic;
      font-weight: 300;
      line-height: 1.5;
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
    }

    .bibeltema__verse-ref {
      font-family: 'Lora', serif;
      font-size: 0.8rem;
      color: var(--gold-muted);
      letter-spacing: 0.1em;
    }

    .bibeltema__description h2 {
      margin-bottom: 1rem;
    }

    .bibeltema__description p {
      color: var(--text-light);
      font-size: 1.05rem;
      margin-bottom: 0.75rem;
    }

    .topics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }

    .topic-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 18px;
      background: var(--white);
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      font-weight: 500;
      color: var(--text);
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }

    .topic-link::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--gold);
      transform: scaleY(0);
      transition: transform var(--transition);
    }

    .topic-link:hover {
      background: var(--forest);
      color: var(--cream);
      border-color: var(--forest);
      transform: translateX(4px);
    }

    .topic-link:hover::before {
      transform: scaleY(1);
    }

    .topic-link__icon {
      font-size: 0.7em;
      color: var(--sage);
      transition: color var(--transition);
      flex-shrink: 0;
    }

    .topic-link:hover .topic-link__icon { color: var(--gold-muted); }

    .bibeltema__cta {
      text-align: center;
      margin-top: clamp(40px, 6vw, 64px);
    }

    /* ═══════════════════════════════════════════
       TROSHISTORIE (FAITH STORY) SECTION
       ═══════════════════════════════════════════ */
    .troshistorie {
      background: var(--forest-deep);
      color: var(--cream);
      position: relative;
      overflow: hidden;
    }

    .troshistorie::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 50%, rgba(122, 158, 126, 0.08), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(196, 151, 59, 0.05), transparent 40%);
    }

    .troshistorie__content {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 700px;
      margin: 0 auto;
    }

    .troshistorie__content .section-label {
      justify-content: center;
      color: var(--gold-muted);
    }
    .troshistorie__content .section-label::before {
      background: var(--gold-muted);
      opacity: 0.4;
    }

    .troshistorie__content h2 {
      color: var(--cream);
      margin-bottom: 1.5rem;
    }

    .troshistorie__content p {
      margin: 0 auto 2rem;
      color: rgba(250, 246, 240, 0.7);
      font-size: 1.1rem;
      line-height: 1.8;
    }

    .troshistorie__chapters {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin-bottom: 2.5rem;
    }

    .troshistorie__chip {
      padding: 8px 16px;
      border: 1px solid rgba(122, 158, 126, 0.25);
      border-radius: 20px;
      font-size: 0.8rem;
      color: var(--sage-light);
      transition: all var(--transition);
    }

    .troshistorie__chip:hover {
      border-color: var(--gold-muted);
      color: var(--gold-muted);
      background: rgba(196, 151, 59, 0.08);
    }

    .btn--gold {
      background: var(--gold);
      color: var(--forest-deep);
      font-weight: 600;
    }
    .btn--gold:hover {
      background: var(--gold-muted);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(196, 151, 59, 0.3);
    }

    /* ═══════════════════════════════════════════
       SEARCH (shared component)
       ═══════════════════════════════════════════ */
    .search-box {
      display: flex;
      max-width: 400px;
      margin: 0 auto;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      transition: border-color var(--transition);
    }

    .search-box:focus-within {
      border-color: var(--sage);
    }

    .search-box input {
      flex: 1;
      border: none;
      padding: 12px 16px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      background: transparent;
      color: var(--text);
      outline: none;
    }

    .search-box input::placeholder {
      color: var(--text-light);
      font-style: italic;
    }

    .search-box button {
      padding: 12px 20px;
      background: var(--forest);
      color: var(--cream);
      font-size: 0.85rem;
      font-family: 'Lora', serif;
      transition: background var(--transition);
    }

    .search-box button:hover { background: var(--forest-deep); }

    /* ═══════════════════════════════════════════
       FOOTER
       ═══════════════════════════════════════════ */
    footer {
      background: var(--charcoal);
      color: rgba(250, 246, 240, 0.6);
      padding: clamp(48px, 8vw, 80px) 0 32px;
    }

    .footer__grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: clamp(32px, 5vw, 64px);
      margin-bottom: 48px;
    }

    .footer__col h3 {
      font-family: 'Cormorant Garamond', serif;
      color: var(--cream);
      font-size: 1.2rem;
      margin-bottom: 1.25rem;
      font-weight: 400;
    }

    .footer__col p {
      font-size: 0.9rem;
      line-height: 1.7;
    }

    .footer__contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 0.9rem;
      transition: color var(--transition);
    }

    .footer__contact-item:hover { color: var(--cream); }

    .footer__contact-icon {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(122, 158, 126, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
      transition: all var(--transition);
    }

    .footer__contact-item:hover .footer__contact-icon {
      border-color: var(--gold-muted);
      color: var(--gold-muted);
    }

    .footer__divider {
      border: none;
      height: 1px;
      background: rgba(122, 158, 126, 0.12);
      margin-bottom: 24px;
    }

    .footer__bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: rgba(250, 246, 240, 0.35);
    }

    .footer__bottom a {
      color: rgba(250, 246, 240, 0.35);
      transition: color var(--transition);
    }
    .footer__bottom a:hover { color: var(--gold-muted); }

    /* ═══════════════════════════════════════════
       SCROLL ANIMATIONS
       ═══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* ═══════════════════════════════════════════
       DECORATIVE ELEMENTS
       ═══════════════════════════════════════════ */
    .ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 2rem 0;
      color: var(--gold-muted);
      opacity: 0.5;
    }

    .ornament__line {
      width: 48px;
      height: 1px;
      background: currentColor;
    }

    .ornament__diamond {
      width: 6px;
      height: 6px;
      border: 1px solid currentColor;
      transform: rotate(45deg);
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════════════ */
    @media (max-width: 900px) {
      .welcome__grid {
        grid-template-columns: 1fr;
      }

      .welcome__image-wrapper {
        max-width: 400px;
        margin: 0 auto;
      }

      .bibeltema__intro {
        grid-template-columns: 1fr;
      }

      .bibeltema__verse-card {
        max-width: 100%;
      }

      .footer__grid {
        grid-template-columns: 1fr;
      }

      .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      }
    }

    @media (max-width: 700px) {
      .nav-toggle {
        display: flex;
      }

      nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        padding: 100px 40px 40px;
        box-shadow: -8px 0 40px rgba(0,0,0,0.12);
        transition: right var(--transition);
        z-index: 105;
      }

      nav.open { right: 0; }

      nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
      }

      nav a { font-size: 1.1rem; }

      .posts-grid {
        grid-template-columns: 1fr;
      }

      .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }
    }

    /* ═══════════════════════════════════════════
       TOPIC SEARCH FILTER
       ═══════════════════════════════════════════ */
    .topics-search {
      margin-bottom: 24px;
      max-width: 360px;
    }

    .topics-search input {
      width: 100%;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      padding: 12px 16px 12px 40px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6860' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 14px center no-repeat;
      color: var(--text);
      outline: none;
      transition: border-color var(--transition);
    }

    .topics-search input:focus { border-color: var(--sage); }

    .topic-link.hidden { display: none; }

    .topics-count {
      font-size: 0.8rem;
      color: var(--text-light);
      font-style: italic;
      margin-top: 16px;
    }


/* ============================================================
   SOURCE: Refleksjoner / Archive (posts-grid, filters, pagination)
   (duplicate :root removed)
   ============================================================ */

/* ═══════════════════════════════════════════
       RESET & FOUNDATION
       ═══════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: 'Lora', Georgia, 'Times New Roman', serif;
      color: var(--text);
      background: var(--cream);
      line-height: 1.75;
      overflow-x: hidden;
    }

    ::selection {
      background: var(--sage-light);
      color: var(--forest-deep);
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; display: block; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      background: var(--forest);
      color: var(--cream);
      padding: 8px 16px;
      z-index: 1000;
      border-radius: var(--radius);
      font-size: 0.875rem;
    }
    .skip-link:focus { top: 16px; }

    /* ═══════════════════════════════════════════
       TYPOGRAPHY
       ═══════════════════════════════════════════ */
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
      font-weight: 400;
      line-height: 1.2;
      color: var(--charcoal);
    }

    h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -0.02em; }
    h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
    h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
    h4 { font-size: 1.1rem; font-weight: 600; }

    p { max-width: 65ch; }

    .section-label {
      font-family: 'Lora', serif;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::before {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--gold-muted);
    }

    /* ═══════════════════════════════════════════
       LAYOUT
       ═══════════════════════════════════════════ */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 clamp(20px, 4vw, 48px);
    }

    .container--narrow { max-width: 800px; }
    .container--wide { max-width: 1400px; }

    section {
      padding: clamp(60px, 10vw, 120px) 0;
    }

    /* ═══════════════════════════════════════════
       HEADER / NAVIGATION
       ═══════════════════════════════════════════ */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
      padding: 24px 0;
    }

    header.scrolled {
      background: rgba(250, 246, 240, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 0 rgba(28, 56, 41, 0.08);
      padding: 14px 0;
    }

    header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .site-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem;
      font-weight: 500;
      color: var(--cream);
      letter-spacing: 0.02em;
      transition: color var(--transition);
    }
    header.scrolled .site-name { color: var(--forest); }
    .site-name:hover { color: var(--gold); }

    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      z-index: 110;
    }
    .nav-toggle span {
      width: 24px;
      height: 1.5px;
      background: var(--cream);
      transition: var(--transition);
      display: block;
    }
    header.scrolled .nav-toggle span { background: var(--forest); }

    nav ul {
      list-style: none;
      display: flex;
      gap: clamp(20px, 3vw, 40px);
      align-items: center;
    }

    nav a {
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: rgba(250, 246, 240, 0.85);
      position: relative;
      padding: 4px 0;
      transition: color var(--transition);
    }
    header.scrolled nav a { color: var(--text-light); }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--gold);
      transition: width var(--transition);
    }

    nav a:hover, nav a.active {
      color: var(--cream);
    }
    header.scrolled nav a:hover, header.scrolled nav a.active {
      color: var(--forest);
    }
    nav a:hover::after, nav a.active::after {
      width: 100%;
    }

    /* ═══════════════════════════════════════════
       PAGE HERO (smaller than homepage hero)
       ═══════════════════════════════════════════ */
    .page-hero {
      min-height: 50vh;
      display: flex;
      align-items: flex-end;
      position: relative;
      overflow: hidden;
      background: var(--forest-deep);
      padding-bottom: clamp(48px, 8vw, 80px);
    }

    .page-hero__bg {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .page-hero__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
      opacity: 0.5;
      filter: saturate(0.7);
    }

    .page-hero__overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(180deg,
          rgba(15, 35, 24, 0.4) 0%,
          rgba(15, 35, 24, 0.15) 40%,
          rgba(15, 35, 24, 0.3) 70%,
          rgba(15, 35, 24, 0.85) 100%
        );
    }

    .page-hero__content {
      position: relative;
      z-index: 3;
    }

    .page-hero__title {
      color: var(--cream);
      font-size: clamp(2.5rem, 7vw, 5rem);
      font-weight: 300;
      line-height: 1.1;
      margin-bottom: 0.75rem;
      letter-spacing: -0.02em;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 1s 0.3s ease-out forwards;
    }

    .page-hero__subtitle {
      font-family: 'Lora', serif;
      font-size: 1rem;
      font-style: italic;
      color: var(--sage-light);
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 1s 0.6s ease-out forwards;
    }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }

    /* ═══════════════════════════════════════════
       BUTTONS
       ═══════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      padding: 14px 32px;
      border-radius: var(--radius);
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }

    .btn--primary {
      background: var(--forest);
      color: var(--cream);
    }
    .btn--primary:hover {
      background: var(--forest-deep);
      transform: translateY(-2px);
      box-shadow: var(--shadow-card);
    }

    .btn--outline {
      border: 1px solid var(--forest);
      color: var(--forest);
      background: transparent;
    }
    .btn--outline:hover {
      background: var(--forest);
      color: var(--cream);
      transform: translateY(-2px);
    }

    .btn__arrow {
      transition: transform var(--transition);
      font-size: 1.1em;
    }
    .btn:hover .btn__arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════
       ARCHIVE LAYOUT (sidebar + grid)
       ═══════════════════════════════════════════ */
    .archive-section {
      background: var(--linen);
      position: relative;
    }

    .archive-layout {
      display: block;
    }

    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 28px;
    }

    .post-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: all var(--transition);
      position: relative;
      display: block;
    }

    .post-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-elevated);
    }

    .post-card__image {
      height: 180px;
      overflow: hidden;
      position: relative;
    }

    .post-card__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }

    .post-card:hover .post-card__image img {
      transform: scale(1.05);
    }

    .post-card__image-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(28, 56, 41, 0.3), transparent 60%);
    }

    .post-card__body {
      padding: 24px;
    }

    .post-card__date {
      font-size: 0.8rem;
      color: var(--sage);
      margin-bottom: 8px;
      font-style: italic;
    }

    .post-card__title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 10px;
      line-height: 1.3;
      color: var(--charcoal);
      transition: color var(--transition);
    }

    .post-card:hover .post-card__title { color: var(--forest); }

    .post-card__excerpt {
      font-size: 0.88rem;
      color: var(--text-light);
      line-height: 1.65;
      margin-bottom: 14px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .post-card__read-more {
      font-size: 0.85rem;
      color: var(--forest);
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap var(--transition), color var(--transition);
    }

    .post-card:hover .post-card__read-more {
      gap: 10px;
      color: var(--gold);
    }

    /* ═══════════════════════════════════════════
       SIDEBAR
       ═══════════════════════════════════════════ */
    .sidebar {
      position: sticky;
      top: 100px;
    }

    .sidebar__block {
      background: var(--white);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: var(--shadow-soft);
      margin-bottom: 24px;
    }

    .sidebar__block h4 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--parchment);
    }

    .sidebar__toc-list {
      list-style: none;
    }

    .sidebar__toc-list li {
      margin-bottom: 10px;
    }

    .sidebar__toc-list a {
      font-size: 0.85rem;
      color: var(--text-light);
      transition: color var(--transition);
      display: flex;
      align-items: baseline;
      gap: 8px;
      line-height: 1.5;
    }

    .sidebar__toc-list a::before {
      content: '';
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--gold-muted);
      flex-shrink: 0;
      margin-top: 6px;
    }

    .sidebar__toc-list a:hover {
      color: var(--forest);
    }

    .sidebar__search {
      display: flex;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      overflow: hidden;
      transition: border-color var(--transition);
    }

    .sidebar__search:focus-within {
      border-color: var(--sage);
    }

    .sidebar__search input {
      flex: 1;
      border: none;
      padding: 10px 14px;
      font-family: 'Lora', serif;
      font-size: 0.85rem;
      background: transparent;
      color: var(--text);
      outline: none;
    }

    .sidebar__search input::placeholder {
      color: var(--text-light);
      font-style: italic;
    }

    .sidebar__search button {
      padding: 10px 16px;
      background: var(--forest);
      color: var(--cream);
      font-size: 0.8rem;
      font-family: 'Lora', serif;
      transition: background var(--transition);
    }

    .sidebar__search button:hover { background: var(--forest-deep); }

    /* ═══════════════════════════════════════════
       PAGINATION
       ═══════════════════════════════════════════ */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: clamp(40px, 6vw, 64px);
    }

    .pagination__item {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: var(--radius);
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: var(--text-light);
      border: 1px solid var(--parchment);
      background: var(--white);
      transition: all var(--transition);
    }

    .pagination__item:hover {
      border-color: var(--forest);
      color: var(--forest);
    }

    .pagination__item--active {
      background: var(--forest);
      color: var(--cream);
      border-color: var(--forest);
    }

    .pagination__item--active:hover {
      background: var(--forest-deep);
      color: var(--cream);
    }

    .pagination__next {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: var(--radius);
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: var(--forest);
      border: 1px solid var(--forest);
      background: transparent;
      transition: all var(--transition);
      margin-left: 8px;
    }

    .pagination__next:hover {
      background: var(--forest);
      color: var(--cream);
    }

    /* ═══════════════════════════════════════════
       SINGLE POST ARTICLE
       ═══════════════════════════════════════════ */
    .article-section {
      background: var(--cream);
    }

    .article-layout {
      max-width: 720px;
      margin: 0 auto;
    }

    .article__meta {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--parchment);
    }

    .article__date {
      font-size: 0.9rem;
      font-style: italic;
      color: var(--sage);
    }

    .article__reading-time {
      font-size: 0.8rem;
      color: var(--text-light);
      background: var(--linen);
      padding: 4px 12px;
      border-radius: 12px;
    }

    .article__content p {
      font-size: 1.08rem;
      line-height: 1.85;
      color: var(--text);
      margin-bottom: 1.5rem;
    }

    .article__content p:first-of-type {
      font-size: 1.15rem;
      color: var(--charcoal);
    }

    .article__content p:first-of-type::first-letter {
      font-family: 'Cormorant Garamond', serif;
      font-size: 3.5rem;
      font-weight: 600;
      float: left;
      line-height: 0.8;
      margin-right: 10px;
      margin-top: 6px;
      color: var(--forest);
    }

    .article__content blockquote {
      border-left: 3px solid var(--gold-muted);
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      background: var(--linen);
      border-radius: 0 var(--radius) var(--radius) 0;
    }

    .article__content blockquote p {
      font-style: italic;
      font-size: 1.05rem;
      color: var(--text-light);
      margin-bottom: 0;
    }

    .article__content h2 {
      margin-top: 2.5rem;
      margin-bottom: 1rem;
    }

    /* ═══════════════════════════════════════════
       POST NAVIGATION (prev/next)
       ═══════════════════════════════════════════ */
    .post-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: clamp(48px, 8vw, 80px);
      padding-top: 2rem;
      border-top: 1px solid var(--parchment);
    }

    .post-nav__link {
      padding: 24px;
      background: var(--linen);
      border-radius: var(--radius);
      transition: all var(--transition);
      display: block;
    }

    .post-nav__link:hover {
      background: var(--white);
      box-shadow: var(--shadow-card);
      transform: translateY(-3px);
    }

    .post-nav__label {
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .post-nav__title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      font-weight: 500;
      color: var(--charcoal);
      line-height: 1.3;
    }

    .post-nav__link:hover .post-nav__title {
      color: var(--forest);
    }

    .post-nav__link--next {
      text-align: right;
    }

    .post-nav__link--next .post-nav__label {
      justify-content: flex-end;
    }

    /* ═══════════════════════════════════════════
       SEARCH (shared component)
       ═══════════════════════════════════════════ */
    .search-box {
      display: flex;
      max-width: 400px;
      margin: 0 auto;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      transition: border-color var(--transition);
    }

    .search-box:focus-within {
      border-color: var(--sage);
    }

    .search-box input {
      flex: 1;
      border: none;
      padding: 12px 16px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      background: transparent;
      color: var(--text);
      outline: none;
    }

    .search-box input::placeholder {
      color: var(--text-light);
      font-style: italic;
    }

    .search-box button {
      padding: 12px 20px;
      background: var(--forest);
      color: var(--cream);
      font-size: 0.85rem;
      font-family: 'Lora', serif;
      transition: background var(--transition);
    }

    .search-box button:hover { background: var(--forest-deep); }

    /* ═══════════════════════════════════════════
       FOOTER
       ═══════════════════════════════════════════ */
    footer {
      background: var(--charcoal);
      color: rgba(250, 246, 240, 0.6);
      padding: clamp(48px, 8vw, 80px) 0 32px;
    }

    .footer__grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: clamp(32px, 5vw, 64px);
      margin-bottom: 48px;
    }

    .footer__col h3 {
      font-family: 'Cormorant Garamond', serif;
      color: var(--cream);
      font-size: 1.2rem;
      margin-bottom: 1.25rem;
      font-weight: 400;
    }

    .footer__col p {
      font-size: 0.9rem;
      line-height: 1.7;
    }

    .footer__contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 0.9rem;
      transition: color var(--transition);
    }

    .footer__contact-item:hover { color: var(--cream); }

    .footer__contact-icon {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(122, 158, 126, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
      transition: all var(--transition);
    }

    .footer__contact-item:hover .footer__contact-icon {
      border-color: var(--gold-muted);
      color: var(--gold-muted);
    }

    .footer__divider {
      border: none;
      height: 1px;
      background: rgba(122, 158, 126, 0.12);
      margin-bottom: 24px;
    }

    .footer__bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: rgba(250, 246, 240, 0.35);
    }

    .footer__bottom a {
      color: rgba(250, 246, 240, 0.35);
      transition: color var(--transition);
    }
    .footer__bottom a:hover { color: var(--gold-muted); }

    /* ═══════════════════════════════════════════
       SCROLL ANIMATIONS
       ═══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* ═══════════════════════════════════════════
       DECORATIVE ELEMENTS
       ═══════════════════════════════════════════ */
    .ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 2rem 0;
      color: var(--gold-muted);
      opacity: 0.5;
    }

    .ornament__line {
      width: 48px;
      height: 1px;
      background: currentColor;
    }

    .ornament__diamond {
      width: 6px;
      height: 6px;
      border: 1px solid currentColor;
      transform: rotate(45deg);
    }

    /* ═══════════════════════════════════════════
       TEMPLATE SEPARATOR
       ═══════════════════════════════════════════ */
    .template-separator {
      padding: 40px 0;
      background: var(--charcoal);
      text-align: center;
    }

    .template-separator__inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      max-width: 600px;
      margin: 0 auto;
    }

    .template-separator__line {
      flex: 1;
      height: 1px;
      background: rgba(250, 246, 240, 0.15);
    }

    .template-separator__text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      color: var(--gold-muted);
      font-style: italic;
      white-space: nowrap;
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════════════ */
    @media (max-width: 900px) {
      .archive-layout {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }

      .sidebar__block {
        margin-bottom: 0;
      }

      .footer__grid {
        grid-template-columns: 1fr;
      }

      .post-nav {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 700px) {
      .nav-toggle {
        display: flex;
      }

      nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        padding: 100px 40px 40px;
        box-shadow: -8px 0 40px rgba(0,0,0,0.12);
        transition: right var(--transition);
        z-index: 105;
      }

      nav.open { right: 0; }

      nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
      }

      nav a {
        font-size: 1.1rem;
        color: var(--text);
      }

      .posts-grid {
        grid-template-columns: 1fr;
      }

      .sidebar {
        grid-template-columns: 1fr;
      }

      .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }
    }
  
  .page-hero__search { display: flex; max-width: 440px; margin-top: 26px; background: rgba(250,246,240,0.12); border: 1px solid rgba(250,246,240,0.3); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(4px); opacity: 0; transform: translateY(16px); animation: fadeUp 1s 0.7s ease-out forwards; }
  .page-hero__search input { flex: 1; background: transparent; border: none; outline: none; padding: 13px 16px; color: var(--cream); font-family: 'Lora', serif; font-size: 0.95rem; }
  .page-hero__search input::placeholder { color: rgba(250,246,240,0.6); }
  .page-hero__search button { background: var(--gold); color: var(--forest-deep); border: none; padding: 0 20px; font-size: 1.2rem; cursor: pointer; transition: background var(--transition); }
  .page-hero__search button:hover { background: var(--gold-muted); }


/* ============================================================
   SOURCE: Refleksjon / Single post (article__*, video-embed, sidebar/toc/scrollspy)
   (duplicate :root removed)
   ============================================================ */

/* ═══════════════════════════════════════════
       RESET & FOUNDATION
       ═══════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: 'Lora', Georgia, 'Times New Roman', serif;
      color: var(--text);
      background: var(--cream);
      line-height: 1.75;
      overflow-x: hidden;
    }

    ::selection {
      background: var(--sage-light);
      color: var(--forest-deep);
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; display: block; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      background: var(--forest);
      color: var(--cream);
      padding: 8px 16px;
      z-index: 1000;
      border-radius: var(--radius);
      font-size: 0.875rem;
    }
    .skip-link:focus { top: 16px; }

    /* ═══════════════════════════════════════════
       TYPOGRAPHY
       ═══════════════════════════════════════════ */
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
      font-weight: 400;
      line-height: 1.2;
      color: var(--charcoal);
    }

    h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -0.02em; }
    h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
    h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
    h4 { font-size: 1.1rem; font-weight: 600; }

    p { max-width: 65ch; }

    .section-label {
      font-family: 'Lora', serif;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::before {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--gold-muted);
    }

    /* ═══════════════════════════════════════════
       LAYOUT
       ═══════════════════════════════════════════ */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 clamp(20px, 4vw, 48px);
    }

    .container--narrow { max-width: 800px; }
    .container--wide { max-width: 1400px; }

    section {
      padding: clamp(60px, 10vw, 120px) 0;
    }

    /* ═══════════════════════════════════════════
       HEADER / NAVIGATION
       ═══════════════════════════════════════════ */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
      padding: 24px 0;
    }

    header.scrolled {
      background: rgba(250, 246, 240, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 0 rgba(28, 56, 41, 0.08);
      padding: 14px 0;
    }

    header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .site-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem;
      font-weight: 500;
      color: var(--cream);
      letter-spacing: 0.02em;
      transition: color var(--transition);
    }
    header.scrolled .site-name { color: var(--forest); }
    .site-name:hover { color: var(--gold); }

    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      z-index: 110;
    }
    .nav-toggle span {
      width: 24px;
      height: 1.5px;
      background: var(--cream);
      transition: var(--transition);
      display: block;
    }
    header.scrolled .nav-toggle span { background: var(--forest); }

    nav ul {
      list-style: none;
      display: flex;
      gap: clamp(20px, 3vw, 40px);
      align-items: center;
    }

    nav a {
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: rgba(250, 246, 240, 0.85);
      position: relative;
      padding: 4px 0;
      transition: color var(--transition);
    }
    header.scrolled nav a { color: var(--text-light); }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--gold);
      transition: width var(--transition);
    }

    nav a:hover, nav a.active {
      color: var(--cream);
    }
    header.scrolled nav a:hover, header.scrolled nav a.active {
      color: var(--forest);
    }
    nav a:hover::after, nav a.active::after {
      width: 100%;
    }

    /* ═══════════════════════════════════════════
       PAGE HERO (smaller than homepage hero)
       ═══════════════════════════════════════════ */
    .page-hero {
      min-height: 50vh;
      display: flex;
      align-items: flex-end;
      position: relative;
      overflow: hidden;
      background: var(--forest-deep);
      padding-bottom: clamp(48px, 8vw, 80px);
    }

    .page-hero__bg {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .page-hero__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
      opacity: 0.5;
      filter: saturate(0.7);
    }

    .page-hero__overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(180deg,
          rgba(15, 35, 24, 0.4) 0%,
          rgba(15, 35, 24, 0.15) 40%,
          rgba(15, 35, 24, 0.3) 70%,
          rgba(15, 35, 24, 0.85) 100%
        );
    }

    .page-hero__content {
      position: relative;
      z-index: 3;
    }

    .page-hero__title {
      color: var(--cream);
      font-size: clamp(2.5rem, 7vw, 5rem);
      font-weight: 300;
      line-height: 1.1;
      margin-bottom: 0.75rem;
      letter-spacing: -0.02em;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 1s 0.3s ease-out forwards;
    }

    .page-hero__subtitle {
      font-family: 'Lora', serif;
      font-size: 1rem;
      font-style: italic;
      color: var(--sage-light);
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 1s 0.6s ease-out forwards;
    }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }

    /* ═══════════════════════════════════════════
       BUTTONS
       ═══════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      padding: 14px 32px;
      border-radius: var(--radius);
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }

    .btn--primary {
      background: var(--forest);
      color: var(--cream);
    }
    .btn--primary:hover {
      background: var(--forest-deep);
      transform: translateY(-2px);
      box-shadow: var(--shadow-card);
    }

    .btn--outline {
      border: 1px solid var(--forest);
      color: var(--forest);
      background: transparent;
    }
    .btn--outline:hover {
      background: var(--forest);
      color: var(--cream);
      transform: translateY(-2px);
    }

    .btn__arrow {
      transition: transform var(--transition);
      font-size: 1.1em;
    }
    .btn:hover .btn__arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════
       ARCHIVE LAYOUT (sidebar + grid)
       ═══════════════════════════════════════════ */
    .archive-section {
      background: var(--linen);
      position: relative;
    }

    .archive-layout {
      display: block;
    }

    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 28px;
    }

    .post-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: all var(--transition);
      position: relative;
      display: block;
    }

    .post-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-elevated);
    }

    .post-card__image {
      height: 180px;
      overflow: hidden;
      position: relative;
    }

    .post-card__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }

    .post-card:hover .post-card__image img {
      transform: scale(1.05);
    }

    .post-card__image-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(28, 56, 41, 0.3), transparent 60%);
    }

    .post-card__body {
      padding: 24px;
    }

    .post-card__date {
      font-size: 0.8rem;
      color: var(--sage);
      margin-bottom: 8px;
      font-style: italic;
    }

    .post-card__title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 10px;
      line-height: 1.3;
      color: var(--charcoal);
      transition: color var(--transition);
    }

    .post-card:hover .post-card__title { color: var(--forest); }

    .post-card__excerpt {
      font-size: 0.88rem;
      color: var(--text-light);
      line-height: 1.65;
      margin-bottom: 14px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .post-card__read-more {
      font-size: 0.85rem;
      color: var(--forest);
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap var(--transition), color var(--transition);
    }

    .post-card:hover .post-card__read-more {
      gap: 10px;
      color: var(--gold);
    }

    /* ═══════════════════════════════════════════
       SIDEBAR
       ═══════════════════════════════════════════ */
    .sidebar {
      position: sticky;
      top: 100px;
    }

    .sidebar__block {
      background: var(--white);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: var(--shadow-soft);
      margin-bottom: 24px;
    }

    .sidebar__block h4 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--parchment);
    }

    .sidebar__toc-list {
      list-style: none;
    }

    .sidebar__toc-list li {
      margin-bottom: 10px;
    }

    .sidebar__toc-list a {
      font-size: 0.85rem;
      color: var(--text-light);
      transition: color var(--transition);
      display: flex;
      align-items: baseline;
      gap: 8px;
      line-height: 1.5;
    }

    .sidebar__toc-list a::before {
      content: '';
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--gold-muted);
      flex-shrink: 0;
      margin-top: 6px;
    }

    .sidebar__toc-list a:hover {
      color: var(--forest);
    }

    .sidebar__search {
      display: flex;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      overflow: hidden;
      transition: border-color var(--transition);
    }

    .sidebar__search:focus-within {
      border-color: var(--sage);
    }

    .sidebar__search input {
      flex: 1;
      border: none;
      padding: 10px 14px;
      font-family: 'Lora', serif;
      font-size: 0.85rem;
      background: transparent;
      color: var(--text);
      outline: none;
    }

    .sidebar__search input::placeholder {
      color: var(--text-light);
      font-style: italic;
    }

    .sidebar__search button {
      padding: 10px 16px;
      background: var(--forest);
      color: var(--cream);
      font-size: 0.8rem;
      font-family: 'Lora', serif;
      transition: background var(--transition);
    }

    .sidebar__search button:hover { background: var(--forest-deep); }

    /* ═══════════════════════════════════════════
       PAGINATION
       ═══════════════════════════════════════════ */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: clamp(40px, 6vw, 64px);
    }

    .pagination__item {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: var(--radius);
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: var(--text-light);
      border: 1px solid var(--parchment);
      background: var(--white);
      transition: all var(--transition);
    }

    .pagination__item:hover {
      border-color: var(--forest);
      color: var(--forest);
    }

    .pagination__item--active {
      background: var(--forest);
      color: var(--cream);
      border-color: var(--forest);
    }

    .pagination__item--active:hover {
      background: var(--forest-deep);
      color: var(--cream);
    }

    .pagination__next {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: var(--radius);
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: var(--forest);
      border: 1px solid var(--forest);
      background: transparent;
      transition: all var(--transition);
      margin-left: 8px;
    }

    .pagination__next:hover {
      background: var(--forest);
      color: var(--cream);
    }

    /* ═══════════════════════════════════════════
       SINGLE POST ARTICLE
       ═══════════════════════════════════════════ */
    .article-section {
      background: var(--cream);
    }

    .article-layout {
      max-width: 720px;
      margin: 0 auto;
    }

    .article__meta {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--parchment);
    }

    .article__date {
      font-size: 0.9rem;
      font-style: italic;
      color: var(--sage);
    }

    .article__reading-time {
      font-size: 0.8rem;
      color: var(--text-light);
      background: var(--linen);
      padding: 4px 12px;
      border-radius: 12px;
    }

    .article__content p {
      font-size: 1.08rem;
      line-height: 1.85;
      color: var(--text);
      margin-bottom: 1.5rem;
    }

    .article__content p:first-of-type {
      font-size: 1.15rem;
      color: var(--charcoal);
    }

    .article__content p:first-of-type::first-letter {
      font-family: 'Cormorant Garamond', serif;
      font-size: 3.5rem;
      font-weight: 600;
      float: left;
      line-height: 0.8;
      margin-right: 10px;
      margin-top: 6px;
      color: var(--forest);
    }

    .article__content blockquote {
      border-left: 3px solid var(--gold-muted);
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      background: var(--linen);
      border-radius: 0 var(--radius) var(--radius) 0;
    }

    .article__content blockquote p {
      font-style: italic;
      font-size: 1.05rem;
      color: var(--text-light);
      margin-bottom: 0;
    }

    .article__content h2 {
      margin-top: 2.5rem;
      margin-bottom: 1rem;
    }

    /* ═══════════════════════════════════════════
       POST NAVIGATION (prev/next)
       ═══════════════════════════════════════════ */
    .post-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: clamp(48px, 8vw, 80px);
      padding-top: 2rem;
      border-top: 1px solid var(--parchment);
    }

    .post-nav__link {
      padding: 24px;
      background: var(--linen);
      border-radius: var(--radius);
      transition: all var(--transition);
      display: block;
    }

    .post-nav__link:hover {
      background: var(--white);
      box-shadow: var(--shadow-card);
      transform: translateY(-3px);
    }

    .post-nav__label {
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .post-nav__title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      font-weight: 500;
      color: var(--charcoal);
      line-height: 1.3;
    }

    .post-nav__link:hover .post-nav__title {
      color: var(--forest);
    }

    .post-nav__link--next {
      text-align: right;
    }

    .post-nav__link--next .post-nav__label {
      justify-content: flex-end;
    }

    /* ═══════════════════════════════════════════
       SEARCH (shared component)
       ═══════════════════════════════════════════ */
    .search-box {
      display: flex;
      max-width: 400px;
      margin: 0 auto;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      transition: border-color var(--transition);
    }

    .search-box:focus-within {
      border-color: var(--sage);
    }

    .search-box input {
      flex: 1;
      border: none;
      padding: 12px 16px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      background: transparent;
      color: var(--text);
      outline: none;
    }

    .search-box input::placeholder {
      color: var(--text-light);
      font-style: italic;
    }

    .search-box button {
      padding: 12px 20px;
      background: var(--forest);
      color: var(--cream);
      font-size: 0.85rem;
      font-family: 'Lora', serif;
      transition: background var(--transition);
    }

    .search-box button:hover { background: var(--forest-deep); }

    /* ═══════════════════════════════════════════
       FOOTER
       ═══════════════════════════════════════════ */
    footer {
      background: var(--charcoal);
      color: rgba(250, 246, 240, 0.6);
      padding: clamp(48px, 8vw, 80px) 0 32px;
    }

    .footer__grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: clamp(32px, 5vw, 64px);
      margin-bottom: 48px;
    }

    .footer__col h3 {
      font-family: 'Cormorant Garamond', serif;
      color: var(--cream);
      font-size: 1.2rem;
      margin-bottom: 1.25rem;
      font-weight: 400;
    }

    .footer__col p {
      font-size: 0.9rem;
      line-height: 1.7;
    }

    .footer__contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 0.9rem;
      transition: color var(--transition);
    }

    .footer__contact-item:hover { color: var(--cream); }

    .footer__contact-icon {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(122, 158, 126, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
      transition: all var(--transition);
    }

    .footer__contact-item:hover .footer__contact-icon {
      border-color: var(--gold-muted);
      color: var(--gold-muted);
    }

    .footer__divider {
      border: none;
      height: 1px;
      background: rgba(122, 158, 126, 0.12);
      margin-bottom: 24px;
    }

    .footer__bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: rgba(250, 246, 240, 0.35);
    }

    .footer__bottom a {
      color: rgba(250, 246, 240, 0.35);
      transition: color var(--transition);
    }
    .footer__bottom a:hover { color: var(--gold-muted); }

    /* ═══════════════════════════════════════════
       SCROLL ANIMATIONS
       ═══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* ═══════════════════════════════════════════
       DECORATIVE ELEMENTS
       ═══════════════════════════════════════════ */
    .ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 2rem 0;
      color: var(--gold-muted);
      opacity: 0.5;
    }

    .ornament__line {
      width: 48px;
      height: 1px;
      background: currentColor;
    }

    .ornament__diamond {
      width: 6px;
      height: 6px;
      border: 1px solid currentColor;
      transform: rotate(45deg);
    }

    /* ═══════════════════════════════════════════
       TEMPLATE SEPARATOR
       ═══════════════════════════════════════════ */
    .template-separator {
      padding: 40px 0;
      background: var(--charcoal);
      text-align: center;
    }

    .template-separator__inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      max-width: 600px;
      margin: 0 auto;
    }

    .template-separator__line {
      flex: 1;
      height: 1px;
      background: rgba(250, 246, 240, 0.15);
    }

    .template-separator__text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      color: var(--gold-muted);
      font-style: italic;
      white-space: nowrap;
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════════════ */
    @media (max-width: 900px) {
      .archive-layout {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }

      .sidebar__block {
        margin-bottom: 0;
      }

      .footer__grid {
        grid-template-columns: 1fr;
      }

      .post-nav {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 700px) {
      .nav-toggle {
        display: flex;
      }

      nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        padding: 100px 40px 40px;
        box-shadow: -8px 0 40px rgba(0,0,0,0.12);
        transition: right var(--transition);
        z-index: 105;
      }

      nav.open { right: 0; }

      nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
      }

      nav a {
        font-size: 1.1rem;
        color: var(--text);
      }

      .posts-grid {
        grid-template-columns: 1fr;
      }

      .sidebar {
        grid-template-columns: 1fr;
      }

      .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }
    }
  
  .page-hero__search { display: flex; max-width: 440px; margin-top: 26px; background: rgba(250,246,240,0.12); border: 1px solid rgba(250,246,240,0.3); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(4px); opacity: 0; transform: translateY(16px); animation: fadeUp 1s 0.7s ease-out forwards; }
  .page-hero__search input { flex: 1; background: transparent; border: none; outline: none; padding: 13px 16px; color: var(--cream); font-family: 'Lora', serif; font-size: 0.95rem; }
  .page-hero__search input::placeholder { color: rgba(250,246,240,0.6); }
  .page-hero__search button { background: var(--gold); color: var(--forest-deep); border: none; padding: 0 20px; font-size: 1.2rem; cursor: pointer; transition: background var(--transition); }
  .page-hero__search button:hover { background: var(--gold-muted); }

  /* ── Video embed (vlogg) — responsiv 16:9, som WP/Gutenberg-embed ── */
  .article__video { margin: 0 0 2.6rem; }
  .article__video .video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background-color: var(--forest-deep); background-size: cover; background-position: center 25%; box-shadow: var(--shadow-card); cursor: pointer; }
  .article__video .video-embed::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15,35,24,0.22), rgba(15,35,24,0.55)); transition: background var(--transition); }
  .article__video .video-embed:hover::before { background: linear-gradient(160deg, rgba(15,35,24,0.15), rgba(15,35,24,0.45)); }
  .article__video .video-embed__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 86px; height: 86px; border-radius: 50%; border: none; background: var(--gold); color: var(--forest-deep); font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center; padding-left: 6px; cursor: pointer; z-index: 2; transition: transform var(--transition), background var(--transition); box-shadow: 0 6px 24px rgba(15,35,24,0.35); }
  .article__video .video-embed:hover .video-embed__play { transform: translate(-50%,-50%) scale(1.08); background: var(--gold-muted); }
  .article__video .video-embed__label { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: var(--cream); font-family: 'Lora', serif; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
  .article__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .article__video figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-light); font-style: italic; text-align: center; }


/* ============================================================
   SOURCE: Min troshistorie / Page template (page-hero, timeline, reveal)
   (duplicate :root removed)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

  /* Reading progress */
  #progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-muted));
    z-index: 200; transition: width 0.1s linear;
  }

  /* Skip link */
  .skip {
    position: absolute; left: -999px; top: 0; background: var(--forest);
    color: var(--cream); padding: 10px 16px; z-index: 300; border-radius: var(--radius);
  }
  .skip:focus { left: 12px; top: 12px; }

  /* Header */
  .nav {
    max-width: 1240px; margin: 0 auto; padding: 18px 32px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em; color: var(--forest);
  }
  .brand span { color: var(--gold); }
  .nav-links { display: flex; gap: 30px; font-size: 0.96rem; }
  .nav-links a { color: var(--text-light); transition: color var(--transition); position: relative; }
  .nav-links a:hover, .nav-links a.active { color: var(--forest); }
  .nav-links a.active::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
    background: var(--gold);
  }

  /* Page hero */
  .hero {
    background:
      radial-gradient(ellipse at 20% 0%, rgba(122,158,126,0.18), transparent 55%),
      linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
    color: var(--cream);
    padding: 88px 32px 76px;
    position: relative; overflow: hidden;
  }
  .hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 22px 22px; pointer-events: none;
  }
  .hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
  .eyebrow {
    font-family: 'Lora', serif; text-transform: uppercase; letter-spacing: 0.28em;
    font-size: 0.72rem; color: var(--gold-muted); margin-bottom: 20px;
  }
  .hero h1 {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: 0.01em;
  }
  .hero .subtitle {
    font-style: italic; font-size: 1.5rem; color: var(--sage-light);
    margin-top: 10px; font-family: 'Cormorant Garamond', serif;
  }
  .hero p.lede {
    margin-top: 26px; font-size: 1.08rem; color: rgba(250,246,240,0.82);
    max-width: 620px;
  }
  .ornament {
    display: flex; align-items: center; gap: 14px; margin-top: 30px;
  }
  .ornament .line { height: 1px; width: 56px; background: var(--gold); opacity: 0.6; }
  .ornament .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

  /* Layout */
  .layout {
    max-width: 1240px; margin: 0 auto; padding: 56px 32px 0;
    display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 56px;
    align-items: start;
  }

  /* Sidebar */
  .sidebar { position: sticky; top: 90px; align-self: start; }
  .toc-card {
    background: var(--white); border: 1px solid var(--parchment);
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    overflow: hidden;
  }
  .toc-head {
    padding: 20px 22px 16px; border-bottom: 1px solid var(--linen);
  }
  .toc-head .label {
    font-family: 'Lora', serif; text-transform: uppercase; letter-spacing: 0.2em;
    font-size: 0.68rem; color: var(--gold); margin-bottom: 4px;
  }
  .toc-head h2 {
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    font-size: 1.35rem; color: var(--forest);
  }
  .search-wrap { padding: 16px 18px 4px; }
  .search-box {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--parchment); border-radius: var(--radius);
    padding: 9px 12px; background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  .search-box:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,158,126,0.15); }
  .search-box svg { flex: none; color: var(--text-light); }
  .search-box input {
    border: none; outline: none; background: transparent; width: 100%;
    font-family: 'Lora', serif; font-size: 0.92rem; color: var(--text);
  }
  .search-box input::placeholder { color: var(--text-light); }
  .search-meta {
    padding: 6px 20px 4px; font-size: 0.78rem; color: var(--text-light); min-height: 22px;
  }
  .search-meta b { color: var(--forest); font-weight: 600; }

  nav.toc { padding: 6px 10px 16px; max-height: 52vh; overflow-y: auto; }
  nav.toc::-webkit-scrollbar { width: 6px; }
  nav.toc::-webkit-scrollbar-thumb { background: var(--parchment); border-radius: 3px; }
  nav.toc ol { list-style: none; counter-reset: chap; }
  nav.toc li a {
    display: block; padding: 9px 12px 9px 14px; border-left: 2px solid transparent;
    color: var(--text-light); font-size: 0.92rem; line-height: 1.4;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: all var(--transition);
  }
  nav.toc li a .num {
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    color: var(--gold); margin-right: 8px; font-size: 0.95rem;
  }
  nav.toc li a:hover { background: var(--linen); color: var(--forest); }
  nav.toc li a.active {
    background: var(--linen); color: var(--forest); border-left-color: var(--gold);
    font-weight: 500;
  }
  nav.toc li.hidden { display: none; }
  nav.toc li.upcoming a { opacity: 0.7; font-style: italic; }

  /* Main reading column */
  .layout main { max-width: 720px; padding-bottom: 100px; }
  .article-intro {
    font-size: 1.15rem; color: var(--text-light); font-style: italic;
    border-left: 3px solid var(--sage-light); padding-left: 20px; margin-bottom: 48px;
  }

  section.chapter { margin-bottom: 64px; scroll-margin-top: 90px; }
  section.chapter > .chap-eyebrow {
    font-family: 'Lora', serif; text-transform: uppercase; letter-spacing: 0.2em;
    font-size: 0.7rem; color: var(--gold); margin-bottom: 10px;
  }
  section.chapter h2 {
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.7rem); color: var(--forest); line-height: 1.1;
    margin-bottom: 22px;
  }
  section.chapter p { margin-bottom: 22px; font-size: 1.07rem; }
  section.chapter p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    font-size: 3.4rem; line-height: 0.8; float: left;
    margin: 6px 12px 0 0; color: var(--forest);
  }
  /* drop cap only on first chapter for restraint */
  section.chapter:not(.lead) p:first-of-type::first-letter {
    font-size: inherit; float: none; margin: 0; font-family: inherit; font-weight: inherit; color: inherit;
  }

  blockquote {
    margin: 34px 0; padding: 22px 28px;
    background: var(--linen); border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.4rem; line-height: 1.4; color: var(--forest);
  }
  blockquote cite {
    display: block; margin-top: 12px; font-family: 'Lora', serif; font-style: normal;
    font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light);
  }

  .upcoming-note {
    padding: 26px 28px; border: 1px dashed var(--sage); border-radius: var(--radius);
    background: rgba(122,158,126,0.06); color: var(--text-light); font-style: italic;
  }
  .upcoming-note strong { color: var(--forest); font-style: normal; }

  .chap-divider { display: flex; align-items: center; gap: 16px; margin: 0 0 64px; }
  .chap-divider .line { flex: 1; height: 1px; background: var(--parchment); }
  .chap-divider .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-muted); }

  /* search highlight */
  mark {
    background: var(--gold-muted); color: var(--forest-deep);
    padding: 0 2px; border-radius: 2px;
  }

  /* Footer */
  .foot-inner {
    max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap;
    gap: 32px; justify-content: space-between; align-items: flex-start;
  }
  footer .brand { color: var(--cream); }
  footer p { font-size: 0.92rem; max-width: 420px; color: rgba(184,212,186,0.85); }
  footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 32px; padding-top: 20px; font-size: 0.8rem; color: rgba(184,212,186,0.6); }

  /* Mobile */
  .toc-toggle { display: none; }
  @media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: 0; }
    .nav-links { display: none; }
    .sidebar {
      position: static; margin-bottom: 32px;
    }
    .toc-toggle {
      display: flex; align-items: center; justify-content: space-between;
      width: 100%; cursor: pointer; background: none; border: none;
      font-family: 'Lora', serif; font-size: 1rem;
    }
    nav.toc { max-height: none; }
    nav.toc.collapsed { display: none; }
    .toc-card.collapsed .search-wrap, .toc-card.collapsed .search-meta { display: none; }
    .layout main { max-width: 100%; }
  }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }

  /* ── Canonical shared chrome (matches Hjem + Refleksjoner) ── */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
  header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 24px 0; transition: background var(--transition), box-shadow var(--transition), padding var(--transition); }
  header .container { display: flex; justify-content: space-between; align-items: center; }
  header.scrolled { background: rgba(250,246,240,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(28,56,41,0.08); padding: 14px 0; }
  .site-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--cream); letter-spacing: 0.02em; transition: color var(--transition); }
  header.scrolled .site-name { color: var(--forest); }
  .site-name:hover { color: var(--gold); }
  .nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; z-index: 110; }
  .nav-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: var(--transition); display: block; }
  header.scrolled .nav-toggle span { background: var(--forest); }
  header nav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; }
  header nav a { font-family: 'Lora', serif; font-size: 0.9rem; color: rgba(250,246,240,0.85); position: relative; padding: 4px 0; transition: color var(--transition); }
  header.scrolled nav a { color: var(--text-light); }
  header nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--transition); }
  header nav a:hover, header nav a.active { color: var(--cream); }
  header.scrolled nav a:hover, header.scrolled nav a.active { color: var(--forest); }
  header nav a:hover::after, header nav a.active::after { width: 100%; }
  footer { background: var(--charcoal); color: rgba(250,246,240,0.6); padding: clamp(48px,8vw,80px) 0 32px; margin-top: 0; }
  .footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(32px,5vw,64px); margin-bottom: 48px; }
  .footer__col h3 { font-family: 'Cormorant Garamond', serif; color: var(--cream); font-size: 1.2rem; margin-bottom: 1.25rem; font-weight: 400; }
  .footer__col p { font-size: 0.9rem; line-height: 1.7; }
  .footer__contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; transition: color var(--transition); }
  .footer__contact-item:hover { color: var(--cream); }
  .footer__contact-icon { width: 36px; height: 36px; border: 1px solid rgba(122,158,126,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; transition: all var(--transition); }
  .footer__contact-item:hover .footer__contact-icon { border-color: var(--gold-muted); color: var(--gold-muted); }
  .footer__divider { border: none; height: 1px; background: rgba(122,158,126,0.12); margin-bottom: 24px; }
  .footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(250,246,240,0.35); }
  .footer__bottom a { color: rgba(250,246,240,0.35); transition: color var(--transition); }
  .footer__bottom a:hover { color: var(--gold-muted); }
  @media (max-width: 700px) {
    .nav-toggle { display: flex; }
    header nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--cream); padding: 100px 40px 40px; box-shadow: -8px 0 40px rgba(0,0,0,0.12); transition: right var(--transition); z-index: 105; }
    header nav.open { right: 0; }
    header nav ul { flex-direction: column; gap: 24px; align-items: flex-start; }
    header nav a { font-size: 1.1rem; color: var(--text-light); }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  }


/* ============================================================
   SOURCE: Bibeltema / Topic listing (topic-link, search)
   (duplicate :root removed)
   ============================================================ */

/* ═══════════════════════════════════════════
       RESET & FOUNDATION
       ═══════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: 'Lora', Georgia, 'Times New Roman', serif;
      color: var(--text);
      background: var(--cream);
      line-height: 1.75;
      overflow-x: hidden;
    }

    ::selection {
      background: var(--sage-light);
      color: var(--forest-deep);
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; display: block; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      background: var(--forest);
      color: var(--cream);
      padding: 8px 16px;
      z-index: 1000;
      border-radius: var(--radius);
      font-size: 0.875rem;
    }
    .skip-link:focus { top: 16px; }

    /* ═══════════════════════════════════════════
       TYPOGRAPHY
       ═══════════════════════════════════════════ */
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
      font-weight: 400;
      line-height: 1.2;
      color: var(--charcoal);
    }

    h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -0.02em; }
    h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
    h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
    h4 { font-size: 1.1rem; font-weight: 600; }

    p { max-width: 65ch; }

    .section-label {
      font-family: 'Lora', serif;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::before {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--gold-muted);
    }

    /* ═══════════════════════════════════════════
       LAYOUT
       ═══════════════════════════════════════════ */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 clamp(20px, 4vw, 48px);
    }

    .container--narrow { max-width: 800px; }
    .container--wide { max-width: 1400px; }

    section {
      padding: clamp(60px, 10vw, 120px) 0;
    }

    /* ═══════════════════════════════════════════
       HEADER / NAVIGATION
       ═══════════════════════════════════════════ */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
      padding: 24px 0;
    }

    header.scrolled {
      background: rgba(250, 246, 240, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 0 rgba(28, 56, 41, 0.08);
      padding: 14px 0;
    }

    header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .site-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem;
      font-weight: 500;
      color: var(--cream);
      letter-spacing: 0.02em;
      transition: color var(--transition);
    }
    header.scrolled .site-name { color: var(--forest); }
    .site-name:hover { color: var(--gold); }

    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      z-index: 110;
    }
    .nav-toggle span {
      width: 24px;
      height: 1.5px;
      background: var(--cream);
      transition: var(--transition);
      display: block;
    }
    header.scrolled .nav-toggle span { background: var(--forest); }

    nav ul {
      list-style: none;
      display: flex;
      gap: clamp(20px, 3vw, 40px);
      align-items: center;
    }

    nav a {
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: rgba(250, 246, 240, 0.85);
      position: relative;
      padding: 4px 0;
      transition: color var(--transition);
    }
    header.scrolled nav a { color: var(--text-light); }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--gold);
      transition: width var(--transition);
    }

    nav a:hover, nav a.active {
      color: var(--cream);
    }
    header.scrolled nav a:hover, header.scrolled nav a.active {
      color: var(--forest);
    }
    nav a:hover::after, nav a.active::after {
      width: 100%;
    }

    /* ═══════════════════════════════════════════
       HERO
       ═══════════════════════════════════════════ */
    .hero {
      min-height: 70vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      background: var(--forest-deep);
    }

    .hero--full { min-height: 100vh; }

    .hero__bg {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .hero__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
      opacity: 0.55;
      filter: saturate(0.7);
    }

    .hero__overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(180deg,
          rgba(15, 35, 24, 0.4) 0%,
          rgba(15, 35, 24, 0.15) 40%,
          rgba(15, 35, 24, 0.3) 70%,
          rgba(15, 35, 24, 0.85) 100%
        );
    }

    .hero__content {
      position: relative;
      z-index: 3;
      padding-top: 100px;
    }

    .hero__title {
      color: var(--cream);
      font-size: clamp(3rem, 8vw, 6rem);
      font-weight: 300;
      line-height: 1.05;
      margin-bottom: 1.5rem;
      letter-spacing: -0.03em;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 1s 0.3s ease-out forwards;
    }

    .hero__subtitle {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      font-weight: 300;
      font-style: italic;
      color: var(--sage-light);
      max-width: 500px;
      line-height: 1.6;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 1s 0.6s ease-out forwards;
    }

    .hero__name {
      font-family: 'Lora', serif;
      font-size: 0.8rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold-muted);
      margin-top: 2.5rem;
      opacity: 0;
      animation: fadeUp 1s 0.9s ease-out forwards;
    }

    .hero__scroll {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--sage-light);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      opacity: 0;
      animation: fadeUp 1s 1.2s ease-out forwards;
    }

    .hero__scroll-line {
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, var(--gold-muted), transparent);
      animation: scrollPulse 2s ease-in-out infinite;
    }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes scrollPulse {
      0%, 100% { opacity: 0.4; transform: scaleY(1); }
      50% { opacity: 1; transform: scaleY(1.2); }
    }

    /* ═══════════════════════════════════════════
       BUTTONS
       ═══════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      padding: 14px 32px;
      border-radius: var(--radius);
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }

    .btn--primary {
      background: var(--forest);
      color: var(--cream);
    }
    .btn--primary:hover {
      background: var(--forest-deep);
      transform: translateY(-2px);
      box-shadow: var(--shadow-card);
    }

    .btn--outline {
      border: 1px solid var(--forest);
      color: var(--forest);
      background: transparent;
    }
    .btn--outline:hover {
      background: var(--forest);
      color: var(--cream);
      transform: translateY(-2px);
    }

    .btn--gold {
      background: var(--gold);
      color: var(--forest-deep);
      font-weight: 600;
    }
    .btn--gold:hover {
      background: var(--gold-muted);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(196, 151, 59, 0.3);
    }

    .btn__arrow {
      transition: transform var(--transition);
      font-size: 1.1em;
    }
    .btn:hover .btn__arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════
       SECTION DIVIDER
       ═══════════════════════════════════════════ */
    .page-divider {
      width: 100%;
      padding: 80px 0;
      background: var(--linen);
      text-align: center;
      border-top: 1px solid var(--parchment);
      border-bottom: 1px solid var(--parchment);
    }

    .page-divider h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.5rem, 3vw, 2rem);
      color: var(--text-light);
      font-weight: 300;
      font-style: italic;
    }

    /* ═══════════════════════════════════════════
       BIBELTEMA SECTION (Full page)
       ═══════════════════════════════════════════ */
    .bibeltema-page {
      background: var(--cream);
    }

    .bibeltema-intro {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: clamp(40px, 6vw, 80px);
      align-items: center;
      margin-bottom: clamp(48px, 8vw, 80px);
    }

    .bibeltema-intro__image-wrapper {
      position: relative;
    }

    .bibeltema-intro__image-wrapper::before {
      content: '';
      position: absolute;
      top: -16px;
      left: -16px;
      right: 16px;
      bottom: 16px;
      border: 1px solid var(--gold-muted);
      border-radius: var(--radius);
      opacity: 0.4;
    }

    .bibeltema-intro__image {
      border-radius: var(--radius);
      box-shadow: var(--shadow-elevated);
      position: relative;
      z-index: 1;
      aspect-ratio: 4/3;
      object-fit: cover;
    }

    .bibeltema-intro__text h2 {
      margin-bottom: 1.5rem;
    }

    .bibeltema-intro__text p {
      color: var(--text-light);
      margin-bottom: 1rem;
      font-size: 1.05rem;
    }

    /* Topic grid */
    .topics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }

    .topic-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 18px;
      background: var(--white);
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      font-weight: 500;
      color: var(--text);
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
    }

    .topic-link::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--gold);
      transform: scaleY(0);
      transition: transform var(--transition);
    }

    .topic-link:hover {
      background: var(--forest);
      color: var(--cream);
      border-color: var(--forest);
      transform: translateX(4px);
    }

    .topic-link:hover::before {
      transform: scaleY(1);
    }

    .topic-link__icon {
      font-size: 0.7em;
      color: var(--sage);
      transition: color var(--transition);
      flex-shrink: 0;
    }

    .topic-link:hover .topic-link__icon { color: var(--gold-muted); }

    .topic-link.hidden { display: none; }

    /* Topic search filter */
    .topics-search {
      margin-bottom: 24px;
      max-width: 360px;
    }

    .topics-search input {
      width: 100%;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      padding: 12px 16px 12px 40px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6860' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 14px center no-repeat;
      color: var(--text);
      outline: none;
      transition: border-color var(--transition);
    }

    .topics-search input:focus { border-color: var(--sage); }

    .topics-count {
      font-size: 0.8rem;
      color: var(--text-light);
      font-style: italic;
      margin-top: 16px;
    }

    /* Quote banner */
    .quote-banner {
      background: var(--forest-deep);
      color: var(--cream);
      padding: clamp(60px, 8vw, 100px) 0;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .quote-banner::before {
      content: '\201C';
      position: absolute;
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      font-family: 'Cormorant Garamond', serif;
      font-size: 20rem;
      color: var(--sage);
      opacity: 0.06;
      line-height: 1;
      pointer-events: none;
    }

    .quote-banner__text {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.4;
      margin-bottom: 1.5rem;
      position: relative;
      z-index: 1;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .quote-banner__ref {
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      color: var(--gold-muted);
      letter-spacing: 0.1em;
      position: relative;
      z-index: 1;
    }

    /* ═══════════════════════════════════════════
       TROSHISTORIE SECTION (Full page)
       ═══════════════════════════════════════════ */
    .troshistorie-hero {
      background: var(--forest-deep);
      color: var(--cream);
      min-height: 50vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .troshistorie-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 50%, rgba(122, 158, 126, 0.08), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(196, 151, 59, 0.05), transparent 40%);
    }

    .troshistorie-hero__content {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 700px;
      margin: 0 auto;
      padding: 100px 0 60px;
    }

    .troshistorie-hero__content .section-label {
      justify-content: center;
      color: var(--gold-muted);
    }
    .troshistorie-hero__content .section-label::before {
      background: var(--gold-muted);
      opacity: 0.4;
    }

    .troshistorie-hero__content h1 {
      color: var(--cream);
      margin-bottom: 1rem;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 1s 0.3s ease-out forwards;
    }

    .troshistorie-hero__subtitle {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      font-weight: 300;
      font-style: italic;
      color: var(--sage-light);
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 1s 0.6s ease-out forwards;
    }

    /* Table of contents */
    .toc {
      background: var(--linen);
      padding: clamp(48px, 8vw, 80px) 0;
    }

    .toc__header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .toc__header h2 {
      font-size: clamp(1.4rem, 3vw, 2rem);
    }

    .toc__chips {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      max-width: 900px;
      margin: 0 auto;
    }

    .toc__chip {
      padding: 8px 16px;
      border: 1px solid var(--parchment);
      border-radius: 20px;
      font-size: 0.8rem;
      color: var(--text-light);
      transition: all var(--transition);
      background: var(--white);
    }

    .toc__chip:hover {
      border-color: var(--gold-muted);
      color: var(--gold);
      background: rgba(196, 151, 59, 0.06);
    }

    /* Article body */
    .article {
      background: var(--cream);
      padding: clamp(60px, 10vw, 120px) 0;
    }

    .article__body {
      max-width: 700px;
      margin: 0 auto;
    }

    .article__body h2 {
      margin-top: 3rem;
      margin-bottom: 1.5rem;
      padding-top: 2rem;
      border-top: 1px solid var(--parchment);
    }

    .article__body h2:first-child {
      margin-top: 0;
      padding-top: 0;
      border-top: none;
    }

    .article__body h3 {
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .article__body p {
      margin-bottom: 1.5rem;
      font-size: 1.05rem;
      line-height: 1.85;
      color: var(--text);
    }

    .article__body blockquote {
      margin: 2rem 0;
      padding: 1.5rem 2rem;
      border-left: 3px solid var(--gold-muted);
      background: var(--linen);
      border-radius: 0 var(--radius) var(--radius) 0;
    }

    .article__body blockquote p {
      font-style: italic;
      color: var(--text-light);
      font-size: 1rem;
      margin-bottom: 0;
    }

    .article__drop-cap::first-letter {
      font-family: 'Cormorant Garamond', serif;
      font-size: 4rem;
      font-weight: 400;
      float: left;
      line-height: 0.8;
      margin-right: 12px;
      margin-top: 6px;
      color: var(--forest);
    }

    /* ═══════════════════════════════════════════
       SEARCH (shared component)
       ═══════════════════════════════════════════ */
    .search-box {
      display: flex;
      max-width: 400px;
      margin: 0 auto;
      border: 1px solid var(--parchment);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      transition: border-color var(--transition);
    }

    .search-box:focus-within {
      border-color: var(--sage);
    }

    .search-box input {
      flex: 1;
      border: none;
      padding: 12px 16px;
      font-family: 'Lora', serif;
      font-size: 0.9rem;
      background: transparent;
      color: var(--text);
      outline: none;
    }

    .search-box input::placeholder {
      color: var(--text-light);
      font-style: italic;
    }

    .search-box button {
      padding: 12px 20px;
      background: var(--forest);
      color: var(--cream);
      font-size: 0.85rem;
      font-family: 'Lora', serif;
      transition: background var(--transition);
    }

    .search-box button:hover { background: var(--forest-deep); }

    /* ═══════════════════════════════════════════
       FOOTER
       ═══════════════════════════════════════════ */
    footer {
      background: var(--charcoal);
      color: rgba(250, 246, 240, 0.6);
      padding: clamp(48px, 8vw, 80px) 0 32px;
    }

    .footer__grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: clamp(32px, 5vw, 64px);
      margin-bottom: 48px;
    }

    .footer__col h3 {
      font-family: 'Cormorant Garamond', serif;
      color: var(--cream);
      font-size: 1.2rem;
      margin-bottom: 1.25rem;
      font-weight: 400;
    }

    .footer__col p {
      font-size: 0.9rem;
      line-height: 1.7;
    }

    .footer__contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 0.9rem;
      transition: color var(--transition);
    }

    .footer__contact-item:hover { color: var(--cream); }

    .footer__contact-icon {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(122, 158, 126, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
      transition: all var(--transition);
    }

    .footer__contact-item:hover .footer__contact-icon {
      border-color: var(--gold-muted);
      color: var(--gold-muted);
    }

    .footer__divider {
      border: none;
      height: 1px;
      background: rgba(122, 158, 126, 0.12);
      margin-bottom: 24px;
    }

    .footer__bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: rgba(250, 246, 240, 0.35);
    }

    .footer__bottom a {
      color: rgba(250, 246, 240, 0.35);
      transition: color var(--transition);
    }
    .footer__bottom a:hover { color: var(--gold-muted); }

    /* ═══════════════════════════════════════════
       SCROLL ANIMATIONS
       ═══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* ═══════════════════════════════════════════
       DECORATIVE ELEMENTS
       ═══════════════════════════════════════════ */
    .ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 2rem 0;
      color: var(--gold-muted);
      opacity: 0.5;
    }

    .ornament__line {
      width: 48px;
      height: 1px;
      background: currentColor;
    }

    .ornament__diamond {
      width: 6px;
      height: 6px;
      border: 1px solid currentColor;
      transform: rotate(45deg);
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════════════ */
    @media (max-width: 900px) {
      .bibeltema-intro {
        grid-template-columns: 1fr;
      }

      .bibeltema-intro__image-wrapper {
        max-width: 400px;
        margin: 0 auto;
      }

      .footer__grid {
        grid-template-columns: 1fr;
      }

      .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      }
    }

    @media (max-width: 700px) {
      .nav-toggle {
        display: flex;
      }

      nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        padding: 100px 40px 40px;
        box-shadow: -8px 0 40px rgba(0,0,0,0.12);
        transition: right var(--transition);
        z-index: 105;
      }

      nav.open { right: 0; }

      nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
      }

      nav a {
        font-size: 1.1rem;
        color: var(--text-light) !important;
      }

      nav a:hover, nav a.active {
        color: var(--forest) !important;
      }

      .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }
    }

/* ── Pixel-audit overrides (front-page parity with prototype) ── */
.home .hero { min-height: 100vh; }
.video-embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: 0; }
.video-embed { background-color: var(--forest-deep); }

/* Fix: troshistorie hero title must be light on the dark hero (was inheriting charcoal) */
.hero h1, .hero .subtitle, .hero .lede, .hero .article-intro { color: var(--cream); }
.hero .subtitle { color: var(--sage-light); }

/* Troshistorie fixes: shorter hero + remove generic section padding on chapters */
body.page-id-6 .hero { min-height: auto; }
section.chapter { padding-top: 0; }
.article-intro { margin-bottom: 28px; }

/* Hero primary CTA */
.hero__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; opacity: 0; transform: translateY(16px); animation: fadeUp 1s 0.8s ease-out forwards; }

/* No drop-cap on plain pages (bibeltema topic pages with verse lists) */
body.page .article__content > p:first-of-type::first-letter { font-size: inherit; float: none; margin: 0; font-family: inherit; font-weight: inherit; line-height: inherit; color: inherit; }

/* ── Refleksjoner archive: Bokindeks (memoir table-of-contents, image-less) ── */
.ix { border-top: 1px solid var(--parchment); margin-bottom: 8px; }
.ix-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num title date" "num excerpt excerpt"; column-gap: 24px; align-items: baseline; padding: 26px 6px 22px; border-bottom: 1px solid var(--parchment); text-decoration: none; color: inherit; transition: background var(--transition), padding var(--transition); }
.ix-row:hover { background: var(--white); padding-left: 16px; padding-right: 16px; }
.ix-num { grid-area: num; font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 500; color: var(--gold); line-height: 1; min-width: 2.2ch; transition: color var(--transition); }
.ix-row:hover .ix-num { color: var(--forest); }
.ix-title { grid-area: title; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.75rem; color: var(--forest); line-height: 1.1; }
.ix-date { grid-area: date; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; padding-top: 6px; }
.ix-excerpt { grid-area: excerpt; color: var(--text-light); font-size: 0.97rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--transition), opacity var(--transition), margin var(--transition); }
.ix-row:hover .ix-excerpt { max-height: 100px; opacity: 1; margin-top: 10px; }
@media (max-width: 760px) {
  .ix-row { grid-template-columns: auto 1fr; grid-template-areas: "num title" "num date" "num excerpt"; }
  .ix-date { padding-top: 4px; }
  .ix-excerpt { max-height: none; opacity: 1; margin-top: 8px; }
}

/* Single reflection has no dark hero — header must be solid/dark-text from load (not just on scroll) */
body.single #site-header { background: rgba(250,246,240,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(28,56,41,0.08); }
body.single #site-header .site-name { color: var(--forest); }
body.single #site-header nav a { color: var(--text-light); }
body.single #site-header nav a:hover, body.single #site-header nav a.active { color: var(--forest); }
body.single #site-header .nav-toggle span { background: var(--forest); }
