/* ── Palette ── */

:root {
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --accent:    #64748b;

  --pico-font-size: 100%;
  --pico-font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  --pico-line-height: 1.7;
  --pico-color: var(--stone-800);
  --pico-muted-color: var(--stone-500);
  --pico-primary: var(--accent);
  --pico-primary-hover: var(--stone-700);
  --pico-background-color: var(--stone-100);
  --pico-card-background-color: #fff;
}

/* ── Global ── */

html {
  background: var(--stone-100);
}

body {
  background: var(--stone-100);
}

body > main.container {
  max-width: 700px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

a {
  color: var(--stone-700);
  text-decoration-color: var(--stone-300);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s;
}

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

/* ── Header ── */

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.header-text {
  flex: 1;
}

.portrait {
  width: 200px;
  height: 200px;
  border-radius: 6px;
  object-fit: cover;
  object-position: 30% center;
  border: 2px solid var(--stone-200);
  flex-shrink: 0;
}

header {
  margin-bottom: 3.5rem;
}

header h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  margin-bottom: 0.3rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--stone-500);
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--stone-200);
  color: var(--stone-600);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--stone-700);
  color: #fff;
}

/* ── Section cards ── */

.position {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.position hgroup {
  margin-bottom: 0.2rem;
}

.position hgroup h2,
.position hgroup h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  margin-bottom: 0;
  color: var(--stone-900);
}

.position hgroup h2 {
  font-size: 1.35rem;
}

.position hgroup h3 {
  font-size: 1.2rem;
}

.position hgroup p {
  font-size: 0.9rem;
  color: var(--stone-500);
  margin-bottom: 0;
}

.position > time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 1.2rem;
}

.position p {
  font-size: 0.95rem;
  color: var(--stone-700);
}

/* ── Current vs Previous ── */

.position.current {
  border-left: 3px solid var(--accent);
}

.position.previous {
  background: var(--stone-50);
  border-color: var(--stone-200);
}

.previous-heading {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

hr {
  border: none;
  border-top: 1px solid var(--stone-200);
  margin: 3rem 0 1.5rem;
}

/* ── Lists ── */

.position ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

.position li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--stone-700);
}

.position li::marker {
  color: var(--stone-300);
}

/* ── Footer ── */

footer {
  margin-top: 4rem;
  text-align: center;
}

footer small {
  color: var(--stone-400);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  body > main.container {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .position {
    padding: 1.4rem 1.2rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .header-inner {
    flex-direction: column-reverse;
    gap: 1.2rem;
  }

  .portrait {
    width: 140px;
    height: 140px;
  }
}
