:root {
  --bg:           #faf7f2;
  --text:         #0c0b09;
  --text-muted:   #6a6258;
  --text-dim:     #b0a898;
  --accent:       #9a5a2a;
  --accent-hover: #7a4018;
  --border:       #e0d8ce;
  --cta-bg:       rgba(154, 90, 42, 0.06);
  --cta-bg-hover: rgba(154, 90, 42, 0.12);
}


/* @media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0c0b09;
    --text:         #f0ece4;
    --text-muted:   #a09890;
    --text-dim:     #5a5550;
    --accent:       #b5703e;
    --accent-hover: #d4885a;
    --border:       #232018;
    --cta-bg:       rgba(181, 112, 62, 0.05);
    --cta-bg-hover: rgba(181, 112, 62, 0.1);
  }
} */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Layout ─────────────────────────────────────────────────── */

main {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 64px;
  width: 100%;
}

footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 44px;
  width: 100%;
}

/* ─── Header ─────────────────────────────────────────────────── */

header {
  margin-bottom: 32px;
}

.whoami-prompt {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pin {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--accent);
}

h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

/* ─── Nav links ──────────────────────────────────────────────── */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  margin-bottom: 4px;
  transition: color 0.15s;
  font-weight: 400;
}

.links a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.links a + a {
  margin-left: 28px;
}

.links a:hover {
  color: var(--text);
}

.links a.link-stdout {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.links a.link-stdout:hover {
  color: var(--accent);
}

.stdout-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 2px;
}



/* ─── About ──────────────────────────────────────────────────── */

.about {
  margin-top: 40px;
  margin-bottom: 40px;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.1em;
}

.about p:last-child {
  margin-bottom: 0;
}

.about a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

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

/* ─── Blog CTA ───────────────────────────────────────────────── */

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cta-bg);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s, background 0.15s;
}

.blog-cta:hover {
  color: var(--accent);
  background: var(--cta-bg-hover);
}

.blog-cta-text {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.blog-cta-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.18s;
}

.blog-cta:hover .blog-cta-arrow {
  transform: translateX(4px);
}

/* ─── Career ─────────────────────────────────────────────────── */

.career {
  margin-bottom: 56px;
}

.career h2 {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 400;
}

.career-list {
  list-style: none;
}

/* Employer group */
.employer {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.employer:first-child {
  border-top: 1px solid var(--border);
}

.employer-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.employer-name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Roles nested under employer */
.roles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.roles li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 2px;
}

.role {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text);
  grid-column: 1;
  grid-row: 1;
}

.period {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  align-self: center;
  text-align: right;
}

.detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  grid-column: 1;
  grid-row: 2;
  padding-top: 2px;
}

.detail a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

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

/* ─── Footer ─────────────────────────────────────────────────── */

footer p {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 520px) {
  main   { padding: 52px 20px 48px; }
  footer { padding: 0 20px 36px; }

  .roles li {
    grid-template-columns: 1fr;
  }

  .period {
    text-align: left;
  }
}
