@font-face {
  font-family: "EL Newspaper";
  src: url("/assets/DejaVuSerifCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #21170f;
  --ink-soft: #594735;
  --paper: #e7d4aa;
  --paper-light: #f1e5c9;
  --rust: #7b3025;
  --rust-dark: #572019;
  --moss: #5d5a43;
  --line: rgba(64, 38, 22, .38);
  --shadow: 0 24px 70px rgba(16, 10, 7, .28);
  --headline: "EL Newspaper", Georgia, "Times New Roman", serif;
}

html { background: #1a1511; }

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(49, 29, 17, .035), rgba(49, 29, 17, .035)),
    repeating-linear-gradient(0deg, rgba(69, 42, 24, .035) 0, rgba(69, 42, 24, .035) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 50% -8rem, #f5e8cb 0, #e6cfa0 38rem, #d2b785 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .14;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0 3px, rgba(44, 27, 16, .25) 4px 4.5px),
    repeating-linear-gradient(92deg, transparent 0 17px, rgba(75, 48, 28, .12) 18px 18.6px);
  mix-blend-mode: multiply;
}

.site-header {
  top: 0;
  padding: .68rem clamp(1rem, 4vw, 4rem);
  background: rgba(231, 212, 170, .96);
  border-top: 1px solid rgba(77, 47, 27, .45);
  border-bottom: 4px double rgba(77, 47, 27, .72);
  box-shadow: 0 7px 18px rgba(27, 17, 10, .15);
}

.brand {
  font-family: var(--headline);
  letter-spacing: -.04em;
  text-transform: uppercase;
}

nav { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
nav a::before { content: "✦"; margin-right: .45rem; color: var(--rust); font-size: .72em; }

.shop-ribbon {
  color: var(--paper-light);
  background:
    repeating-linear-gradient(0deg, rgba(245, 227, 193, .025) 0 1px, transparent 1px 4px),
    #241914;
  border-bottom: 5px double #9d774d;
}

.shop-ribbon-cta, .button {
  border: 2px solid var(--rust-dark);
  border-radius: 0;
  color: var(--paper-light);
  background: var(--rust);
  box-shadow: inset 0 0 0 2px rgba(239, 220, 181, .28);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .08em;
}

.button.primary { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.button:hover, .button:focus-visible, .shop-ribbon-link:hover .shop-ribbon-cta { background: var(--rust-dark); }

.hero, .feature, .manifesto, .brief-content, .upcoming-intro-inner, .upcoming-body,
.story-callout, .share-panel, .next-note, .shop-ad {
  position: relative;
}

.hero {
  width: min(94rem, calc(100% - 2rem));
  min-height: auto;
  margin: clamp(1.2rem, 3vw, 2.4rem) auto;
  overflow: hidden;
  background: rgba(237, 222, 190, .75);
  border: 7px double var(--ink);
  box-shadow: var(--shadow);
}

.hero-copy { padding: clamp(3rem, 7vw, 7rem); }
.hero-copy::before, .evp-heading::before, .upcoming-intro-inner::before {
  content: "THE";
  display: inline-block;
  margin: 0 0 .8rem;
  padding: .18rem .78rem .28rem;
  transform: rotate(-4deg);
  color: #f0dfbc;
  background: var(--rust);
  border: 2px solid var(--rust-dark);
  box-shadow: 3px 3px 0 rgba(62, 36, 21, .32);
  font-family: var(--headline);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1;
}

h1, .hero h1, .evp-heading h1, .upcoming-intro h1 {
  color: var(--ink);
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.055em;
  text-shadow: .8px .8px 0 rgba(113, 70, 38, .22);
}

.hero h1, .evp-heading h1, .upcoming-intro h1 {
  max-width: 16ch;
  font-size: clamp(3.1rem, 7.6vw, 7.5rem);
  line-height: .88;
}

/* About-page hero uses the newspaper panel's light parchment background. */
.hero .dek {
  color: var(--ink-soft);
}

h2, .feature h2, .manifesto h2, .brief-content > h2, .diary-top h2,
.article h2, .edition-archive h2 {
  font-family: var(--headline);
  font-weight: 700;
  letter-spacing: -.035em;
}

.eyebrow {
  color: var(--rust-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.manifesto, .feature, .brief-content, .upcoming-body {
  width: min(82rem, calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  padding: clamp(2.3rem, 6vw, 5.5rem);
  background:
    repeating-linear-gradient(0deg, rgba(70, 43, 24, .028) 0 1px, transparent 1px 5px),
    rgba(242, 229, 200, .91);
  border: 7px double rgba(53, 31, 18, .82);
  box-shadow: var(--shadow);
}

.manifesto::after, .feature::after, .brief-content::after, .upcoming-body::after {
  content: "✦  ❦  ✦";
  position: absolute;
  left: 50%;
  bottom: .5rem;
  transform: translateX(-50%);
  color: var(--rust);
  letter-spacing: .45rem;
}

.rubric { width: min(82rem, calc(100% - 2rem)); margin: 0 auto 3rem; border: 5px double var(--ink); }
.rubric article { background: rgba(235, 215, 174, .94); border-right: 1px solid var(--line); }
.rubric h3 { font-family: var(--headline); text-transform: uppercase; }

.case-card, .brief-card, .event-card {
  overflow: hidden;
  border: 5px double rgba(55, 32, 19, .78);
  background:
    repeating-linear-gradient(0deg, rgba(70, 43, 24, .022) 0 1px, transparent 1px 5px),
    rgba(239, 222, 187, .95);
  box-shadow: 0 13px 32px rgba(40, 24, 14, .18);
}

.brief-card img, .evp-cover img {
  filter: sepia(.10) contrast(1.04) saturate(.9);
  border: 2px solid rgba(56, 33, 19, .72);
}

.brief-card h3, .event-card h2 {
  font-family: var(--headline);
  text-transform: uppercase;
  line-height: 1;
}

.brief-card h3::first-letter { color: var(--rust); }
.media-context, .event-status { color: var(--rust-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }

.evp-heading, .upcoming-intro-inner {
  width: min(82rem, calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  padding: clamp(2.7rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.24), transparent 36rem),
    repeating-linear-gradient(0deg, rgba(65, 38, 21, .03) 0 1px, transparent 1px 5px),
    #e8d2a5;
  border: 8px double var(--ink);
  box-shadow: var(--shadow);
  text-align: left;
}

.evp-heading::after, .upcoming-intro-inner::after {
  content: "✦  ENCOUNTER & LORE  ✦";
  display: block;
  margin-top: 2rem;
  padding-top: .8rem;
  border-top: 4px double var(--ink);
  color: var(--rust-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-align: center;
}

.evp-cover {
  width: min(70rem, calc(100% - 2rem));
  margin: 1.4rem auto 0;
  padding: 1rem;
  background: #d7bd8b;
  border: 6px double var(--ink);
  box-shadow: var(--shadow);
}

.evp-cover figcaption { padding: .8rem .4rem .15rem; font-size: .86rem; }

.article-wrap { background: transparent; }
.article-tools { border-top: 1px solid #a77e51; border-bottom: 1px solid #a77e51; }
.article-meta, .article-index, .article, .image-note, .brief-note, .edition-archive {
  background: rgba(246, 234, 207, .86);
}

.article {
  width: min(100% - 2rem, 51rem);
  margin-top: 1.5rem;
  padding: clamp(2.3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(45, 26, 14, .10);
}

.article > p:first-child::first-letter {
  float: left;
  margin: .05em .12em 0 0;
  color: var(--rust);
  font-family: var(--headline);
  font-size: 4.4em;
  line-height: .74;
}

.article h2 { border-top: 4px double var(--line); }
.article h3 { color: var(--rust-dark); font-family: var(--headline); }
.brief-note { border: 3px double var(--rust); }

.upcoming-page { background: transparent; }
.upcoming-intro { padding: 0; background: transparent; }
.event-controls { border: 4px double var(--ink); background: rgba(231, 210, 168, .8); }
.event-controls input, .event-controls select { background: #f3e4c2; border: 1px solid var(--ink); }
.event-date { color: var(--paper-light); background: var(--rust-dark); font-family: var(--headline); }
.event-date span { color: #ead5ac; }
.event-card { margin-bottom: 1.4rem; }
.event-copy { padding: clamp(1.3rem, 3vw, 2.3rem); }
.event-checked { border-top: 1px solid var(--line); }
.diary-footer { border: 6px double #b38a59; background: #231914; }

.timeline-section, footer {
  background:
    linear-gradient(rgba(20,13,9,.97), rgba(20,13,9,.97)),
    repeating-linear-gradient(0deg, rgba(242,224,187,.04) 0 1px, transparent 1px 5px);
  border-top: 5px double #a77e51;
}

footer h2 { font-family: var(--headline); text-transform: uppercase; }

@media (max-width: 820px) {
  .site-masthead { padding: .38rem .45rem .28rem; }
  .site-header { position: sticky; }
  .hero { width: calc(100% - 1rem); border-width: 5px; }
  .hero-art { min-height: 27rem; }
  .manifesto, .feature, .brief-content, .upcoming-body,
  .evp-heading, .upcoming-intro-inner { width: calc(100% - 1rem); border-width: 5px; }
  .evp-heading h1, .upcoming-intro h1 { font-size: clamp(2.9rem, 14vw, 5rem); }
  .evp-cover { width: calc(100% - 1rem); }
}

@media (max-width: 620px) {
  .site-masthead img { min-height: 6.5rem; object-fit: cover; object-position: center; }
  .brand { font-size: 1rem; }
  nav a::before { display: none; }
  .hero-copy, .manifesto, .feature, .brief-content, .upcoming-body,
  .evp-heading, .upcoming-intro-inner { padding: 2rem 1.15rem 3rem; }
  .article { width: calc(100% - 1rem); padding: 2rem 1.15rem; }
}

