/* ==========================================================================
   Rule 76 Ventures LLC — site styles
   Single stylesheet. Design tokens live in :root, edit those first.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --ground:        #FAFAF9;
  --surface:       #FFFFFF;
  --surface-2:     #F4F3F0;
  --ink:           #16181D;
  --ink-2:         #3F444E;
  --muted:         #6B7280;
  --line:          #E4E2DD;
  --line-strong:   #D3D0C9;

  --accent:        #0F6B4F;
  --accent-hover:  #0B5540;
  --accent-soft:   #E8F1EC;
  --amber:         #A8660C;
  --amber-soft:    #FBF1E0;

  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px -12px rgba(22, 24, 29, .10);
  --shadow-lift:   0 2px 4px rgba(22, 24, 29, .05), 0 18px 36px -16px rgba(22, 24, 29, .18);

  --wrap:          1080px;
  --wrap-narrow:   720px;

  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --step:      1rem;
  --ease:      cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #0F1114;
    --surface:     #171A1F;
    --surface-2:   #1E2228;
    --ink:         #F1F1EF;
    --ink-2:       #C3C7CE;
    --muted:       #8B929D;
    --line:        #272C33;
    --line-strong: #363C45;

    --accent:      #4FBF95;
    --accent-hover:#6FD3AC;
    --accent-soft: #14332A;
    --amber:       #E0A45C;
    --amber-soft:  #33260F;

    --shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 36px -16px rgba(0, 0, 0, .7);
  }
}

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

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.018em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }

p  { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s var(--ease);
}
a:hover { color: var(--accent-hover); }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ------------------------------------------------------------- utility -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.19rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Unfilled facts. Deliberately loud so nothing ships half-finished.
   Find them all with:  grep -rn "\[\[" .   */
.tbd {
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: .82em;
  padding: .1em .4em;
  border-radius: 4px;
  border: 1px dashed currentColor;
  white-space: nowrap;
}

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(90deg); }

.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .94rem;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav__cta {
  margin-left: .35rem;
  border: 1px solid var(--line-strong);
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent) !important; }

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: .35rem; padding-block: .8rem; }
  .nav { margin-left: -.7rem; }
  .site-header { position: static; }
}

/* --------------------------------------------------------------- hero -- */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }

.hero__entity {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.hero h1 { max-width: 16ch; }

.hero__motto {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 1.6rem 0 1.5rem;
  padding: .45rem .9rem .45rem .7rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
}
.hero__motto span[aria-hidden] {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* -------------------------------------------------------------- section -- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }

.section__head { max-width: 60ch; margin-bottom: 2.5rem; }

/* ------------------------------------------------------------- divisions -- */
.divisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.division {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.division:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.division__glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.division__index {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .35rem;
}

.division h3 { margin-bottom: .5rem; }

.division p { color: var(--ink-2); font-size: .96rem; margin-bottom: 1.1rem; }

.division__link {
  margin-top: auto;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.division__link::after {
  content: "→";
  transition: transform .18s var(--ease);
}
.division:hover .division__link::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- record -- */
/* The company-record block. This is the part verification reviewers read. */
.record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.record__item {
  padding: 1.3rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record__item dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}

.record__item dd {
  margin: 0;
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.record__item dd a { font-weight: 500; }

/* ---------------------------------------------------------------- prose -- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: .95rem;
}
.prose th, .prose td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th { font-weight: 600; color: var(--ink); width: 34%; }
.prose td { color: var(--ink-2); }

.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- panel -- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.panel--note {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 35%, transparent);
  box-shadow: none;
}
.panel--note h3 { color: var(--amber); }
.panel--note p  { color: var(--ink-2); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: .96rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }

@media (prefers-color-scheme: dark) {
  /* Dark accent is light, so solid buttons need dark label text.
     Must exclude the ghost variant or its label disappears. */
  .btn:not(.btn--ghost) { color: #0F1114; }
  .btn:not(.btn--ghost):hover { color: #0F1114; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 3rem 0 2.5rem;
  font-size: .92rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .9rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.site-footer address {
  font-style: normal;
  color: var(--ink-2);
  line-height: 1.7;
}

.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  color: var(--muted);
  font-size: .86rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  justify-content: space-between;
}

.site-footer__entity {
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: .6rem;
}

/* ------------------------------------------------------------ utilities -- */
/* Small spacing helpers so no page needs an inline style attribute, which
   keeps the Content-Security-Policy in _headers free of 'unsafe-inline'. */
.pt-0    { padding-top: 0; }
.mt-1    { margin-top: 1rem; }
.mt-2    { margin-top: 1.4rem; }
.mt-3    { margin-top: 1.6rem; }
.mb-4    { margin-bottom: 2.4rem; }
.subtitle { margin-top: -.4em; }
