/* ==========================================================================
   #BringHailieHome: "Case File" direction
   Mobile-first: unprefixed rules are the phone layout; @media (min-width)
   blocks layer on tablet/desktop enhancements. Nothing here is desktop-first
   and overridden down.

   Palette:
     --paper   #E4DFD1  contact-sheet / thumbnail ground
     --parchment #F5F1E6  document panel background
     --page    #EFE9DD  page background
     --ink     #1F1B16  primary text / rules
     --muted   #8B8066  secondary text
     --stamp   #A6192E  urgent stamp / primary CTA
     --pencil  #34495E  annotation circle
   ========================================================================== */

:root {
  --page: #EFE9DD;
  --parchment: #F5F1E6;
  --paper: #E4DFD1;
  --ink: #1F1B16;
  --muted: #8B8066;
  --hairline: #D8D0BC;
  --stamp: #A6192E;
  --pencil: #34495E;
  --max-width: 620px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--parchment);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: transform 150ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn--call {
  border-color: var(--ink);
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 11.5px;
}
.btn--primary {
  border-color: var(--stamp);
  background: var(--stamp);
  color: var(--parchment);
  padding: 13px 20px;
  font-size: 13.5px;
}
.btn--full { display: flex; width: 100%; margin-top: 18px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--page);
  border-bottom: 2px solid var(--ink);
  padding: 10px var(--gutter);
}
.masthead__file {
  margin: 0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Document wrapper ---------- */
.doc-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
}

.tab {
  width: 132px;
  margin: 0 auto;
  margin-top: -1px;
  border: 2px solid var(--ink);
  border-bottom: none;
  background: #C9A66B;
  text-align: center;
  padding: 6px 0;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.panel {
  border: 2px solid var(--ink);
  background: var(--parchment);
  padding: 18px var(--gutter);
  margin-top: 20px;
}
.panel--flush { padding: 0; }
.panel--card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.eyebrow {
  margin: 0;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.case-name {
  margin: 4px 0 0;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: 400;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.1;
  color: var(--ink);
}

.panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.stamp {
  flex-shrink: 0;
  border: 3px solid var(--stamp);
  color: var(--stamp);
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 5px 9px;
  transform: rotate(-7deg);
}

/* ---------- Field table ---------- */
.field-table {
  margin: 16px 0 0;
  border-top: 1px solid var(--hairline);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12.5px;
}
.field-row dt { color: var(--muted); margin: 0; }
.field-row dd { color: var(--ink); margin: 0; }

/* ---------- Contact sheet ---------- */
.section-label {
  margin: 20px 0 8px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Video exhibit ---------- */
.video-exhibit {
  margin-top: 10px;
  border: 1px solid var(--ink);
  background: #000;
  display: flex;
  justify-content: center;
}
.video-exhibit video {
  width: 100%;
  height: auto; /* override the height="" attribute so aspect-ratio below controls sizing */
  max-width: 280px;
  aspect-ratio: 560 / 1296;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.bio {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Accordion ---------- */
.accordion__trigger {
  width: 100%;
  text-align: left;
  background: var(--parchment);
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 14px var(--gutter);
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion__panel {
  border-bottom: 2px solid var(--ink);
  padding: 4px var(--gutter) 16px;
}
.accordion__panel .field-table { margin-top: 0; }

.areas-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12.5px;
  color: var(--ink);
}
.areas-list li { padding: 5px 0; border-bottom: 1px solid var(--hairline); }
.areas-list li:last-child { border-bottom: none; }

/* ---------- Tip form ---------- */
.tip-intro {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.required-mark { color: var(--stamp); }

.tip-form { margin-top: 16px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 6px;
}
.label--required { color: var(--stamp); }

.form-row--line input {
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
  width: 100%;
  font-size: 15px;
  font-family: 'PT Serif', Georgia, serif;
  color: var(--ink);
  outline: none;
}
.form-row--line input:focus { border-bottom: 2px solid var(--stamp); }

.form-row textarea,
.form-row input[type="file"] {
  width: 100%;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 15px;
  color: var(--ink);
}
.form-row textarea {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}
.form-row textarea:focus { border: 2px solid var(--stamp); }
.form-row input[type="file"] { font-size: 12.5px; }

.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Honeypot field: present in the DOM for bots to find, invisible and
   unreachable by keyboard for real visitors. Do not use display:none;
   some bots skip fields hidden that way, which defeats the trap. */
.form-row--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
}
.checkbox-row input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--stamp);
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.form-status.is-error { color: var(--stamp); }
.form-status.is-success { color: #2E6B3E; }

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}
.card-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.qr { margin-top: 10px; border: 1px solid var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 24px var(--gutter) 40px;
  text-align: center;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--ink); }
.footer-disclaimer {
  max-width: 480px;
  margin: 14px auto 0 !important;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 11.5px;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================================
   Larger screens: progressive enhancement only, phone layout is the base
   ========================================================================== */
@media (min-width: 480px) {
  .support-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 140px 1fr; gap: 12px; }
}

@media (min-width: 700px) {
  .masthead { padding: 12px 24px; }
  .doc-wrap { padding: 0 24px 64px; }
  .panel { padding: 26px 32px; }
  .accordion__trigger { padding: 16px 32px; }
  .accordion__panel { padding: 4px 32px 20px; }
  .contact-sheet { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
