/* ============================================================
   SURGAM — The Literary Magazine of the Philolexian Society
   Prototype redesign. Bookish / Lapham's-Quarterly / Paris-Review feel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IM+Fell+English+SC&display=swap');

:root {
  --bg:           #faf5e8;   /* warm cream paper */
  --paper:        #fffdf6;   /* slightly brighter for inner panels */
  --ink:          #1a1610;   /* deep ink — for body text */
  --ink-soft:     #4a4338;   /* secondary text */
  --muted:        #7a6d57;   /* tertiary */
  --rust:         #8a3a1f;   /* the single accent */
  --rust-deep:    #6a2c16;
  --gold:         #b58c41;   /* small ornaments only */
  --rule:         #d8cdb0;
  --rule-soft:    #ebe2c8;
  --serif-display:'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body:   'EB Garamond', Georgia, serif;
  --sc:           'IM Fell English SC', 'EB Garamond', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-bottom-color: var(--rust); }

/* ---- Masthead ----------------------------------------------- */
.masthead {
  text-align: center;
  padding: 64px 20px 24px;
  background: var(--bg);
}
.flourish {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-transform: uppercase;
}
.flourish::before, .flourish::after {
  content: '';
  display: inline-block;
  width: 70px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}
.flourish svg { vertical-align: middle; }
.wordmark {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(80px, 13vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.wordmark a { color: var(--ink); border-bottom: none; }
.tagline {
  font-family: var(--sc);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin: 18px 0 0;
}
.established {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ---- Nav ---------------------------------------------------- */
.nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--sc);
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-top: 24px;
}
.nav a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.nav a:hover { border-bottom-color: var(--rust); color: var(--rust); }
.nav a.current { color: var(--rust); border-bottom-color: var(--rust); }

/* ---- Wrappers ----------------------------------------------- */
.wrap        { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px;  margin: 0 auto; padding: 0 24px; }

/* ---- Hero / current issue ---------------------------------- */
.hero {
  padding: 80px 24px 72px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--rust);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero-issue {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero-date {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 36px;
  text-transform: uppercase;
}
.hero-cover {
  display: inline-block;
  margin: 16px 0 12px;
  max-width: 380px;
  box-shadow: 0 16px 40px rgba(26,22,16,0.22);
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-cover:hover { border-bottom-color: var(--rule); }
.hero-cover img { display: block; width: 100%; }
.hero-blurb {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 32px auto 24px;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--sc);
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 14px 28px;
  text-transform: uppercase;
  background: var(--rust);
  color: var(--paper);
  border: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
}
.btn:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  color: var(--paper);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---- Section header ---------------------------------------- */
.section-head {
  text-align: center;
  margin: 80px auto 40px;
  padding: 0 24px;
}
.section-head .eyebrow {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--rust);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-head .lede {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.5;
}

/* ---- Issue grid -------------------------------------------- */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 40px;
  margin: 48px 0 96px;
}
.issue {
  text-align: center;
}
.issue-cover {
  display: block;
  margin-bottom: 22px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(26,22,16,0.16);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.issue-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26,22,16,0.24);
  border-bottom: 1px solid var(--rule-soft);
}
.issue-cover img { display: block; width: 100%; }
.issue-vol {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--rust);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.issue-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--ink);
}
.issue-meta {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---- Archive list ------------------------------------------ */
.archive {
  margin: 48px auto 96px;
  max-width: 880px;
}
.archive-section {
  font-family: var(--sc);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--rust);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-list li {
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.archive-list .issue-label {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.archive-list .issue-meta-small {
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.archive-list a.issue-link {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--rust);
  text-transform: uppercase;
  border-bottom: none;
}
.archive-list a.issue-link:hover { color: var(--rust-deep); border-bottom-color: var(--rust-deep); }

/* ---- Prose pages (about, submit, kilmer) ------------------- */
.prose {
  padding: 64px 24px 96px;
  font-family: var(--serif-body);
}
.prose h1 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 64px);
  margin: 0 0 28px;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prose .eyebrow {
  font-family: var(--sc);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--rust);
  text-align: center;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.prose .lede {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 620px;
  line-height: 1.5;
}
.prose .dropcap::first-letter {
  font-family: var(--serif-display);
  font-size: 78px;
  float: left;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  font-style: italic;
  color: var(--rust);
  font-weight: 500;
}
.prose p { margin: 0 0 22px; font-size: 18px; }
.prose p a { color: var(--rust); border-bottom: 1px solid var(--rule); }
.prose p a:hover { border-bottom-color: var(--rust); }
.prose h3 {
  font-family: var(--sc);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--rust);
  margin: 44px 0 14px;
  text-transform: uppercase;
}
.prose blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--rust);
  color: var(--ink-soft);
}
.prose ul {
  margin: 0 0 24px;
  padding-left: 20px;
}
.prose ul li { margin: 0 0 6px; }

/* ---- Ornamental rule --------------------------------------- */
.rule-ornament {
  text-align: center;
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 64px auto;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.rule-ornament::before, .rule-ornament::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--gold);
  opacity: 0.55;
}

/* ---- Submit / call-to-action card -------------------------- */
.submit-card {
  max-width: 620px;
  margin: 48px auto;
  padding: 40px 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-align: center;
}
.submit-card h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 12px;
  color: var(--ink);
}
.submit-card .email {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 22px;
  display: inline-block;
  margin: 16px 0 20px;
  color: var(--rust);
  border-bottom: 1px solid var(--rule);
}

/* ---- Footer ------------------------------------------------ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px 24px 64px;
  text-align: center;
  background: var(--paper);
  margin-top: 80px;
}
.footer-mark {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 36px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1;
}
.footer-tagline {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin: 0 0 28px;
  text-transform: uppercase;
}
.footer-links {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.22em;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0 0 22px;
  flex-wrap: wrap;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.footer-legal {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.footer-back {
  font-family: var(--sc);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 22px 0 0;
  text-transform: uppercase;
}
.footer-back a { color: var(--rust); border-bottom: none; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .issue-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav { gap: 18px; flex-wrap: wrap; font-size: 11px; padding: 14px 16px; }
  .hero { padding: 56px 20px 48px; }
  .section-head { margin: 56px auto 28px; }
  .flourish::before, .flourish::after { width: 36px; }
}
