/* =========================================================
   Daxton Noe | Personal Website
   Colors and fonts live in :root so the whole look can be
   re-themed by changing a few variables.
   ========================================================= */

:root {
  --ink: #1f2933;          /* primary dark (slate gray) */
  --ink-soft: #3e4c59;
  --muted: #616e7c;
  --line: #e4e7eb;
  --paper: #fbfaf7;        /* warm off-white background */
  --paper-alt: #f3f1ec;
  --accent: #c8902c;       /* warm gold accent */
  --accent-soft: #f6ead3;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.04), 0 8px 24px rgba(31, 41, 51, 0.06);
  --max: 1120px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.card-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #111820; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(31, 41, 51, 0);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(31, 41, 51, 0.25); }

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

.nav-logo {
  text-decoration: none; color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em;
}

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px;
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: #cbd2d9;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav-menu a.active { color: var(--ink); background: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.2rem); margin-bottom: 1.25rem; }
.hero-sub { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; color: var(--ink-soft); max-width: 28ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-portrait { justify-self: center; width: 100%; max-width: 340px; }
.portrait-frame {
  aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--ink);
  border: 5px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent), 0 30px 60px -20px rgba(31, 41, 51, 0.35);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.highlight {
  display: block; padding: 1.75rem; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.highlight:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.highlight h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem; }
.highlight p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Inner page heading ---------- */
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 20ch; }
.page-lead { font-size: 1.15rem; margin: 1rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--paper-alt); }

/* ---------- About (home) ---------- */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.prose { max-width: 62ch; }
.prose p { font-size: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Athletics photos ---------- */
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }

/* ---------- Personal gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.gallery-item figcaption { margin-top: 0.6rem; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.section-lead { font-size: 1.1rem; margin: 0; }

/* ---------- Résumé ---------- */
.resume { display: grid; gap: 3rem; }
.resume-row { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.resume-row:first-child { border-top: 0; padding-top: 0; }
.resume-label { font-size: 1.5rem; }
.resume-entries { display: grid; gap: 1rem; }
.entry { padding: 1.5rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.entry p:last-child { margin-bottom: 0; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.entry-head h3 { font-size: 1.2rem; }
.entry-date { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.entry-sub { color: var(--muted); }
.tag-list.flush { margin-top: 0; }
.fact-list { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; }
.fact-list strong { color: var(--ink); font-weight: 600; }
.course-list { columns: 2; column-gap: 2.5rem; margin: 0; padding-left: 1.1rem; }
.course-list li { margin-bottom: 0.35rem; break-inside: avoid; }
.course-list li::marker { color: var(--accent); }
.entry > .entry-head:last-child { margin-bottom: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.tag-list li {
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
  background: var(--paper-alt); border: 1px solid var(--line);
  padding: 0.3rem 0.75rem; border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #cbd2d9; display: flex; align-items: center; padding: clamp(4rem, 9vw, 7rem) 0; }
.contact-inner { max-width: 820px; text-align: center; }
.contact h2 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1rem; }
.contact-lead { font-size: 1.15rem; margin-bottom: 2.5rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.75rem 1rem; border-radius: var(--radius); text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.contact-card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 0.4rem; }
.contact-card-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa5b1; }
.contact-card-value { color: var(--white); font-weight: 500; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: #161e26; color: #9aa5b1; font-size: 0.9rem; padding: 1.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* ---------- Scroll reveal (only when JavaScript runs, so content is never lost) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .highlight, .contact-card { transition: none; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header, .hero-actions { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about { grid-template-columns: 1fr; gap: 2rem; }
  .hero-portrait { max-width: 300px; justify-self: start; }
  .resume-row { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 760px) {
  .course-list { columns: 1; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.75rem 24px 1.25rem; background: var(--ink); border-bottom: 3px solid var(--accent);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.8rem 1rem; }

  .highlights, .contact-cards, .photo-stack, .gallery { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
