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

/* Visually hidden but available to screen readers (label association, etc.) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — first focusable element on every page (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #D4AF37;
  color: #121212;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Visible keyboard focus indicators (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #121212;
  color: #F0EDE6;
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #F0EDE6;
}

h2 {
  font-size: 1.2rem;
  color: #D4AF37;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid #2A2A2A;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  color: #F0EDE6;
  margin-bottom: 0.25rem;
}

p {
  color: #9B9891;
  margin-bottom: 0.5rem;
}

a {
  color: #D4AF37;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

input, textarea {
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  color: #F0EDE6;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus {
  border-color: #D4AF37;
}

input:focus-visible, textarea:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 1px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  background: #D4AF37;
  color: #121212;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #E5C158;
}

ul {
  list-style: none;
}

/* Track cards on /tracks */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-card {
  display: block;
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s ease;
}

.track-card:hover {
  border-color: #D4AF37;
  text-decoration: none;
}

/* Roadmap weeks */
.week-block {
  margin-bottom: 1.5rem;
}

.week-block li {
  padding: 0.4rem 0;
  color: #F0EDE6;
  border-bottom: 1px solid #1C1C1C;
}

/* Check-in history */
.checkin-history li {
  color: #9B9891;
  padding: 0.3rem 0;
}

.message-banner {
  background: #2A2210;
  color: #D4AF37;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

nav {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Subtle depth on cards */
.track-card, .week-block, form {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.track-card {
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.track-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

/* Gradient accent behind the hero */
.hero {
  background: linear-gradient(135deg, #1C1C1C 0%, #121212 100%);
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: #D4AF37;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero p {
  max-width: 480px;
}

/* Better button presence */
button, .btn-primary {
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover, .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Progress-style week numbering */
.week-block h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.week-block h2::before {
  content: attr(data-week);
  background: #D4AF37;
  color: #121212;
  font-size: 0.85rem;
  font-weight: 700;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}