/* ==========================================================================
   TIDES Lab — sibling of danielcommey.com
   Crimson Pro (serif reading) + Inter (UI chrome). Teal lab accent.
   ========================================================================== */

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

html { font-size: 100%; scroll-behavior: smooth; }

:root {
  color-scheme: light;
  --text: #1b1b1b;
  --soft: #555;
  --heading: #111;
  --link: #0e7c7b;
  --link-hover: #0a5d60;
  --bg: #ffffff;
  --soft-bg: #f5f6f4;
  --line: #e6e6e3;
  --serif: 'Crimson Pro', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 900px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --text: #d6d7da;
  --soft: #9a9ca3;
  --heading: #f0f1f2;
  --link: #45c7bd;
  --link-hover: #6fdacf;
  --bg: #16171c;
  --soft-bg: #1e1f26;
  --line: #2c2e37;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: 33px; font-weight: 600; }
h2 { font-size: 23px; font-weight: 600; margin-top: 1.4em; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--link); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration: underline; }
strong { color: var(--heading); font-weight: 600; }
em { font-style: italic; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; background: var(--bg); color: var(--link); padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; z-index: 1000; }

/* ---- Header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--heading); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--link); color: #fff; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand strong { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.1; display: block; }
.brand small { font-family: var(--sans); font-size: 11px; color: var(--soft); display: block; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav a { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--soft); padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.site-nav a:hover { color: var(--link); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--heading); }

/* ---- Sections ---- */
main { display: block; }
.section { padding: 2.6em 0; }
.section.alt { background: var(--soft-bg); border-block: 1px solid var(--line); }
.page-head { padding: 2.6em 0 0.4em; }
.lead { font-size: 21px; line-height: 1.45; color: var(--text); margin: 0 0 0.8em; }
.acronym { font-family: var(--sans); font-size: 14px; color: var(--soft); margin: 0 0 1em; }
.muted { color: var(--soft); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }

/* ---- Hero (home) ---- */
.hero { padding: 3em 0 2.2em; }
.hero h1 { font-size: clamp(30px, 4.2vw, 42px); margin: 0 0 0.35em; }
.hero h1 em { color: var(--link); font-style: italic; }
.hero .lead { max-width: 60ch; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.button { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; background: var(--link); color: #fff; border: 1px solid var(--link); text-decoration: none; }
.button:hover { background: var(--link-hover); border-color: var(--link-hover); color: #fff; text-decoration: none; }
.button.secondary { background: transparent; color: var(--link); }
.button.secondary:hover { background: var(--soft-bg); color: var(--link-hover); }

/* ---- Grids and cards ---- */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.card:hover { border-color: var(--soft); box-shadow: 0 3px 14px rgba(0,0,0,0.05); }
.card h3 { margin: 0 0 0.4em; }
.card p { font-size: 16px; margin: 0 0 0.6em; }
.card p:last-child { margin-bottom: 0; }

.status { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--link-hover); background: var(--soft-bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px; margin: 0 0 10px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.tag-list li { font-family: var(--sans); font-size: 12px; color: var(--soft); background: var(--soft-bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ---- Stat strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--heading); line-height: 1.1; }
.stat span { font-family: var(--sans); font-size: 13px; color: var(--soft); }

/* ---- Simple definition lists (news, people) ---- */
.def-list { margin: 0; }
.def-list > div { padding: 0.7em 0; border-bottom: 1px solid var(--line); }
.def-list > div:last-child { border-bottom: none; }
.def-list .k { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--soft); }
.def-list .v { margin: 2px 0 0; }

/* checklist for opportunities */
.check { list-style: none; margin: 0; padding: 0; }
.check li { position: relative; padding-left: 22px; margin-bottom: 0.5em; font-size: 17px; }
.check li::before { content: "→"; position: absolute; left: 0; color: var(--link); }

/* ---- People ---- */
.person { display: flex; gap: 16px; align-items: center; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-bg); border: 1px solid var(--line); color: var(--link-hover); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.person .role { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); margin: 0 0 2px; }

/* ---- Footer ---- */
.site-footer { margin-top: 3em; border-top: 1px solid var(--line); padding: 1.8em 0 2.4em; }
.site-footer p { font-family: var(--sans); font-size: 12.5px; color: var(--soft); margin: 0; text-align: center; }

.section-link { font-family: var(--sans); font-size: 14px; margin-top: 0.6em; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
  body { font-size: 18px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .nav-wrap { justify-content: center; text-align: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

@media print { .site-header, .site-footer { display: none; } a { color: #000; } }
