/*
Theme Name: Vulpes
Theme URI: https://www.vulpes.dk/
Author: Michael Kirkegaard
Description: A cinematic one-page WordPress theme for Vulpes, built around Rævejagt with a dark forest hero, animated 3D book cover, author section, and book feature strip.
Version: 1.2.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vulpes
Tags: custom-homepage, one-column, editor-style, featured-images
*/

:root {
  --vulpes-red: #c52c27;
  --vulpes-red-dark: #8d1716;
  --vulpes-wine: #711c1a;
  --vulpes-cream: #f4efe6;
  --vulpes-cream-2: #ebe4d8;
  --vulpes-text: #171717;
  --vulpes-muted: #5e5550;
  --vulpes-dark: #090a0a;
  --vulpes-dark-2: #111111;
  --vulpes-border: rgba(197, 44, 39, .45);
  --content-width: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--vulpes-text);
  background: var(--vulpes-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }

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

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

p {
  margin: 0 0 1rem;
}




.section-title,
.hero-title,
.author-name,
.book-title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.vulpes-wrap {
  width: min(var(--content-width), calc(100% - 56px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: #111;
}

.skip-link:focus { left: 0; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 26px 0 0;
  color: #fff;
}

.header-inner {
  width: min(1180px, calc(100% - 52px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  width: 185px;
  max-width: 34vw;
}

.logo-link img {
  width: 100%;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.45));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: rgba(255,255,255,.92);
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  color: var(--vulpes-red);
}

.site-nav a.is-active::after,
.site-nav a:hover::after,
.site-nav a:focus::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -23px;
  width: 86px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vulpes-red), transparent);
}

.back-nav {
  gap: 0;
}

.back-nav a::before,
.footer-back a::before {
  content: "←";
  margin-right: .65em;
}

.mobile-menu-button {
  display: none;
  appearance: none;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.35);
  color: #fff;
  width: 46px;
  height: 42px;
  border-radius: 0;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 762px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-image:
    radial-gradient(circle at 68% 42%, rgba(151,55,20,.22), transparent 31%),
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.66) 30%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.75) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.10) 44%, rgba(0,0,0,.38) 100%),
    url("assets/images/forest-background.png");
  background-size: cover;
  background-position: center center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), transparent 34%, rgba(0,0,0,.23)),
    radial-gradient(circle at center, transparent 0 48%, rgba(0,0,0,.78) 100%);
  pointer-events: none;
}

.hero-inner {
  width: min(1180px, calc(100% - 52px));
  min-height: 762px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(320px, .95fr);
  align-items: center;
  gap: 36px;
  padding: 124px 0 56px;
}

.hero-copy {
  max-width: 520px;
  padding-top: 58px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(3rem, 4.4vw, 5rem);
  color: #fbf7ef;
  text-shadow: 0 8px 35px rgba(0,0,0,.36);
}

.hero-copy p {
  max-width: 460px;
  margin-bottom: 32px;
  color: rgba(255,255,255,.91);
  font-size: 17px;
  line-height: 1.58;
}

.hero-book-wrap {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1250px;
}

.hero-book-wrap::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 20%;
  left: 13%;
  bottom: 7%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.74), transparent 66%);
  filter: blur(10px);
}

.hero-book {
  width: clamp(330px, 33vw, 475px);
  transform-origin: 50% 72%;
  transform: rotateY(-4deg) rotateX(1deg) translateY(16px);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.58));
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .55s ease;
  will-change: transform;
}

.hero-book:hover,
.hero-book:focus {
  transform: rotateY(-13deg) rotateX(2.5deg) translateY(7px) translateX(-8px) scale(1.025);
  filter: drop-shadow(0 34px 42px rgba(0,0,0,.68));
}

.vulpes-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 27px;
  border: 1px solid transparent;
  background: var(--vulpes-red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase;
  box-shadow: 0 16px 26px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.vulpes-button::after {
  content: "→";
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.vulpes-button:hover,
.vulpes-button:focus {
  transform: translateY(-2px);
  background: #d53631;
}

.vulpes-button.button-outline {
  background: transparent;
  color: var(--vulpes-wine);
  border-color: var(--vulpes-border);
  box-shadow: none;
}

.vulpes-button.button-outline:hover,
.vulpes-button.button-outline:focus {
  background: var(--vulpes-red);
  border-color: var(--vulpes-red);
  color: #fff;
}

.welcome-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 42%, rgba(110,80,54,.12), transparent 36%),
    linear-gradient(90deg, #f5f0e8, #eee6d9);
  color: #1b1715;
  padding: 45px 0 47px;
}

.welcome-section .vulpes-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  min-height: 290px;
}

.logo-watermark {
  position: absolute;
  right: 36px;
  top: 50%;
  width: min(510px, 45vw);
  transform: translateY(-50%);
  opacity: .075;
  pointer-events: none;
}

.section-title {
  margin: 0 0 14px;
  color: var(--vulpes-wine);
  font-size: clamp(2.15rem, 3.2vw, 3.3rem);
}

.welcome-copy p {
  max-width: 480px;
  color: #221c18;
  font-size: 16px;
  line-height: 1.58;
}

.welcome-copy .vulpes-button { margin-top: 8px; }

.author-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 50%, rgba(150,55,24,.08), transparent 25%),
    linear-gradient(90deg, #0b0c0c 0%, #101010 55%, #050505 100%);
  color: #fff;
  padding: 34px 0 38px;
}

.author-section::after {
  content: "";
  position: absolute;
  right: -3vw;
  top: 0;
  bottom: 0;
  width: 50vw;
  background:
    linear-gradient(90deg, rgba(8,8,8,.1), rgba(0,0,0,.86) 42%, rgba(0,0,0,.96)),
    url("assets/images/raevejagt-cover.webp");
  background-size: cover;
  background-position: center right;
  opacity: .18;
  transform: skewX(-17deg) translateX(18%);
  transform-origin: top;
  pointer-events: none;
}

.author-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 45px;
  align-items: center;
}

.author-photo {
  width: 305px;
  height: 355px;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--vulpes-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.author-name {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  color: #fff9ef;
}

.author-copy {
  max-width: 650px;
  font-size: 14px;
  line-height: 1.58;
  color: rgba(255,255,255,.91);
}

.author-copy p { max-width: 585px; }
.author-copy em { color: #fff; }
.author-copy .vulpes-button { margin-top: 8px; }

.author-copy .button-outline {
  color: #fff;
  border-color: rgba(197,44,39,.85);
}

.book-strip {
  background: linear-gradient(90deg, #f5f0e8, #eee6d9);
  padding: 18px 0 20px;
}

.book-strip-inner {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 43px;
  align-items: center;
}

.book-thumb {
  width: 132px;
  box-shadow: 0 16px 22px rgba(41,30,22,.24);
}

.book-title {
  margin: 0 0 6px;
  color: #231b18;
  font-size: clamp(2rem, 3vw, 3rem);
}

.book-info p {
  max-width: 615px;
  color: #25211e;
  font-size: 15px;
  line-height: 1.6;
}

.book-action { justify-self: end; }

.site-footer {
  background: radial-gradient(circle at 20% 0, rgba(124,27,25,.18), transparent 24%), #0a0b0b;
  color: rgba(255,255,255,.78);
  padding: 26px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 42px;
}

.footer-logo {
  width: 158px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 3px 82px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a:focus { color: var(--vulpes-red); }

.footer-meta {
  grid-column: 2;
  margin-top: -12px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

.footer-social {
  display: flex;
  gap: 28px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--vulpes-red);
}

.social-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}


.book-footer-inner {
  grid-template-columns: 260px 1fr auto;
}

.footer-back {
  display: flex;
  grid-template-columns: none;
  gap: 0;
}


/* Separate book page */
.single-book-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 47%, rgba(0,0,0,.82) 100%),
    url("assets/images/forest-background.png");
  background-size: cover;
  background-position: center center;
  padding: 160px 0 80px;
}

.single-book-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: center;
}

.single-book-title {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .95;
  color: #fbf7ef;
}

.single-book-copy {
  max-width: 700px;
  font-size: 18px;
  color: rgba(255,255,255,.9);
}

.single-book-copy a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.55);
  transition: color .2s ease, border-color .2s ease;
}

.single-book-copy a:hover,
.single-book-copy a:focus {
  color: #ffdfd9;
  border-color: var(--vulpes-red);
}

.single-book-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  line-height: 1.28;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  color: #fff7ef;
}

.single-book-subtitle a {
  color: #fff7ef;
  border-bottom: 2px solid var(--vulpes-red);
}

.single-book-subtitle span {
  color: rgba(255,255,255,.82);
}

.single-book-cover {
  width: 330px;
  box-shadow: 0 28px 42px rgba(0,0,0,.55);
}

.single-book-content {
  background: linear-gradient(90deg, #f5f0e8, #eee6d9);
  padding: 64px 0 72px;
}

.single-book-content .vulpes-wrap {
  max-width: 900px;
}

.single-book-content h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--vulpes-wine);
}

.single-book-content p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.72;
}


.goodreads-rating {
  margin-top: 26px;
  margin-bottom: 4px;
}

.rating-stars {
  display: inline-flex;
  margin: 0 0 4px;
  color: #f3c440;
  font-size: 2.15rem;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.22);
}

.rating-stars:hover,
.rating-stars:focus {
  transform: translateY(-1px);
}

.single-book-actions {
  margin-top: 28px;
}

@media (max-width: 1020px) {
  .site-nav { gap: 24px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
  }
  .hero-book { width: clamp(285px, 36vw, 390px); }
  .book-strip-inner { gap: 26px; }
  .footer-inner { grid-template-columns: 180px 1fr auto; }
  .book-footer-inner { grid-template-columns: 180px 1fr auto; }
  .single-book-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 38px; }
  .single-book-cover { width: 280px; }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { align-items: center; }
  .logo-link { width: 150px; }
  .mobile-menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: 92px;
    left: 24px;
    right: 24px;
    display: none;
    padding: 17px 19px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: rgba(6,6,6,.92);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
  }
  .site-nav.is-open { display: flex; }
  .back-nav {
    position: static;
    display: flex;
    padding: 20px 0 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }
  .site-nav a::after,
  .site-nav a.is-active::after { display: none; }
  .hero { min-height: auto; }
  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 128px 0 55px;
  }
  .hero-copy {
    padding-top: 0;
    max-width: 600px;
  }
  .hero-title { font-size: clamp(3.1rem, 13vw, 5.4rem); }
  .hero-book-wrap {
    min-height: 430px;
    justify-content: flex-start;
    padding-left: 8vw;
  }
  .welcome-section .vulpes-wrap { grid-template-columns: 1fr; }
  .logo-watermark { right: -75px; width: 520px; }
  .author-inner { grid-template-columns: 210px 1fr; gap: 26px; }
  .author-photo { width: 210px; height: 275px; }
  .book-strip-inner { grid-template-columns: 92px 1fr; }
  .book-thumb { width: 92px; }
  .book-action { grid-column: 2; justify-self: start; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .book-footer-inner { grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1; }
  .single-book-hero { padding-top: 130px; }
  .single-book-inner { grid-template-columns: 1fr; }
  .single-book-cover { width: min(280px, 70vw); }
}

@media (max-width: 620px) {
  .vulpes-wrap,
  .hero-inner,
  .header-inner { width: min(100% - 32px, 1180px); }
  .hero-inner { padding-top: 112px; }
  .hero-title { margin-bottom: 18px; }
  .hero-copy p { font-size: 15px; }
  .hero-book-wrap {
    min-height: 355px;
    padding-left: 0;
    justify-content: center;
  }
  .hero-book { width: min(78vw, 330px); }
  .welcome-section { padding: 40px 0; }
  .welcome-section .vulpes-wrap { min-height: 0; }
  .logo-watermark { opacity: .05; right: -155px; }
  .section-title { font-size: 2.25rem; }
  .author-inner { grid-template-columns: 1fr; }
  .author-photo { width: min(100%, 330px); height: auto; }
  .author-section::after { width: 70vw; opacity: .11; }
  .book-strip-inner { grid-template-columns: 82px 1fr; gap: 18px; }
  .book-thumb { width: 82px; }
  .book-info p { font-size: 14px; }
  .vulpes-button { width: 100%; min-height: 54px; padding-inline: 19px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .book-footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; gap: 8px; }
  .footer-meta { grid-column: auto; margin-top: 0; }
  .footer-social { justify-content: flex-start; }
  .single-book-hero { padding: 118px 0 56px; }
  .single-book-content { padding: 44px 0 56px; }
}
