/* ============================================================
   eigenform — shared design system
   Accent is the mint from the logo: rgb(73,172,153) = #49AC99.

   Two structural convictions carried across every page:
   1. The page is the outermost container, and it has corners.
      Nothing inside may carry a radius >= its container, so all
      block-level panels are SQUARE. Radius zero, stated, not
      defaulted. Inline code is the sole exception: text-proportion
      radii, too small to notice — which is the point.
   2. Gradients are fourth-rank in contrast. They hint depth at the
      thematic breaks and never announce themselves. On paper they
      would be non-printing; here they are simply quiet.
   ============================================================ */

:root {
  --ink:        #d8d5cd;   /* body text — warm paper gray */
  --ink-dim:    #9a978f;   /* secondary text             */
  --ink-faint:  #6b6963;   /* captions, folios           */
  --ground:     #17181b;   /* the page                   */
  --panel:      #1e2024;   /* code + accent blocks       */
  --panel-line: #2c2e33;   /* panel borders              */

  --accent:        #49ac99;  /* the mint                 */
  --accent-bright: #62c8b1;  /* hover                    */
  --accent-dim:    #35796b;  /* borders, folios, dim     */
  --accent-ink:    #10201c;  /* text on a mint fill      */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Funnel Sans", system-ui, sans-serif;
  font-weight: 320;
  font-size: 17px;
  line-height: 1.62;
}

main { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: "Funnel Display", "Funnel Sans", sans-serif; }
h2 { font-weight: 420; font-size: 1.8rem; letter-spacing: .01em; margin: 0 0 1.4rem; }
h3 { font-family: "Funnel Sans", sans-serif; font-weight: 650; font-size: 1.12rem; margin: 2.2rem 0 .7rem; }

p { margin: 0 0 1.1rem; }
section { padding: 4.5rem 0 2rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
em { font-style: italic; }
strong { font-weight: 650; }

/* inline code — text-proportion corner radii (rule 1 exception) */
code {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: .86em;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: .14em;
  padding: .08em .34em;
}

/* block panels — SQUARE (rule 1) */
pre {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
pre code { background: none; border: none; padding: 0; border-radius: 0; font-size: inherit; }

/* thematic break — fourth-rank gradient (rule 2) */
hr.thematic {
  border: none;
  height: 5px;
  margin: 3.4rem auto;
  max-width: 44rem;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,.05) 40%,
    rgba(255,255,255,.05) 50%,
    rgba(0,0,0,.28)       60%,
    rgba(0,0,0,0)        100%);
}

/* image placeholders — descriptions, not images */
pre.image-desc { color: var(--ink-faint); }
pre.image-desc::before {
  content: "image";
  display: block;
  color: var(--accent-dim);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
  margin-bottom: .6rem;
}

/* ---------- top nav ---------- */
nav.top {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
nav.top a.brand {
  font-family: "Funnel Display", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: .01em;
}
nav.top a.brand:hover { text-decoration: none; color: var(--accent); }
nav.top .links { display: flex; gap: 1.2rem; font-size: .92rem; }
nav.top .links a { color: var(--ink-dim); }
nav.top .links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
header.hero { padding: 5.5rem 0 3rem; }
.hero .logo { width: min(30rem, 82%); height: auto; display: block; margin-bottom: 2rem; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 560;
  line-height: 1.03;
  letter-spacing: .005em;
}
.hero .subtitle {
  margin-top: 1.3rem;
  font-size: 1.2rem;
  font-weight: 320;
  color: var(--ink-dim);
  max-width: 36rem;
}
.hero .subtitle b { color: var(--ink); font-weight: 480; }

/* ---------- buttons ---------- */
.cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.cta {
  display: inline-block;
  padding: .72rem 1.5rem;
  border: 1px solid var(--accent-dim);
  border-radius: 0;
  color: var(--accent);
  font-weight: 480;
  letter-spacing: .015em;
}
.cta:hover { background: rgba(73,172,153,.08); text-decoration: none; }
.cta.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta.primary:hover { background: var(--accent-bright); }
.platform-note { margin-top: .9rem; font-size: .85rem; color: var(--ink-faint); }

/* ---------- project grid (hub) ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--panel-line);       /* grid lines show through the gap */
  border: 1px solid var(--panel-line);
  margin: 2rem 0;
}
a.project {
  display: block;
  background: var(--ground);
  padding: 1.5rem 1.5rem 1.7rem;
  color: var(--ink);
  transition: background .12s ease;
}
a.project:hover { background: var(--panel); text-decoration: none; }
a.project .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  color: var(--accent-dim);
  letter-spacing: .1em;
}
a.project h3 { margin: .5rem 0 .35rem; font-size: 1.18rem; }
a.project:hover h3 { color: var(--accent); }
a.project p { margin: 0; font-size: .92rem; color: var(--ink-dim); line-height: 1.5; }
a.project .status {
  display: inline-block;
  margin-top: .8rem;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

/* ---------- misc content blocks ---------- */
.lede { font-size: 1.15rem; color: var(--ink-dim); max-width: 36rem; }

dl.facts { margin: 1.6rem 0; }
dl.facts div { display: flex; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--panel-line); }
dl.facts dt { flex: 0 0 9.5rem; color: var(--ink-faint); font-size: .9rem; padding-top: .1rem; }
dl.facts dd { margin: 0; font-size: .97rem; }

.rule { border: 1px solid var(--panel-line); border-radius: 0; padding: 1.4rem 1.6rem; margin: 1.4rem 0; }
.rule h3 { margin: 0 0 .6rem; }
.rule .verdict { margin-top: .9rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dim); }
.rule p:last-of-type { margin-bottom: 0; }

.disclaimer { border-left: 2px solid var(--accent-dim); padding: .2rem 0 .2rem 1.5rem; margin: 2.2rem 0; color: var(--ink-dim); }
.disclaimer p:last-child { margin-bottom: 0; }

.back {
  display: inline-block;
  margin: 2.5rem 0 0;
  font-size: .9rem;
  color: var(--ink-dim);
}
.back:hover { color: var(--accent); text-decoration: none; }

/* ---------- footer(s) ---------- */
footer { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; font-size: .85rem; color: var(--ink-faint); }
footer .foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .3rem 0; }
footer .foot-row.rule-above { border-top: 1px solid var(--panel-line); padding-top: 1rem; margin-top: 1rem; }
footer .folio { font-family: "Funnel Display", sans-serif; color: var(--accent-dim); }
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--accent); }
