/* ==========================================================================
   Eh, Big Dog: WARDOGS community server
   Concrete, ink and hazard paint. The kill feed in the hero is the one loud
   element; everything else stays plain so prices and policies read clearly.
   ========================================================================== */

:root {
  --concrete: #d4d5ce;
  --concrete-deep: #c7c9c1;
  --bone: #eeeee8;
  --ink: #1a1d1b;
  --ink-soft: #464b47;
  --reseda: #3f5d53;
  --hazard: #e9a21a;

  --bone-muted: rgb(238 238 232 / .72);
  --bone-line: rgb(238 238 232 / .16);

  --font-display: "Big Shoulders Stencil Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "B612 Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
  --border: 3px solid var(--ink);
  --focus: var(--ink);

  /* Fine concrete grain */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .11 0 0 0 0 .1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--noise) var(--concrete);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  text-decoration-color: var(--reseda);
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--hazard); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--hazard);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
}

.skip-link:focus { top: 1rem; }

.flow > * + * { margin-top: 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .75rem 1.35rem;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.btn-hazard { background: var(--hazard); color: var(--ink); }
.btn-hazard:hover { background: var(--ink); color: var(--hazard); }

.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--hazard); color: var(--ink); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }

.btn-block { width: 100%; }

.btn-meta {
  padding-left: .6rem;
  border-left: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 400;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--noise) var(--concrete);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  min-height: 4.5rem;
  padding-block: .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
}

.brand-tag { width: 26px; height: auto; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  gap: .25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.header-cta {
  min-height: 2.75rem;
  padding: .45rem 1rem;
  font-size: .95rem;
}

@media (max-width: 860px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
  .header-cta { margin-left: auto; }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  .site-nav ul { gap: 1.35rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7rem); }

.section-title {
  max-width: 18ch;
  margin-top: .75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-intro {
  max-width: 52ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.section-body {
  max-width: 56ch;
  margin-top: 1.5rem;
}

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

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(4.75rem, 15vw, 11.5rem);
  font-weight: 900;
  line-height: .82;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.hero-title span { display: block; }

.hero-lede {
  max-width: 32ch;
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.hero-find {
  max-width: 46ch;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Kill feed (hero illustration) ---------- */

.feed {
  --focus: var(--hazard);
  position: relative;
  padding: 1rem 1.25rem 0;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #262b28 0%, var(--ink) 55%);
  color: var(--bone);
  box-shadow: 0 32px 60px -32px rgb(26 29 27 / .6);
}

/* HUD frame corners */
.feed::before,
.feed::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--hazard);
  pointer-events: none;
}

.feed::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.feed::after { right: -9px; bottom: -9px; border-top: 0; border-left: 0; }

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--bone-line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.feed-chip {
  padding: .2rem .5rem;
  border: 1px solid rgb(238 238 232 / .35);
  color: var(--bone-muted);
  letter-spacing: .12em;
}

.feed-list {
  display: flex;
  flex-direction: column;
  height: 19rem;
  margin: 0;
  padding: .6rem 0 .4rem;
  overflow: hidden;
  list-style: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.feed-row {
  display: grid;
  grid-template-rows: 1fr;
}

.feed-row > div {
  min-height: 0;
  overflow: hidden;
  padding-block: .3rem;
  text-align: right;
}

.feed-kill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .6rem;
  border-right: 3px solid rgb(238 238 232 / .25);
  background: rgb(0 0 0 / .35);
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.3;
}

.feed-row.is-vip .feed-kill { border-right-color: var(--hazard); }

.feed-vip {
  padding: .05rem .35rem;
  background: var(--hazard);
  color: var(--ink);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.feed-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: rgb(238 238 232 / .55);
}

.feed-victim { color: var(--bone-muted); }

.feed-msg {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--hazard);
}

.feed-row.is-new { animation: feed-open .5s cubic-bezier(.2, .7, .2, 1); }
.feed-row.is-new .feed-kill { animation: feed-flash 1.4s ease-out; }

@keyframes feed-open {
  from { grid-template-rows: 0fr; opacity: 0; }
  to { grid-template-rows: 1fr; opacity: 1; }
}

@keyframes feed-flash {
  from { background-color: rgb(233 162 26 / .38); }
  to { background-color: rgb(0 0 0 / .35); }
}

.feed-foot {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 0 1rem;
  border-top: 1px solid var(--bone-line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgb(238 238 232 / .88);
}

.feed-foot svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--hazard);
}

.feed-caption {
  margin-top: 1.1rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .feed-row.is-new,
  .feed-row.is-new .feed-kill { animation: none; }
}

/* ---------- Plates (cards) ---------- */

.plate {
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--bone);
}

/* Equipment data plate, with a screw in each corner */
.spec {
  --screw: radial-gradient(circle, #6b706b 0 1.6px, var(--ink) 2.2px 3.8px, transparent 4.4px);
  padding: 1.75rem 1.9rem 1.25rem;
  background-image: var(--screw), var(--screw), var(--screw), var(--screw);
  background-position: left 9px top 9px, right 9px top 9px, left 9px bottom 9px, right 9px bottom 9px;
  background-repeat: no-repeat;
  background-size: 10px 10px;
}

.spec-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.spec-sub { margin-top: .4rem; }

.spec-list {
  margin-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.spec-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed rgb(26 29 27 / .4);
}

.spec-row:last-child { border-bottom: 0; }

.spec-row dt {
  padding-top: .2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec-row dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}

/* ---------- Server ---------- */

.server-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .server-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- VIP & donations ---------- */

.section-alt {
  background: var(--noise) var(--concrete-deep);
  border-block: var(--border);
}

.offers {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 880px) {
  .offers { grid-template-columns: minmax(0, 1fr); }
}

.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offer-band {
  padding: 1.5rem 1.75rem 1.6rem;
  background: var(--reseda);
  color: var(--bone);
}

.offer-donate .offer-band { background: var(--ink); }

.offer-band .eyebrow { color: var(--bone-muted); }

.offer-title {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .7rem;
  margin-top: 1.1rem;
}

.offer-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.offer-unit {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
}

.offer-terms {
  margin-top: .5rem;
  font-size: .95rem;
  color: var(--bone-muted);
}

.offer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem 1.75rem;
}

.offer-body .btn { margin-top: auto; }

.offer-subhead {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.offer-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  padding-left: 1.6rem;
}

.offer-list li::before {
  content: "";
  position: absolute;
  top: .4em;
  left: 0;
  width: .75rem;
  height: .75rem;
  border: 2px solid var(--ink);
  background: var(--hazard);
}

.offer-list strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.4;
}

.offer-desc { color: var(--ink-soft); }

.offer-fine {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.caution {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  margin-top: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bone);
}

.caution::before {
  content: "";
  border-right: var(--border);
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 7px, var(--ink) 7px 14px);
}

.caution-body { padding: 1.2rem 1.5rem 1.3rem; }

.caution-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.caution-text {
  max-width: 78ch;
  margin-top: .35rem;
}

/* ---------- How paying works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 1rem;
  border-top: 6px solid var(--ink);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.step-title {
  margin-top: .6rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.step-text {
  margin-top: .45rem;
  color: var(--ink-soft);
}

.steps-note {
  max-width: 80ch;
  margin-top: 2.25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 7rem;
}

.faq-list { border-top: 2px solid var(--ink); }

.qa { border-bottom: 2px solid var(--ink); }

.qa summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.qa[open] summary::after { content: "\2212"; }

.qa summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  text-decoration-color: var(--reseda);
}

.qa-body {
  max-width: 62ch;
  padding-bottom: 1.3rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }
}

/* ---------- Help band ---------- */

.help {
  --focus: var(--bone);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--reseda);
  color: var(--bone);
}

.help-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.help-title {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.help-text {
  margin-top: .75rem;
  font-size: 1.1rem;
}

.help-text a { text-decoration-color: var(--hazard); overflow-wrap: anywhere; }

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

.site-footer {
  --focus: var(--hazard);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--ink);
  color: var(--bone);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer-about {
  max-width: 40ch;
  margin-top: 1rem;
  color: var(--bone-muted);
}

.footer-head {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(238 238 232 / .65);
}

.footer-links {
  display: grid;
  gap: .5rem;
  margin-top: .9rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration-color: rgb(238 238 232 / .35);
  overflow-wrap: anywhere;
}

.footer-links a:hover { text-decoration-color: var(--hazard); }

.footer-legal {
  display: grid;
  gap: .5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bone-line);
  font-size: .85rem;
  color: rgb(238 238 232 / .65);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Policy pages ---------- */

.doc-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }

.doc-title {
  max-width: 14ch;
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: .86;
  text-transform: uppercase;
  text-wrap: balance;
}

.doc-meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.doc-lede {
  max-width: 60ch;
  margin-top: 1.25rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.doc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.toc {
  position: sticky;
  top: 6.5rem;
}

.toc ol {
  margin-top: .75rem;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.toc li { border-bottom: 1px solid rgb(26 29 27 / .2); }

.toc a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .25rem;
  padding: .5rem 0;
  font-size: .92rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; text-decoration-color: var(--reseda); }

.toc-num,
.prose .num {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink-soft);
}

.toc-num { padding-top: .15rem; font-size: .75rem; }

.prose {
  max-width: 50rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bone);
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-top: 2.75rem;
  font-size: 1.45rem;
  line-height: 1.25;
  scroll-margin-top: 6.5rem;
}

.prose h2 .num { font-size: .85rem; }

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.prose p,
.prose ul,
.prose ol,
.prose .table-scroll { margin-top: 1rem; }

.prose > :first-child { margin-top: 0; }

.prose ul,
.prose ol { padding-left: 1.35rem; }

.prose li + li { margin-top: .45rem; }

.prose li::marker { color: var(--reseda); }

.table-scroll { overflow-x: auto; }

.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.45;
}

.prose th,
.prose td {
  padding: .7rem .85rem;
  border: 2px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.prose thead td { border-color: transparent transparent var(--ink) transparent; }

@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

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

.contact {
  --gap: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: var(--gap);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.contact-grid,
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: 1.75rem 1.9rem;
}

.contact-value {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-card p:last-child { color: var(--ink-soft); }

.contact-help { padding: .5rem 0; }

.contact-help h2 {
  font-size: 1.35rem;
  line-height: 1.3;
}

.contact-help ul { padding-left: 1.3rem; }

.contact-help li + li { margin-top: .35rem; }

@media (max-width: 760px) {
  .contact-grid,
  .contact-details { grid-template-columns: minmax(0, 1fr); }
}
