@font-face {
  font-family: "Latus";
  src: url("fonts/Latus-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Uppercase-only subset (letters, 0, 2, basic punctuation) — use for the TDBK mark only, not body text. */
}

:root {
  --ink: #1a1a18;
  --paper: #faf9f6;
  --rule: #d8d5cd;
  --muted: #6b6862;
  --accent: #8a1f11;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sans {
  font-family: var(--sans);
}

/* ---------- layout ---------- */

.layout {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
}

.main {
  flex: 1 1 560px;
  max-width: 620px;
  min-width: 0;
}

.timeline-col {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 3rem;
  height: calc(100vh - 6rem);
  overflow: hidden;
}

.timeline-inner {
  will-change: transform;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    gap: 3.5rem;
    padding: 3.5rem 1.25rem 3.5rem;
  }
  .main { max-width: 100%; }
  .timeline-col {
    position: static;
    height: auto;
    width: 100%;
    overflow: visible;
  }
  .timeline-inner { transform: none !important; }
  body { font-size: 15.5px; }
}

/* ---------- main column typography ---------- */

h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.15em;
}

.title-line {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
}

.intro {
  margin: 0 0 3.5rem;
  max-width: 34em;
}

h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

section {
  margin: 0 0 3.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 3.5rem;
}

.service {
  margin: 0 0 1.3rem;
}

.service:last-child { margin-bottom: 0; }

.service strong {
  font-weight: 600;
}

.role {
  margin: 0 0 1.1rem;
}

.role-org {
  font-weight: 600;
}

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

.roles-past {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.94rem;
}

.work-entry {
  margin: 0 0 2rem;
}

.work-entry:last-child { margin-bottom: 0; }

.work-title {
  font-weight: 600;
}

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

.work-desc {
  margin: 0.4em 0 0;
}

.work-specimen {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 1rem 0 0;
  border: 1px solid var(--rule);
}

.contact-links {
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 0.6em;
}

a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

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

.site-footer {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-logo {
  height: 13px;
  width: auto;
  display: block;
}

/* ---------- timeline column ---------- */

.tl-heading {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.tl-year {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.5rem 0 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.tl-year:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tl-entry {
  margin: 0 0 0.6rem;
  padding-left: 0.65rem;
  border-left: 2px solid transparent;
  font-size: 0.76rem;
  line-height: 1.4;
}

.tl-entry .tl-date {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.1em;
}

.tl-entry.type {
  border-left-color: var(--accent);
}

.tl-entry.type .tl-desc {
  color: var(--ink);
  font-style: italic;
}

.tl-entry.other .tl-desc {
  color: var(--muted);
}

.tl-legend {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tl-legend span {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.4em;
  vertical-align: middle;
}
