/* ==========================================================================
   Boxing Training Plan — stylesheet
   Design notes: Inspired by athletic training interfaces with bold color scheme
   Type: Space Grotesk (display) / Source Serif 4 (body) / JetBrains Mono
   (metadata: exercises, sets, reps).
   ========================================================================== */

:root {
  --paper: #0f0f15;
  --ink: #ffffff;
  --slate: #b0b0c0;
  --line: #2a2a3a;
  --red: #e94560;
  --red-deep: #b82d40;
  --red-soft: #f7b2c1;
  --orange: #ffd166;
  --orange-deep: #ff9e00;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, nav, .btn { font-family: "Space Grotesk", "Helvetica Neue", sans-serif; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

a { color: var(--red-deep); text-decoration: none; border-bottom: 1px solid var(--red-soft); }
a:hover { border-bottom-color: var(--red-deep); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 15, 21, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--red);
  padding: 30px 24px;
  margin-bottom: 40px;
}
header .row {
  max-width: var(--max); margin: 0 auto; 
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
header .brand {
  font-weight: 700; font-size: 24px; letter-spacing: -.01em;
  color: var(--ink); border: 0;
}
header nav { display: flex; gap: 22px; flex-wrap: wrap; }
header nav a {
  font-size: 14px; font-weight: 500; color: var(--slate);
  border: 0; letter-spacing: .01em;
}
header nav a:hover { color: var(--red-deep); }

/* ---- hero ---- */
.hero { max-width: var(--max); margin: 0 auto; padding: 72px 24px 48px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05; letter-spacing: -.025em; margin: 0 0 14px;
}
.hero .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: var(--red-deep);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 26px;
}
.hero .thesis {
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.5; max-width: 640px; margin: 0 0 30px;
  color: var(--ink);
}
.hero .thesis em { font-style: normal; background: var(--red-soft); padding: 0 4px; }

/* signature element: contribution-graph strip */
.contrib {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 3px;
  margin: 12px 0 12px;
  overflow: hidden;
}
.contrib span {
  width: 11px; height: 11px; border-radius: 2px;
   background: #2a2a3a;
  opacity: 0; animation: cell-in .4s ease forwards;
}
.contrib span.l1 { background: #40c463; }
.contrib span.l2 { background: #30a14e; }
.contrib span.l3 { background: #216e39; }
.contrib span.l4 { background: #1a7f37; }
@keyframes cell-in { to { opacity: 1; } }

.contrib-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--slate); margin: 12px 0 6px;
}

/* ---- sections ---- */
section { max-width: var(--max); margin: 0 auto; padding: 22px 12px; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--red-deep); margin: 0 0 22px;
  display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--red); flex: none;
}
h3 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -.01em; }

.lead { font-size: 18.5px; max-width: 680px; }

/* days container */
.days-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* day card */
.day-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}
.day-card:hover {
  transform: translateY(-5px);
}

/* day header */
.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.day-title {
  font-size: 1.8rem;
  color: var(--orange);
}
.session-count {
  background: var(--red);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
}

/* exercise list */
.exercise-list {
  list-style-type: none;
}

.exercise-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
}
.exercise-item:last-child {
  border-bottom: none;
}

.exercise-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffd166;
}

.exercise-details {
  text-align: right;
  color: var(--red);
}

.exercise-time {
  display: inline-block;
  background: rgba(233, 69, 96, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  margin-top: 5px;
  font-family: "JetBrains Mono", monospace;
}

.exercise-reps {
  display: inline-block;
  background: rgba(253, 209, 102, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  margin-top: 5px;
  font-family: "JetBrains Mono", monospace;
}

.day-description {
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.5;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 30px 24px 48px;
}
footer .row {
  max-width: var(--max); margin: 0 auto; 
  font-size: 14px; color: var(--slate);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
footer a { color: var(--slate); }

@media (max-width: 768px) {
  .days-container {
    grid-template-columns: 1fr;
  }
  
  .day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  header .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  header nav {
    width: 100%;
    justify-content: center;
  }
}

/* ---- hero with photo (personal page layout) ---- */
.hero-top {
  display: flex; align-items: center; gap: 32px; margin-bottom: 26px;
}
.hero-photo {
  width: 168px; height: 168px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); flex: none;
  box-shadow: 0 1px 0 var(--red-soft), 4px 4px 0 var(--red-soft);
}
.hero-id .name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 5vw, 42px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05; margin: 0 0 8px;
}
.hero .thesis-label {
  font-family: "JetBrains Mono", monospace; font-size: 11.5px;
  color: var(--slate); letter-spacing: .06em; margin: 0 0 6px;
}
@media (max-width: 600px) {
  .hero-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-photo { width: 132px; height: 132px; }
}

/* software cards */
.sw { border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 20px; margin-bottom: 16px; }
.sw h3 { margin: 0 0 6px; font-size: 18px; }
.sw .links { font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.sw p { margin: 4px 0 0; font-size: 15px; color: var(--slate); }
.sub-h { font-family: "Space Grotesk", sans-serif; font-size: 16px;
  margin: 26px 0 8px; letter-spacing: -.01em; }

/* preprint links in publication list */
.pub .title .preprint {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--red-deep); border: 0; white-space: nowrap;
}
.pub .title .preprint:hover { text-decoration: underline; }