:root {
  --bg:           #FFFDDF;
  --accent:       #E94600;
  --text:         #3A2A1A;
  --font-display: 'Lexend Mega', sans-serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}
a:hover { opacity: 0.7; }

/* ── Layout ── */

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 5rem;
}

/* ── Header box ── */

.header-box {
  border: 1px solid var(--accent);
  padding: 2rem 2rem 1.6rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.site-name {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.1rem, 6.5vw, 3rem);
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: lowercase;
  white-space: nowrap;
}

.header-links {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
}

.header-links li a {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}
.header-links li a:hover { text-decoration: underline; }

/* ── Bio ── */

.bio { margin-bottom: 2.5rem; }
.bio p + p { margin-top: 0.4rem; }

/* ── Resume sections ── */

.section { margin-bottom: 2.75rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: underline;
  text-align: center;
  margin-bottom: 1.6rem;
}

.entry {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 0 1.5rem;
  margin-bottom: 1.1rem;
  align-items: start;
}

.entry-date {
  font-size: 0.875rem;
  color: var(--text);
  padding-top: 0.05em;
}

.entry-title {
  font-size: 0.875rem;
  color: var(--text);
}

.entry-subtitle {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-size: 0.84rem;
  margin-top: 0.1rem;
}
a.entry-subtitle {
  text-decoration: underline;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}
a.entry-subtitle:hover {
  opacity: 0.7;
}

/* linked research entries: title inherits text color */
.entry-title a.entry-link {
  color: inherit;
  text-decoration: none;
}
.entry-title a.entry-link:hover { text-decoration: underline; }

/* ── Footer ── */

.top-link {
  text-align: right;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
}
.top-link a { font-size: 0.875rem; }

.art-promo {
  text-align: center;
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent);
}
.art-promo a { font-weight: 600; }

/* ── Responsive ── */

/* Tablet */
@media (max-width: 600px) {
  .container { padding: 2.5rem 1.5rem 4rem; }
}

/* Mobile: collapse entry grid to single column */
@media (max-width: 500px) {
  .container { padding: 2rem 2rem 4rem; }

  .entry {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.4rem;
  }

  .entry-date {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 0.1rem;
  }
}
