/*
Theme Name: Jan Blomquist
Theme URI: https://janblomquist.se/
Author: Delfiore
Version: 1.0
Description: Custom landing page and news theme for Jan Blomquist.
Text Domain: jan-blomquist
*/

/* =================================================================
     DESIGN TOKENS
     Two worlds on one page:
       · Warm paper for the author-world (editorial, intimate)
       · Cold midnight for the book-world (cinematic, thriller)
     Accent red is pulled directly from the Molnet cover.
     ================================================================= */
  :root {
    /* Paper / warm side */
    --paper:        #efe7d3;
    --paper-deep:   #e5dbc1;
    --ink:          #141210;
    --ink-soft:     #322d25;
    --ink-muted:    #6e6452;
    --rule:         #b9ad91;

    /* Cold / book side */
    --midnight:     #0a0f1a;
    --midnight-mid: #121a2b;
    --midnight-hi:  #1c2740;
    --fog:          #a8b5cc;
    --fog-soft:     #6a7792;

    /* Accents */
    --blood:        #c8181c;  /* the cover's red */
    --blood-deep:   #8b0f12;
    --ember:        #f4c45a;  /* small warm accent for tower lights */

    --serif: 'Fraunces', 'Times New Roman', serif;
    --sans:  'Inter Tight', 'Helvetica Neue', sans-serif;
    --mono:  'JetBrains Mono', 'Courier New', monospace;

    --max: 1260px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  /* Skip link — keyboard users jump past the masthead */
  .skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--ink);
    color: #f1ead9;
    padding: 10px 16px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 999;
    transition: top 0.2s ease;
  }
  .skip-link:focus { top: 16px; }

  /* Consistent keyboard focus indicator, sitewide */
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--blood);
    outline-offset: 3px;
  }

  body {
    font-family: var(--serif);
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* Paper grain — subtle, global */
  .grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* =================================================================
     MASTHEAD — sits on the dark hero
     ================================================================= */
  .masthead {
    position: relative;
    z-index: 20;
    background: var(--midnight);
    color: var(--fog);
    border-bottom: 1px solid rgba(168, 181, 204, 0.15);
  }
  .masthead-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
  }
  .mark {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    text-decoration: none;
    line-height: 1;
  }
  .mark-logo {
    height: 132px;
    width: auto;
    display: block;
    filter: invert(1);
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
    margin: -24px 0;
  }
  .mark:hover .mark-logo { opacity: 0.85; }
  .nav {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    justify-self: center;
  }
  .nav a {
    color: rgba(241, 234, 217, 0.78);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    line-height: 1;
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 4px;
    height: 1px;
    background: var(--blood);
    transition: right 0.35s ease;
  }
  .nav a:hover { color: #f1ead9; }
  .nav a:hover::after { right: 0; }

  /* Top-right CTA — polished, premium feel */
  .cta-btn {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px 11px 22px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: #f1ead9;
    background: var(--blood);
    text-decoration: none;
    border: 1px solid var(--blood);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
    box-shadow: 0 4px 14px -6px rgba(200, 24, 28, 0.5);
  }
  .cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  .cta-btn:hover {
    background: var(--blood-deep);
    border-color: var(--blood-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(200, 24, 28, 0.6);
  }
  .cta-btn:hover::before { transform: translateX(100%); }
  .cta-btn .arrow {
    display: inline-block;
    transition: transform 0.35s;
    font-size: 13px;
  }
  .cta-btn:hover .arrow { transform: translateX(4px); }

  /* =================================================================
     HERO — cold, cinematic section
     ================================================================= */
  .hero {
    position: relative;
    padding: 80px 0 120px;
    background: var(--midnight);
    color: var(--fog);
    overflow: hidden;
    isolation: isolate;
  }

  /* Atmospheric fog gradients */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 20% 30%, rgba(200, 24, 28, 0.08), transparent 60%),
      radial-gradient(ellipse 70% 50% at 80% 70%, rgba(108, 130, 180, 0.12), transparent 60%),
      linear-gradient(180deg, #060a14 0%, var(--midnight) 40%, var(--midnight-mid) 100%);
    z-index: -2;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.7  0 0 0 0 0.85  0 0 0 0.1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: screen;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
  }

  /* Decorative blinking ember (like the tower lights on the cover) */
  .ember-dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blood);
    box-shadow: 0 0 18px var(--blood), 0 0 4px #fff inset;
    z-index: 1;
    animation: pulse 2.4s ease-in-out infinite;
  }
  .ember-dot.d1 { top: 12%;  left: 6%; animation-delay: 0s; }
  .ember-dot.d2 { top: 18%;  left: 9%; animation-delay: 0.4s; }
  .ember-dot.d3 { top: 70%;  right: 7%; animation-delay: 1.1s; }
  @keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.1); }
  }

  .hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .hero-label {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--blood);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeIn 0.9s ease 0.1s both;
  }
  .hero-label::before {
    content: '';
    width: 44px; height: 1px;
    background: var(--blood);
  }

  .hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    font-size: clamp(60px, 8.4vw, 138px);
    line-height: 0.92;
    letter-spacing: -0.028em;
    color: #f1ead9;
    margin-bottom: 34px;
    animation: riseIn 1.1s cubic-bezier(.2,.7,.2,1) 0.2s both;
  }
  .hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--blood);
  }

  .hero-lede {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.55;
    color: var(--fog);
    max-width: 48ch;
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.5s both;
  }
  .hero-lede .lead {
    color: #f1ead9;
    font-style: italic;
  }

  .hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.7s both;
  }

  .btn {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 16px 28px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s ease;
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: var(--blood);
    color: #f1ead9;
    border: 1px solid var(--blood);
  }
  .btn-primary:hover {
    background: var(--blood-deep);
    border-color: var(--blood-deep);
    transform: translateY(-2px);
  }
  .btn-ghost {
    background: transparent;
    color: #f1ead9;
    border: 1px solid rgba(241, 234, 217, 0.5);
  }
  .btn-ghost:hover {
    background: rgba(241, 234, 217, 0.08);
    border-color: #f1ead9;
  }
  .btn .arrow { display: inline-block; transition: transform 0.35s; }
  .btn:hover .arrow { transform: translateX(4px); }

  .hero-meta-row {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(168, 181, 204, 0.25);
    display: flex;
    gap: 50px;
    animation: fadeIn 1s ease 0.9s both;
  }
  .hero-meta-row .item {
    font-family: var(--sans);
  }
  .hero-meta-row .item .k {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fog-soft);
    margin-bottom: 6px;
  }
  .hero-meta-row .item .v {
    font-family: var(--serif);
    font-size: 16px;
    color: #f1ead9;
    font-style: italic;
  }

  /* ---- Hero book visual ---- */
  .hero-visual {
    position: relative;
    animation: fadeIn 1.2s ease 0.4s both;
    perspective: 1800px;
  }

  .book-shot {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    transform: rotateY(-6deg) rotateX(2deg);
    transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.75))
            drop-shadow(0 10px 25px rgba(200, 24, 28, 0.15));
  }
  .book-shot:hover {
    transform: rotateY(-2deg) rotateX(1deg);
  }
  .book-shot img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Editorial meta card over cover */
  .meta-card {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--paper);
    color: var(--ink);
    padding: 14px 18px 16px;
    max-width: 190px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.5;
    box-shadow: 0 25px 50px -20px rgba(0,0,0,0.6);
    transform: rotate(3deg);
    z-index: 3;
  }
  .meta-card strong {
    display: block;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: 4px;
    font-style: italic;
  }
  .meta-card .pill {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    background: var(--blood);
    color: #f1ead9;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  /* Vertical side caption */
  .side-tag {
    position: absolute;
    left: -56px;
    top: 80px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fog-soft);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  /* =================================================================
     EXCERPT — the atmospheric opening passage
     ================================================================= */
  .excerpt {
    background: var(--midnight);
    color: var(--fog);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(168, 181, 204, 0.15);
  }
  .excerpt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(200, 24, 28, 0.06), transparent 55%),
      radial-gradient(ellipse at 50% 100%, rgba(108, 130, 180, 0.08), transparent 55%);
    pointer-events: none;
  }
  .excerpt-inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
  }
  .excerpt-kicker {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--blood);
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .excerpt-kicker::before, .excerpt-kicker::after {
    content: '';
    width: 30px; height: 1px;
    background: var(--blood);
  }
  .excerpt blockquote {
    font-family: var(--serif);
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.45;
    color: #f1ead9;
    letter-spacing: -0.005em;
    max-width: 28ch;
    margin: 0 auto;
    text-align: left;
    position: relative;
    padding: 10px 0;
  }
  .excerpt blockquote::before {
    content: '"';
    position: absolute;
    left: -60px;
    top: -25px;
    font-size: 110px;
    color: var(--blood);
    opacity: 0.4;
    font-family: var(--serif);
    font-style: normal;
    line-height: 1;
  }
  .excerpt cite {
    display: block;
    margin-top: 22px;
    font-family: var(--sans);
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fog-soft);
  }

  /* =================================================================
     BOOK SECTION — the warm editorial counter-weight
     ================================================================= */
  .book-section {
    position: relative;
    max-width: var(--max);
    margin: 120px auto;
    padding: 0 40px;
  }

  .section-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: baseline;
    margin-bottom: 60px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }
  .section-num {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
    text-transform: uppercase;
  }
  .section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 4.8vw, 68px);
    line-height: 1;
    letter-spacing: -0.022em;
  }
  .section-title em { font-style: italic; color: var(--blood); }

  .book-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
  }

  .book-description p {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 22px;
  }
  .book-description p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 64px;
    font-weight: 500;
    float: left;
    line-height: 0.85;
    padding: 8px 12px 0 0;
    color: var(--blood);
    font-style: italic;
  }
  .book-description p em { font-style: italic; color: var(--ink); }

  .book-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
  }
  .book-meta dt {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
  }
  .book-meta dd {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink);
  }
  .book-meta dd em { font-style: italic; }

  /* Sticky cover + buy links */
  .cover-display {
    position: sticky;
    top: 30px;
  }
  .cover-display .book-shot {
    max-width: 360px;
    transform: rotateY(-5deg) rotateX(2deg);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3))
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  }

  .buy-links {
    margin-top: 40px;
    border-top: 1px solid var(--rule);
  }
  .buy-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: padding 0.3s, color 0.3s;
  }
  .buy-link:hover {
    color: var(--blood);
    padding-left: 14px;
  }
  .buy-link .arrow-r {
    font-family: var(--serif);
    font-size: 18px;
    transition: transform 0.3s;
  }
  .buy-link:hover .arrow-r { transform: translateX(6px); }
  .buy-link .featured {
    font-family: var(--serif);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--blood);
    margin-left: 8px;
  }

  /* Audiobook callout */
  .audio-callout {
    margin-top: 30px;
    padding: 20px 22px;
    background: var(--paper-deep);
    border-left: 3px solid var(--blood);
    font-family: var(--serif);
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .audio-callout .icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
  .audio-callout .text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
  }
  .audio-callout .text strong {
    display: block;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blood);
    margin-bottom: 4px;
  }
  .audio-callout .text em { font-style: italic; color: var(--ink); }

  /* =================================================================
     ABOUT — warm biographical section
     ================================================================= */
  .about {
    position: relative;
    background: var(--paper-deep);
    padding: 120px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .about-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 80px;
    align-items: center;
  }

  .portrait-frame {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    box-shadow:
      0 40px 80px -30px rgba(20, 18, 16, 0.45),
      0 20px 40px -20px rgba(20, 18, 16, 0.3);
    background: #aaa;
  }
  .portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.02);
  }
  .portrait-frame::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(241, 234, 217, 0.55);
    pointer-events: none;
    z-index: 2;
  }
  .portrait-frame::after {
    content: 'J.B. · Porträtt';
    position: absolute;
    bottom: 22px;
    right: 24px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(241, 234, 217, 0.95);
    z-index: 3;
    background: rgba(0,0,0,0.35);
    padding: 4px 8px;
  }

  .about-content .kicker {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blood);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .about-content .kicker::before {
    content: '';
    width: 30px; height: 1px;
    background: var(--blood);
  }
  .about-content h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
  }
  .about-content h2 em { font-style: italic; }

  .about-content p {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .about-content p em { font-style: italic; color: var(--ink); }

  .about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
  }
  .about-facts .fact .k {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 6px;
  }
  .about-facts .fact .v {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--ink);
    line-height: 1.3;
  }

  /* =================================================================
     NEWS — frequent author updates
     ================================================================= */
  .news {
    position: relative;
    max-width: var(--max);
    margin: 120px auto;
    padding: 0 40px;
  }

  .news-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: start;
  }

  .news-intro {
    position: sticky;
    top: 36px;
  }

  .news-intro p {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 24px;
  }

  .news-intro em { color: var(--ink); font-style: italic; }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blood);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    transition: color 0.3s ease, gap 0.3s ease;
  }

  .text-link:hover {
    color: var(--blood-deep);
    gap: 14px;
  }

  .news-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
  }

  .news-actions .btn {
    padding: 14px 22px;
  }

  .news-list {
    border-top: 1px solid var(--rule);
  }

  .news-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 36px;
    padding: 30px 0;
    border-bottom: 1px solid var(--rule);
  }

  .news-date {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-top: 5px;
  }

  .news-kicker {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--blood);
    margin-bottom: 10px;
  }

  .news-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 12px;
  }

  .news-card p {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 56ch;
  }

  /* =================================================================
     NEXT — mystery teaser
     ================================================================= */
  .next {
    position: relative;
    max-width: var(--max);
    margin: 120px auto;
    padding: 0 40px;
  }

  .mystery-block {
    position: relative;
    margin-top: 20px;
    padding: 70px 60px;
    background: var(--midnight);
    color: var(--fog);
    overflow: hidden;
    isolation: isolate;
  }
  .mystery-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 30% 20%, rgba(200, 24, 28, 0.08), transparent 60%),
      radial-gradient(ellipse 70% 50% at 75% 80%, rgba(108, 130, 180, 0.1), transparent 60%);
    z-index: -1;
  }
  .mystery-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.7  0 0 0 0 0.85  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
  }

  .mystery-lead {
    font-family: var(--serif);
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    font-style: italic;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.25;
    color: #f1ead9;
    letter-spacing: -0.012em;
    max-width: 22ch;
    margin-bottom: 30px;
    position: relative;
  }
  .mystery-lead::before {
    content: '';
    display: block;
    width: 44px;
    height: 1px;
    background: var(--blood);
    margin-bottom: 28px;
  }

  .mystery-body {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
    color: var(--fog);
    max-width: 56ch;
    margin-bottom: 48px;
  }
  .mystery-body em { font-style: italic; color: #f1ead9; }

  .mystery-meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 50px;
    padding-top: 28px;
    border-top: 1px solid rgba(168, 181, 204, 0.2);
    width: fit-content;
  }
  .mystery-meta .k {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fog-soft);
    margin-bottom: 6px;
  }
  .mystery-meta .v {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: #f1ead9;
  }

  /* =================================================================
     CONTACT — press, readers and bookings
     ================================================================= */
  .contact {
    position: relative;
    background: var(--midnight);
    color: var(--fog);
    padding: 100px 0;
    margin-top: 120px;
    overflow: hidden;
    isolation: isolate;
  }

  .contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 50% 45% at 12% 20%, rgba(200, 24, 28, 0.1), transparent 65%),
      linear-gradient(180deg, var(--midnight) 0%, #080c15 100%);
    z-index: -1;
  }

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

  .contact .section-header {
    border-bottom-color: rgba(168, 181, 204, 0.24);
  }

  .contact .section-num { color: var(--fog-soft); }
  .contact .section-title { color: #f1ead9; }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: start;
  }

  .contact-copy p {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    color: var(--fog);
    margin-bottom: 18px;
    max-width: 52ch;
  }

  .contact-copy em {
    color: #f1ead9;
    font-style: italic;
  }

  .contact-methods {
    border-top: 1px solid rgba(168, 181, 204, 0.24);
  }

  .contact-method {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(168, 181, 204, 0.24);
    color: #f1ead9;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
  }

  .contact-method:hover {
    color: var(--blood);
    padding-left: 12px;
  }

  .contact-label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fog-soft);
  }

  .contact-value {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
  }

  /* =================================================================
     FOOTER
     ================================================================= */
  .footer {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 50px 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rule);
    margin-top: 60px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
  }
  .footer .social { display: flex; gap: 28px; }
  .footer a {
    color: var(--ink-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color 0.3s;
  }
  .footer a:hover { color: var(--blood); }
  .footer-colophon {
    font-family: var(--serif);
    font-style: italic;
    letter-spacing: 0.02em;
    font-size: 13px;
    text-transform: none;
  }

  /* =================================================================
     ANIMATIONS
     ================================================================= */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Respect users who prefer less motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .ember-dot { animation: none; }
    .book-shot { transform: none !important; }
  }

  /* =================================================================
     RESPONSIVE
     ================================================================= */
  @media (max-width: 980px) {
    .masthead-inner {
      grid-template-columns: 1fr auto;
      padding: 16px 24px;
      gap: 14px 18px;
    }
    .mark { justify-self: start; }
    .mark-logo { height: 96px; margin: -18px 0; }
    .nav {
      grid-column: 1 / -1;
      order: 3;
      justify-self: start;
      gap: 22px;
      font-size: 10px;
      padding-top: 2px;
    }
    .cta-btn {
      justify-self: end;
      padding: 9px 14px;
      font-size: 10px;
      letter-spacing: 0.18em;
      gap: 8px;
    }
    .hero { padding: 50px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; padding: 0 24px; gap: 60px; }
    .side-tag { display: none; }
    .meta-card { right: 0; top: -10px; }
    .hero-meta-row { gap: 30px; flex-wrap: wrap; }
    .excerpt { padding: 50px 24px; }
    .excerpt blockquote::before { left: -10px; top: -40px; font-size: 80px; }
    .book-section { margin: 80px auto; padding: 0 24px; }
    .book-grid { grid-template-columns: 1fr; gap: 60px; }
    .cover-display { position: static; }
    .cover-display .book-shot { max-width: 300px; }
    .section-header { grid-template-columns: 1fr; gap: 12px; }
    .about { padding: 80px 0; margin-top: 0; }
    .about-inner { grid-template-columns: 1fr; gap: 50px; padding: 0 24px; }
    .portrait-frame { max-width: 400px; margin: 0 auto; }
    .about-facts { grid-template-columns: 1fr; gap: 20px; }
    .news { margin: 80px auto; padding: 0 24px; }
    .news-grid { grid-template-columns: 1fr; gap: 42px; }
    .news-intro { position: static; }
    .next { margin: 80px auto; padding: 0 24px; }
    .mystery-block { padding: 50px 28px; }
    .mystery-meta { grid-template-columns: 1fr; gap: 20px; }
    .contact { margin-top: 80px; padding: 80px 0; }
    .contact-inner { padding: 0 24px; }
    .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .contact-method { grid-template-columns: 1fr; gap: 8px; }
    .footer { flex-direction: column; gap: 20px; text-align: center; padding: 40px 24px; }
  }

  @media (max-width: 520px) {
    body { font-size: 16px; }
    .hero h1 { font-size: 54px; }
    .hero-lede { font-size: 17px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .hero-meta-row { gap: 24px; }
    .excerpt blockquote { font-size: 20px; }
    .cta-btn { padding: 9px 12px; font-size: 9px; letter-spacing: 0.15em; }
    .masthead-inner { padding: 14px 18px; gap: 12px 10px; }
    .mark-logo { height: 78px; margin: -14px 0; }
    .nav { gap: 12px; font-size: 9px; flex-wrap: wrap; line-height: 1.5; }
    .news-card { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
    .news-date { padding-top: 0; }
    .news-card h3 { font-size: 24px; }
    .contact-value { font-size: 18px; }
  }

/* News archive and single post templates */
.archive-hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(200, 24, 28, 0.08), transparent 60%),
    linear-gradient(180deg, #060a14 0%, var(--midnight) 58%, var(--midnight-mid) 100%);
  color: var(--fog);
  padding: 86px 0 96px;
  overflow: hidden;
}
.archive-inner,
.archive,
.single-wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.archive-kicker,
.single-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 28px;
}
.archive-hero h1,
.single-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #f1ead9;
  max-width: 12ch;
  margin-bottom: 30px;
}
.archive-hero h1 em { color: var(--blood); font-style: italic; }
.archive-hero p,
.single-hero p {
  max-width: 58ch;
  color: var(--fog);
  font-size: 20px;
  line-height: 1.65;
}
.archive {
  margin-top: 92px;
  margin-bottom: 110px;
}
.archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.archive-toolbar h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}
.archive-note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.post-list { border-top: 1px solid var(--rule); }
.post-card {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 34px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.post-card:hover h3,
.news-card h3 a:hover { color: var(--blood); }
.post-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 6px;
}
.post-kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 10px;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}
.post-card p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}
.post-arrow {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--blood);
  padding-top: 16px;
}
.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}
.single-hero {
  background: var(--midnight);
  color: var(--fog);
  padding: 76px 0 82px;
}
.single-hero .single-wrap {
  margin-top: 0;
  margin-bottom: 0;
}
.single-wrap {
  max-width: 900px;
  margin-top: 82px;
  margin-bottom: 110px;
}
.single-content {
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.single-content p,
.single-content ul,
.single-content ol,
.single-content blockquote { margin-bottom: 24px; }
.single-content a { color: var(--blood); }
.single-content h2,
.single-content h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 42px 0 18px;
}
.single-content h2 { font-size: 40px; }
.single-content h3 { font-size: 30px; }
.single-content img { max-width: 100%; height: auto; }
.single-back { margin-top: 46px; }
@media (max-width: 980px) {
  .archive-inner,
  .archive,
  .single-wrap { padding-left: 24px; padding-right: 24px; }
  .archive-hero,
  .single-hero { padding: 64px 0 76px; }
  .post-card { grid-template-columns: 1fr; gap: 10px; }
  .post-arrow { padding-top: 0; }
}
@media (max-width: 520px) {
  .archive-toolbar { display: block; }
  .archive-note { margin-top: 14px; line-height: 1.6; }
  .archive { margin-top: 58px; margin-bottom: 78px; }
  .archive-hero h1,
  .single-hero h1 {
    font-size: 46px;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .archive-hero p,
  .single-hero p {
    font-size: 17px;
    line-height: 1.6;
  }
  .post-card { padding: 26px 0; }
  .post-card p { font-size: 16px; }
  .single-wrap { margin-top: 54px; margin-bottom: 78px; }
  .single-content { font-size: 18px; }
  .single-content h2 { font-size: 32px; }
  .single-content h3 { font-size: 26px; }
  .footer .social { flex-wrap: wrap; justify-content: center; gap: 18px; }
}
