:root {
  --ink: #1b2330;
  --muted: #5b6676;
  --paper: #faf8f4;
  --card: #ffffff;
  --line: #e4dfd5;
  --navy: #1f3a5f;
  --navy-dark: #16294a;
  --accent: #b5762a;
  --accent-soft: #f4e8d6;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceae4;
    --muted: #a5adb9;
    --paper: #14181f;
    --card: #1c222c;
    --line: #2d3541;
    --navy: #8fb2e0;
    --navy-dark: #0f1a2e;
    --accent: #e0a45a;
    --accent-soft: #2b2417;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 2.2rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); }
a:hover { color: var(--accent); }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--navy-dark);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span { color: #e0a45a; }

nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

nav a {
  color: #d9e2f0;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #e0a45a;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

/* Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 20px 0;
}

.grid.four { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.muted { color: var(--muted); }

/* Notice */
.notice {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: 0.95rem;
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 20px 0; }

.timeline li {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.timeline .num {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: Georgia, serif;
}

.timeline .body { flex: 1; }
.timeline .body h3 { margin-bottom: 2px; }
.timeline .skill { font-size: 0.9rem; color: var(--accent); font-weight: 600; }

.timeline label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
  cursor: pointer;
}

.timeline li.done { opacity: 0.75; }
.timeline li.done .num { background: #3b7a57; }

.progress-bar {
  height: 10px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.progress-bar > div {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s;
}

/* Lists */
ul.clean { padding-left: 1.2em; }
ul.clean li { margin-bottom: 0.4em; }

/* Footer */
.site-footer {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .timeline li { flex-direction: column; gap: 10px; }
  .timeline .num { width: 38px; flex: 0 0 38px; }
}
