/* 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%; scroll-behavior: smooth; }

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;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--teal-900);
  padding: 0.75rem 1.25rem;
  z-index: 20;
}
.skip:focus { left: 0; }

.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;
}

.section-lede {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.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 ----------
   Faint ruled backing: the page's subject is a filed record,
   so the hero sits on ledger paper rather than a flat field. */

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(17, 63, 74, 0.055) 0 1px,
    transparent 1px 2.1rem
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  pointer-events: none;
}

.hero .shell { position: relative; }

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

.hero-note {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- 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;
  position: relative;
}

.ledger div::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--brass);
  opacity: 0;
  transition: opacity 140ms ease;
}

.ledger div:hover::before { opacity: 1; }

.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; }

/* the four-step spine is an actual sequence, so it counts */
.ledger--numbered { counter-reset: step; }
.ledger--numbered dt { counter-increment: step; }
.ledger--numbered dt::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 0.3rem;
}

@media (max-width: 620px) {
  .ledger div { grid-template-columns: 1fr; gap: 0.5rem; }
  .ledger dt { padding-top: 0; }
  .ledger--numbered dt::before { display: inline-block; margin: 0 0.5rem 0 0; font-size: 1rem; }
}

/* ---------- 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); }

.band--close {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.85);
}
.band--close h2 { color: var(--paper); }
.band--close .eyebrow { color: rgba(255, 255, 255, 0.55); }
.band--close a { color: var(--paper); }

/* ---------- thesis band ---------- */

.band--thesis {
  background: var(--mist);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.band--thesis .shell { max-width: 900px; }

.band--thesis .eyebrow {
  padding-top: 1.1rem;
  border-top: 2px solid var(--brass);
  display: inline-block;
}

.band--thesis h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.band--thesis p {
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- section index ---------- */

.band--index {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.chips a {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-700);
  text-decoration: none;
  background: var(--paper);
  transition: border-color 140ms ease, color 140ms ease;
}

.chips a:hover {
  border-color: var(--brass);
  color: var(--teal-900);
}

/* ---------- capability grid ---------- */

.grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.grid li {
  background: var(--paper);
  padding: 1.4rem 1.5rem;
}

.band--paper .grid li { background: var(--mist); }

.grid h3 { margin: 0 0 0.35rem; }
.grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- 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; }

.callout--deep {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}
.callout--deep code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

.fineprint {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}
.band--deep .fineprint a { color: rgba(255, 255, 255, 0.85); }

.band--deep .sub {
  margin: 2.25rem 0 0.6rem;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---------- call to action ---------- */

.cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  background: var(--brass);
  color: var(--teal-900) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  transition: background 140ms ease;
}
.button:hover { background: #C79439; color: var(--teal-900) !important; }

.cta-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }

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

.foot {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.62);
  padding: 2.75rem 0;
  font-size: 0.86rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.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) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
