/*
  Palette comes from the place: the Blackwater runs tea-dark over white sand.
  Garnet is the "no arrest" colour (and Wash's university's); longleaf green
  replaces it when the status changes.
*/
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --tannin: #20170f;
  --tea: #7a4e24;
  --sand: #f8f7f2;
  --quartz: #ffffff;
  --garnet: #782f40;
  --longleaf: #23513d;
  --amber: #f5b301;
  --rule: #ddd8cb;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--tannin);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}

p, ul, ol, blockquote, h1, h2, h3 { margin: 0; }

a { color: var(--garnet); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--quartz); padding: 0.5rem 0.75rem; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.narrow { max-width: 42rem; margin-inline: max(1.25rem, (100% - 70rem) / 2) auto; }

/* Status band */
.status { background: var(--garnet); color: var(--quartz); padding: clamp(1.1rem, 3vw, 1.75rem) 1.25rem; }
.status.is-arrest, .status.is-charged { background: var(--amber); color: var(--tannin); }
.status.is-arrest .status-yet, .status.is-charged .status-yet { background: var(--tannin); color: var(--amber); }
.status.is-convicted { background: var(--longleaf); }
.status.is-convicted .status-yet { color: var(--longleaf); }
.status-line {
  width: min(100%, 70rem); margin-inline: auto;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 7.5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.005em;
}
.status-yet {
  display: inline-block; padding: 0 0.16em; margin-top: 0.08em;
  background: var(--quartz); color: var(--garnet);
}
.status-note { width: min(100%, 70rem); margin: 0.6rem auto 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 500; }
.status-note:empty { display: none; }
.status-note a { color: inherit; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.1rem, 10.5vw, 7rem); line-height: 0.93; letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.15rem, 2vw, 1.3rem); }

.lines { display: grid; gap: 1.75rem; align-content: start; }
.line { border-top: 3px solid var(--tannin); padding-top: 0.85rem; }
.line-who { font-weight: 600; }
.line-number {
  display: inline-block; margin-top: 0.1rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1; letter-spacing: 0.005em;
  color: var(--garnet); text-decoration: none; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.line-number:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.line-how { margin-top: 0.25rem; color: #4a3d30; }

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
  .line-number { font-size: clamp(2.8rem, 5.4vw, 4.4rem); }
}

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.02; text-wrap: balance;
  margin-bottom: 1.1rem;
}
h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.5rem; }
.section p + p, .foot p + p { margin-top: 1rem; }

.asks { margin-top: 1.4rem; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.asks li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-weight: 500; }

blockquote { margin-top: 2rem; padding-left: 1.1rem; border-left: 4px solid var(--tea); }
blockquote p { font-size: 1.35rem; line-height: 1.35; }
blockquote footer { margin-top: 0.4rem; font-size: 1rem; color: #4a3d30; }
.family p { font-style: italic; }

/* The dark water band */
.water { background: var(--tannin); color: var(--sand); border-top: 0; }
.water a { color: #f0c9a0; }
.water :focus-visible { outline-color: #f0c9a0; }
.routes { display: grid; gap: 2rem; margin-top: 1.75rem; }
.route { border-top: 1px solid #5a4633; padding-top: 1rem; }
.route p { max-width: 34rem; }
.emergency { margin-top: 2.25rem; font-weight: 600; }
@media (min-width: 56rem) {
  .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

.obit-link { margin-top: 1.5rem; }
#causes { margin-top: 2.5rem; }
#causes ul { margin-top: 0.8rem; padding-left: 1.2rem; }
#causes li + li { margin-top: 0.6rem; }

/* Vigil and services */
.gather { background: var(--quartz); }
.events { list-style: none; padding: 0; display: grid; gap: 1.75rem; }
.event { border-top: 3px solid var(--tannin); padding-top: 0.85rem; }
.event-when { font-weight: 600; }
.event-note { margin-top: 0.4rem; color: #4a3d30; }
@media (min-width: 56rem) {
  .events { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* Share */
.share { background: var(--quartz); }
.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.btn {
  appearance: none; cursor: pointer; text-decoration: none;
  font: 600 1.05rem/1.2 var(--body);
  padding: 0.8rem 1.1rem; border-radius: 3px;
  border: 2px solid var(--tannin); background: transparent; color: var(--tannin);
}
.btn:hover { background: var(--tannin); color: var(--sand); }
.btn-primary { background: var(--garnet); border-color: var(--garnet); color: var(--quartz); }
.btn-primary:hover { background: #5e2332; border-color: #5e2332; color: var(--quartz); }
.share-status { min-height: 1.5em; margin-top: 0.75rem; font-weight: 500; }
.share-sub { margin-top: 2.25rem; }
.btn-small { font-size: 0.95rem; padding: 0.5rem 0.8rem; }
.posts { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: 0.9rem; }
.post { background: var(--sand); border-left: 4px solid var(--garnet); padding: 1rem 1.1rem; }
.post-text { margin-bottom: 0.8rem; overflow-wrap: anywhere; }
.share-image { display: block; max-width: 20rem; margin: 1rem 0; }
.share-image img { display: block; width: 100%; height: auto; }

/* Updates: a real chronology, so the date leads each row */
.updates { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.update { display: grid; gap: 0.15rem 1.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.update-date { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; }
.update-source { font-size: 1rem; }
@media (min-width: 40rem) {
  .update { grid-template-columns: 8.5rem minmax(0, 1fr); }
}

/* Footer */
.foot { background: var(--tannin); color: var(--sand); padding: 3rem 0 6.5rem; }
.foot h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.75rem; }
.foot p { font-size: 1rem; }
.foot a { color: #f0c9a0; }

/* Phone-only call bar */
.callbar { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 5; }
.callbar a {
  padding: 0.95rem 0.5rem calc(0.95rem + env(safe-area-inset-bottom));
  text-align: center; text-decoration: none;
  font: 600 1.02rem/1.2 var(--body); color: var(--quartz); background: var(--garnet);
}
.callbar a + a { background: var(--tannin); border-top: 1px solid #5a4633; }
.callbar a:focus-visible { outline-offset: -4px; outline-color: var(--quartz); }
@media (min-width: 48rem) {
  .callbar { display: none; }
  .foot { padding-bottom: 3rem; }
}

@media print {
  .callbar, .share, .skip { display: none; }
  .water, .foot, .status { background: none; color: #000; }
}
