/* ==========================================================================
   codymarxbailey.com — static site styles
   Clean, modern, zero-dependency. West Texas light over a slate base.
   ========================================================================== */

:root {
  --bg:        #0d1117;
  --bg-elev:   #151b24;
  --bg-card:   #1a212c;
  --text:      #e8ecf3;
  --muted:     #9aa5b4;
  --faint:     #6b7684;
  --accent:    #e0a94e;   /* West Texas afternoon gold */
  --accent-2:  #6ea8d8;   /* big-sky blue */
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);
  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --maxw:      1080px;
  --radius:    14px;
  --mono:      ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: #f2c579; }

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Header / nav ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand:hover { color: var(--text); }
.brand .dot { color: var(--accent); }
.brand .sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text);
  width: 42px;
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Hero ------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  padding: 0 0 clamp(40px, 8vh, 96px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.35) 0%, rgba(13,17,23,0.55) 45%, rgba(13,17,23,0.96) 100%);
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  margin: 0 0 14px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: clamp(1.02rem, 2.2vw, 1.32rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}
.hero .tagline {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--accent-2);
}

/* compact hero for interior pages */
.hero--compact { min-height: 42vh; }

/* ---------- Sections -------------------------------------------------- */

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--border); }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; color: #d3dae4; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Cards / grids -------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card h3 { margin: 0 0 8px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* venture cards act as links */
a.card { color: var(--text); display: block; }
a.card:hover { color: var(--text); }
a.card .go {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Timeline (career) ---------------------------------------- */

.timeline { border-left: 2px solid var(--border-2); margin-left: 6px; }
.timeline .item { position: relative; padding: 0 0 44px 34px; }
.timeline .item:last-child { padding-bottom: 0; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline h3 { margin: 0 0 4px; font-size: 1.22rem; }
.timeline .role { color: var(--faint); font-size: 0.9rem; margin: 0 0 12px; }
.timeline p { color: #cdd5df; margin: 0 0 0.9em; }
.timeline p:last-child { margin-bottom: 0; }

/* ---------- Definition / listing rows -------------------------------- */

.rows { display: grid; gap: 2px; }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}
.row:first-child { border-top: 1px solid var(--border); }
.row .r-title { font-weight: 600; font-size: 1.06rem; }
.row .r-sub { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }
.row .r-meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: nowrap;
  text-align: right;
}

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #1a1206;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { color: #1a1206; background: #f0bd6b; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* ---------- Footer ---------------------------------------------------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-brand .name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.footer-brand p { color: var(--faint); font-size: 0.9rem; margin: 10px 0 0; max-width: 34ch; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.82rem;
}
.footer-bottom .genesis {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #566072;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .brand .sub { display: none; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(255,255,255,0.05); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; }
  .row .r-meta { text-align: left; }
}
