/* Solavellum — foundation stylesheet
   Key color: #113F4A */

:root {
  --teal-900: #0A272E;
  --teal-700: #113F4A;   /* foundation */
  --teal-500: #2C6473;
  --mist:     #EDF2F2;
  --paper:    #FFFFFF;
  --rule:     #C8D6D6;
  --brass:    #B08130;
  --text:     #16292E;
  --muted:    #56707A;

  --measure: 68ch;
  --shell: 1080px;
  --gap: clamp(2.5rem, 6vw, 5rem);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--teal-900);
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; font-family: inherit; font-weight: 700; letter-spacing: 0; }

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

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 56ch;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--teal-700);
  color: var(--paper);
  padding: 1.1rem 0;
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.masthead img {
  display: block;
  height: 38px;
  width: auto;
}

.masthead-nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.masthead-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.masthead-nav a:hover,
.masthead-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
}

.masthead-nav a:focus-visible { outline-color: var(--paper); }

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

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero h1 { margin-bottom: 1.4rem; }

/* ---------- ledger: the one signature device ----------
   A hairline record line per item, the way a compliance
   file reads: label on the left, state on the right.     */

.ledger {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.ledger div {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 0 clamp(1rem, 4vw, 3rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.ledger dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 0.35rem;
}

.ledger dd { margin: 0; }
.ledger dd h3 { margin: 0 0 0.35rem; color: var(--teal-900); }
.ledger dd p { color: var(--muted); margin: 0; }

@media (max-width: 620px) {
  .ledger div { grid-template-columns: 1fr; gap: 0.5rem; }
  .ledger dt { padding-top: 0; }
}

/* ---------- sections ---------- */

.band { padding: var(--gap) 0; }
.band--paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band h2 { margin-bottom: 1.25rem; }

.band--deep {
  background: var(--teal-700);
  color: rgba(255, 255, 255, 0.85);
}
.band--deep h2 { color: var(--paper); }
.band--deep .eyebrow { color: rgba(255, 255, 255, 0.6); }
.band--deep a { color: var(--paper); }
.band--deep a:hover { color: var(--brass); }

/* ---------- long-form legal pages ---------- */

.doc { padding: clamp(3rem, 7vw, 5rem) 0; }
.doc .shell { max-width: 780px; }
.doc h1 { margin-bottom: 0.75rem; }
.doc h2 {
  font-size: 1.28rem;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.doc h2:first-of-type { margin-top: 2rem; }
.doc ul { max-width: var(--measure); padding-left: 1.2rem; margin: 0 0 1.1em; }
.doc li { margin-bottom: 0.5rem; }
.doc .stamp {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.callout {
  background: var(--paper);
  border-left: 3px solid var(--brass);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p { font-size: 0.95rem; }

/* ---------- footer ---------- */

.foot {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.62);
  padding: 2.75rem 0;
  font-size: 0.86rem;
}
.foot .shell {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.foot a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.foot a:hover { color: var(--brass); }
.foot-links { display: flex; gap: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
