/* Journal — shared styles for the listing and article pages.
   Tokens, header, footer and button patterns mirror the homepage (index.html). */

:root{
  --ink: #582308;
  --ink-soft: #7A5340;
  --paper: #EFE9E4;
  --paper-warm: #E6DDD3;
  --wine: #582308;
  --wine-deep: #3D1805;
  --lilac: #DEC6D3;
  --lilac-deep: #B98FA5;
  --line: rgba(88,35,8,0.16);
  --serif: 'Young Serif', serif;
  --sans: 'Public Sans', sans-serif;
  --header-h: 79px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{ flex: 1; }
a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }
h1, h2, h3{
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:focus-visible{ outline: 2px solid var(--wine); outline-offset: 3px; }

/* ---------- HEADER (solid on every journal page) ---------- */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(244,238,227,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{ display: block; position: relative; top: 3px; }
.brand img{ height: 34px; width: auto; }
nav ul{ list-style: none; display: flex; gap: 40px; }
nav a{
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .4s ease;
}
nav a::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--lilac-deep);
  transition: width .35s ease;
}
nav a:hover{ color: var(--lilac-deep); }
nav a:hover::after,
nav a[aria-current="page"]::after{ width: 100%; }
nav a[aria-current="page"]{ color: var(--ink); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px; height: 20px;
  position: relative;
  padding: 0;
  z-index: 60;
}
.nav-toggle span{
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 9px; }
.nav-toggle span:nth-child(3){ top: 18px; }
.nav-toggle.open span:nth-child(1){ top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ top: 9px; transform: rotate(-45deg); }

/* ---------- BUTTON ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lilac);
  color: var(--wine-deep);
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background .3s ease, color .3s ease;
}
.btn:hover{ background: var(--ink); color: var(--paper); }

.cta-row{ display: flex; flex-wrap: wrap; gap: 14px; }
.btn-alt{ background: transparent; }
.btn-alt:hover{ background: var(--ink); color: var(--paper); }

/* ---------- FOOTER ---------- */
footer{
  background: var(--ink);
  color: rgba(244,238,227,0.55);
  padding: 40px 32px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
footer span{ color: var(--lilac); }
footer .ack{
  max-width: 620px;
  margin: 0 auto 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(244,238,227,0.7);
}

/* ---------- LISTING ---------- */
.journal-head{
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 32px 36px;
}
.journal-head h1{
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 1.02;
}
.journal-rule{
  width: min(1116px, calc(100% - 64px));
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}
.journal-list{
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 32px 110px;
}
.journal-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.card{
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--paper);
  background: var(--wine-deep);
}
.card-media{ position: absolute; inset: 0; }
.card-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus, 55% 40%);
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.card:hover .card-media img{ transform: scale(1.03); }
.card::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,16,5,0.88) 0%, rgba(40,16,5,0.52) 36%, rgba(40,16,5,0) 68%);
  pointer-events: none;
}
.card-text{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px;
  max-width: 34rem;
}
.card h2{
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 12px;
}
.card:hover h2{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.card p{
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(239,233,228,0.9);
  max-width: 40ch;
}
.card--feature{ aspect-ratio: 2 / 1; --focus: 55% 42%; }
.card--standard{ background: none; color: var(--ink); }
.card--standard::after{ display: none; }
.card--standard .card-media{ position: relative; inset: auto; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wine-deep); }
.card--standard .card-text{ position: static; padding: 20px 2px 0; max-width: none; }
.card--standard h2{ font-size: 1.35rem; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }
.card--standard p{ font-size: .95rem; color: var(--ink-soft); }

/* ---------- ARTICLE ---------- */
.article{ padding-top: var(--header-h); }
.article-layout{ display: block; }
.article-figure{ margin: 0; background: var(--wine-deep); }
.article-figure img{
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  max-height: 62vh;
  object-fit: cover;
  object-position: 60% 38%;
}
.article-body{
  max-width: 44rem;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

.back-link{
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  margin-bottom: 40px;
  transition: color .3s ease, border-color .3s ease;
}
.back-link:hover{ color: var(--ink); border-color: var(--ink); }

.article-body h1{
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 30px;
}
.dek{
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  text-wrap: balance;
}
.prose h2{
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.9rem 0 1rem;
}
.prose h2:first-child{ margin-top: 0; }
.prose h2 + .byline{
  margin: -0.6rem 0 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.prose p{
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 1.15rem;
}
.article-cta{
  margin-top: 3.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.article-cta p{
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.7rem;
  text-wrap: pretty;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px){
  .article-figure img{ aspect-ratio: 4 / 3; max-height: none; object-position: 60% 40%; }
  .article-body{ padding: 36px 24px 84px; }
  .article-body h1{ font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .back-link{ margin-bottom: 28px; }
}

@media (max-width: 860px){
  :root{ --header-h: 69px; }
  header{
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .brand{ top: 2px; }
  .brand img{ height: 24px; }
  .nav-toggle{ display: block; }
  nav{
    position: fixed;
    inset: 0;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  nav.open{ opacity: 1; visibility: visible; }
  nav ul{ flex-direction: column; align-items: center; gap: 34px; }
  nav ul a{ font-size: 1.05rem; color: var(--ink); }

  .journal-head{ padding: calc(var(--header-h) + 44px) 24px 28px; }
  .journal-rule{ width: calc(100% - 48px); }
  .journal-list{ padding: 28px 24px 80px; }
  .journal-grid{ grid-template-columns: 1fr; }
  .card--feature{ aspect-ratio: 4 / 5; --focus: 56% 40%; }
  .card-text{ padding: 24px; }
  footer{ padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

:root{ --bar-h: 0px; }
html.has-bar{ --bar-h: 42px; }
.site-notice{ display:none; position:fixed; top:0; left:0; right:0; height:42px; z-index:55; background:#3D1805; color:#EFE9E4; align-items:center; justify-content:center; padding:0 48px; font-family:'Public Sans',sans-serif; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; text-align:center }
html.has-bar .site-notice{ display:flex }
.site-notice p{ margin:0; line-height:1.2 }
.site-notice a{ color:#DEC6D3; border-bottom:1px solid #DEC6D3; padding-bottom:2px }
.site-notice a:hover{ color:#fff; border-color:#fff }
.site-notice-close{ position:absolute; right:14px; top:50%; transform:translateY(-50%); background:none; border:0; color:#EFE9E4; font-size:1.5rem; line-height:1; cursor:pointer; padding:4px 8px; opacity:.7 }
.site-notice-close:hover{ opacity:1 }
html.has-bar header{ top: var(--bar-h) !important; }
html.has-bar body{ padding-top: var(--bar-h); }
@media (max-width:860px){ .site-notice{ font-size:.68rem; letter-spacing:.05em; padding:0 40px; height:42px } }
