/*
Theme Name: Adam Stuckert
Theme URI: https://adamstuckert.com
Author: Teo
Description: Personal website for Adam Stuckert — technology executive, advisor, angel investor.
Version: 5.0.0
License: Private
Tags: minimal, dark, single-page, sidebar
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2330;
  --border:    #21262d;
  --text:      #e6edf3;
  --muted:     #7d8590;
  --accent:    #0e9e8a;
  --accent2:   #0b8575;
  --sidebar-w: 300px;
  --nav-h:     56px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

/* ── SCROLL ANIMATIONS ── */
.anim-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TOP NAV (mobile only — hidden on desktop) ── */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  display: none;
  align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
nav#site-nav .logo {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  flex-shrink: 0;
}
nav#site-nav .nav-links {
  list-style: none; display: flex; gap: 2rem; align-items: center;
}
nav#site-nav .nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
nav#site-nav .nav-links a:hover { color: var(--text); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { display: block; }

/* ── SITE LAYOUT ── */
.site-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
}

.sidebar-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar-photo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.sidebar-photo {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover;
  filter: grayscale(15%);
  display: block;
  border: 2px solid var(--border);
}

.sidebar-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.sidebar-tagline {
  font-size: 0.8rem;
  color: var(--muted) !important;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}
.sidebar-nav a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  display: block;
}
.sidebar-nav a:first-child { border-top: 1px solid var(--border); }
.sidebar-nav a:hover     { color: var(--text) !important; }
.sidebar-nav a.is-active { color: var(--accent) !important; }

.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 2.5rem;
}
.sidebar-social-link {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.sidebar-social-link::after { content: ' ↗'; font-size: 0.75rem; }
.sidebar-social-link:hover  { color: var(--accent) !important; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* ── SECTIONS ── */
.site-section {
  padding: 80px 3.5rem 80px;
  border-bottom: 1px solid var(--border);
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem; display: block;
}

h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.05rem;
  color: #a8b3bf;
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

/* ── BUTTONS ── */
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
body .btn {
  background: transparent;
  display: inline-flex; align-items: center;
  padding: 0.6rem 1.4rem; min-height: 44px;
  border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
body .btn:hover { border-color: var(--accent); color: var(--accent); }
body .btn.primary {
  background: var(--accent); border-color: var(--accent);
  color: #0d1117; font-weight: 600;
}
body .btn.primary:hover {
  background: var(--accent2); border-color: var(--accent2); color: #0d1117;
}

/* ── SERVICES BLOCK (Home — replaces tabs) ── */
.services-block {
  display: flex;
  flex-direction: column;
  max-width: 640px;
}
.service-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }
.service-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-item p {
  color: #a8b3bf;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

/* ── CHAPTERS (About) ── */
.chapter { margin-bottom: 2.25rem; max-width: 680px; }
.chapter-label {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.chapter p { color: #a8b3bf; margin-bottom: 0.6rem; }
.chapter p:last-child { margin-bottom: 0; }

hr.div {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0; max-width: 680px; width: 100%;
}

/* ── EDUCATION ── */
.edu-block { margin-top: 0.25rem; max-width: 680px; }
.edu-block strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.edu-block p { color: #a8b3bf; font-size: 0.9rem; }

/* ── BENTO GRID (Work) ── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 680px;
  width: 100%;
  margin-bottom: 2.5rem;
}
.bento-card {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 1.75rem; display: flex; flex-direction: column;
  gap: 0.75rem; transition: border-color 0.2s;
}
.bento-card:hover { border-color: var(--accent); }

.bento-card.card-hero    { grid-column: 1 / -1; }
.bento-card.card-wide    { grid-column: span 2; }
.bento-card.card-normal  { grid-column: span 1; }
.bento-card.card-normal-2{ grid-column: span 1; }
.bento-card.card-now     { grid-column: span 2; }

.bento-period {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.bento-co {
  font-size: 0.8rem; color: var(--accent); letter-spacing: 0.02em;
  font-weight: 500;
}
.bento-title {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  line-height: 1.3;
}
.bento-outcomes {
  list-style: none; margin-top: 0.25rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.bento-outcomes li {
  color: #a8b3bf; font-size: 0.88rem;
  padding-left: 1.1rem; position: relative;
}
.bento-outcomes li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}

.bento-now-label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.bento-now-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.5rem;
}
.bento-now-list li {
  color: #a8b3bf; font-size: 0.92rem;
  padding-left: 1.2rem; position: relative;
}
.bento-now-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--accent);
}

/* ── MEDIA & SPEAKING ── */
.media-year-group {
  margin-bottom: 2.5rem;
  max-width: 760px;
  width: 100%;
}
.media-year {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.media-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: baseline;
  gap: 0 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.media-badge {
  width: 90px;
  padding: 0.18rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: 1px solid;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-press    { border-color: var(--accent); color: var(--accent); }
.badge-speaking { border-color: #7c6af0;       color: #7c6af0;       }
.badge-research { border-color: var(--muted);  color: var(--muted);  }

.media-title {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.media-title:hover { color: var(--accent); }
.media-title:hover::after { content: ' ↗'; }

.media-outlet {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

/* ── CONTACT ── */
#contact p { color: #a8b3bf; margin-bottom: 1.25rem; max-width: 520px; }
.contact-form { max-width: 580px; width: 100%; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.form-input, .form-textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 0.75rem 1rem; font-family: inherit;
  font-size: 0.95rem; transition: border-color 0.2s; outline: none;
  min-height: 44px;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 160px; resize: vertical; }
.form-submit {
  display: inline-flex; align-items: center;
  padding: 0.7rem 2rem; min-height: 44px;
  background: var(--accent); border: 1px solid var(--accent);
  color: #0d1117; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.form-submit:hover { background: var(--accent2); border-color: var(--accent2); }

.form-message {
  padding: 1rem 1.25rem; margin-bottom: 2rem; max-width: 580px;
  font-size: 0.95rem; border: 1px solid var(--border); width: 100%;
}
.form-message.success { border-color: var(--accent); color: var(--accent); }
.form-message.error   { border-color: #c0392b;        color: #e74c3c;       }

/* ── FOOTER ── */
footer#site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-left: var(--sidebar-w);
}

/* ────────────────────────────────────────────
   RESPONSIVE — SMALL DESKTOP (≤ 1100px)
──────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 260px; }
  .site-section { padding: 64px 2.5rem 64px; }
}

/* All bento cards always full width */
.bento-card.card-hero,
.bento-card.card-wide,
.bento-card.card-normal,
.bento-card.card-normal-2,
.bento-card.card-now { grid-column: 1 / -1; }

/* ────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 800px)
   Sidebar hidden, top nav shown
──────────────────────────────────────────── */
@media (max-width: 800px) {
  /* Show top nav */
  nav#site-nav { display: flex; }

  /* Hide sidebar */
  .sidebar { display: none; }

  /* Reset main */
  .main-content { margin-left: 0; }
  footer#site-footer { margin-left: 0; }

  /* Sections: offset for top nav */
  .site-section {
    padding: calc(var(--nav-h) + 48px) 1.25rem 56px;
  }
  html { scroll-padding-top: var(--nav-h); }

  /* Hamburger visible */
  .nav-toggle { display: flex; }
  nav#site-nav .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0;
    border-bottom: 1px solid var(--border);
  }
  nav#site-nav .nav-links.is-open { display: flex; }
  nav#site-nav .nav-links li { width: 100%; }
  nav#site-nav .nav-links a {
    display: flex; align-items: center;
    padding: 1rem 1.5rem; font-size: 1rem;
    min-height: 52px;
    border-bottom: 1px solid var(--border);
  }

  /* Typography */
  h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem);   }

  /* Bento: already single column */

  /* CTA */
  .cta-row { flex-direction: column; }
  body .btn {
  background: transparent; width: 100%; justify-content: center; }

  /* Media: stack badge + title, outlet below */
  .media-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .media-outlet {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0.2rem;
  }
}
