/* Ethice Press's public website (Pages/Site/EthicePress.cshtml): a page of its own, not journa.world's night. Paper and ink, a printer's
   brick red, a sage green: "trustworthy, enduring, practical, and community-oriented. Not academic. Not corporate. Not governmental."
   Light and dark follow the reader's setting. Mobile first. */
:root {
  color-scheme: light dark;
  --paper: #f6f1e7;
  --paper-2: #ede5d4;
  --card: #fffdf8;
  --ink: #1f2731;
  --ink-2: #47505b;
  --brick: #9a3b2a;
  --brick-ink: #fff8ef;
  --sage: #55664f;
  --line: #d8ccb6;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.1rem, 5vw, 3rem);
  --measure: 42rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ep { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
a { color: var(--brick); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 3px; }
.ep-skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 6px; z-index: 10; }
.ep-skip:focus { left: .5rem; }

/* Header */
.ep-head { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ep-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.ep-mark { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--brick); color: var(--brick); font: 700 .72rem/1 var(--sans); letter-spacing: .08em; border-radius: 3px; }
.ep-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .92rem; margin-left: auto; }
.ep-nav a { color: var(--ink-2); text-decoration: none; padding: .2rem 0; border-bottom: 1px solid transparent; }
.ep-nav a:hover { color: var(--ink); border-bottom-color: var(--brick); }

/* Hero */
.ep-hero { display: grid; gap: 2rem; align-items: center; padding: clamp(2.5rem, 8vw, 5.5rem) var(--pad) clamp(2rem, 6vw, 4rem); max-width: 76rem; margin: 0 auto; }
.ep-hero h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); letter-spacing: -.01em; margin-bottom: .35em; }
.ep-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.4rem); color: var(--sage); margin-bottom: 1.2em; }
.ep-hero-words p:not(.ep-sub):not(.ep-actions) { color: var(--ink-2); max-width: var(--measure); }
.ep-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.ep-btn { display: inline-block; background: var(--brick); color: var(--brick-ink); text-decoration: none; border: 1.5px solid var(--brick); border-radius: 4px; padding: .7rem 1.3rem; font-weight: 600; min-height: 44px; }
.ep-btn:hover { filter: brightness(1.08); }
.ep-btn-quiet { background: transparent; color: var(--brick); }
.ep-street { width: 100%; height: auto; color: var(--ink); opacity: .82; }
@media (min-width: 900px) { .ep-hero { grid-template-columns: 1.1fr 1fr; } }

/* Sections */
.ep-section, .ep-band { padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad); }
.ep-section > *, .ep-band > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.ep-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ep-band > p, .ep-band > ul, .ep-section > p, .ep-section > ul.ep-plain { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.ep-section > h2, .ep-band > h2 { max-width: var(--measure); }
.ep-lead { font-size: 1.15rem; color: var(--ink); }
.ep-strong { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-top: 1.1em; }
.ep-note { color: var(--ink-2); font-size: .95rem; }
.ep-plain { list-style: none; padding: 0; }
.ep-plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.ep-plain li:last-child { border-bottom: 0; }

/* Publish once: one source in the middle of eight outlets. */
.ep-once { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 44rem; margin: 1.6rem auto; }
.ep-once-out { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: .8rem; text-align: center; font-weight: 600; }
.ep-once-source { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-radius: 4px; padding: 1rem; text-align: center; display: grid; gap: .2rem; }
.ep-once-source strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.ep-once-source span { font-size: .9rem; opacity: .85; }
@media (min-width: 640px) {
  .ep-once { grid-template-columns: repeat(3, 1fr); }
  .ep-once-source { grid-column: auto; }
  .ep-once-out, .ep-once-source { min-height: 5.5rem; display: grid; place-items: center; }
}

/* Cards */
.ep-cards { list-style: none; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1.4rem; }
.ep-cards-four { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.ep-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sage); border-radius: 4px; padding: 1.1rem 1.1rem .4rem; }
.ep-card p { color: var(--ink-2); font-size: .97rem; }
.ep-card-feed { border-top-color: var(--brick); }

/* Voices */
.ep-pull { font-family: var(--serif); font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.35; color: var(--ink); margin: .4em auto 1em; }
.ep-roles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: var(--measure); margin: 0 auto 1rem; }
.ep-roles li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; color: var(--ink-2); background: var(--card); }
.ep-quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.ep-quote { margin: 0; background: var(--card); border-left: 3px solid var(--brick); padding: 1rem 1.2rem; border-radius: 0 4px 4px 0; }
.ep-quote blockquote { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.1rem; }
.ep-quote figcaption { color: var(--ink-2); font-size: .9rem; }

/* Endurance */
.ep-question { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--brick); margin: .2em auto .4em; }

/* Research */
.ep-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: var(--measure); margin: 0 auto 1rem; }
.ep-chips li { background: var(--ink); color: var(--paper); border-radius: 3px; padding: .3rem .8rem; font-size: .92rem; }

/* Where recoveries begin */
.ep-pair { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-family: var(--serif); font-size: 1.3rem; }

/* Closing */
.ep-closing { padding: clamp(3rem, 9vw, 6rem) var(--pad); text-align: center; font-family: var(--serif); font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--ink-2); }
.ep-closing p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.ep-closing-first { font-size: clamp(1.6rem, 4.6vw, 2.4rem); color: var(--ink); margin-bottom: 1em; }
.ep-closing-last { color: var(--brick); font-size: clamp(1.3rem, 3.2vw, 1.6rem); margin-top: .8em; }

/* Footer */
.ep-foot { border-top: 1px solid var(--line); padding: 1.6rem var(--pad) 2.4rem; font-size: .92rem; color: var(--ink-2); text-align: center; }
.ep-foot p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .6rem; }
