/* ===================================================
   Kyle Koza — Personal CV Site
   Palette: warm cream, deep forest green, terracotta
   =================================================== */

:root {
  --bg: #faf7f0;
  --bg-alt: #f1ece0;
  --ink: #22301f;
  --ink-soft: #55624f;
  --green: #2e5b34;
  --green-deep: #1f4024;
  --terracotta: #c46a4a;
  --card: #ffffff;
  --line: #ddd6c6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

a { color: var(--green); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  color: var(--green) !important;
  border: 1.5px solid var(--green);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--green); color: #fff !important; }

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

.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem 7rem;
  overflow: hidden;
}

.hero-inner { max-width: 640px; position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 1.4rem;
}

.hero-lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  max-width: 36em;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }

.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }

.hero-vine {
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  width: 200px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.hero-vine svg { height: 100%; width: 100%; }

.vine-stem {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
}

.vine-leaf path { fill: var(--green); opacity: 0.7; }

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

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible { opacity: 1; transform: none; }

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
}

.section-label {
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-top: 0.4rem;
}

.section-body h3 { font-size: 1.45rem; color: var(--green-deep); }

.about-large {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.section-body p + p { margin-top: 1rem; }

.section-body > p, .about-large + p { color: var(--ink-soft); }

/* ---------- Timeline ---------- */

.timeline { list-style: none; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.8rem 2.2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--terracotta);
}

.timeline-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
}

.timeline-org {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0.25rem 0 0.8rem;
}

.timeline-item p { color: var(--ink-soft); }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 2px 10px rgba(34, 48, 31, 0.04);
}

.card p { color: var(--ink-soft); margin-top: 0.7rem; }

.edu-row, .hobby-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.hobby-card { position: relative; overflow: hidden; }

.hobby-emoji { font-size: 2.2rem; margin-bottom: 0.8rem; }

/* ---------- Game cards ---------- */

.section-intro { color: var(--ink-soft); margin-bottom: 1.6rem; }

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(34, 48, 31, 0.09);
}

.game-card h3 { color: var(--green-deep); }

.game-card p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--terracotta);
}

/* ---------- Chips ---------- */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chips li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

/* ---------- Contact ---------- */

.section-contact {
  text-align: center;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.contact-inner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-deep);
  margin-bottom: 0.8rem;
}

.contact-inner p { color: var(--ink-soft); margin-bottom: 2rem; }

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

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.6rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
  border-color: currentColor;
}

.footer-note { margin-top: 0.4rem; opacity: 0.75; }

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

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 4rem 1.5rem 5rem; }
  .hero-vine { display: none; }
  .section-grid { grid-template-columns: 1fr; gap: 1rem; }
  .edu-row, .hobby-row, .game-grid { grid-template-columns: 1fr; }
  .about-large { font-size: 1.3rem; }
}
