:root {
  color-scheme: light;
  --ink: #18242b;
  --muted: #52616a;
  --line: #d7dee1;
  --paper: #ffffff;
  --wash: #f2f5f4;
  --accent: #9c2935;
  --accent-dark: #761d27;
  --gold: #b88a32;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
.skip_link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .65rem .9rem;
  background: var(--ink);
  color: white;
}
.skip_link:focus { top: 1rem; }
.site_header, main, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site_header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { display: grid; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.brand small { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 1.6rem; }
nav a { color: var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent-dark); }
.portal_intro { padding: 5.5rem 0 4.5rem; max-width: 880px; }
.kicker {
  margin: 0 0 .7rem;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
}
h1 { max-width: 760px; font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: 2rem; }
h3 { font-size: clamp(1.75rem, 3vw, 2.7rem); }
.portal_intro > p:last-child {
  max-width: 750px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.journal_directory { padding: 3.5rem 0 5rem; border-top: 1px solid var(--line); }
.section_heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section_heading > p { margin: 0; color: var(--muted); }
.journal_entry {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.journal_cover {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.journal_cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
}
.journal_body { align-self: center; }
.journal_status { margin: 0 0 1rem; color: var(--accent-dark); font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.journal_body h3 a { color: var(--ink); text-decoration: none; }
.journal_body > p:not(.journal_status) { max-width: 720px; margin: 1.35rem 0; color: var(--muted); }
.journal_actions { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-top: 1.8rem; }
.journal_actions a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.journal_actions .primary_action {
  padding: .72rem 1rem;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
}
.journal_actions .primary_action:hover { background: var(--ink); border-color: var(--ink); }
.publisher_band {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.6fr) auto;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 3px solid var(--gold);
}
.publisher_band > p { margin: 0; color: var(--muted); }
.publisher_band > a { font-weight: 700; white-space: nowrap; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
footer p { margin: 0; }
@media (max-width: 760px) {
  .site_header { align-items: flex-start; flex-direction: column; padding: 1.1rem 0; gap: 1rem; }
  nav { width: 100%; gap: .8rem 1.2rem; flex-wrap: wrap; }
  .portal_intro { padding: 3.7rem 0 3rem; }
  h1 { font-size: 2.7rem; }
  .section_heading, .journal_entry, .publisher_band { grid-template-columns: 1fr; }
  .section_heading, .journal_entry, .publisher_band { gap: 1.5rem; }
  .journal_cover { min-height: 280px; }
  .journal_cover img { max-height: 350px; width: auto; max-width: 100%; }
  footer { flex-direction: column; gap: .5rem; }
}
@media (max-width: 420px) {
  .site_header, main, footer { width: min(100% - 28px, 1180px); }
  .brand strong { font-size: 1.1rem; }
  h1 { font-size: 2.25rem; }
  .journal_entry { padding: 1rem; }
  .journal_actions { align-items: stretch; flex-direction: column; }
  .journal_actions .primary_action { text-align: center; }
}
