/* ==========================================================================
   epic-style.css — Boardroom Premium, Typography-first, Multi-page Foundation
   v1.0
   ========================================================================== */

/* -----------------------------
   1) Design Tokens
-------------------------------- */

:root{
  /* Layout */
  --max: 920px;
  --gutter: clamp(16px, 3vw, 26px);
  --radius: 18px;
  --radius-sm: 12px;

  /* Typography */
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --base: 15px;
  --lh: 1.68;

  /* Color (light defaults) */
  --bg: #ffffff;
  --panel: rgba(255,255,255,0.75);
  --text: #111111;
  --muted: rgba(17,17,17,0.68);
  --faint: rgba(17,17,17,0.52);
  --line: rgba(17,17,17,0.12);

  /* Accent (subtle, executive) */
  --accent: #1f4cff;
  --focus: rgba(31,76,255,0.85);

  /* Elevation */
  --shadow: 0 12px 44px rgba(0,0,0,0.10);
  --shadow-strong: 0 18px 60px rgba(0,0,0,0.18);

  /* Readability */
  --measure: 78ch;
  --measure-narrow: 62ch;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b0c0f;
    --panel: rgba(15,18,26,0.76);
    --text: #f2f3f5;
    --muted: rgba(242,243,245,0.72);
    --faint: rgba(242,243,245,0.56);
    --line: rgba(242,243,245,0.12);

    --accent: #7aa2ff;
    --focus: rgba(122,162,255,0.9);

    --shadow: 0 14px 60px rgba(0,0,0,0.42);
    --shadow-strong: 0 18px 70px rgba(0,0,0,0.52);
  }
}

/* Optional: force theme per page by setting on <html>:
   <html data-theme="dark"> or "light" */
html[data-theme="dark"]{
  color-scheme: dark;
}
html[data-theme="dark"] :root{}
html[data-theme="light"]{
  color-scheme: light;
}

/* -----------------------------
   2) Base Reset + Defaults
-------------------------------- */

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--base);
  line-height: var(--lh);
  letter-spacing: 0.18px;

  /* quiet premium background */
  background:
    radial-gradient(1100px 700px at 18% 0%,
      rgba(31,76,255,0.08) 0%,
      rgba(31,76,255,0.00) 55%
    ),
    radial-gradient(900px 520px at 85% 10%,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.00) 55%
    ),
    var(--bg);
  background-attachment: fixed;
}

img,svg,video{ max-width:100%; height:auto; }
hr{ border:0; height:1px; background: var(--line); margin: 28px 0; }

::selection{
  background: rgba(31,76,255,0.20);
}

a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent);
}
a:hover{
  text-decoration-color: color-mix(in srgb, var(--text) 70%, transparent);
}

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

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

/* -----------------------------
   3) Layout Primitives
-------------------------------- */

.wrap{
  min-height:100%;
  display:flex;
  justify-content:center;
  padding: clamp(22px, 3.2vw, 44px) var(--gutter);
}

.container{
  width:100%;
  max-width: var(--max);
}

.panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: clamp(22px, 2.8vw, 34px);
}

/* Vertical rhythm (true low-specificity: headings keep their own margins) */
:where(.stack) > * + * { margin-top: 18px; }
:where(.stack-sm) > * + * { margin-top: 12px; }
:where(.stack-lg) > * + * { margin-top: 28px; }

/* Subtle separators */
.rule{
  height:1px;
  background: var(--line);
  margin: 18px 0 22px;
}

/* -----------------------------
   4) Typography System
-------------------------------- */

h1,h2,h3{
  margin:0;
  color: var(--text);
  letter-spacing: 0.2px;
}

h1{
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
}

h2{
  font-weight: 720;
  font-size: 15px;
  text-transform: none;
  margin-top: 42px;
  margin-bottom: 10px;
}
p + h2, ul + h2, blockquote + h2, .callout + h2{
  margin-top: 54px;
}

h3{
  font-weight: 700;
  font-size: 14px;
  margin-top: 28px;
  margin-bottom: 8px;
}

p{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: var(--measure);
}

.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: var(--measure);
}
.lead strong{ color: var(--text); font-weight: 700; }

.small{ font-size: 13px; color: var(--faint); }
.muted{ color: var(--muted); }
.faint{ color: var(--faint); }

.kicker{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.subhead{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: var(--measure);
}

.measure{ max-width: var(--measure); }
.measure-narrow{ max-width: var(--measure-narrow); }

strong{ color: var(--text); }
em{ color: color-mix(in srgb, var(--text) 86%, transparent); }

code, pre, .mono{ font-family: var(--mono); }
code{
  font-size: 0.95em;
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}

pre{
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  overflow:auto;
}

/* Lists */
ul,ol{
  margin: 10px 0 16px 18px;
  padding: 0;
  color: var(--muted);
  max-width: var(--measure);
}
li{ margin: 7px 0; }

/* Blockquotes */
blockquote{
  margin: 16px 0 18px;
  padding: 12px 14px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  border-radius: 14px;
  color: var(--text);
}
blockquote p{ margin: 0; color: var(--text); }

/* -----------------------------
   5) Header / Nav Patterns
-------------------------------- */

.header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}

.nav{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
  margin-top: 6px;
}

.nav a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}
.nav a:hover{
  border-bottom-color: var(--line);
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

/* -----------------------------
   6) Executive Components
-------------------------------- */

/* Callout (briefing emphasis) */
.callout{
  border: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  margin: 16px 0 18px;
  color: var(--text);
}
.callout p{ margin:0; color: var(--text); }

/* Cards / Boxes */
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  padding: 16px;
}

/* CTA (works with your email embed + simple buttons) */
.cta{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 72%, transparent),
    color-mix(in srgb, var(--panel) 52%, transparent)
  );
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text);
  text-decoration:none;
  width: fit-content;
  transition: transform 90ms var(--ease), border-color 140ms var(--ease), background 140ms var(--ease);
}
.btn:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--text) 20%, var(--line));
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.btn--solid{
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.btn--solid:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--text) 92%, #000);
}

/* Link list (home/index style) */
.links{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.linkrow{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration:none;
  color: var(--text);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  transition: opacity 140ms var(--ease);
}
.linkrow:hover{ opacity: .72; }
.linkrow .hint{ color: var(--faint); font-size: 13px; }

/* Optional grid pattern (lead + portrait) */
.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items:start;
}
.portrait{
  width:100%;
  max-width: 260px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}

/* Footer */
.footer{
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.center{ text-align:center; }

/* -----------------------------
   7) Responsive
-------------------------------- */

@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; gap: 26px; }
  .portrait{ max-width: 220px; }
}

@media (max-width: 520px){
  :root{ --base: 14px; }
  .panel{ padding: 20px; }
  h1{ font-size: 28px; }
}

/* End epic-style.css */
