/* =========================================================
   SUSTAINABLE BASE STYLES (Typewriter look)
   - No external fonts (system monospace only)
   - White on black
   - Centered content, responsive text sizing
   - Works with JS disabled
   ========================================================= */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #cccccc;
  --border: #222222;

  /* Keep line length comfortable for reading */
  --max-width: 42rem;
}

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

html, body {
  min-height: 100vh;
}

body {
  margin: 0;

  /* Typewriter-style system monospace stack (no downloads) */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.7;

  background: var(--bg);
  color: var(--text);

  /* Center the .page block in the viewport */
  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* breathing room on very small screens */
  padding: 1.25rem;
  min-height: 100vh;
}

@media (min-width: 700px) {
  body {
    align-items: center;
  }
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  z-index: 1000;
}

/* The centered page container */
.page {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

/* Headings */
h1 {
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  font-weight: 600;

  /* Responsive sizing */
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* Paragraph */
p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;

  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0.1rem;
}

nav a:hover {
  border-bottom-color: var(--text);
}

nav a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Cursor block */
.cursor {
  margin-left: 0.25em;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Reduced motion (green + accessible default) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================
   CV timeline
   ============================ */

.cv-timeline {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid currentColor; /* subtle separator from intro text */
}

.cv-timeline h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

/* Remove default list styling and create a vertical line */
.cv-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each item sits on the vertical line */
.cv-item {
  position: relative;
  padding-left: 1rem;   /* space between line and text */
  padding-bottom: 1.5rem;
}

/* Last item doesn’t need extra spacing at the bottom */
.cv-item:last-child {
  padding-bottom: 0;
}

.cv-item a {
  color: #fff;
}

/* Metadata line (dates) */
.cv-item-meta {
  font-size: 0.875rem;
  margin: 0 0 0.25rem;
}

/* Ensure dates are not italicised by the browser */
.cv-item-meta time {
  font-style: normal;
}

/* Role / title */
.cv-item-role {
  margin: 0;
  font-size: 1rem;
}

/* Organisation */
.cv-item-org {
  margin: 0.1rem 0 0.4rem;
  font-size: 0.95rem;
  font-style: italic;
}

/* Short description */
.cv-item-desc {
  margin: 0;
  max-width: 40rem; /* prevents overly long lines on wide screens */
  line-height: 1.4;
}

/* Optional: subtle hover on roles */
.cv-item-role:hover {
  text-decoration: underline;
}

/* Optional: soft separation */
.cv-item + .cv-item {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ============================
   Blog article links
   ============================ */

/* Make blog titles inherit text color instead of default blue */
.site-main article h2 a {
  color: inherit;
  text-decoration: none;
}

/* Optional: subtle hover state */
.site-main article h2 a:hover,
.site-main article h2 a:focus {
  text-decoration: underline;
}

/* ============================
   LinkedIn link (About page)
   ============================ */

.linkedin-link {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.linkedin-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9fd3ff; /* baby blue */
  text-decoration: none;
  font-size: 0.95rem;
}

.linkedin-link a:hover,
.linkedin-link a:focus {
  text-decoration: underline;
}

.linkedin-icon {
  font-weight: bold;
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
  line-height: 1;
}


/* ============================
   Carbon footprint note
   ============================ */

.carbon-note {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.carbon-note a {
  color: inherit;
}

.carbon-note a:hover,
.carbon-note a:focus {
  text-decoration: underline;
}


/* ============================
   Article navigation links
   ============================ */

.site-main article a {
  color: inherit;
}

.site-main article a:hover,
.site-main article a:focus {
  text-decoration: underline;
}

/* ============================
   Contact page links
   ============================ */

.contact-methods a {
  color: #9fd3ff; /* baby blue */
  text-decoration: none;
}

.contact-methods a:hover,
.contact-methods a:focus {
  text-decoration: underline;
}

/* ============================
   Profile links (About page)
   ============================ */

.profile-links {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.scholar-link {
  margin: 0.4rem 0 0;
}

.scholar-link a {
  color: #6fb6e8; /* same baby blue as LinkedIn */
  text-decoration: none;
  font-size: 0.9rem;
}

.scholar-link a:hover,
.scholar-link a:focus {
  text-decoration: underline;
}

.paper-icon {
  margin-right: 0.4rem;
  font-size: 0.95em;
}

/* Ensure CV links stay white */
.cv-item a,
.cv-item a:visited {
  color: var(--text);
}
