/* ============================================================
   PSA — Shared styles
   Used by all inner pages. The homepage (index.html) is standalone.
   ============================================================ */

:root {
  --bg:    oklch(0.91 0.032 220);
  --bg-2:  oklch(0.96 0.016 218);
  --bg-3:  oklch(0.87 0.040 222);
  --ink:   oklch(0.18 0.032 240);
  --ink-2: oklch(0.36 0.028 238);
  --ink-3: oklch(0.55 0.022 232);
  --ink-4: oklch(0.73 0.016 226);
  --rule:  oklch(0.80 0.026 220);
  --rule-2:oklch(0.76 0.032 218);

  /* Aged brick red accent */
  --clay-1: oklch(0.620 0.162 22);
  --clay-2: oklch(0.500 0.155 20);
  --clay-3: oklch(0.415 0.140 18);
  --hot-1: var(--clay-1);
  --hot-2: var(--clay-2);
  --hot-3: var(--clay-3);
  --clay-shadow: 0 6px 18px rgba(158, 52, 18, 0.28);

  --shadow-sm: 0 1px 2px rgba(18, 24, 38, 0.05);
  --shadow-md: 0 4px 12px rgba(18, 24, 38, 0.07);
  --shadow-lg: 0 12px 32px rgba(18, 24, 38, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: acumin-variable-concept, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap        { max-width: 920px;  margin: 0 auto; padding: 0 24px; }
.wrap-wide   { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 680px;  margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────── */
nav {
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-svg { display: block; }
.psa-ink   { fill: var(--ink); }
.psa-navy  { fill: oklch(0.380 0.130 258); }
.psa-red   { fill: oklch(0.56 0.165 22); }

/* ── NAV MENU ─────────────────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active { color: var(--clay-2); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--clay-2);
  opacity: 0.6;
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
}

/* ── NAV ACTIONS ─────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta, .sign-in {
  border: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.15s;
}
.nav-cta:hover, .sign-in:hover { border-color: var(--ink-2); color: var(--ink); }

/* ── PAGE HEADER ─────────────────────────── */
.page-head {
  padding: 56px 0 52px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.page-kicker {
  font-family: source-code-pro, monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--clay-2);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-kicker::before { content: "•"; }
.page-title {
  font-family: freight-display-pro, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.page-title em {
  font-style: italic;
  color: var(--clay-2);
}
.page-lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ── ARTICLE BODY ────────────────────────── */
.article-body {
  padding-bottom: 80px;
}
.article-body h2 {
  font-family: freight-display-pro, serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 52px 0 14px;
  color: var(--ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; color: var(--clay-2); }
.article-body a { color: var(--clay-2); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--clay-3); }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 20px; }
.article-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--clay-2);
  padding: 2px 0 2px 22px;
  margin: 28px 0;
}
.article-body blockquote p {
  font-family: freight-display-pro, serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
hr.article-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 52px 0;
}

/* ── CALLOUT ─────────────────────────────── */
.callout {
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-label {
  font-family: source-code-pro, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--clay-2);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.callout p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-clay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clay-2);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: var(--clay-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: acumin-variable-concept, sans-serif;
}
.btn-clay:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(158, 52, 18, 0.40); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-2);
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.15s;
  font-family: acumin-variable-concept, sans-serif;
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* ── FORM ELEMENTS ───────────────────────── */
.field-group { margin-bottom: 22px; }
.field-label {
  display: block;
  font-family: source-code-pro, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.field-input, .field-textarea, .field-select {
  display: block;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 16px;
  color: var(--ink);
  font-family: acumin-variable-concept, sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.field-input:focus, .field-textarea:focus, .field-select:focus { border-color: var(--clay-2); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--ink-4); }
.field-textarea { resize: vertical; line-height: 1.6; }
.field-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a857a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-hint {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ── FOOTER ─────────────────────────────── */
/* ── FOOTER SYSTEM ─────────────────────────
   Compartmentalised, density-scaled ladder:
     ≥1024  desktop:      4-column grid, generous gutter
     768-1023  tablet:    4 tight columns; horizontal use of tablet width
     560-767  small tab:  2 × 2 sections
     380-559  mobile:     2 × 2 sections, denser type
     <380  micro:         single column, chip-tight

   The colophon (`.foot-bottom`) collapses to a single inline strip below
   560 with a bullet separator, so it reads like a proper credit line
   instead of two centred lines with air between them.
*/

footer {
  margin-top: 80px;
  padding: 60px 24px 28px;
  border-top: 1px solid var(--rule);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto 40px;
}
.foot-col h4 {
  font-family: source-code-pro, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--clay-2); }

.foot-bottom {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.65;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  max-width: 920px;
  margin: 0 auto;
}
.foot-bottom .heart { color: var(--clay-2); }

/* ── FOOTER RESPONSIVE LADDER ───────────── */
/* Large tablet — keep 4 columns, just tighten gutter + type */
@media (max-width: 1023px) {
  footer { padding: 52px 22px 24px; margin-top: 68px; }
  .foot-grid { gap: 24px 20px; margin-bottom: 32px; max-width: 100%; }
  .foot-col h4 { margin-bottom: 12px; font-size: 9.5px; }
  .foot-col a { font-size: 14px; }
  .foot-col li { margin-bottom: 7px; }
}

/* Small tablet — 2 × 2 sections with tighter type */
@media (max-width: 767px) {
  nav { padding: 18px 20px; }
  .wrap, .wrap-wide, .wrap-narrow { padding: 0 20px; }
  .page-head { padding: 40px 0 32px; margin-bottom: 36px; }
  .page-lede { font-size: 18px; line-height: 1.55; }
  .article-body h2 {
    font-size: 22px;
    margin: 40px 0 12px;
  }
  .article-body p,
  .article-body li { font-size: 16.5px; line-height: 1.7; }
  hr.article-rule { margin: 36px 0; }
  .callout { padding: 18px 20px; margin: 24px 0; }
  .callout-label { font-size: 11px; letter-spacing: 0.14em; }
  .article-body blockquote { padding-left: 18px; margin: 24px 0; }
  .article-body blockquote p { font-size: 18px; }

  footer { padding: 44px 20px 22px; margin-top: 56px; }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
    margin-bottom: 28px;
  }
  .foot-col h4 { margin-bottom: 10px; }
  .foot-bottom { font-size: 12.5px; padding-top: 22px; }
}

/* ── FOOTER TRAY (injected by theme.js) ────────
   Desktop + tablet: button hidden, in-footer grid stays visible.
   Mobile: in-footer grid hidden, button visible, tap triggers a full-screen
   panel that wipes upward from bottom to top with the PSA wordmark on top. */
.foot-tray-toggle { display: none; }
.foot-tray-panel { display: none; }

@media (max-width: 640px) {
  footer { padding: 32px 16px 20px; margin-top: 44px; }

  /* Trigger button — full-width monospace pill */
  .foot-tray-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 100px;
    padding: 14px 22px;
    color: var(--ink-2);
    font-family: source-code-pro, monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    margin-bottom: 22px;
  }
  .foot-tray-toggle:hover,
  .foot-tray-toggle:focus-visible {
    border-color: var(--ink-3);
    color: var(--ink);
    background: var(--bg-3);
  }
  .foot-tray-icon {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.35s cubic-bezier(0.34, 1.06, 0.64, 1);
  }
  footer.tray-open .foot-tray-icon { transform: rotate(180deg); }

  /* In-footer grid is hidden on mobile — overlay handles the display */
  footer > .foot-grid { display: none; }
  footer { padding-top: 40px; }

  .foot-bottom {
    font-size: 12px;
    line-height: 1.55;
    padding-top: 18px;
    letter-spacing: 0.01em;
  }
  .foot-bottom br { display: none; }

  /* ══ FULL-SCREEN OVERLAY ══
     Wipes upward from the bottom edge. clip-path shifts from 100% top-inset
     (nothing visible) to 0 (fully revealed), with the PSA wordmark at the
     head appearing last as the wipe crests. */
  .foot-tray-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    padding: 22px 22px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    pointer-events: none;
    transition:
      clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease;
    will-change: clip-path, opacity;
  }
  .foot-tray-panel.open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }

  .foot-tray-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 26px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 30px;
  }
  .foot-tray-head .brand { flex-shrink: 0; }
  .foot-tray-head .brand-svg { height: 34px; width: auto; }
  .foot-tray-close {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    flex-shrink: 0;
  }
  .foot-tray-close:hover,
  .foot-tray-close:focus-visible {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg-2);
  }
  .foot-tray-close svg { display: block; }

  /* Body content inside the overlay */
  .foot-tray-body .foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
    max-width: 100%;
    margin: 0;
  }
  .foot-tray-body .foot-col h4 {
    font-family: source-code-pro, monospace;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
    font-weight: 500;
  }
  .foot-tray-body .foot-col ul { list-style: none; padding: 0; margin: 0; }
  .foot-tray-body .foot-col li { margin: 0; }
  .foot-tray-body .foot-col a {
    display: block;
    font-size: 15.5px;
    line-height: 1.35;
    padding: 10px 0;
    color: var(--ink);
    text-decoration: none;
  }
  .foot-tray-body .foot-col a:hover { color: var(--clay-2); }
}

/* Micro — single column, tight chip stack */
@media (max-width: 379px) {
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .foot-col h4 { margin-bottom: 6px; }
  .foot-col li { margin-bottom: 4px; }
  .page-lede { font-size: 17px; }
}

