/* =========================================================
   NAKED EXISTENTIAL — COMPLETE SITE CSS
   Matches the current header.php structure:
   nav > .container.nav-inner > logo / navtoggle / navlinks
   ========================================================= */

:root{
  --bg:#0b0b0b;
  --surface:#11110f;
  --surface-2:#151513;
  --text:#eeeae2;
  --muted:#9b9891;
  --dim:#6f6c67;
  --line:#292825;
  --accent:#c9a45c;
  --accent-soft:#ddc891;
  --max:1100px;
}

*,
*::before,
*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  font-size:15px;
  line-height:1.7;
}

img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit}
.container{
  width:min(var(--max),calc(100% - 48px));
  margin-left:auto;
  margin-right:auto;
}

/* =========================================================
   NAVIGATION — matches your actual header.php
   ========================================================= */

nav{
  position:relative;
  z-index:100;
  width:100%;
  background:rgba(11,11,11,.98);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:0;
  flex-shrink:0;
  color:var(--text);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}

.logo span{
  color:var(--text);
}

.navlinks{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
  margin-left:auto;
}

.navlinks a{
  position:relative;
  display:block;
  padding:19px 0 17px;
  color:#918d86;
  font-size:10px;
  font-weight:600;
  letter-spacing:.1em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  transition:color .2s ease;
}

.navlinks a:hover{
  color:var(--text);
}

.navlinks a.active{
  color:var(--text);
}

.navlinks a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:9px;
  height:1px;
  background:var(--accent);
}

.navtoggle{
  display:none;
  appearance:none;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  width:38px;
  height:34px;
  padding:0;
  cursor:pointer;
  font-size:17px;
  line-height:1;
}

/* =========================================================
   HERO
   ========================================================= */

.hero{
  padding:105px 0 110px;
  border-bottom:1px solid var(--line);
}

.hero-compact{
  padding:78px 0 80px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  gap:80px;
  align-items:center;
}

.kicker{
  margin-bottom:20px;
  color:var(--accent);
  font-size:10px;
  font-weight:600;
  letter-spacing:.18em;
  line-height:1.3;
  text-transform:uppercase;
}

.hero h1{
  margin:0;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(64px,9vw,122px);
  font-weight:400;
  letter-spacing:-.055em;
  line-height:.86;
}

.hero-compact h1{
  font-size:clamp(56px,8vw,100px);
}

.hero p{
  max-width:650px;
  margin:34px 0 0;
  color:#a6a29b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
  line-height:1.7;
}

.hero-side{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.badge{
  display:block;
  width:min(100%,300px);
  border-radius:50%;
}

.manifesto{
  max-width:300px;
  margin-top:25px;
  color:#8e8a83;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  line-height:1.6;
  text-align:center;
}

.manifesto strong{
  display:block;
  margin-bottom:7px;
  color:var(--text);
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

section{
  padding:105px 0;
  border-bottom:1px solid var(--line);
}

.section-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.65fr);
  gap:70px;
  align-items:end;
  margin-bottom:58px;
}

.section-number{
  margin-bottom:20px;
  color:var(--accent);
  font-size:10px;
  font-weight:600;
  letter-spacing:.17em;
  line-height:1.3;
  text-transform:uppercase;
}

.section-head h2,
section h2{
  margin:0;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,5.2vw,68px);
  font-weight:400;
  letter-spacing:-.045em;
  line-height:.98;
}

.intro{
  max-width:440px;
  margin:0;
  color:#96928b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.7;
}

/* =========================================================
   ESSAYS
   ========================================================= */

.essays{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

.card{
  min-width:0;
  padding:30px;
  border:1px solid var(--line);
  background:var(--surface);
}

.essays .card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:310px;
}

.card h3{
  margin:18px 0 12px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:27px;
  font-weight:400;
  line-height:1.12;
}

.card p{
  margin:0;
  color:#929089;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  line-height:1.65;
}

.tag{
  display:inline-block;
  color:var(--accent);
  font-size:10px;
  font-weight:600;
  letter-spacing:.14em;
  line-height:1.3;
  text-transform:uppercase;
}

.read{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:28px;
  color:var(--text);
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1.2;
  text-transform:uppercase;
  transition:color .2s ease,gap .2s ease;
}

.card:hover .read,
.read:hover{
  color:var(--accent);
  gap:12px;
}

.arrow{font-size:14px}

/* =========================================================
   IDEAS
   ========================================================= */

.thought{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:90px;
  align-items:start;
}

.quote{
  color:#e5e1d9;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(30px,4vw,52px);
  line-height:1.12;
  letter-spacing:-.025em;
}

.quote em{color:var(--accent-soft)}

.notes p{
  margin:0 0 24px;
  color:#929089;
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
  line-height:1.75;
}

/* =========================================================
   FEATURED BOOK ON HOME PAGE
   ========================================================= */

.home-books{
  padding:90px 0 105px;
}

.home-books-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:60px;
  align-items:center;
}

.home-books h2{
  max-width:700px;
  font-size:clamp(42px,5vw,66px);
}

.home-books-subtitle{
  max-width:520px;
  margin:22px 0 30px;
  color:#96928b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
}

.home-book-cover{
  display:block;
  width:100%;
  overflow:hidden;
  background:#151515;
}

.home-book-cover img{
  display:block;
  width:100%;
  height:auto;
  transition:transform .5s ease;
}

.home-book-cover:hover img{
  transform:scale(1.025);
}

.book-btn,
.book-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border:1px solid #504a40;
  color:var(--text);
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
  transition:border-color .2s ease,color .2s ease;
}

.book-btn:hover,
.book-button:hover{
  border-color:var(--accent);
  color:var(--accent);
}

.home-books-all{
  display:inline-block;
  margin-left:22px;
  color:#aaa69e;
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
}

.home-books-all:hover{color:var(--accent)}

/* =========================================================
   BOOKS LIBRARY
   Important: transparent cards prevent the huge dark box.
   ========================================================= */

#books{
  padding:85px 0 120px;
}

#books .container{
  width:min(1180px,calc(100% - 48px));
}

.books-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:42px;
  row-gap:75px;
  align-items:start;
}

.book-card{
  display:block;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  overflow:visible;
}

.book-card:hover{
  background:transparent;
}

.book-cover-wrap{
  width:100%;
  aspect-ratio:2 / 3;
  margin:0 0 28px;
  overflow:hidden;
  background:#171717;
}

.book-cover-wrap img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .5s ease;
}

.book-card:hover .book-cover-wrap img{
  transform:scale(1.025);
}

.cover-missing{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  color:#77736d;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.book-card-body{
  padding:0 2px;
}

.book-card .tag{
  display:block;
  margin-bottom:20px;
}

.book-card h3{
  margin:0 0 14px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(27px,2.5vw,37px);
  font-weight:400;
  letter-spacing:-.025em;
  line-height:1.08;
}

.book-card p{
  max-width:360px;
  margin:0 0 12px;
  color:#99958e;
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  line-height:1.6;
}

.book-year{
  margin-top:10px;
  color:#6f6c67;
  font-size:11px;
  letter-spacing:.1em;
}

.book-card .read{margin-top:27px}

.empty-library{
  margin:0;
  padding:55px 0;
  color:#85817a;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
}

/* =========================================================
   JOURNAL
   ========================================================= */

.journal{
  border-top:1px solid var(--line);
}

.entry{
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:35px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}

.entry .date{
  color:#6f6c67;
  font-size:10px;
  letter-spacing:.1em;
  line-height:1.4;
  text-transform:uppercase;
}

.entry h3{
  margin:0 0 8px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  font-weight:400;
  line-height:1.2;
}

.entry h3 a:hover{color:var(--accent)}

.entry p{
  max-width:680px;
  margin:0;
  color:#8f8b84;
  font-family:Georgia,"Times New Roman",serif;
}

/* =========================================================
   LINKS
   ========================================================= */

.backlink{
  color:var(--accent);
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1.2;
  text-transform:uppercase;
}

.backlink:hover{color:var(--accent-soft)}

/* =========================================================
   ARTICLE PAGES
   ========================================================= */

.article-header{
  padding:100px 0 70px;
  border-bottom:1px solid var(--line);
}

.article-header h1{
  max-width:900px;
  margin:0;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(45px,6vw,78px);
  font-weight:400;
  letter-spacing:-.045em;
  line-height:1.02;
}

.article-meta{
  margin-top:25px;
  color:#706d67;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.article-content{
  max-width:760px;
  margin:0 auto;
  padding:80px 0 120px;
}

.article-content p{
  margin:0 0 28px;
  color:#aaa69f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
  line-height:1.85;
}

.article-content h2{
  margin:65px 0 25px;
  font-size:40px;
}

.article-content h3{
  margin:45px 0 18px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  font-weight:400;
}

.article-content blockquote{
  margin:45px 0;
  padding-left:25px;
  border-left:1px solid var(--accent);
  color:#ddd8cf;
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  line-height:1.45;
}

/* =========================================================
   INDIVIDUAL BOOK PAGE
   ========================================================= */

.book-page{
  padding:85px 0 120px;
}

.book-detail-grid{
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:80px;
  align-items:start;
}

.book-detail-cover img{
  display:block;
  width:100%;
  height:auto;
}

.book-detail-info h1{
  margin:0;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(45px,5vw,70px);
  font-weight:400;
  letter-spacing:-.045em;
  line-height:1.02;
}

.book-detail-subtitle{
  margin:22px 0 30px;
  color:#99958e;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
}

.book-detail-description{
  max-width:680px;
  color:#aaa69f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.8;
}

.book-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:35px;
}

.book-actions a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 19px;
  border:1px solid #514b40;
  color:var(--text);
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.book-actions a:hover{
  border-color:var(--accent);
  color:var(--accent);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-content{
  max-width:820px;
}

.about-content p{
  color:#aaa69f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
  line-height:1.85;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
  padding:55px 0;
  border-top:1px solid var(--line);
}

.footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.footer-brand{
  color:#d4d0c8;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.footer-copy{
  color:#64615c;
  font-size:10px;
}

.footer-links{
  display:flex;
  gap:20px;
}

.footer-links a{
  color:#77736d;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.footer-links a:hover{color:var(--accent)}

/* =========================================================
   ANIMATION
   ========================================================= */

.reveal{
  animation:neFadeUp .7s ease both;
}

.reveal-stagger>*{
  animation:neFadeUp .7s ease both;
}

.reveal-stagger>*:nth-child(2){animation-delay:.08s}
.reveal-stagger>*:nth-child(3){animation-delay:.16s}
.reveal-stagger>*:nth-child(4){animation-delay:.24s}
.reveal-stagger>*:nth-child(5){animation-delay:.32s}
.reveal-stagger>*:nth-child(6){animation-delay:.40s}

@keyframes neFadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px){

  .container{
    width:min(720px,calc(100% - 40px));
  }

  .nav-inner{
    gap:18px;
  }

  .navlinks{
    gap:18px;
  }

  .hero{
    padding:75px 0 80px;
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:55px;
  }

  .hero-side{
    align-items:flex-start;
  }

  .manifesto{
    text-align:left;
  }

  .section-head{
    grid-template-columns:1fr;
    gap:25px;
  }

  .essays{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .thought{
    grid-template-columns:1fr;
    gap:50px;
  }

  .home-books-grid{
    grid-template-columns:minmax(0,1fr) 230px;
    gap:45px;
  }

  .books-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:60px 30px;
  }

  .book-detail-grid{
    grid-template-columns:260px minmax(0,1fr);
    gap:50px;
  }
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width:700px){

  .container,
  #books .container{
    width:calc(100% - 32px);
  }

  .nav-inner{
    min-height:58px;
    position:relative;
    flex-wrap:wrap;
    padding:12px 0;
  }

  .navtoggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
  }

  .navlinks{
    display:none;
    width:100%;
    margin:0;
    padding:5px 0 8px;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:0;
  }

  .navlinks.open{
    display:flex;
  }

  .navlinks a{
    width:100%;
    padding:12px 0;
    border-top:1px solid rgba(255,255,255,.06);
    font-size:10px;
  }

  .navlinks a.active::after{
    display:none;
  }

  .navlinks a:hover{
    color:var(--accent);
  }

  .hero,
  .hero-compact{
    padding:58px 0 65px;
  }

  .hero-grid{
    gap:45px;
  }

  .hero h1,
  .hero-compact h1{
    font-size:clamp(55px,17vw,82px);
  }

  .hero p{
    margin-top:27px;
    font-size:16px;
  }

  .badge{
    width:220px;
  }

  section{
    padding:70px 0;
  }

  .section-head{
    margin-bottom:40px;
  }

  .section-head h2,
  section h2{
    font-size:45px;
  }

  .essays{
    grid-template-columns:1fr;
    gap:18px;
  }

  .essays .card{
    min-height:0;
  }

  .thought{
    gap:38px;
  }

  .quote{
    font-size:34px;
  }

  .home-books{
    padding:70px 0;
  }

  .home-books-grid{
    grid-template-columns:1fr;
    gap:35px;
  }

  .home-book-cover{
    width:min(300px,100%);
    order:-1;
  }

  .home-books h2{
    font-size:45px;
  }

  .home-books-all{
    margin-left:15px;
  }

  #books{
    padding:55px 0 80px;
  }

  .books-grid{
    grid-template-columns:1fr;
    gap:60px;
  }

  .book-cover-wrap{
    width:100%;
    max-width:430px;
    margin-bottom:24px;
  }

  .book-card h3{
    font-size:31px;
  }

  .entry{
    grid-template-columns:1fr;
    gap:9px;
  }

  .article-header{
    padding:65px 0 50px;
  }

  .article-header h1{
    font-size:45px;
  }

  .article-content{
    padding:55px 0 80px;
  }

  .article-content p{
    font-size:17px;
  }

  .book-page{
    padding:60px 0 80px;
  }

  .book-detail-grid{
    grid-template-columns:1fr;
    gap:45px;
  }

  .book-detail-cover{
    width:min(330px,100%);
  }

  .book-detail-info h1{
    font-size:45px;
  }

  .footer-grid{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width:380px){

  .container,
  #books .container{
    width:calc(100% - 24px);
  }

  .hero h1,
  .hero-compact h1{
    font-size:54px;
  }

  .section-head h2,
  section h2,
  .home-books h2{
    font-size:40px;
  }

  .book-card h3{
    font-size:28px;
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible{
  outline:1px solid var(--accent);
  outline-offset:4px;
}

@media (prefers-reduced-motion:reduce){

  html{scroll-behavior:auto}

  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* Books page heading */
.books-hero h1 {
    white-space: nowrap;
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 0.95;
}
/* =========================================================
   READING EXPERIENCE — INDIVIDUAL POSTS
   Designed for long philosophical essays and journal entries.
   ========================================================= */

.editorial-page{
  padding:72px 0 110px;
  border-bottom:1px solid var(--line);
}

.editorial-shell{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,780px) 250px;
  gap:86px;
  align-items:start;
}

.editorial-article{
  min-width:0;
}

.article-head{
  padding:8px 0 46px;
  border-bottom:1px solid var(--line);
}

.article-kicker{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin-bottom:24px;
  color:var(--accent);
  font-size:10px;
  font-weight:600;
  letter-spacing:.16em;
  line-height:1.4;
  text-transform:uppercase;
}

.article-head h1{
  max-width:780px;
  margin:0;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(46px,5.7vw,76px);
  font-weight:400;
  letter-spacing:-.045em;
  line-height:1.03;
  text-wrap:balance;
}

.article-dek{
  max-width:700px;
  margin:26px 0 0;
  color:#aaa69f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  line-height:1.65;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:27px;
  color:#706d67;
  font-size:10px;
  font-weight:600;
  letter-spacing:.1em;
  line-height:1.4;
  text-transform:uppercase;
}

.post-content{
  padding:54px 0 0;
  color:#c0bbb2;
  font-family:Georgia,"Times New Roman",serif;
  font-size:19px;
  line-height:1.9;
}

.post-content > *:first-child{margin-top:0}
.post-content > *:last-child{margin-bottom:0}

.post-content p{
  max-width:740px;
  margin:0 0 30px;
}

.post-content h2{
  max-width:740px;
  margin:70px 0 24px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:36px;
  font-weight:400;
  letter-spacing:-.025em;
  line-height:1.15;
}

.post-content h3{
  max-width:740px;
  margin:52px 0 18px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:27px;
  font-weight:400;
  line-height:1.25;
}

.post-content h4{
  max-width:740px;
  margin:42px 0 15px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
  font-weight:600;
  line-height:1.35;
}

.post-content strong,
.post-content b{color:#e9e4db}

.post-content em,
.post-content i{color:#d4cec5}

.post-content a{
  color:var(--accent-soft);
  text-decoration:underline;
  text-decoration-color:#665638;
  text-underline-offset:3px;
}

.post-content a:hover{color:var(--accent)}

.post-content ul,
.post-content ol{
  max-width:700px;
  margin:0 0 32px;
  padding-left:28px;
}

.post-content li{
  margin:0 0 10px;
  padding-left:5px;
}

.post-content blockquote{
  max-width:710px;
  margin:48px 0;
  padding:8px 0 8px 28px;
  border-left:2px solid var(--accent);
  color:#ddd7ce;
  font-size:23px;
  font-style:italic;
  line-height:1.55;
}

.post-content hr{
  max-width:740px;
  margin:56px 0;
  border:0;
  border-top:1px solid var(--line);
}

.post-content code{
  padding:2px 5px;
  border:1px solid var(--line);
  background:var(--surface);
  color:#ddd7ce;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.86em;
}

.post-content pre{
  max-width:740px;
  overflow:auto;
  margin:32px 0;
  padding:20px;
  border:1px solid var(--line);
  background:var(--surface);
  color:#d7d2ca;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:14px;
  line-height:1.65;
}

.article-pagination{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:72px;
  padding-top:25px;
  border-top:1px solid var(--line);
}

.article-pagination a{
  display:block;
  color:#aaa69e;
  font-size:11px;
  line-height:1.55;
  letter-spacing:.03em;
}

.article-pagination a:hover{color:var(--accent)}
.article-pagination .pagination-next{text-align:right}

.article-end{
  margin-top:38px;
}

.article-end a,
.sidebar-link{
  color:var(--accent);
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.article-end a:hover,
.sidebar-link:hover{color:var(--accent-soft)}

.editorial-sidebar{
  position:sticky;
  top:30px;
  min-width:0;
}

.sidebar-brand,
.sidebar-recent,
.sidebar-book{
  padding-bottom:28px;
  margin-bottom:28px;
  border-bottom:1px solid var(--line);
}

.sidebar-label{
  margin-bottom:13px;
  color:var(--accent);
  font-size:9px;
  font-weight:600;
  letter-spacing:.16em;
  line-height:1.3;
  text-transform:uppercase;
}

.sidebar-brand h2{
  margin:0 0 12px;
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  font-weight:400;
  line-height:1.15;
}

.sidebar-brand p{
  margin:0 0 17px;
  color:#85817a;
  font-family:Georgia,"Times New Roman",serif;
  font-size:13px;
  line-height:1.65;
}

.recent-item{
  display:block;
  padding:14px 0;
  border-top:1px solid rgba(255,255,255,.055);
}

.recent-item:first-of-type{border-top:0;padding-top:0}
.recent-item span{
  display:block;
  margin-bottom:6px;
  color:#77736d;
  font-size:8px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.recent-item strong{
  display:block;
  color:#c7c2ba;
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  font-weight:400;
  line-height:1.35;
}

.recent-item small{
  display:block;
  margin-top:6px;
  color:#62605b;
  font-size:9px;
  letter-spacing:.05em;
}

.recent-item:hover strong{color:var(--accent-soft)}

.book-box{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.book-cover{
  display:block;
  width:100%;
  max-width:150px;
  margin-bottom:3px;
}

.book-box strong{
  color:#d8d3ca;
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  font-weight:400;
  line-height:1.35;
}

.book-box small{
  color:#77736d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:12px;
  line-height:1.55;
}

.book-box .book-btn{
  align-self:flex-start;
  margin-top:4px;
}

@media (max-width:900px){
  .editorial-shell{
    grid-template-columns:minmax(0,1fr);
    gap:55px;
  }

  .editorial-sidebar{
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:35px;
  }

  .sidebar-brand,
  .sidebar-recent,
  .sidebar-book{
    margin:0;
  }
}

@media (max-width:700px){
  .editorial-page{
    padding:48px 0 75px;
  }

  .editorial-shell{
    width:calc(100% - 32px);
  }

  .article-head{
    padding-top:0;
    padding-bottom:34px;
  }

  .article-head h1{
    font-size:clamp(40px,12vw,58px);
    line-height:1.05;
  }

  .article-dek{
    font-size:17px;
    line-height:1.65;
  }

  .post-content{
    padding-top:38px;
    font-size:18px;
    line-height:1.82;
  }

  .post-content p{margin-bottom:27px}

  .post-content h2{
    margin-top:56px;
    font-size:31px;
  }

  .post-content h3{
    margin-top:43px;
    font-size:24px;
  }

  .post-content blockquote{
    margin:40px 0;
    padding-left:20px;
    font-size:20px;
  }

  .article-pagination{
    grid-template-columns:1fr;
    gap:22px;
    margin-top:55px;
  }

  .article-pagination .pagination-next{text-align:left}

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

  .sidebar-book{
    border-bottom:0;
  }
}
