@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap");

:root {
  --paper: #09090b;
  --paper-raised: #111114;
  --ink: #f5f4f1;
  --muted: #96949c;
  --line: #29292f;
  --accent: #ff315c;
  --accent-hover: #ff6482;
  --epic: #103b35;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); color-scheme: dark; font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 8px 12px; background: var(--accent); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.simple-nav { display: flex; align-items: center; justify-content: space-between; width: min(100% - 40px, 760px); margin: 0 auto; padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.simple-nav nav { display: flex; gap: 24px; }
.simple-nav nav a { color: var(--accent); font-size: .88rem; font-weight: 600; transition: color 160ms ease, text-shadow 160ms ease; }
.simple-nav nav a:hover, .simple-nav nav a[aria-current="page"] { color: var(--accent-hover); text-shadow: 0 0 16px rgba(255,49,92,.38); }

.publication-shell { width: min(100% - 40px, 760px); min-height: calc(100vh - 170px); margin: 0 auto; }
.publication-intro { padding: 82px 0 70px; }
.publication-intro.compact { padding-bottom: 48px; }
.intro-mark { margin: 0 0 20px; color: var(--accent); font-family: var(--serif); font-size: 2rem; }
.publication-intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.6rem, 12vw, 6.5rem); font-weight: 400; line-height: .92; letter-spacing: 0; }
.publication-intro > p:last-child { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 3vw, 1.3rem); line-height: 1.55; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: .82rem; font-weight: 600; text-transform: uppercase; }
.section-heading a { color: var(--accent); font-size: .82rem; font-weight: 600; }
.section-heading a:hover { color: var(--accent-hover); }
.feed-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.feed-item h2, .feed-item h3 { margin: 0 0 7px; color: var(--accent); font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 400; line-height: 1.18; transition: color 160ms ease, text-shadow 160ms ease; }
.feed-item p { max-width: 600px; margin: 0; color: var(--muted); font-size: .93rem; }
.feed-item > span { padding-top: 5px; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.feed-item:hover h2, .feed-item:hover h3 { color: var(--accent-hover); text-shadow: 0 0 20px rgba(255,49,92,.24); }

.epics-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 90px 0 48px; padding: 42px; border: 1px solid #285e55; background: var(--epic); color: #f7f2e8; }
.feature-label { margin: 0 0 14px; color: #c7b887; font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.epics-feature h2 { margin: 0; font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 1; }
.epics-feature p { color: #c5cec9; }
.epics-links { border-top: 1px solid rgba(255,255,255,.3); }
.epics-links a { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.epics-links strong { color: #ff889f; font-size: .78rem; font-weight: 600; }
.epics-links a:hover strong { color: #ffb2c1; }

.writing-page .feed { border-top: 1px solid var(--ink); }
.coming-soon-page { min-height: calc(100vh - 210px); }
.coming-soon-label { margin: 0 0 12px !important; color: var(--accent) !important; font-size: .78rem !important; font-weight: 600; text-transform: uppercase; }
.coming-soon { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 25px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.coming-soon > p { margin: 3px 0 0; color: var(--accent); font-size: .76rem; }
.coming-soon h2 { margin: 0 0 6px; color: var(--accent); font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 400; }
.coming-soon div p { margin: 0; color: var(--muted); }
.simple-footer { display: flex; justify-content: space-between; width: min(100% - 40px, 760px); margin: 80px auto 0; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.simple-footer a { color: var(--accent); font-weight: 600; }
.simple-footer a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 620px) {
  .simple-nav { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding-top: 22px; }
  .simple-nav nav { width: 100%; justify-content: space-between; gap: 10px; }
  .simple-nav nav a { font-size: .76rem; }
  .publication-intro { padding: 58px 0 48px; }
  .feed-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .feed-item > span { grid-row: 1; padding: 0; }
  .epics-feature { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
