/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --bg:     #f4f1eb;
  --paper:  #fffef9;
  --ink:    #1a1612;
   --muted:  #5e574c;
  --faint:  #e8e3d9;
  --brand:  #0f3d2e;
  --accent: #c84b16;
  --rule:   #cec7b8;
  --serif:  'Cormorant Garamond', Georgia, serif;
   --reading-serif: 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  --sans:   'Outfit', system-ui, sans-serif;
  --mono:   'DM Mono', 'Courier New', monospace;
  --r:  8px;
  --rl: 16px;
  --sh: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
}
[data-theme="dark"] {
  --bg:     #0d1208;
  --paper:  #131a0f;
  --ink:    #e8e5de;
   --muted:  #96a08b;
  --faint:  #1d2519;
  --brand:  #0f3d2e;
  --accent: #7ec8a0;
  --rule:   #252e21;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.04rem; line-height: 1.7; min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page-body {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 28px;
  margin: 28px 0 60px;
  align-items: start;
}
@media (max-width: 860px) { .page-body { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
   .page-body { display: flex; flex-direction: column; }
   main { order: 1; }
   .sidebar { order: 2; }
   .sidebar { width: 100%; align-self: stretch; }
   .sidebar .widget { width: 100%; }
   .wrap { padding: 0 16px; }
   .masthead { grid-template-columns: 1fr; gap: 12px; padding: 28px 0 20px; }
   .header-badge { text-align: left; }
   .nav-inner { flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
   .nav-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
   .nav-links::-webkit-scrollbar { display: none; }
   .nav-link { white-space: nowrap; }
   .nav-right { width: 100%; flex-wrap: wrap; }
   .search-bar { width: 100%; flex: 1 1 220px; }
   .search-bar input { width: 100%; min-width: 0; }
   .page-body { margin: 18px 0 42px; }
   .sidebar { position: static; }
   .issue-banner, .vol-head, .issue-row, .static-head, .static-body, .article-hero, .article-body, .author-profile-hero { padding-left: 18px; padding-right: 18px; }
   .article-card { grid-template-columns: 1fr; }
   .card-num { display: none; }
   .author-cards-row { flex-direction: column; }
   .author-mini-card { min-width: 0; }
   .site-footer { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.site-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.025) 0 1px, transparent 1px 60px);
  pointer-events: none;
}
.masthead { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 40px 0 28px; position: relative; }
.journal-name-link { text-decoration: none; }
.journal-name-link:hover { text-decoration: none; }
.journal-name { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.05; color: #fff; }
.journal-name em { font-style: italic; color: rgba(255,255,255,.7); }
.journal-sub { margin-top: 8px; font-size: .92rem; color: rgba(255,255,255,.62); font-weight: 400; letter-spacing: .02em; }
.header-badge { text-align: right; font-family: var(--mono); font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.8; }
.header-badge strong { font-size: 1rem; color: #fff; font-weight: 500; display: block; }
.divider { height: 1px; background: rgba(255,255,255,.12); position: relative; }
.divider::after {
  content: '◆'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%); background: var(--brand);
  padding: 0 14px; font-size: .5rem; opacity: .4;
}

/* ── Nav ── */
.topnav { background: rgba(0,0,0,.18); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-link { padding: 7px 13px; border-radius: 5px; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.75); transition: background .15s, color .15s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.search-bar { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 6px 14px; transition: background .2s; }
.search-bar:focus-within { background: rgba(255,255,255,.16); }
.search-bar input { background: transparent; border: none; outline: none; color: #fff; font-family: var(--sans); font-size: .85rem; width: 180px; }
.search-bar input::placeholder { color: rgba(255,255,255,.4); }
.theme-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 6px 10px; cursor: pointer; font-size: .9rem; transition: background .15s; }
.theme-btn:hover { background: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.widget { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.widget-head { padding: 9px 15px; background: var(--brand); color: #fff; font-family: var(--mono); font-size: .65rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.widget-body { padding: 14px 16px; font-size: .92rem; color: var(--muted); line-height: 1.72; }
.info-list li { padding: 4px 0; border-bottom: 1px solid var(--faint); }
.info-list li:last-child { border-bottom: none; }
.info-list strong { color: var(--ink); margin-right: 6px; }

/* Volume tree */
.vol-tree { display: flex; flex-direction: column; gap: 4px; }
.vol-item { }
.vol-btn-row { padding: 6px 8px; }
.vol-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.vol-year { font-family: var(--mono); font-size: .7rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.vol-issues { padding: 2px 0 6px 12px; display: flex; flex-direction: column; gap: 1px; }
.issue-link { display: block; padding: 5px 8px; border-radius: 4px; font-size: .84rem; color: var(--muted); transition: background .15s, color .15s; }
.issue-link:hover { background: var(--faint); color: var(--ink); text-decoration: none; }
.issue-link.active { color: var(--brand); font-weight: 600; background: color-mix(in srgb, var(--brand) 8%, var(--paper)); }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); cursor: pointer; font-size: .78rem; font-weight: 500; color: var(--muted); transition: all .18s; font-family: var(--sans); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Board */
.board-list { display: flex; flex-direction: column; gap: 12px; }
.board-member { display: flex; align-items: center; gap: 10px; }
.board-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.board-info { font-size: .82rem; color: var(--muted); }
.board-info strong { display: block; color: var(--ink); font-size: .85rem; }

/* ═══════════════════════════════════════════════════════════
   ISSUE PANEL
═══════════════════════════════════════════════════════════ */
.issue-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }
.issue-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 24px; border-bottom: 2px solid var(--brand); background: linear-gradient(120deg, var(--paper) 55%, color-mix(in srgb, var(--brand) 5%, var(--paper))); }
.issue-eyebrow { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.issue-vol { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--brand); padding: 7px 14px; border: 1.5px solid var(--brand); border-radius: 999px; transition: all .18s; }
.ghost-btn:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE CARDS
═══════════════════════════════════════════════════════════ */
.article-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--faint); transition: background .2s; }
.article-card:last-child { border-bottom: none; }
.article-card:hover { background: color-mix(in srgb, var(--brand) 3%, var(--paper)); }
.card-eyebrow { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.card-title { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.2; margin-bottom: 7px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-meta { font-size: .86rem; color: var(--muted); margin-bottom: 9px; }
.card-meta a { color: var(--muted); }
.card-meta a:hover { color: var(--brand); }
.card-doi { font-family: var(--mono); font-size: .75rem; }
.card-abstract { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-num { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--faint); line-height: 1; user-select: none; padding-top: 4px; min-width: 2ch; text-align: right; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: var(--r); font-size: .85rem; font-weight: 600; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; transition: all .18s; font-family: var(--sans); }
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 82%, #000); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE VIEW
═══════════════════════════════════════════════════════════ */
.article-hero { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rl); padding: 30px 34px 26px; margin-bottom: 18px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.article-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { opacity: .5; }
.article-doi { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: 10px; }
.article-h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.12; margin-bottom: 14px; }
.article-byline { font-size: .94rem; color: var(--muted); margin-bottom: 3px; }
.article-byline a { color: var(--muted); }
.article-byline a:hover { color: var(--brand); }
.article-affil { font-size: .88rem; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.article-kw { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.article-kw strong { color: var(--ink); }
.article-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.article-hero,
.article-body,
.author-cards-row {
   max-width: 920px;
   margin-left: auto;
   margin-right: auto;
}
.article-body {
   background: var(--paper);
   border: 1px solid var(--rule);
   border-radius: var(--rl);
   padding: 34px 42px;
   box-shadow: var(--sh);
   margin-bottom: 18px;
   font-family: var(--reading-serif);
   font-size: clamp(1.03rem, 0.98rem + 0.2vw, 1.12rem);
   line-height: 1.82;
   color: color-mix(in srgb, var(--ink) 90%, #000);
   font-weight: 400;
}
@media (max-width: 680px) {
    .article-body { padding: 20px; font-size: 1.03rem; line-height: 1.72; }
   .issue-banner { align-items: flex-start; }
   .issue-vol { font-size: 1.2rem; }
   .article-hero { padding-top: 20px; }
   .article-h1 { font-size: 1.45rem; }
   .author-profile-hero { gap: 16px; }
   .author-profile-avatar { width: 72px; height: 72px; font-size: 1.8rem; }
   .author-card { padding: 18px 16px; }
   .author-card-avatar { width: 56px; height: 56px; font-size: 1.35rem; }
}
.article-body p { margin-bottom: 1.05em; max-width: 72ch; }
.article-body figure { break-inside: avoid; margin-bottom: 1.2em; }
.article-body figcaption { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: 6px; }
.article-body h2, .article-body h3 { font-family: var(--serif); font-weight: 600; break-after: avoid; margin: 1.3em 0 .55em; line-height: 1.22; }
.article-body ul, .article-body ol { margin: .5em 0 1.1em 1.2em; }
.article-body li { margin-bottom: .25em; }
.article-body blockquote {
   margin: 1.2em 0;
   padding: .35em 0 .35em 1em;
   border-left: 3px solid color-mix(in srgb, var(--brand) 55%, var(--rule));
   color: var(--muted);
   font-style: italic;
}
.article-body a {
   text-decoration: underline;
   text-decoration-thickness: 1.2px;
   text-underline-offset: 2px;
}

/* Author cards row */
.author-cards-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.author-mini-card { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 16px; flex: 1; min-width: 200px; box-shadow: var(--sh); transition: border-color .18s; }
.author-mini-card:hover { border-color: var(--brand); text-decoration: none; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.author-mini-name { font-weight: 600; font-size: .95rem; margin-bottom: 2px; color: var(--ink); }
.author-mini-affil { font-size: .84rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   AUTHOR PROFILE
═══════════════════════════════════════════════════════════ */
.author-profile-hero { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rl); padding: 30px 34px; margin-bottom: 18px; box-shadow: var(--sh); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 580px) { .author-profile-hero { grid-template-columns: 1fr; } }
.author-profile-avatar { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.author-profile-name { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.author-profile-affil { color: var(--muted); font-size: .9rem; font-style: italic; margin-bottom: 12px; }
.author-profile-bio { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.author-links { display: flex; gap: 8px; flex-wrap: wrap; }
.author-link-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--rule); font-size: .78rem; color: var(--muted); transition: all .18s; }
.author-link-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.author-articles-section { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }

/* ═══════════════════════════════════════════════════════════
   AUTHORS GRID
═══════════════════════════════════════════════════════════ */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.author-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 18px; box-shadow: var(--sh); text-align: center; transition: border-color .18s, transform .18s; display: block; }
.author-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.author-card-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0 auto 12px; overflow: hidden; }
.author-card-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; color: var(--ink); }
.author-card-affil { font-size: .84rem; color: var(--muted); margin-bottom: 8px; line-height: 1.55; }
.author-card-count { font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE PAGE
═══════════════════════════════════════════════════════════ */
.archive-grid { display: flex; flex-direction: column; gap: 18px; }
.vol-block { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }
.vol-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 2px solid var(--brand); background: linear-gradient(120deg, var(--paper) 55%, color-mix(in srgb, var(--brand) 5%, var(--paper))); }
.vol-head-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.vol-head-year { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.issue-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--faint); }
.issue-row:last-child { border-bottom: none; }
.issue-row-left strong { display: block; margin-bottom: 2px; font-size: .9rem; }
.issue-row-left span { font-size: .8rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   STATIC PAGES
═══════════════════════════════════════════════════════════ */
.static-page { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }
.static-head { padding: 18px 24px; border-bottom: 2px solid var(--brand); background: linear-gradient(120deg, var(--paper) 55%, color-mix(in srgb, var(--brand) 5%, var(--paper))); }
.static-head h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }
.static-body { padding: 24px; font-size: .98rem; color: var(--muted); line-height: 1.8; }
.static-body p { margin-bottom: 1em; }
.static-body h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin: 1.4em 0 .5em; }
.static-body ul { margin: .5em 0 1em 1.2em; list-style: disc; }
.static-body li { padding: 2px 0; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--rule); padding: 24px 0; font-size: .9rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 14px; }
.footer-mono { font-family: var(--mono); font-size: .76rem; opacity: .7; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }

@media print {
  .sidebar, .topnav, .card-actions, .article-actions,
  .site-footer, .theme-btn, .search-bar { display: none !important; }
  .page-body { grid-template-columns: 1fr; }
  .article-body { columns: 2; }
}
