/* OakVane site layer. Keeps the Letterpress foundation intact. */

h1, h2, .lp-h1, .lp-h2 {
  text-wrap: balance;
}

/* Gazette — compact link directory. Use for area/city/related-page lists;
   reserve .lp-index rows for process steps and other editorial moments.
   Flex (not grid) so a partial last row justifies full-width with no holes. */
.lp-gazette {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.lp-gazette a {
  display: block;
  flex: 1 1 calc(33.333% - 1px);
  min-width: 0;
  background: var(--card);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.lp-gazette-2 a {
  flex-basis: calc(50% - 1px);
}

.lp-gazette .lp-gazette-name {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 540;
  line-height: 1.25;
}

.lp-gazette .lp-gazette-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.lp-gazette a:hover {
  background: var(--ink);
  color: var(--paper);
}

.lp-gazette a:hover .lp-gazette-meta {
  color: var(--inv-muted);
}


/* Breadcrumbs */
.lp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.lp-crumbs a {
  color: var(--faint);
  text-decoration-color: var(--rule);
}

.lp-crumbs a:hover {
  color: var(--rust);
}

.lp-crumbs [aria-current] {
  color: var(--ink-soft);
}

.lp-crumbs + .hero {
  padding-top: 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 64px;
  align-items: start;
  padding: 88px 0 96px;
}

.hero-rail {
  position: relative;
}

.hero-rail .lp-stamp {
  position: absolute;
  /* Sized to fit between the nav and the ledger header: taller/lower covers
     the What-changes header text, higher clips under the nav bar. */
  width: 88px;
  height: 88px;
  top: -84px;
  right: -18px;
  background: var(--paper);
  z-index: 2;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero > *,
.two-col > * {
  min-width: 0;
}

.split-tight {
  grid-template-columns: 0.82fr 1.18fr;
}

.image-rule {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 10px;
}

.image-rule img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  filter: sepia(0.08) saturate(0.9);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  background: var(--rule);
  gap: 1px;
}

.proof-strip div {
  background: var(--card);
  padding: 18px;
}

.proof-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 540;
}

.form-shell {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 36px;
}

.page-note {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 20px;
}

/* Long-form legal documents (privacy, terms) */
.legal-doc {
  max-width: 76ch;
}

.legal-doc h2 {
  font-size: 24px;
  font-weight: 560;
  letter-spacing: 0;
  margin: 48px 0 14px;
}

.legal-doc h3 {
  font-size: 17px;
  margin: 26px 0 8px;
}

.legal-doc ul {
  margin: 0 0 1em;
  padding-left: 22px;
  color: var(--ink-soft);
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc li::marker {
  color: var(--faint);
}

/* Unresolved legal placeholder — must be filled before the page takes effect */
.legal-doc .ph {
  background: var(--paper-2);
  border-bottom: 1px dashed var(--rust);
  padding: 0 4px;
  color: var(--rust-deep);
  font-weight: 500;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-cols a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
}

.mini-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mini-nav a {
  font-size: 13px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 999;
}

.skip-link:focus {
  left: 8px;
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 980px) {
  .lp-nav-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 16px;
  }

  .lp-wordmark {
    flex-basis: 100%;
  }

  .hero,
  .two-col,
  .split-tight {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 48px;
    padding: 56px 0 64px;
  }

  .hero-rail .lp-stamp {
    top: -84px;
    right: 0;
  }

  .proof-strip,
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .lp-gazette a {
    flex-basis: calc(50% - 1px);
  }
}

@media (max-width: 640px) {
  :root {
    --col: calc(100% - 32px);
  }

  .lp-col,
  .lp-nav-inner {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }

  h1,
  .lp-h1 {
    font-size: 34px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero > div,
  .hero-actions,
  .hero-rail,
  .image-rule,
  .lp-table {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero .lp-lead,
  .hero .lp-note {
    max-width: 24ch;
  }

  h2,
  .lp-h2 {
    font-size: 32px;
    letter-spacing: 0;
  }

  .lp-nav-link {
    display: none;
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .lp-btn,
  .hero-actions .lp-btn-ghost,
  .button-row .lp-btn,
  .button-row .lp-btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-rail .lp-stamp {
    width: 92px;
    height: 92px;
    font-size: 10px;
    top: -90px;
  }

  .lp-table {
    table-layout: fixed;
  }

  .lp-table th,
  .lp-table td {
    overflow-wrap: break-word;
  }

  .proof-strip,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .lp-gazette a,
  .lp-gazette-2 a {
    flex-basis: calc(50% - 1px);
    padding: 12px 14px;
  }

  .lp-gazette .lp-gazette-name {
    font-size: 15px;
  }

  .lp-gazette .lp-gazette-meta {
    display: none;
  }

  .form-shell {
    padding: 24px;
  }
}

/* Letterpress impression: controls physically press in when clicked */
.lp-btn:active,
.lp-form [type="submit"]:active,
.fluentform .ff-btn-submit:active {
  transform: translate(1px, 2px);
  background: var(--rust-deep);
  border-color: var(--rust-deep);
}

.lp-btn-ghost:active,
.lp-gazette a:active,
.lp-index-row:active {
  transform: translate(1px, 2px);
}

/* Mobile menu: sits on the same row as the wordmark; opens full-page */
.lp-mobile-menu {
  display: none;
}

@media (max-width: 640px) {
  .lp-nav-inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .lp-wordmark {
    flex-basis: auto;
    margin-right: auto;
    font-size: 19px;
  }

  .lp-nav .lp-btn-ghost {
    display: none;
  }

  .lp-mobile-menu {
    display: block;
  }

  .lp-mobile-menu summary {
    position: relative;
    z-index: 220;
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    padding: 9px 14px;
    background: var(--card);
    color: var(--ink);
  }

  .lp-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .lp-mobile-menu[open] summary {
    position: fixed;
    top: 13px;
    right: 16px;
    background: var(--card);
    color: var(--ink);
  }

  .lp-mm-close {
    display: none;
  }

  .lp-mobile-menu[open] .lp-mm-open {
    display: none;
  }

  .lp-mobile-menu[open] .lp-mm-close {
    display: inline;
  }

  .lp-mobile-menu-links {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--card);
    padding: 0 16px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  /* Mirrors the nav bar exactly (height, rule, wordmark class) so the
     wordmark does not shift when the menu opens over it. */
  .lp-mm-head {
    display: flex;
    align-items: center;
    min-height: 64px;
    flex: none;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 6px;
  }

  .lp-mobile-menu-links > a {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 520;
    color: var(--ink);
    text-decoration: none;
    padding: 11px 2px;
    border-bottom: 1px solid var(--rule);
  }

  .lp-mobile-menu-links > a:active {
    background: var(--paper-2);
  }

  .lp-mobile-menu-links > a:first-of-type {
    border-top: 0;
  }

  .lp-mobile-menu-links .lp-mm-phone {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--rust);
  }

  .lp-mobile-menu-links .lp-mm-cta {
    margin-top: auto;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    padding: 16px;
    border-bottom: 0;
  }
}

/* ─── SMS consent checkbox (A2P 10DLC) — required on every phone form ── */
.lp-consent { margin-bottom: 22px; }
.lp-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.lp-consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.lp-consent a { color: var(--ink); }

/* ─── FAQ accordion (homepage) ──────────────────────────────────────── */
.lp-faq {
  border-top: 1px solid var(--rule);
  max-width: 78ch;
}
.lp-faq details {
  border-bottom: 1px solid var(--rule);
}
.lp-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 540;
  color: var(--ink);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--rust);
  flex: none;
}
.lp-faq details[open] summary::after { content: "\2013"; }
.lp-faq details p {
  margin: 0 0 20px;
  max-width: 70ch;
}
.lp-nav-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ─── Touch hardening ───────────────────────────────────────────────── */
/* manipulation removes double-tap-zoom arbitration on controls so taps
   fire immediately; the decorative stamp must never intercept a tap. */
a, button, summary, input, select, textarea, label {
  touch-action: manipulation;
}

@media (max-width: 980px) {
  .hero-rail .lp-stamp { pointer-events: none; }
}

/* Closed-details safety: some engines let author display override the UA
   hiding of closed <details> content; never render the menu overlay closed. */
.lp-mobile-menu:not([open]) .lp-mobile-menu-links { display: none; }

/* ─── Instant tap feedback on touch devices ─────────────────────────── */
/* Each page carries a no-op touchstart listener, which is what makes iOS
   apply :active at all. The UA gray tap flash is disabled in favor of the
   letterpress press states, and hover looks are mirrored as press looks
   so a tap lights up on contact, with no transition easing on the way in. */
a, button, summary, input, select, textarea, label,
.lp-card-hover, .lp-index-row {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@media (hover: none) {
  .lp-btn:active,
  .lp-btn-ghost:active,
  .lp-gazette a:active,
  .lp-index-row:active,
  .lp-card-hover:active,
  .lp-faq summary:active,
  .lp-mobile-menu-links > a:active {
    transition-duration: 0s;
  }

  .lp-index-row:active {
    background: var(--ink);
    color: var(--paper);
  }
  .lp-index-row:active .lp-index-no { color: var(--rust-on-dark); }
  .lp-index-row:active .lp-index-meta { color: var(--inv-muted); }

  .lp-card-hover:active {
    position: relative;
    z-index: 2;
    outline: 1px solid var(--ink);
    transform: translate(-2px, -2px);
    box-shadow: var(--offset-shadow);
  }

  .lp-gazette a:active {
    background: var(--ink);
    color: var(--paper);
  }
  .lp-gazette a:active .lp-gazette-meta { color: var(--inv-muted); }

  .lp-faq summary:active { color: var(--rust); }
}
