/* gcf.law — shared stylesheet
   Palette is built from the vocabulary of the subject: wet concrete, tile,
   standing water, and the muted yellow of a caution placard. */

:root {
  --paper:   #F8F6F1;
  --slab:    #EFEBE1;
  --ink:     #1A1712;
  --slate:   #26231C;
  --wet:     #8A6D2B;
  --wet-deep:#6E571F;
  --caution: #A0813C;
  --gold-lt: #C9A65B;
  --rule:    #D6CFBF;
  --muted:   #6B6355;

  --display: "Archivo", system-ui, sans-serif;
  --body:    "Source Serif 4", Georgia, serif;
  --data:    "IBM Plex Mono", ui-monospace, monospace;

  --measure: 34rem;
  --gutter:  clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.55vw + 0.95rem, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--wet-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--wet);
  outline-offset: 3px;
}

/* ---------- structural devices ---------- */

/* The signature rule: a caution-placard stripe, used only where a section
   boundary genuinely divides one idea from the next. */
.hazard {
  height: 7px;
  border: 0;
  margin: 0;
  border-top: 1px solid var(--caution);
  border-bottom: 1px solid var(--caution);
  background: transparent;
  position: relative;
}
.hazard::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%,-50%) rotate(45deg);
  border: 1px solid var(--caution);
  background: var(--paper);
}

.eyebrow {
  font-family: var(--data);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: block;
}

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--slab { background: var(--slab); }
.section--deep { background: var(--slate); color: var(--paper); }
.section--deep a { color: var(--gold-lt); }
.section--deep .eyebrow { color: #A99F8A; }

/* ---------- utility bar + nav ---------- */

.utility {
  background: var(--slate);
  color: var(--paper);
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.utility .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}
.utility a { color: var(--gold-lt); }

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
}
.monogram {
  text-align: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--caution);
}
.lockrule {
  display: block;
  height: 5px;
  border-top: 1px solid var(--caution);
  border-bottom: 1px solid var(--caution);
  position: relative;
}
.lockrule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  transform: translate(-50%,-50%) rotate(45deg);
  border: 1px solid var(--caution);
  background: var(--paper);
}
.firmname {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.nav a {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--caution); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); }
.hero .lede {
  font-size: clamp(1.15rem, 1vw + 0.95rem, 1.375rem);
  margin-top: 1.5rem;
  color: #2A322E;
}
.figure-floor { width: 100%; height: auto; display: block; }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--slate);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn--primary { background: var(--slate); color: var(--paper); }
.btn--primary:hover { background: var(--wet-deep); border-color: var(--wet-deep); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--slab); color: var(--ink); }

/* ---------- the four elements ---------- */

.elements { counter-reset: el; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.elements li {
  counter-increment: el;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.elements li:last-child { border-bottom: 1px solid var(--rule); }
.elements li::before {
  content: counter(el);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--caution);
  -webkit-text-stroke: 0.5px var(--slate);
}
.elements h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.elements p { margin: 0.4rem 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 42rem; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr));
  margin-top: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--wet);
  border-radius: 2px;
  padding: 1.5rem;
}
.card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; margin: 0; color: var(--muted); }

/* ---------- required-disclosure block ---------- */

.disclosure {
  font-family: var(--data);
  font-size: 0.8125rem;
  line-height: 1.75;
  border-left: 4px solid var(--caution);
  padding: 1.1rem 0 1.1rem 1.25rem;
  margin: 0;
  max-width: 46rem;
}
.disclosure dt {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.6875rem;
  color: var(--muted);
}
.disclosure dd { margin: 0 0 0.75rem; }
.disclosure dd:last-child { margin-bottom: 0; }
.section--deep .disclosure dt { color: #9FB0B4; }

.fill { background: rgba(223,174,46,0.28); padding: 0 0.25em; border-radius: 2px; }

/* ---------- form ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 2rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form .note { font-family: var(--data); font-size: 0.75rem; color: var(--muted); line-height: 1.6; max-width: none; }

/* ---------- footnotes + footer ---------- */

.footnotes {
  font-family: var(--data);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  margin-top: 2.75rem;
  padding-top: 1.1rem;
  max-width: 48rem;
}
.footnotes ol { margin: 0; padding-left: 1.2rem; }
.footnotes li { margin-bottom: 0.4rem; }

.sitefoot { background: var(--slate); color: var(--paper); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.sitefoot a { color: var(--gold-lt); }
.sitefoot .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  margin-bottom: 2.25rem;
}
.sitefoot h2 { font-size: 0.75rem; font-family: var(--data); font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: #A99F8A; margin-bottom: 0.75rem; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin-bottom: 0.4rem; font-size: 0.9375rem; }
.legal {
  font-family: var(--data);
  font-size: 0.75rem;
  line-height: 1.8;
  color: #C7BEAB;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1.5rem;
  max-width: 56rem;
}
.legal p { max-width: none; margin-bottom: 0.9em; }
.legal p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 50;
  background: var(--caution);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--display);
  font-weight: 700;
}

.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.125rem); margin-bottom: 1rem; }
.prose h3 { font-size: 1.1875rem; margin: 2rem 0 0.5rem; }
.prose ul { max-width: var(--measure); padding-left: 1.15rem; }
.prose li { margin-bottom: 0.5rem; }
.lead-in { max-width: 44rem; }

/* ---------- case screener ---------- */

.screen { max-width: 40rem; }
.progress {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--data); font-size: 0.75rem; color: var(--muted);
  margin-bottom: 2rem;
}
.progress .track { flex: 1; height: 5px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.progress .fill-bar { height: 100%; background: var(--caution); transition: width 220ms ease; }

.q { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem,3.2vw,2rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.6rem; }
.q-help { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.6rem; max-width: 32rem; }

.choices { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; }
.choice {
  display: block; width: 100%; text-align: left;
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.4;
  padding: 1rem 1.1rem;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--rule); border-radius: 3px;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.choice:hover { border-color: var(--wet); background: #fff; }
.choice[aria-pressed="true"] { border-color: var(--slate); background: #fff; box-shadow: inset 4px 0 0 var(--caution); }

.nav-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.linkish {
  background: none; border: 0; padding: 0.5rem 0;
  font-family: var(--display); font-size: 0.875rem; font-weight: 600;
  color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--ink); }

.dateline { font-family: var(--body); font-size: 1.0625rem; padding: 0.75rem 0.85rem; border: 2px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); width: 100%; max-width: 16rem; }

.flag {
  border: 1px solid var(--rule); border-left: 5px solid var(--wet);
  border-radius: 3px; background: var(--paper);
  padding: 1.1rem 1.25rem; margin-bottom: 0.85rem;
}
.flag--urgent { border-left-color: #B4451F; }
.flag--urgent .flag-tag { color: #B4451F; }
.flag-tag {
  font-family: var(--data); font-size: 0.6875rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--wet-deep); display: block; margin-bottom: 0.4rem;
}
.flag p { margin: 0; font-size: 0.9375rem; max-width: none; }

.recap { width: 100%; min-height: 11rem; font-family: var(--data); font-size: 0.8125rem; line-height: 1.65; padding: 0.9rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--slab); color: var(--ink); resize: vertical; }

/* ---------- portrait ---------- */
.portrait {
  float: right;
  width: min(16.5rem, 42%);
  margin: 0.4rem 0 1.25rem 2rem;
}
.portrait img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
}
.portrait figcaption {
  border-top: 3px double var(--caution);
  margin-top: 0.55rem;
}
.portrait figcaption {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.55rem;
}
@media (max-width: 40rem) {
  .portrait { float: none; width: 72%; margin: 0 auto 1.75rem; }
}

/* ---------- results ---------- */
.results { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.result {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--slate);
  border-radius: 2px;
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex; flex-direction: column;
}
.result .eyebrow { margin-bottom: 0.9rem; }
.result-amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.75rem;
}
.result-amount { margin-bottom: 1.1rem; }
.result-spacer { flex: 1; }
.result-net {
  font-family: var(--data);
  font-size: 0.8125rem;
  margin: 0;
  padding: 0.6rem 0 0;
  border-top: 1px dashed var(--rule);
  color: var(--wet-deep);
}


/* ---------- hero photograph ---------- */
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.hero-photo .annot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-photo figcaption {
  font-family: var(--data); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding-top: 0.5rem;
}

/* ---------- kin line ---------- */
.kin {
  font-size: 0.9375rem; color: var(--muted);
  border-left: 3px double var(--caution);
  padding-left: 0.9rem; margin-top: 1.4rem; max-width: 30rem;
}

/* ---------- mini FAQ ---------- */
.mini-faq details {
  border-top: 1px solid var(--rule); padding: 0.9rem 0;
}
.mini-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.mini-faq summary {
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after { content: "+"; font-weight: 600; color: var(--caution); transition: transform 200ms ease; }
.mini-faq details[open] summary::after { transform: rotate(45deg); }
.mini-faq p { margin: 0.7rem 0 0; font-size: 0.9375rem; max-width: 40rem; }

/* ---------- motion ---------- */
.card, .result { transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.card:hover, .result:hover { transform: translateY(-3px); border-top-color: var(--caution); box-shadow: 0 10px 24px rgba(38,35,28,0.08); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease-out, transform 520ms ease-out; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise 640ms ease-out both; }
.hero .lede { animation: rise 640ms 120ms ease-out both; }
.hero .kin { animation: rise 640ms 200ms ease-out both; }
.hero .actions { animation: rise 640ms 280ms ease-out both; }
.hero figure { animation: rise 720ms 200ms ease-out both; }
