
/* HOMEPAGE-ONLY DECORATIVE SYSTEMS (scoped in homepage only) */
/* If any of these are reused, move them out of .home-page scope and into this file as global/shared. */

/* Example: If .archive-stamp, .marginalia-layer, .fold-tooltip, .crystal-ball-* are reused, define them here globally. Otherwise, keep them .home-page scoped in homepage. */
:root {
  --paper: #ececec;
  --paper-dark: #dfdfdf;
  --ink: #000000;
  --ink-soft: #000000;
  --rule: #756a54;
  --accent: #5a2018;

  --typewriter-stack: "VeteranTypewriterLocal", "CarbonLocal", "TypeTypeLocal", serif;
  --page-shell-max-width: 1200px;
  --page-shell-padding: 1.5rem;
  --masthead-padding-top: 1rem;
  --masthead-padding-bottom: 0.8rem;
  --masthead-bottom-margin: 0.8rem;
  --masthead-logo-width: 85%;
  --masthead-logo-max-width: 1020px;
  --top-nav-margin-y: 1rem;
  --top-nav-block-padding: 0.45rem;
  --top-nav-link-size: 0.82rem;
  --top-nav-gap: 0.65rem;
}

/* =========================
   FONTS (UNCHANGED)
========================= */

@font-face {
  font-family: "FinalAffairsDisplay";
  src: url("../assets/fonts/Conflict-of-interest.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "LetterpressBlocksLocal";
  src:
    url("../assets/fonts/vintage letterpress blocks.otf") format("opentype"),
    url("../assets/fonts/vintage letterpress blocks.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "TypeOLocal";
  src: url("../assets/fonts/TypeO.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "TypeOAltLocal";
  src: url("../assets/fonts/typeo___.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "TypeTypeLocal";
  src: url("../assets/fonts/Typetype.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "TypeTysLocal";
  src: url("../assets/fonts/Typetys.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "CarbonLocal";
  src: url("../assets/fonts/carbon.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "VeteranTypewriterLocal";
  src: url("../assets/fonts/veteran typewriter.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IMFellEnglishLocal";
  src: url("../assets/fonts/IMFeENrm29P.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IMFellEnglishLocal";
  src: url("../assets/fonts/IMFeENit29P.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IMFellEnglishSmallCapsLocal";
  src: url("../assets/fonts/IMFeENsc29P.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AmsterdamHandLocal";
  src: url("../assets/fonts/amsterdam-handwriting.regular.ttf") format("truetype");
  font-display: swap;
}

/* =========================
   GLOBAL BASE
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--paper-font, "TypeTypeLocal", serif);
  color: var(--ink);
  background-color: #dadada;
  background:
    radial-gradient(circle at 12% 18%, rgba(80, 80, 78, 0.045), transparent 42%),
    radial-gradient(circle at 84% 74%, rgba(70, 70, 66, 0.045), transparent 40%),
    linear-gradient(180deg, #e8e8e8, #d8d8d8);
  line-height: 1.55;
  overflow-x: hidden;
}

body:not(.allow-site-color) {
  filter: grayscale(1);
}

/* =========================
   PERSONA MODES (TRIMMED)
========================= */

body.persona-dm {
  font-family: var(--typewriter-stack);
}

body.persona-dm .dm-story-name {
  margin: -0.2rem 0 0.3rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(44, 30, 14, 0.82);
}

body.persona-dm .dm-entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0.95rem;
  padding: 0.38rem 0.7rem;
  border-top: 1px solid rgba(43, 28, 12, 0.34);
  border-bottom: 1px solid rgba(43, 28, 12, 0.34);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(33, 22, 9, 0.82);
}

body.persona-dm .dm-entry-meta .dm-entry-number {
  color: #402211;
}

body.persona-dm .dm-entry-meta time {
  font-variant-numeric: tabular-nums;
}

body.persona-sc {
  font-family: "IMFellEnglishLocal", serif;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* =========================
   LINKS (SIMPLIFIED)
========================= */

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   PAGE WRAPPER
========================= */

.page {
  width: min(100%, var(--page-shell-max-width));
  max-width: var(--page-shell-max-width);
  margin: 0 auto;
  padding: var(--page-shell-padding);
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #e7e7e7;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.22), transparent 46%),
    radial-gradient(circle at 72% 66%, rgba(0, 0, 0, 0.04), transparent 48%),
    linear-gradient(180deg, #ededed 0%, var(--paper) 62%, var(--paper-dark) 100%);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(21, 15, 8, 0.2);
}

/* =========================
   MASTHEAD
========================= */

.masthead {
  text-align: center;
  border: 0;
  padding: 0 0 0.2rem;
  margin-bottom: 0.15rem;
}

.kicker {
  margin: 0;
  font-family: var(--typewriter-stack) !important;
  font-size: 0.72rem;
  font-style: normal !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.masthead-logo {
  display: block;
  width: var(--masthead-logo-width);
  max-width: min(100%, var(--masthead-logo-max-width));
  margin: 0.25rem auto 0.2rem;
}

.masthead-issue-line {
  margin: 0.2rem 0 0;
  font-family: var(--typewriter-stack) !important;
  font-size: 0.72rem;
  font-style: normal !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: none;
}

.edition-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin: 0.35rem auto 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.edition-row span {
  white-space: nowrap;
}
/* =========================
   NAV
========================= */

.top-nav {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 1rem;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
  padding: 0.32rem 0;
  min-height: 2rem;
  display: flex;
  align-items: center;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--top-nav-gap);
}

.top-nav a {
  font-size: var(--top-nav-link-size);
  text-transform: none;
  font-family: var(--typewriter-stack) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  color: #2d2d2d;
  padding: 0.04em 0.18em;
  text-shadow: 0 1px 0 #fff, 0 0.5px 0 #e7e7e7;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
  margin: 0 0 0.6rem;
  font-family: "IMFellEnglishLocal", Georgia, serif;
  text-transform: uppercase;
  text-align: center;
}

p, li {
  color: var(--ink);
}

/* =========================
   MAIN CONTENT
========================= */

main,
article {
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  padding: 1.15rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1020px) {
  .top-nav ul {
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
  }
}

@media (max-width: 700px) {
  .page {
    margin: 0;
    border-left: none;
    border-right: none;
  }
}

/* 3-column layout for homepage */
.layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.column {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.layout > .column:first-child,
.layout > .column:last-child {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 1020px) {
  .layout {
    grid-template-columns: 1fr;
  }
}







