/* =============================================================
   Rogue Valley Renters Voices — "Witness"
   A place to be heard. Design Direction B.
   Palette: ink / off-white paper / warm stone / raw amber
   Type: Bitter (slab display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ============================================================= */

:root {
  --paper:      #FAFAF7;
  --paper-2:    #F1EEE6;   /* manila panel */
  --paper-3:    #E9E4D8;   /* deeper panel / card edge */
  --ink:        #1D1D2B;
  --ink-2:      #3C3C4A;   /* secondary text on paper */
  --ink-soft:   #55555f;
  --stone:      #C8B89A;
  --stone-line: #D8D0BF;   /* hairlines on paper */
  --amber:      #B8860B;
  --amber-deep: #8A6408;
  --paper-on-ink: #EDEBE3; /* body text on ink bands */
  --stone-on-ink: #B7A985;

  --maxw: 1120px;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --f-display: "Bitter", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.7rem);
  --step-4:  clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);
  --step-5:  clamp(2.9rem, 2.1rem + 4vw, 5.2rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }

/* visible focus everywhere */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; font-family: var(--f-mono); font-size: var(--step--1);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-2); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink) !important; }

/* stamped label — the signature utility mark */
.stamp {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--f-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500;
  color: var(--amber-deep);
}
.stamp::before {
  content: ""; width: 1.6em; height: 2px; background: var(--amber); flex: none;
}
.stamp--boxed {
  border: 1.5px solid var(--amber); color: var(--amber-deep);
  padding: 0.3em 0.7em; letter-spacing: 0.18em;
}
.stamp--boxed::before { display: none; }
.on-ink .stamp { color: var(--stone-on-ink); }
.on-ink .stamp::before { background: var(--stone); }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--stone-line);
}
.site-head__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  font-family: var(--f-mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.05em;
  border: 2px solid var(--ink); color: var(--ink);
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; flex: none;
  line-height: 1;
}
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.05; }
.brand__name span { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.15rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  text-decoration: none; color: var(--ink-2);
  font-size: 0.95rem; font-weight: 500; padding: 0.35rem 0; position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--amber);
}
.nav__cta {
  text-decoration: none; background: var(--ink); color: var(--paper) !important;
  padding: 0.55rem 1.05rem; font-weight: 600; font-size: 0.9rem;
}
.nav__cta:hover { background: var(--amber-deep); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.5rem 0.75rem; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--stone-line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform 0.28s ease; box-shadow: 0 20px 40px -30px rgba(0,0,0,0.4);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--stone-line); font-size: 1.05rem; }
  .nav__cta { text-align: center; margin-top: 0.9rem; padding: 0.85rem; }
  .nav a[aria-current="page"]::after { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem); position: relative; }
.hero__eyebrow { margin-bottom: 1.75rem; }
.hero h1 {
  font-size: var(--step-5); letter-spacing: -0.025em; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--amber-deep); }
.hero__sub { margin-top: 1.6rem; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ledger rule signature — a faint vertical margin line like a legal pad */
.ledger-left { position: relative; }
.ledger-left::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 1px);
  width: 1px; background: var(--stone-line);
}
@media (max-width: 700px) { .ledger-left::before { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 0.8rem 1.4rem; border: 2px solid var(--ink); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.on-ink .btn--ghost { color: var(--paper); border-color: var(--paper-on-ink); }
.on-ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- section headings ---------- */
.sec-head { max-width: 40ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: var(--step-4); margin-top: 0.9rem; }
.sec-head p { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- dark testimony band ---------- */
.band {
  background: var(--ink); color: var(--paper-on-ink);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.band h2, .band h3 { color: var(--paper); }
.band p { color: var(--paper-on-ink); }
.band .lead { color: #fff !important; }

.testimony {
  font-family: var(--f-display); font-weight: 500;
  font-size: var(--step-3); line-height: 1.28; letter-spacing: -0.01em;
  max-width: 24ch; color: #fff;
}
.testimony .q { color: var(--amber); }
.testimony__by {
  margin-top: 1.6rem; font-family: var(--f-mono); font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-on-ink);
}

/* ---------- timeline (vertical ruled) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--stone-line);
}
.tl-item { position: relative; padding: 0 0 2.4rem 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 2px; top: 0.45rem;
  width: 14px; height: 14px; background: var(--paper); border: 3px solid var(--amber); border-radius: 50%;
}
.tl-item--muted::before { border-color: var(--stone); }
.tl-date {
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em;
  color: var(--amber-deep); font-weight: 500; text-transform: uppercase;
}
.tl-item h3 { font-size: var(--step-1); margin-top: 0.3rem; }
.tl-item p { margin-top: 0.5rem; color: var(--ink-2); max-width: 60ch; }
.tl-src {
  display: inline-block; margin-top: 0.65rem;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-soft); border: 1px solid var(--stone-line); padding: 0.2em 0.55em;
}
.tl-src--lived { color: var(--amber-deep); border-color: var(--amber); }

/* ---------- document cards ("the record") ---------- */
.docs { display: grid; gap: 1.25rem; }
.doc {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  background: var(--paper-2); border: 1px solid var(--stone-line);
  border-left: 4px solid var(--ink);
  padding: 1.4rem 1.6rem;
}
.doc__no {
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-soft);
  writing-mode: initial;
}
.doc h3 { font-size: var(--step-1); }
.doc__meta { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ink-soft); margin-top: 0.3rem; }
.doc__proves { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px dashed var(--stone-line); }
.doc__proves strong {
  display: block; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: 0.35rem; font-weight: 600;
}
.doc__proves p { color: var(--ink); margin: 0; }

/* ---------- generic card grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper-2); border: 1px solid var(--stone-line); padding: 1.6rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card--ink { background: var(--ink); }
.card--ink h3 { color: #fff; }
.card--ink p { color: var(--paper-on-ink); }

/* number stat */
.stat__num { font-family: var(--f-display); font-size: var(--step-4); color: var(--amber-deep); line-height: 1; }
.stat__label { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.95rem; }
.on-ink .stat__num { color: var(--amber); }
.on-ink .stat__label { color: var(--paper-on-ink); }

/* voices / contributed stories */
.voice {
  border-left: 3px solid var(--stone); padding: 0.2rem 0 0.2rem 1.5rem; max-width: 60ch;
}
.voice + .voice { margin-top: 2.6rem; }
.voice__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; margin-bottom: 0.7rem; }
.voice__name { font-family: var(--f-display); font-size: var(--step-1); }
.voice__where { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; }
.voice p { color: var(--ink-2); }

/* pull quote inside prose */
.pull {
  font-family: var(--f-display); font-size: var(--step-2); line-height: 1.3;
  color: var(--ink); border-left: 4px solid var(--amber);
  padding-left: 1.3rem; margin: 2rem 0; max-width: 34ch;
}

/* callout */
.note {
  background: var(--paper-2); border: 1px solid var(--stone-line); border-top: 3px solid var(--amber);
  padding: 1.4rem 1.6rem; font-size: 0.98rem;
}
.note strong { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); display: block; margin-bottom: 0.5rem; }

/* resource list */
.res { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.res li { border-bottom: 1px solid var(--stone-line); padding-bottom: 1rem; }
.res h3 { font-size: var(--step-1); }
.res__meta { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3rem; }
.res p { color: var(--ink-2); margin-top: 0.4rem; font-size: 0.95rem; }
.res a { color: var(--amber-deep); font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--paper-on-ink); padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-foot h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.site-foot a { color: var(--paper-on-ink); text-decoration: none; }
.site-foot a:hover { color: var(--amber); }
.foot-links { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.foot-brand p { color: var(--stone-on-ink); font-size: 0.95rem; max-width: 40ch; margin-top: 1rem; }
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #33333f; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--stone-on-ink); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- misc ---------- */
.hr { border: 0; border-top: 1px solid var(--stone-line); margin-block: clamp(2rem,5vw,3.5rem); }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.disclaimer { font-size: 0.85rem; color: var(--ink-soft); max-width: 60ch; }
