/* ============================================================
   Alex Little — style.css
   Warm editorial theme. Bootstrap 5 JS only (no Bootstrap CSS).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Tokens ── */
:root {
  --ink:         #1C1917;
  --ink-muted:   #6B6560;
  --ink-faint:   #6E6864;
  --paper:       #FDFAF6;
  --surface:     #F5F0E8;
  --surface-mid: #EDE7DA;
  --accent:      #7C5C3E;
  --accent-bg:   #F2E8DC;
  --accent-dark: #5E4530;
  --teal-bg:     #DFF0EC;
  --teal-dark:   #1A5249;
  --border:      rgba(28,25,23,0.10);
  --border-mid:  rgba(28,25,23,0.18);
  --serif:       'Lora', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --max:         780px;
  --ease:        0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Bootstrap collapse (replaces Bootstrap CSS dependency) ── */
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height 0.25s ease; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(124,92,62,0.3);
  transition: color var(--ease);
}
a:hover { color: var(--accent-dark); }

/* ── Shell ── */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Sticky header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,250,246,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Identity — photo + name stacked */
.site-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-header__photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-mid);
  flex-shrink: 0;
}

.site-header__nameblock {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-header__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.site-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent-dark);
  padding: 2px 9px;
  border-radius: 999px;
  width: fit-content;
}

.site-header__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Nav links */
.site-header__nav {
  display: flex;
  gap: 2px;
  list-style: none;
}

.site-header__nav a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 999px;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav li.active a {
  background: var(--surface);
  color: var(--ink);
}

/* ── Page content wrapper ── */
.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Sections ── */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

/* ── Section label ── */
.section-label {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ── */
.hero__bio {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.hero__bio p { margin-bottom: 0.6rem; }
.hero__bio p:last-child { margin-bottom: 0; }

.hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}

.btn:hover { background: var(--surface); color: var(--ink); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.stat__num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}

.stat__label { font-size: 12px; color: var(--ink-muted); }

/* ── Skills ── */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 1.1rem;
}

.skill {
  padding: 5px 15px;
  color: var(--ink);
  background: var(--paper);
}

.skill strong {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
    line-height: 1.4;
    display: block; 
}

/* ── Timeline ── */
.trow {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.trow:last-of-type { border-bottom: none; }

.trow__date {
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 3px;
  line-height: 1.5;
}

.trow__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.4;
}

.trow__title a { color: inherit; text-decoration: none; }
.trow__title a:hover { color: var(--accent); text-decoration: underline; }

.trow__org {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.trow__desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.trow__desc ul { padding-left: 1.2rem; margin-top: 0.4rem; }
.trow__desc li { margin-bottom: 0.25rem; }

.trow__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.7rem; }

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--teal-bg);
  color: var(--teal-dark);
}

.tag--accent { background: var(--accent-bg); color: var(--accent-dark); }

/* ── Show older toggle ── */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  margin-top: 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  background: var(--paper);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.toggle:hover { background: var(--surface); color: var(--ink); }


/* ── Contact card ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  max-width: 460px;
  margin-top: 1.25rem;
}

.contact-row {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }

.contact-lbl {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  min-width: 68px;
  flex-shrink: 0;
}

.contact-val { font-size: 14px; }
.contact-val a { color: var(--ink); text-decoration: none; }
.contact-val a:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer__links { display: flex; gap: 1.25rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header__badge { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: span 2; }

  .trow { grid-template-columns: 1fr; gap: 0.2rem; }
  .trow__date { padding-top: 0; }

  .contact-card { padding: 1.25rem; }

  .site-header__nav a { padding: 5px 9px; font-size: 12px; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .stats .stat:last-child { grid-column: span 1; }
}

@media print {
  .site-header, .toggle { display: none; }
  .section { padding: 1.5rem 0; border: none; }
  body { font-size: 13px; }
}