/* PoshJosh LLC + Claim Binder site.
   Layout: one left-aligned reading column (max ~42rem) under a slim header; legal pages read like documents.
   Palette follows the Claim Binder app: cool grey ground, deep ink, storm teal. */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #F3F5F7;
  --paper: #FFFFFF;
  --ink: #10212E;
  --muted: #4A5A66;
  --rule: #D9DFE4;
  --teal: #0B5F73;
  --teal-soft: #E3ECEF;
  --teal-ink: #08485A;
  --flag: #FFF3EC;
  --flag-ink: #9A3A0C;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.1rem, 6vw, 3rem);
  --measure: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D1820; --paper: #13222C; --ink: #E4ECF0; --muted: #9DB0BC; --rule: #253846;
    --teal: #74BCCD; --teal-soft: #173440; --teal-ink: #A9DAE6; --flag: #3A2414; --flag-ink: #F3B48C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0D1820; --paper: #13222C; --ink: #E4ECF0; --muted: #9DB0BC; --rule: #253846;
  --teal: #74BCCD; --teal-soft: #173440; --teal-ink: #A9DAE6; --flag: #3A2414; --flag-ink: #F3B48C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-inline: 20px;
}
.wrap { max-width: var(--measure); margin-inline: auto; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-ink); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 18px;
}
.wordmark { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark span { font-weight: 500; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Main */
main .wrap { padding-block: 56px 72px; display: flex; flex-direction: column; gap: 48px; }
main section { display: flex; flex-direction: column; gap: 14px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); font-weight: 650; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 36rem; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.small { font-size: 0.92rem; color: var(--muted); }
strong { font-weight: 700; }

/* Company list on the home page */
.ventures { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.venture {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px 24px;
  padding-block: 20px; border-bottom: 1px solid var(--rule);
}
.venture h3 { font-size: var(--step-1); }
.venture p { color: var(--muted); }
.venture .kind { font-size: 0.92rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .venture { grid-template-columns: minmax(0, 1fr); } }

/* Claim Binder app header */
.app-title { display: flex; flex-direction: column; gap: 6px; }
.app-sub { font-size: var(--step-1); font-weight: 500; color: var(--muted); }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* The binder: index tabs down the right edge, one per section of a claim */
.binder {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px 14px 14px 6px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: inset 10px 0 0 var(--teal-soft);
}
.binder-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.binder-row:last-child { border-bottom: none; }
.binder-row .body { padding: 16px 18px 16px 28px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.binder-row .body strong { font-size: 1.05rem; }
.binder-row .body span { color: var(--muted); font-size: 0.97rem; }
.binder-row .tab {
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--teal-soft); color: var(--teal-ink); border-left: 1px solid var(--rule);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; padding: 10px 6px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 28px 32px; }
.facts > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.note {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}

/* Legal and support pages read like documents */
.doc { display: flex; flex-direction: column; gap: 36px; }
.doc section { gap: 12px; }
.doc h2 { font-size: var(--step-1); font-weight: 700; }
.updated { font-size: 0.95rem; color: var(--muted); }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 4px; }
.faq summary {
  cursor: pointer; font-weight: 650; padding-block: 12px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 600; font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }

.contact-email { font-size: var(--step-1); font-weight: 650; }

/* Placeholder Josh must fill in before the site goes live */
.fill { background: var(--flag); color: var(--flag-ink); padding: 0 4px; border-radius: 4px; font-style: normal; }

address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap {
  padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  font-size: 0.92rem; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.h-small { font-size: var(--step-1); }
