/* hometurf demo pages — "working paper": municipal permit-file meets letterhead.
   One stylesheet, no JS frameworks. Mobile-first at 375px. */

:root {
  --paper: #f6f2e8;
  --card: #fffdf6;
  --ink: #201d16;
  --muted: #6f6654;
  --line: #d9d1bc;
  --stamp: #b23f1d;
  --approve: #2e5e3a;
  --shadow: 0 1px 2px rgba(60, 50, 20, 0.08), 0 8px 24px rgba(60, 50, 20, 0.10);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(32, 29, 22, 0.015) 0 1px, transparent 1px 3px),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

.file {
  max-width: 660px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

/* ---- sample-mode tape banner ---- */
/* hazard stripes stay as a top strip; the text itself sits on solid ink
   (yellow-on-ink ≈ 10:1 — white over the yellow stripe segments was 1.6:1) */
.tape {
  background:
    repeating-linear-gradient(-45deg, #f2c94c 0 14px, #201d16 14px 28px) top / 100% 6px no-repeat,
    var(--ink);
  color: #f2c94c;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 13px 12px 8px;
}

/* ---- letterhead ---- */
.letterhead { border-bottom: 3px double var(--ink); padding-bottom: 18px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 4px;
}

.company {
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.territory {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  border: 1px dashed var(--line);
  padding: 7px 10px;
  display: inline-block;
  background: var(--card);
}

.intro { margin: 22px 0 8px; font-size: 18px; }
.intro p { margin: 0; }

/* ---- section labels ---- */
.section-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 34px 0 14px;
}
.section-label .asof { color: var(--muted); letter-spacing: 0.05em; text-transform: none; float: right; font-weight: 400; }

/* ---- permit cards: index cards from the permit file ---- */
.permit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--approve);
  box-shadow: var(--shadow);
  padding: 12px 14px 13px;
  margin-bottom: 10px;
}

.permit-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--approve);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
}

.permit-val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.permit-addr {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 3px;
}

.permit-kind { font-size: 14.5px; color: var(--muted); margin: 0; }

/* new-build marker: outlined + muted so it reads as a filing fact, not a pitch */
.chip-nb { color: var(--muted); font-size: 10px; padding: 1px 5px; }

/* the permit's own wording, quoted — proof the data is real */
.permit-desc {
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.fineprint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---- the letter artifact ---- */
.letter-section { margin-top: 8px; }

.letter-frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(18px, 5vw, 38px);
  margin-top: 6px;
}

@media (min-width: 700px) {
  .letter-frame { transform: rotate(-0.35deg); }
}

.stamp {
  position: absolute;
  top: 14px;
  right: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  border-radius: 3px;
  padding: 4px 10px 4px 12px;
  transform: rotate(6deg);
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.7);
}

/* embedded letter sheet (same classes the PDF page uses) */
.letter-sheet { font-size: 15.5px; line-height: 1.55; }
.letter-return { font-size: 12.5px; line-height: 1.4; white-space: pre-line; color: var(--ink); }
.letter-date { margin-top: 14px; font-size: 13.5px; }
.letter-recipient { margin-top: 16px; font-size: 14.5px; line-height: 1.4; white-space: pre-line; }
.letter-body { margin-top: 22px; white-space: pre-line; }
.letter-watermark {
  margin-top: 18px;
  font-size: 11px;
  color: #8a1f1f;
  border: 1px solid #8a1f1f;
  padding: 4px 8px;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 2px 0;
}

/* ---- offer: the rate card ---- */
.offer {
  margin-top: 40px;
  border: 2px dashed var(--ink);
  background: var(--card);
  padding: 22px 20px 20px;
}

.offer-price {
  font-size: clamp(34px, 9vw, 46px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
}
.offer-list li::before { content: "— "; color: var(--stamp); }

.offer-exclusive {
  margin: 14px 0 0;
  font-style: italic;
  color: var(--stamp);
  font-size: 16px;
}

.offer-cta { margin-top: 16px; }

/* ---- CTA ---- */
.cta { margin-top: 26px; display: grid; gap: 10px; }

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 16px;
  border-radius: 3px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-solid { background: var(--stamp); border-color: var(--stamp); color: #fff; }

.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 rgba(32, 29, 22, 0.25); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* ---- footer identity ---- */
.from {
  margin-top: 44px;
  border-top: 3px double var(--ink);
  padding-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.from p { margin: 0 0 8px; }
.from strong { color: var(--ink); }

/* ---- load reveal (CSS only, one orchestrated pass) ---- */
.reveal { animation: rise 460ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .btn { transition: none; }
}

/* ---- public homepage (the one indexable page; no reveal animations) ---- */
.jump {
  float: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
  margin-top: 8px;
}
.jump:hover { color: var(--ink); border-bottom-color: var(--ink); }

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.home-steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 44px;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
}
.home-steps li::before {
  content: counter(step);
  position: absolute;
  left: 2px;
  top: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--stamp);
  border: 1.5px solid var(--stamp);
  border-radius: 50%;
}

.home-aside {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--stamp);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.home-aside h2 { font-size: 18px; margin: 0 0 8px; }
.home-aside p { margin: 0; font-size: 15px; }
.home-aside a, .from a { color: var(--stamp); }

.from address { font-style: normal; margin: 0 0 8px; }

.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}
