/* ==========================================================
   loganthome.com — shared styles
   Change the look of the whole site from the :root tokens.
   ========================================================== */
:root {
  --bg: #0e0f12;          /* page background */
  --surface: #17191e;     /* cards */
  --line: #2a2d34;        /* borders */
  --text: #f3f2ee;        /* main text */
  --muted: #a3a6ae;       /* secondary text */
  --accent: #ff4d3d;      /* signature red (from the cap!) */
  --accent-ink: #0e0f12;  /* text on accent */
  --radius: 14px;
  --max: 1120px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; min-height: 68px; flex-wrap: wrap; padding-block: 0.6rem;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600;
  padding: 0.6rem 0.85rem; border-radius: 999px; font-size: 0.95rem;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0 0 1rem;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); margin: 0 0 1rem;
}
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 38ch; }
.accent { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero .container {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-photo {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  outline: 1px solid var(--line); outline-offset: 10px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--line);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.1); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--accent); margin-bottom: 0.5rem; }
.stat span { color: var(--muted); }

/* ---------- Cards (portfolio) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card p { margin: 0; color: var(--muted); }
.card dl { margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.card dt { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.card dd { margin: 0; color: var(--muted); }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-weight: 600; }
.timeline h3 { margin-bottom: 0.25rem; }
.timeline .where { color: var(--accent); font-weight: 600; margin: 0 0 0.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.photo { border-radius: var(--radius); overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.9rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-links { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; max-width: 560px; }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.contact-links a:hover { border-color: var(--accent); }
.contact-links small { color: var(--muted); font-weight: 500; }

/* ---------- CTA band & footer ---------- */
.cta { text-align: center; }
.cta .lead { margin-inline: auto; }
.cta .actions { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Placeholder marker (delete once real content is in) ---------- */
.todo { background: rgba(255, 77, 61, 0.12); border-radius: 4px; padding: 0 0.25em; }

/* ---------- Phone layout ---------- */
@media (max-width: 760px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Tool chips inside cards / timeline ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: auto 0 0; padding-top: 0.75rem; }
.stack li { font-size: 0.78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.5rem; }
.timeline ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.timeline ul li { display: list-item; border: 0; padding: 0; margin-bottom: 0.35rem; }
.timeline li::marker { color: var(--accent); }
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.skill-groups h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; margin: 2rem 0 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }

/* Hero tagline: 20% smaller than "Hi, I'm Logan." */
.hero h1 .accent { font-size: 0.8em; }
