/*!
 * Longhand — Bootstrap 6 personal site and CV
 *
 * Design language: a well-set document. Warm paper ground, one rust accent, a
 * serif for names and headings, and a measure that stays readable rather than
 * filling the window.
 *
 * The structural idea carrying the identity lives in print.css. Résumé
 * templates are built to be looked at; this one is built to be *printed*. The
 * same markup produces a one-page CV through @page and a print stylesheet, so
 * the document somebody files can never fall behind the site they read.
 */

:root {
  --brand: oklch(48% 0.125 32);
  --lh-rule: color-mix(in oklab, var(--bs-fg-body), transparent 87%);
  --kit-section-y: 3.5rem;
}

@media (width >= 768px) { :root { --kit-section-y: 4.5rem; } }

[data-bs-theme="light"] {
  --bs-bg-body: oklch(98.5% 0.008 75);
  --bs-bg-2: oklch(96% 0.011 75);
}

[data-bs-theme="dark"] {
  --bs-bg-body: oklch(19% 0.01 60);
  --bs-bg-2: oklch(22.5% 0.012 60);
}

.intro-name,
.band-title,
.role-title,
.case-title,
.proj-name,
.wordmark {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.wrap { max-width: 58rem; margin-inline: auto; padding-inline: 1.25rem; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--lh-rule); }

.head-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}

.wordmark { font-size: 1.05rem; color: var(--bs-fg-body); text-decoration: none; }

.head-nav { display: none; gap: 1.25rem; margin-left: auto; }

@media (width >= 768px) { .head-nav { display: flex; } }

.head-link {
  color: var(--bs-fg-2, inherit);
  text-decoration: none;
  font-size: 0.9rem;
}

.head-link:hover { color: var(--bs-primary-fg); }

.head-in .btn-solid { text-decoration: none; }

@media (width < 768px) { .head-in .d-flex { margin-left: auto; } }

/* ---------------------------------------------------------------
   Intro
   --------------------------------------------------------------- */

.intro { padding-block: 3.5rem 3rem; }

.intro-grid { display: grid; gap: 2.5rem; }

@media (width >= 768px) { .intro-grid { grid-template-columns: 1fr 14rem; gap: 3rem; } }

.intro-name { font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.05; }
.intro-role { font-size: 1.05rem; color: var(--bs-primary-fg-emphasis); font-weight: 600; }
.intro-lede { color: var(--bs-fg-2, inherit); text-wrap: pretty; max-width: 34rem; }

.vcard { list-style: none; padding-left: 0; border-top: 1px solid var(--lh-rule); }

.vcard li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--lh-rule);
  font-size: 0.88rem;
}

.vcard a { color: inherit; }

.vcard-k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-fg-3, inherit);
}

/* ---------------------------------------------------------------
   Bands
   --------------------------------------------------------------- */

.band { padding-block: var(--kit-section-y); border-top: 1px solid var(--lh-rule); }
.band-alt { background-color: var(--bs-bg-2); }

.band-title { font-size: 1.5rem; margin-bottom: 2rem; }

/* ---------------------------------------------------------------
   Roles
   --------------------------------------------------------------- */

.roles { display: grid; gap: 2.25rem; }

.role { display: grid; gap: 0.5rem 2rem; }

@media (width >= 768px) { .role { grid-template-columns: 8rem 1fr; } }

.role-when {
  display: flex;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--bs-fg-3, inherit);
  white-space: nowrap;
}

.role-dash { opacity: 0.6; }

.role-title { font-size: 1.15rem; }
.role-org { font-size: 0.92rem; font-weight: 600; }

.role-points { padding-left: 0; list-style: none; }

.role-points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--bs-fg-2, inherit);
  font-size: 0.92rem;
}

.role-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.4rem;
  height: 1px;
  background-color: var(--bs-primary-base);
}

/* ---------------------------------------------------------------
   Skills, projects, writing
   --------------------------------------------------------------- */

.skills { display: grid; gap: 1.75rem; }

@media (width >= 768px) { .skills { grid-template-columns: repeat(3, 1fr); } }

.skill-k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bs-fg-3, inherit);
}

.skill-list { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.skill-list li {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--lh-rule);
  border-radius: 100px;
  font-size: 0.82rem;
}

.proj-list, .post-list { list-style: none; padding-left: 0; margin-bottom: 0; border-top: 1px solid var(--lh-rule); }

.proj, .post {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--lh-rule);
}

@media (width >= 768px) {
  .proj { grid-template-columns: 1fr 11rem; align-items: start; }
  .post { grid-template-columns: 1fr auto; align-items: baseline; }
}

.proj-name { font-size: 1.1rem; }
.proj-name a { color: inherit; text-decoration: none; }
.proj-name a:hover { color: var(--bs-primary-fg); }
.proj-meta { font-size: 0.82rem; font-weight: 600; }

.post-title { font-weight: 600; color: var(--bs-fg-body); text-decoration: none; grid-column: 1; }
.post-title:hover { color: var(--bs-primary-fg); }
.post-time { font-size: 0.8rem; }

@media (width >= 768px) { .post-time { grid-row: 1; grid-column: 2; } }

.contact .btn-solid,
.contact .btn-outline { text-decoration: none; }

/* ---------------------------------------------------------------
   Case study
   --------------------------------------------------------------- */

.case { padding-block: 3rem 5rem; }
.case-title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.1; text-wrap: balance; }
.case-sub { color: var(--bs-fg-3, inherit); font-size: 0.95rem; }
.case .eyebrow a { color: inherit; }

.case-facts { margin-bottom: 0; border-top: 1px solid var(--lh-rule); }

.case-facts > div {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--lh-rule);
}

@media (width >= 640px) { .case-facts > div { grid-template-columns: 8rem 1fr; } }

.case-facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-3, inherit); margin-bottom: 0; }
.case-facts dd { margin-bottom: 0; color: var(--bs-fg-2, inherit); }

/* .prose is a v6 component — a flex column driven by --bs-content-gap with
   margin-block:0 on its children. Colour and family only; adding margins here
   would add to the gap rather than replace it. */
.prose { max-width: 38rem; }
.prose p { color: var(--bs-fg-2, inherit); text-wrap: pretty; }

.prose h2 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

.case-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--lh-rule);
}

.case-foot a { text-decoration: none; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-footer { padding-block: 2rem; border-top: 1px solid var(--lh-rule); }
