/*
 * Gråt Brændbart Theme
 * Warm, sophisticated podcast website design
 */

/* ========================================
   CSS Variables
   ======================================== */

:root {
  --gold: #DCA54A;
  --gold-hover: #D09A40;
  --navy: #0F172A;
  --body-text: #4A4A4A;
  --cream: #FAF5E5;
  --white: #FFFFFF;
  --light-tan: #F0E6C5;
  --dark-brown: #141004;
  --border: #E5DCC8;

  --font-heading: 'Sora', sans-serif;
  --font-body: 'Lora', serif;

  --container: 1200px;
  --narrow: 960px;
  --radius-pill: 24px;
  --radius-card: 8px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--cream);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-text);
}

p {
  margin-bottom: 1rem;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--narrow);
}

.section {
  padding: 3rem 0;
}

.section--cream {
  background-color: var(--cream);
}

.section--white {
  background-color: var(--white);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--gold {
  background-color: var(--gold);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--gold:hover {
  background-color: var(--gold-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 165, 74, 0.35);
}

.subscribe-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscribe-buttons--center {
  text-align: center;
}

.subscribe-buttons--center .subscribe-buttons__row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscribe-buttons h6 {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background-color: var(--cream);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  max-width: none;
  padding: 0;
}

.hero__text {
  text-align: left;
  padding: 5rem 4rem 2rem 2rem;
}

.hero h1 {
  font-size: 4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--body-text);
  margin-bottom: 2rem;
}

.hero__description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero__motto {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero__subscribe {
  margin-top: 1rem;
}

.hero__subscribe h6 {
  margin-bottom: 1rem;
}

.hero__artwork {
  height: 100%;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ========================================
   Section Titles
   ======================================== */

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

.section__title a {
  color: var(--navy);
}

.section__title a:hover {
  color: var(--gold);
}

/* ========================================
   Episode Grid & Cards
   ======================================== */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.episode-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.episode-card__image {
  display: block;
}

.episode-artwork {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.episode-card__body {
  padding: 1.5rem;
}

.episode-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.episode-card__title a {
  color: var(--navy);
}

.episode-card__title a:hover {
  color: var(--gold);
}

.episode-card__excerpt {
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.episode-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--body-text);
  opacity: 0.7;
  font-family: var(--font-heading);
}

/* Full-width episode card (on episodes archive page) */
.episode-card--full {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.episode-card--full .episode-artwork {
  height: 100%;
}

.episode-card--full .episode-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   Episode Sections (Episodes Archive)
   ======================================== */

.episode-section {
  margin-bottom: 3rem;
}

.episode-section--featured {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.episode-section h2 {
  margin-bottom: 2rem;
}

.episode-section__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.episode-section__title a {
  color: var(--navy);
}

.episode-section__title a:hover {
  color: var(--gold);
}

.episode-section__body {
  line-height: 1.8;
}

.episode-section__item {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.episode-section__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ========================================
   Episode Listing (Homepage)
   ======================================== */

.episode-listing {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.episode-listing:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.episode-listing--latest {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.episode-listing__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.episode-listing__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.episode-listing__title a {
  color: var(--navy);
}

.episode-listing__title a:hover {
  color: var(--gold);
}

.episode-listing__meta {
  font-size: 0.8125rem;
  font-family: var(--font-heading);
  color: var(--body-text);
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

.episode-listing__body {
  line-height: 1.8;
}

/* Compact episode (older episodes with artwork) */
.episode-listing--compact {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.episode-listing__artwork {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.episode-listing__artwork img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-listing__artwork:hover img {
  transform: scale(1.03);
}

.episode-listing__excerpt {
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.episode-listing__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
}

.episode-listing__link:hover {
  color: var(--gold-hover);
}

@media (max-width: 544px) {
  .episode-listing--compact {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
  }
}

/* ========================================
   Single Episode Page
   ======================================== */

.single-episode__header {
  text-align: center;
  margin-bottom: 3rem;
}

.single-episode__artwork {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.single-episode__artwork img {
  border-radius: var(--radius-card);
  width: 100%;
}

.single-episode__excerpt {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--body-text);
  margin-bottom: 1.5rem;
}

.single-episode__meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  color: var(--body-text);
  margin-bottom: 1.5rem;
}

.single-episode__body {
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* ========================================
   Content Area (shared prose styling)
   ======================================== */

.content-area p {
  margin-bottom: 1.25rem;
}

.content-area a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-area h2,
.content-area h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-area ul,
.content-area ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content-area li {
  margin-bottom: 0.5rem;
}

.content-area blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--body-text);
}

/* Spotify / podcast embeds */
.content-area .post__iframe {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 280px;
}

.content-area .post__iframe iframe {
  max-width: 280px;
  border-radius: 12px;
}

.content-area h6 {
  clear: both;
}

/* "Tidligere episoder" heading before first compact episode */
.episode-listing--latest + .episode-listing--compact::before {
  content: 'Tidligere episoder';
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.content-area::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 544px) {
  .content-area .post__iframe {
    float: none;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
  }

  .content-area .post__iframe iframe {
    max-width: 100%;
  }
}

/* Tables (from WordPress import — host profiles) */
.content-area table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin-bottom: 2rem;
}

.content-area table,
.content-area table tr,
.content-area table td,
.content-area table th,
.content-area table tbody {
  border: none !important;
}

.content-area table td,
.content-area table th {
  border: none;
  padding: 0.75rem;
  vertical-align: middle;
}

.content-area table td:first-child {
  width: 25% !important;
  text-align: center;
}

.content-area table img {
  border-radius: 50%;
  max-width: 220px;
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin: 0 auto;
}

@media (max-width: 544px) {
  .content-area table,
  .content-area table tbody,
  .content-area table tr,
  .content-area table td {
    display: block;
    width: 100% !important;
  }

  .content-area table td {
    padding: 0.75rem 0;
    text-align: center;
  }

  .content-area table img {
    width: 200px;
    height: 200px;
  }
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Offset for header on non-hero pages */
.page-content,
.posts-list,
.tag-content {
  padding-top: 4rem;
}

/* ========================================
   Hosts Grid (Homepage preview)
   ======================================== */

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.host-card {
  text-align: center;
}

.host-card__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  object-fit: cover;
}

.host-card__name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.host-card__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.host-card__social a {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
}

.host-card__social a:hover {
  color: var(--gold-hover);
}

/* ========================================
   Host Profiles (About page, detailed)
   ======================================== */

.hosts-detail {
  margin-top: 4rem;
}

.host-profile {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.host-profile__number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 600;
  color: var(--light-tan);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.host-profile__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
}

.host-profile__name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.host-profile__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.host-profile__social a {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
}

.host-profile__social a:hover {
  color: var(--gold-hover);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background-color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--body-text);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.copyright {
  text-align: center;
  color: var(--body-text);
  opacity: 0.6;
  font-size: 0.8125rem;
  font-family: var(--font-heading);
}

/* ========================================
   Utility
   ======================================== */

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Responsive — Tablet (max-width: 921px)
   ======================================== */

@media (max-width: 921px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Mobile nav */
  .site-header {
    background-color: var(--cream);
    position: relative;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
  }

  .header-inner {
    justify-content: flex-end;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__text {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    order: 2;
  }

  .hero__artwork {
    order: 1;
    max-height: 50vh;
  }

  .hero__subscribe .subscribe-buttons {
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-nav a::after {
    display: none;
  }

  /* Episode grid */
  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .episode-card--full {
    grid-template-columns: 160px 1fr;
  }
}

/* ========================================
   Responsive — Mobile (max-width: 544px)
   ======================================== */

@media (max-width: 544px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero__tagline {
    font-size: 1.1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  /* Stack episode cards */
  .episode-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .episode-card--full {
    grid-template-columns: 1fr;
  }

  .episode-card--full .episode-artwork {
    aspect-ratio: 1;
  }

  /* Hosts */
  .hosts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .host-card__photo {
    width: 160px;
    height: 160px;
  }

  .host-profile__photo {
    width: 180px;
    height: 180px;
  }

  .host-profile__number {
    font-size: 3.5rem;
  }

  /* Subscribe buttons stack */
  .subscribe-buttons,
  .subscribe-buttons__row {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Footer */
  .footer-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  /* Featured episode */
  .featured-episode__artwork {
    max-width: 100%;
  }

  .single-episode__artwork {
    max-width: 100%;
  }
}