/* ============================================================
   THE JAMES MADISON JOURNAL — house stylesheet
   A restrained, print-journal aesthetic: old-style serifs,
   ruled hairlines, ivory stock, ink & Princeton-orange accents.
   ============================================================ */

:root {
  --ink:        #16233d;   /* deep navy-black, body & masthead   */
  --ink-soft:   #3a4152;
  --paper:      #f7f3e9;   /* ivory stock                        */
  --paper-2:    #f1ebdb;   /* slightly deeper panel              */
  --rule:       #c9bfa4;   /* hairline rule on paper             */
  --accent:     #d16400;   /* burnt Princeton orange, used spare */
  --accent-dk:  #a34d00;
  --maxw:       1120px;
  --serif:      'EB Garamond', Georgia, 'Times New Roman', serif;
  --display:    'Cormorant Garamond', Georgia, serif;
  --sans:       'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.012) 0, transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.012) 0, transparent 60%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #d9d3c2;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 28px;
  text-transform: uppercase;
}
.topbar__issue { text-align: center; flex: 1; }
.topbar__access { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar__access:hover { color: var(--accent); }

/* ---------- Masthead ---------- */
.masthead {
  text-align: center;
  padding: 40px 0 26px;
  border-bottom: 3px double var(--ink);
}
.masthead__kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.masthead__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}
.masthead__sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.masthead__motto {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin: 16px 0 0;
}
.masthead__motto span { color: var(--ink-soft); letter-spacing: 0.12em; }

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 30px;
  padding: 12px 28px;
}
.nav a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav__cta {
  color: #fff !important;
  background: var(--ink);
  padding: 5px 14px;
  border-radius: 2px;
}
.nav__cta:hover { background: var(--accent-dk); }

/* ---------- Section labels ---------- */
.section-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-dk);
  font-weight: 600;
  margin: 0 0 18px;
}
.section-label--center { text-align: center; }
.section-label--center::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--accent);
  margin: 12px auto 0;
}
.section-label--light { color: #e8b487; }
.section-label--light::after { background: #e8b487; }

/* ---------- Rules ---------- */
.rule-double {
  border: 0;
  border-top: 3px double var(--rule);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- Lead ---------- */
.lead {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 54px;
  padding: 56px 28px;
}
.lead__para { margin: 0 0 20px; text-align: justify; hyphens: auto; }
.dropcap {
  float: left;
  font-family: var(--display);
  font-size: 76px;
  line-height: 0.72;
  padding: 8px 10px 0 0;
  color: var(--accent-dk);
  font-weight: 600;
}
.lead__aside {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 26px 26px 30px;
  align-self: start;
}
.aside__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-weight: 600;
}
.factlist { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.factlist dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dk);
  padding-top: 3px;
}
.factlist dd { margin: 0; font-size: 16px; }
.aside__btn, .btn { font-family: var(--sans); }
.aside__btn {
  display: block;
  text-align: center;
  margin-top: 22px;
  padding: 11px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.aside__btn:hover { background: var(--accent-dk); text-decoration: none; color:#fff; }

/* ---------- Aims & Scope ---------- */
.scope { padding: 56px 28px; }
.scope__intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 20px;
  color: var(--ink-soft);
}
.scope__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.field {
  padding: 26px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.field:nth-child(3n) { border-right: 0; }
.field__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  margin: 0 0 10px;
  color: var(--ink);
}
.field p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- Current selections / TOC ---------- */
.works { padding: 56px 28px; }
.works__note, .board__note, .submit__intro, .works__note em {
  max-width: 780px; margin-left: auto; margin-right: auto; text-align: center;
}
.works__note { color: var(--ink-soft); margin-bottom: 40px; font-size: 17px; }
.toc { list-style: none; margin: 0; padding: 0; max-width: 860px; margin: 0 auto; }
.toc__item {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.toc__item:last-child { border-bottom: 1px solid var(--rule); }
.toc__field {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin: 0 0 6px;
  font-weight: 600;
}
.toc__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.toc__author {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-size: 17px;
}
.toc__abstract { margin: 0 0 10px; font-size: 17px; }
.toc__meta { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0; text-transform: uppercase; }

/* ---------- Submissions ---------- */
.submit { padding: 56px 28px; }
.submit__intro { margin-bottom: 40px; font-size: 18px; }
.submit__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
}
.submit__h {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.submit__h:first-child { margin-top: 0; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 0 0 12px 24px;
  font-size: 16.5px;
}
.checklist li::before {
  content: "§";
  position: absolute;
  left: 0;
  color: var(--accent-dk);
  font-weight: 700;
}
.submit__action { text-align: center; margin-top: 46px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: background .15s, color .15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- Institutional access ---------- */
.access {
  background: var(--ink);
  color: #ece7d8;
  padding: 66px 0;
  text-align: center;
}
.access__inner { max-width: 720px; }
.access__h {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
}
.access__body { font-size: 18px; color: #cfc9b8; margin: 0 auto 30px; }
.btn--access {
  background: var(--accent);
  color: #1a1200;
  font-size: 15px;
  padding: 16px 40px;
}
.btn--access:hover { background: #fff; color: var(--ink); text-decoration: none; }
.access__fine { font-family: var(--sans); font-size: 13px; margin: 22px 0 0; color: #b3ad9c; }
.access__fine a { color: #e8b487; }

/* ---------- Editorial board ---------- */
.board { padding: 56px 28px 64px; }
.board__note { color: var(--ink-soft); margin-bottom: 40px; font-size: 16px; text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }

/* Featured editor card */
.editor {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 34px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}
.editor__photo {
  position: relative;
  width: 170px;
  height: 200px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}
.editor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.editor__ph { display: none; }
.editor__photo--empty { display: flex; align-items: center; justify-content: center; }
.editor__photo--empty .editor__ph {
  display: block; font-family: var(--display); font-weight: 600; font-size: 54px; color: var(--ink-soft);
}
.editor__role {
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dk); font-weight: 600; margin: 0 0 4px;
}
.editor__name { font-family: var(--display); font-weight: 600; font-size: 31px; line-height: 1.04; margin: 0 0 4px; }
.editor__affil { font-style: italic; color: var(--ink-soft); font-size: 17px; margin: 0 0 14px; }
.editor__bio { margin: 0; font-size: 16.5px; }
@media (max-width: 620px) {
  .editor { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
}
.board__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.board__role {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dk);
  font-weight: 600;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.board__name { margin: 0; font-size: 16px; color: var(--ink); font-style: italic; }

/* ---------- Colophon / footer ---------- */
.colophon {
  background: var(--paper-2);
  border-top: 3px double var(--ink);
  padding: 48px 0 0;
}
.colophon__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.colophon__name { font-family: var(--display); font-weight: 600; font-size: 34px; margin: 0; line-height: 1; }
.colophon__tag { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-soft); margin: 4px 0 12px; }
.colophon__issn { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.colophon__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.colophon__head {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}
.colophon__cols a { display: block; font-size: 15px; margin-bottom: 7px; color: var(--ink-soft); }
.colophon__cols a:hover { color: var(--accent); }
.colophon__legal {
  border-top: 1px solid var(--rule);
  padding: 20px 28px 30px;
}
.colophon__legal p {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: var(--maxw);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .lead { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px; }
  .scope__grid { grid-template-columns: 1fr 1fr; }
  .field:nth-child(3n) { border-right: 1px solid var(--rule); }
  .field:nth-child(2n) { border-right: 0; }
  .submit__cols { grid-template-columns: 1fr; gap: 8px; }
  .board__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .colophon__inner { grid-template-columns: 1fr; gap: 28px; }
  .topbar__inner { font-size: 10px; gap: 8px; }
  .nav__inner { gap: 4px 18px; }
}
@media (max-width: 520px) {
  .scope__grid { grid-template-columns: 1fr; }
  .field { border-right: 0 !important; }
  .board__grid { grid-template-columns: 1fr; }
  .colophon__cols { grid-template-columns: 1fr; }
  .topbar__issn { display: none; }
}
