/* 26.SUM.B.6 — minimalist pod portfolio
 * A light, restrained upgrade of the MLH starter: white canvas, slate text,
 * one deep-blue accent (a refined take on the template's blue), generous
 * whitespace, a single typeface (Inter). Plain section names, circular photo.
 */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;
  --line:        #e8eaef;
  --line-strong: #d4d9e0;
  --text:        #283041;
  --heading:     #11161f;
  --muted:       #5c6675;
  --faint:       #939bA8;
  --accent:      #1c539f;   /* the original template's blue, deepened */
  --accent-ink:  #16447f;
  --accent-soft: #eef3fb;
  --radius:      12px;
  --maxw:        760px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.lead { color: var(--muted); font-size: 1.06rem; margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* ── MLH ribbon (the template's banner, slimmed to a strip) ───────────── */
.ribbon { background: var(--accent); }
.ribbon-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; gap: 14px;
}
.ribbon-inner a { display: flex; }
.ribbon img { height: 22px; width: auto; display: block; }
.ribbon-label { margin-left: auto; color: rgba(255, 255, 255, 0.82); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em; }

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nav-brand { font-weight: 700; color: var(--heading); font-size: 1.02rem; letter-spacing: -0.01em; }
.nav-brand:hover { color: var(--heading); text-decoration: none; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 12px; display: flex; gap: 28px; align-items: center; }
.hero-photo {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(20, 30, 50, 0.06);
}
.hero h1 { font-size: 2.05rem; margin-bottom: 4px; }
.hero .role { color: var(--accent); font-weight: 600; font-size: 1.02rem; }
.hero .bio { color: var(--muted); margin: 12px 0 0; max-width: 52ch; }
.hero-links { display: flex; gap: 16px; margin-top: 14px; }
.hero-links a { font-size: 0.92rem; font-weight: 500; }
.crumb { display: inline-block; color: var(--faint); font-size: 0.9rem; margin-bottom: 12px; }
.crumb:hover { color: var(--accent); text-decoration: none; }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding: 38px 0; border-top: 1px solid var(--line); }
.section--first { border-top: none; padding-top: 28px; }
.section > h2 { font-size: 1.18rem; margin-bottom: 20px; }
.prose p { margin: 0 0 15px; }
.prose p:last-child { margin-bottom: 0; }

/* experience / education list */
.item { padding: 18px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: none; padding-top: 0; }
.item-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.item-title { font-weight: 600; color: var(--heading); font-size: 1.04rem; }
.item-role { color: var(--accent); font-weight: 500; font-size: 0.95rem; margin-top: 1px; }
.item-date { color: var(--faint); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-summary { color: var(--muted); margin: 7px 0 0; font-size: 0.97rem; }
.item-metric { color: var(--text); font-size: 0.9rem; margin-top: 5px; }
.item-metric b { color: var(--accent-ink); font-weight: 600; }
.item-link { font-size: 0.88rem; font-weight: 500; display: inline-block; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag {
  font-size: 0.78rem; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 2px 11px;
}

/* ── team (fleet overview) ────────────────────────────────────────────── */
.team { display: grid; gap: 12px; margin-top: 4px; }
.team-card {
  display: flex; gap: 16px; align-items: center; padding: 16px 18px; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.team-card:hover {
  border-color: var(--line-strong); text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.07); transform: translateY(-1px);
}
.team-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.team-id { min-width: 0; }
.team-name { font-weight: 600; color: var(--heading); }
.team-role { color: var(--muted); font-size: 0.92rem; }
.team-go { margin-left: auto; color: var(--faint); font-size: 0.95rem; white-space: nowrap; }
.team-card:hover .team-go { color: var(--accent); }
.note { color: var(--faint); font-size: 0.9rem; margin-top: 16px; }
.note code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 0.86em; }

/* ── hobbies ──────────────────────────────────────────────────────────── */
.hobbies { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.hobby { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.hobby-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.hobby-body { padding: 14px 16px 17px; }
.hobby-owner { font-size: 0.8rem; color: var(--faint); }
.hobby-owner a { color: var(--accent); }
.hobby h3 { font-size: 1.06rem; margin: 6px 0 6px; }
.hobby p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ── timeline form ────────────────────────────────────────────────────── */
.timeline-form { display: grid; gap: 14px; margin-bottom: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.field-date { max-width: 240px; }
.field input, .field textarea {
  font: inherit; font-size: 0.97rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-error { color: #b3261e; font-size: 0.88rem; margin: 0; }
.timeline-form button {
  font: inherit; font-weight: 600; font-size: 0.92rem; color: #fff; background: var(--accent);
  border: none; border-radius: 8px; padding: 9px 18px; cursor: pointer; transition: background 0.16s;
}
.timeline-form button:hover { background: var(--accent-ink); }

/* ── timeline rail ────────────────────────────────────────────────────── */
.timeline-rail { position: relative; }
.timeline-group { position: relative; }
.timeline-month {
  font-size: 0.76rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin: 34px 0 14px; padding-left: 26px;
}
.timeline-group:first-child .timeline-month { margin-top: 0; }
.timeline-group-list { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-group-list::before {
  content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--line-strong);
}
.timeline-post { position: relative; padding: 0 0 22px 26px; }
.timeline-post:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: background 0.16s, border-color 0.16s;
}
.timeline-post:hover .timeline-node { border-color: var(--accent); }
.timeline-node.is-latest {
  background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-body { min-width: 0; }
.timeline-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.timeline-date { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--heading); font-size: 0.88rem; }
.timeline-name { color: var(--faint); font-size: 0.85rem; }
.timeline-image {
  display: block; width: 100%; max-width: 440px; aspect-ratio: 16 / 10; object-fit: cover;
  object-position: top; border-radius: 10px; border: 1px solid var(--line); margin: 4px 0 10px;
}
.timeline-content { color: var(--text); margin: 0; font-size: 0.97rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── map ──────────────────────────────────────────────────────────────── */
#map { height: 380px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.leaflet-container { font-family: var(--font) !important; }
.map-note { color: var(--faint); font-size: 0.88rem; margin: 0 0 14px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); margin-top: 44px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; gap: 12px;
  color: var(--faint); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { padding: 80px 0; text-align: center; }
.notfound h1 { font-size: 2.4rem; margin-bottom: 8px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 40px; }
  .item-top { flex-direction: column; gap: 2px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
