/* =========================================================
   Tyler Systems LLC — site styles
   Design language inspired by the Friend of the Firm kit:
   strict black / white / red palette, mono headings,
   red rectangle accents, dashed borders for empty states.
   ========================================================= */

:root {
  --red: #e22920;
  --red-dark: #b8201a;
  --ink: #121212;
  --text: rgba(18, 18, 18, 0.78);
  --muted: rgba(18, 18, 18, 0.55);
  --paper: #fbfaf6;
  --paper-2: #ffffff;
  --line: rgba(18, 18, 18, 0.16);
  --line-strong: rgba(18, 18, 18, 0.85);

  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-sans: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --shadow-sm: 0 1px 0 rgba(18, 18, 18, 0.06);
}

/* ---------- Accessibility: skip-to-content ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.625rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1vw + 0.55rem, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  background-image:
    radial-gradient(rgba(18, 18, 18, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--red); }

::selection { background: var(--red); color: #fff; }

/* ---------- Typography ---------- */

h1, h2, h3, h4, .mono {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 1px;
  display: inline-block;
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand svg, .brand img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.625rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero h1 .accent { color: var(--red); }

.hero__lede {
  max-width: 38em;
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.25rem);
  color: var(--text);
  margin-top: 1.5rem;
}

.hero__signup {
  margin-top: 2.25rem;
  max-width: 520px;
}

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero__art img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@media (max-width: 860px) {
  .hero__art img { max-width: 380px; }
}
@media (max-width: 480px) {
  .hero__art img { max-width: 320px; }
}

/* ---------- Newsletter signup form ---------- */

.signup__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}

.signup__row {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.signup__row input[type="email"] {
  flex: 1;
  border: 0;
  padding: 0.875rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.signup__row input[type="email"]:focus { outline: none; }
.signup__row input[type="email"]::placeholder { color: var(--muted); }

.signup__row button {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.signup__row button:hover { background: var(--red); }
.signup__row:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.signup__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.625rem;
}

/* Honeypot — hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Page hero (smaller variant for interior pages) ---------- */

.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.page-hero__lede {
  max-width: 44em;
  font-size: clamp(1rem, 0.8vw + 0.7rem, 1.15rem);
  color: var(--text);
  margin: 0;
}

/* ---------- Opportunity / request cards ---------- */

.opportunities {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 2rem;
}

.opportunity {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  box-shadow: 4px 4px 0 var(--ink);
}

.opportunity--placeholder {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.opportunity__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.opportunity__id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.opportunity__id::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 1px;
}

.opportunity h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.4rem, 1.5rem);
  margin: 0 0 0.5rem;
}

.opportunity p {
  font-family: var(--font-sans);
  color: var(--text);
  margin: 0 0 1.25rem;
}

.opportunity__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.opportunity__meta > div {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
}
.opportunity__meta > div:last-child { border-right: 0; }

.opportunity__meta dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.opportunity__meta dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 560px) {
  .opportunity__meta {
    grid-template-columns: 1fr;
  }
  .opportunity__meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .opportunity__meta > div:last-child { border-bottom: 0; }
}

/* "Coming soon" stamp variant (less alarming than red OPEN) */
.stamp--soon {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(18, 18, 18, 0.04);
  transform: rotate(-3deg);
}

/* ---------- Button (generic) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--red); color: #fff; }
.btn::after { content: "\2192"; }

/* ---------- Thin contrast strip (section splitter) ---------- */

.strip {
  background: var(--ink);
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.strip__mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.strip__mark::before,
.strip__mark::after {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* ---------- Steps (How it works) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 1px;
}

.step__num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step h3 {
  font-size: clamp(1.05rem, 1.2vw + 0.35rem, 1.25rem);
  margin: 0;
}

.step p {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Empty state callout ---------- */

.empty-state {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
  text-align: center;
}
.empty-state h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.empty-state p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38em;
  margin: 0 auto 1.25rem;
}
.empty-state form {
  max-width: 440px;
  margin: 1rem auto 0;
}

/* ---------- Mission strip ---------- */

.mission {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.mission::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
  background: var(--red);
}
.mission .container {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}
.mission .eyebrow { color: #fff; }
.mission .eyebrow::before { background: var(--red); }
.mission p {
  font-size: clamp(1.15rem, 1.4vw + 0.5rem, 1.6rem);
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

@media (max-width: 720px) {
  .mission .container { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Program cards ---------- */

.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2rem;
}
@media (max-width: 760px) {
  .programs { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 5px 5px 0 var(--ink);
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
  color: inherit;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 1px;
}

.card h3 {
  font-size: clamp(1.4rem, 2vw + 0.4rem, 1.85rem);
  margin: 0;
}

.card p {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--text);
}

.card__cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card__cta::after {
  content: "→";
  transition: transform 0.15s ease;
}
.card:hover .card__cta { color: var(--red); }
.card:hover .card__cta::after { transform: translateX(4px); }

/* Stamp / status badge */
.stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  transform: rotate(4deg);
  background: rgba(226, 41, 32, 0.05);
}

/* ---------- News teaser ---------- */

.news-teaser {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .news-teaser { grid-template-columns: 1fr; gap: 1.5rem; }
}

.news-teaser__intro p {
  color: var(--text);
}
.news-teaser__intro .more {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}

.article-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--paper-2);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease;
}
.article-card:hover { border-color: var(--ink); color: inherit; }

.article-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.article-card h3 { margin: 0 0 0.5rem; }
.article-card p { color: var(--text); margin: 0; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-guide {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-card {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--paper-2);
}
.contact-card--muted {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.contact-card h3::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 1px;
}
.contact-card--muted h3::before {
  background: rgba(18, 18, 18, 0.35);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  color: var(--ink);
}
.contact-list li::before {
  content: "+";
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-mono);
}
.contact-card--muted .contact-list li {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(18, 18, 18, 0.25);
}
.contact-card--muted .contact-list li::before {
  content: "\2013"; /* en dash */
  color: rgba(18, 18, 18, 0.4);
}

.contact-meta {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
.contact-meta .eyebrow { margin-bottom: 0.75rem; }
.contact-meta address {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}
.contact-meta address a { color: var(--ink); }
.contact-meta address a:hover { color: var(--red); }

/* ---------- Contact form ---------- */

.contact-form {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 5px 5px 0 var(--ink);
}

.contact-form__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-form__title::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 1px;
}

.field {
  margin-bottom: 1.125rem;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form button[type="submit"] {
  width: 100%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  margin-top: 0.5rem;
}
.contact-form button[type="submit"]:hover { background: var(--red); }

.contact-form__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  text-align: center;
}

/* ---------- News index ---------- */

.post-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.post-list .article-card { display: block; }

/* ---------- Individual post page ---------- */

.post {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.post__container {
  max-width: 38em;
  margin: 0 auto;
}

.post__meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.post__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.post__body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.7;
  color: var(--text);
}
.post__body p { margin: 0 0 1.25rem; }
.post__body p:last-child { margin-bottom: 0; }
.post__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post__body a:hover { color: var(--red); }

.post__signoff {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 0;
}

.post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.post__back::before { content: "\2190"; }
.post__back:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
  background: var(--red);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer h4::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
}

.site-footer a { color: rgba(255, 255, 255, 0.9); }
.site-footer a:hover { color: var(--red); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; font-family: var(--font-mono); font-size: 0.9rem; }

.site-footer address {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__brand-mono {
  color: #fff;
  font-weight: 600;
}

/* ---------- Mobile nav ---------- */

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--gutter) 1rem;
    gap: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
