/* VATES — The Journal of New Latin Poetry
   Hand-written CSS, no framework, no external requests. */
@import url("fonts.css");

:root {
  --paper: #f6f0e3;
  --paper-2: #efe6d3;       /* slightly deeper panels */
  --paper-3: #e6dac1;
  --ink: #1d1814;           /* deep ink */
  --ink-soft: #4a4038;      /* secondary text, 8.5:1 on paper */
  --rule: #cdbf9f;
  --accent: #9c2f22;        /* Pompeian red, 6.6:1 on paper */
  --accent-deep: #7a2218;
  --on-dark: #f6f0e3;
  --head: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --measure: 40rem;
  --wide: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-family: var(--body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.8rem;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.prose { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.tinted { background: var(--paper-2); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; padding: 1rem 0; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.brand b { font-family: var(--head); font-size: 2.1rem; font-weight: 600; letter-spacing: .12em; line-height: 1; }
.brand span { font-family: var(--head); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.brand:hover { color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; }
.site-nav a { display: inline-block; padding: .35rem 0; text-decoration: none; color: var(--ink); font-size: 1rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--on-dark);
  background: #2a2018; overflow: hidden;
}
.hero picture, .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero img.bg { object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24,15,10,.84) 0%, rgba(24,15,10,.70) 34%, rgba(24,15,10,.10) 72%, rgba(24,15,10,0) 100%),
    linear-gradient(0deg, rgba(24,15,10,.5), rgba(24,15,10,0) 30%);
}
.hero .wrap { padding: clamp(4.5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 7.5rem); }
.hero h1 { color: var(--on-dark); letter-spacing: .1em; margin-bottom: .1em; }
.hero .sub { font-family: var(--head); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1.4rem; color: #f0e2c4; }
.hero .lede { max-width: 36rem; font-size: 1.2rem; margin-bottom: 2rem; color: var(--on-dark); }
.hero .eyebrow { color: #f1c9bd; }
.credit { font-size: .82rem; color: var(--ink-soft); }
.hero .credit { position: absolute; right: 1rem; bottom: .6rem; color: #e9dcc0; max-width: 28rem; text-align: right; line-height: 1.35; margin: 0; }
.hero .credit a { color: #f3e3c0; }

.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-block; padding: .8rem 1.5rem; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  border-radius: 2px; transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.hero .btn.ghost { color: var(--on-dark); border-color: var(--on-dark); }
.hero .btn.ghost:hover { background: var(--on-dark); color: var(--ink); }
.hero .btn:not(.ghost) { background: #b0382a; border-color: #b0382a; }
.hero .btn:not(.ghost):hover { background: #c4432f; border-color: #c4432f; }

/* ---------- Page heading ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 40rem; margin: 0; }

/* ornament rule */
.orn { display: flex; align-items: center; gap: 1rem; color: var(--accent); margin: 2.2rem auto; width: min(100% - 2.5rem, 14rem); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.orn i { width: .55rem; height: .55rem; background: var(--accent); transform: rotate(45deg); display: block; }

/* ---------- Home layout ---------- */
.two-col { display: grid; gap: 3rem; grid-template-columns: 1.35fr 1fr; align-items: start; }
.two-col h2 { margin-bottom: .6em; }
.drop::first-letter { font-family: var(--head); font-weight: 600; font-size: 4.3rem; line-height: .8; float: left; padding: .35rem .6rem 0 0; color: var(--accent); }
.panel { background: var(--paper-2); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.8rem 1.8rem 1.4rem; }
.panel h3 { margin-top: 0; }

.verse-frame {
  max-width: 34rem; margin: 0 auto; padding: 2.2rem 2.2rem 1.8rem;
  border: 1px solid var(--rule); background: var(--paper); text-align: center; position: relative;
}
.verse-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.verse { font-family: var(--head); font-style: italic; font-size: 1.55rem; line-height: 1.5; color: var(--ink); }
.placeholder { margin: 0 0 1.4rem;
  border: 2px dashed var(--accent); background: rgba(156,47,34,.06); color: var(--accent-deep);
  padding: 1rem 1.2rem; font-size: .98rem; line-height: 1.5; border-radius: 2px;
}
.placeholder b { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; display: block; margin-bottom: .2rem; }

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.news li { border-top: 2px solid var(--ink); padding-top: .9rem; }
.news time { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.news h3 { margin: .3rem 0 .4rem; font-size: 1.45rem; }
.news p { margin: 0; font-size: 1.02rem; }

/* ---------- Issues ---------- */
.issue-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.issue {
  background: var(--paper-2); border: 1px solid var(--rule); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; height: 100%;
}
.issue:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(60,40,20,.14); }
.plate {
  position: relative; text-align: center; padding: 1.6rem 1rem 1.3rem; color: var(--on-dark);
  background: linear-gradient(160deg, #2b211a, #1d1814); border-bottom: 3px solid var(--accent);
}
.plate::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(246,240,227,.28); pointer-events: none; }
.plate .w { font-family: var(--head); letter-spacing: .28em; font-size: .95rem; text-indent: .28em; color: #e8d6b0; display: block; }
.plate .num { font-variant-numeric: lining-nums; font-family: var(--head); font-weight: 600; font-size: 3.6rem; line-height: 1.05; display: block; margin: .25rem 0 .1rem; }
.plate .arabic { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #e8d6b0; display: block; }
.issue .meta { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.issue h3 { font-size: 1.45rem; margin: 0; }
.issue .when { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.issue .by { color: var(--ink-soft); font-size: .88rem; margin: 0 0 .9rem; }
.issue .btn { margin-top: auto; text-align: center; padding: .6rem 1rem; font-size: .95rem; }
.issue.latest { border-color: var(--accent); }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--accent); padding: .1rem .55rem; margin-bottom: .4rem; align-self: flex-start; }
.issue.is-placeholder { background: transparent; border: 2px dashed var(--accent); }
.issue.is-placeholder .plate { background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px); color: var(--accent-deep); border-bottom: 2px dashed var(--accent); }
.issue.is-placeholder .plate::before { border-color: var(--rule); }
.issue.is-placeholder .plate .w, .issue.is-placeholder .plate .arabic { color: var(--accent-deep); }
.issue.is-placeholder .meta p { color: var(--accent-deep); font-size: .95rem; line-height: 1.45; }

/* ---------- Content blocks ---------- */
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--accent); font-family: var(--head); font-style: italic; font-size: 1.4rem; line-height: 1.45; }
.prose blockquote footer { font-family: var(--body); font-style: normal; font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.source-note { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: 2.2rem; }

.reading-list { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; }
.reading-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); margin: 0; align-items: baseline; }
.reading-list h3, .reading-list h4 { margin: 0; font-size: 1.35rem; }
.reading-list p { margin: .1rem 0 0; font-size: 1rem; color: var(--ink-soft); grid-column: 1; }
.reading-list .where { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: .95rem; white-space: nowrap; }

.contact-card { background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1.6rem 1.8rem; margin-bottom: 1.6rem; }
.contact-card h2, .contact-card h3 { margin-top: 0; font-size: 1.6rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 600; margin-top: .8rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
.verbatim { font-family: var(--body); background: var(--paper); border: 1px solid var(--rule); padding: 1rem 1.2rem; font-size: 1rem; line-height: 1.6; }
.note-line { font-size: .92rem; color: var(--ink-soft); }

.cta-band { background: var(--ink); color: var(--on-dark); text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: var(--on-dark); }
.cta-band p { max-width: 34rem; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .btns { justify-content: center; }
.cta-band .btn.ghost { color: var(--on-dark); border-color: var(--on-dark); }
.cta-band .btn.ghost:hover { background: var(--on-dark); color: var(--ink); }
.cta-band .btn:not(.ghost) { background: #b0382a; border-color: #b0382a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-3); border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink-soft); padding: 2.4rem 0 1.8rem; }
.site-footer .wrap { display: grid; gap: 1.6rem 3rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .25rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1rem; font-size: .85rem; }
.site-footer p { margin: 0 0 .5em; }

/* ---------- Responsive ---------- */
@media (max-width: 52rem) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(0deg, rgba(20,13,9,.88), rgba(20,13,9,.62)); }
  .hero .credit { position: static; text-align: left; padding: 0 1.25rem 1rem; max-width: none; }
  .reading-list li { grid-template-columns: 1fr; }
  .reading-list .where { grid-column: 1; grid-row: auto; text-align: left; margin-top: .3rem; }
}
@media (max-width: 34rem) {
  body { font-size: 1.06rem; }
  .brand b { font-size: 1.8rem; }
  .brand span { font-size: 1.05rem; }
  .site-nav ul { gap: .1rem 1.1rem; }
  .issue-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .plate .num { font-size: 2.6rem; }
  .issue h3 { font-size: 1.35rem; }
  .issue .btn { padding: .55rem .5rem; }
  .issue.is-placeholder { grid-column: 1 / -1; }
  .issue .meta { padding: .9rem .8rem 1rem; }
  .verse-frame { padding: 1.6rem 1.2rem; }
}
@media (max-width: 21rem) { .issue-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .issue, .btn { transition: none; } .issue:hover { transform: none; } }
@media print { .site-nav, .hero::after, .btns, .site-footer { display: none; } body { background: #fff; } }

/* ---------- Anthology ---------- */
.anth { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: 2.5rem 3.5rem; align-items: start; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.anth-cover { margin: 0; }
.anth-cover img { width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 10px 28px rgba(60,40,20,.22); }
.anth-main h2 { margin-top: 0; }
.anth-main .lede { color: var(--ink-soft); }
.dl-box { background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1.3rem 1.5rem; margin: 1.6rem 0; }
.dl-box .btn { font-size: 1.1rem; padding: .9rem 1.7rem; }
.dl-box .note-line { margin: .8rem 0 0; }
.facts { margin: 0; display: grid; gap: .7rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.facts dt { font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; }
.toc { list-style: none; margin: 0 0 1.6rem; padding: 0; columns: 2 20rem; column-gap: 3rem; }
.toc li { break-inside: avoid; border-bottom: 1px dotted var(--rule); }
.toc a { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; text-decoration: none; color: var(--ink); }
.toc a:hover .n { color: var(--accent); text-decoration: underline; }
.toc .p { color: var(--ink-soft); font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.toc-front, .toc-back { columns: 1; max-width: 34rem; }
.anth-contents h3 { margin-top: 1.6rem; font-size: 1.5rem; }

.mini-feature { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem 2rem; align-items: center; background: var(--paper-2); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.5rem 1.8rem; }
.mini-feature img { width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 4px 12px rgba(60,40,20,.2); }
.mini-feature h2 { font-size: 1.7rem; margin: 0 0 .3em; }
.mini-feature p { margin: 0 0 .6em; font-size: 1.02rem; }
.mini-feature .links { margin: 0; }

.guide-dl { background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1.5rem 1.7rem; margin: 0 0 2.2rem; }
.guide-dl h2 { margin: 0 0 .3em !important; font-size: 1.8rem; }
.guide-dl .eyebrow { margin-bottom: .4rem; }
.guide-dl ul { columns: 2 16rem; column-gap: 2rem; font-size: 1rem; margin: .4rem 0 1.2rem; }
.guide-dl li { margin-bottom: .25em; break-inside: avoid; }
.guide-dl .note-line { margin: .8rem 0 0; }

@media (max-width: 52rem) {
  .anth { grid-template-columns: 1fr; }
  .anth-cover { max-width: 15rem; margin-inline: auto; }
}
@media (max-width: 34rem) {
  .mini-feature { grid-template-columns: 4.5rem 1fr; padding: 1.2rem; gap: 1rem; }
  .mini-feature h2 { font-size: 1.45rem; }
  .dl-box .btn { display: block; text-align: center; }
}

/* ---------- Poem on the home page ---------- */
.poem-frame { max-width: 62rem; margin: 0 auto; padding: 2.4rem 2.6rem 1.8rem; border: 1px solid var(--rule); background: var(--paper); position: relative; }
.poem-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.poem-frame h3 { text-align: center; font-size: 2.2rem; margin-bottom: .3em; }
.poem-note { text-align: center; font-style: italic; color: var(--ink-soft); max-width: 40rem; margin: 0 auto 1.8rem; }
.poem-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3.5rem; align-items: start; }
.poem-latin .verse { margin: 0 0 1rem; font-size: 1.45rem; line-height: 1.55; }
.poem-metre { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.poem-english { border-left: 1px solid var(--rule); padding-left: 3rem; }
.poem-english h4 { font-family: var(--head); font-size: 1.35rem; margin: 0 0 .5em; color: var(--ink); }
.poem-english p { font-size: 1.05rem; line-height: 1.65; }
.poem-english sup a { text-decoration: none; padding: 0 .1em; font-weight: 600; }
.poem-fn { font-size: .88rem; color: var(--ink-soft); padding-left: 1.2rem; margin: 1rem 0 0; }
.poem-fn li { margin-bottom: .2em; }
.poem-credit { text-align: center; margin: 1.8rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 52rem) {
  .poem-cols { grid-template-columns: 1fr; }
  .poem-english { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
}
@media (max-width: 34rem) { .poem-frame { padding: 1.8rem 1.3rem 1.4rem; } .poem-latin .verse { font-size: 1.3rem; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dl-box .btn.ghost { font-size: 1rem; padding: .9rem 1.4rem; }
@media (max-width: 34rem) { .dl-box .btns { flex-direction: column; } .dl-box .btn.ghost { text-align: center; } }
