:root {
  --bg: #ebe3d8;
  --panel: #171310;
  --surface: rgba(255, 251, 246, 0.86);
  --text: #241b15;
  --muted: #6e6259;
  --line: rgba(36, 27, 21, 0.11);
  --line-strong: rgba(36, 27, 21, 0.2);
  --accent: #945734;
  --shadow: 0 20px 70px rgba(34, 24, 15, 0.12);
  --radius: 30px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 36%),
    radial-gradient(circle at bottom right, rgba(201, 146, 106, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #f5efe7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(148, 87, 52, 0.35);
  outline-offset: 3px;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  min-height: 100vh;
}

.site-main {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 45%);
  pointer-events: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 26px;
  color: #f7efe5;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    url("/assets/images/accent-wave.svg") bottom center / cover no-repeat,
    var(--panel);
}

.sidebar__brand {
  display: grid;
  gap: 12px;
}

.sidebar__mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.sidebar__eyebrow,
.section-kicker,
.focus-card__strapline,
.education-card__year,
.contact-card__label,
.detail-list dt {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.sidebar__eyebrow {
  color: rgba(247, 239, 229, 0.66);
}

.sidebar__name,
.hero__headline,
.section-title,
.skill-card h3,
.education-card h3,
.focus-card h3,
.timeline__content h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  letter-spacing: -0.03em;
}

.sidebar__name {
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  line-height: 0.94;
}

.sidebar__title {
  margin: 0;
  color: rgba(247, 239, 229, 0.76);
  line-height: 1.6;
}

.sidebar__nav {
  display: grid;
  gap: 10px;
}

.sidebar__link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: rgba(247, 239, 229, 0.78);
  transition: color 180ms ease, transform 180ms ease;
}

.sidebar__link::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(247, 239, 229, 0.24);
}

.sidebar__link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar__footer {
  display: grid;
  gap: 16px;
}

.sidebar__socials,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.sidebar__socials a,
.contact-links a {
  color: rgba(247, 239, 229, 0.84);
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff6ef;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #7f4828;
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button--ghost:hover {
  background: rgba(148, 87, 52, 0.08);
}

.button--light {
  background: #f7e7d9;
  color: #241b15;
}

.button--light:hover {
  background: #f0dac7;
}

.section-kicker {
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 0.98;
}

.section-copy,
.hero__intro,
.prose p,
.timeline__content p,
.focus-card p,
.skill-card li,
.education-card p,
.contact-card span,
.contact-card a,
.stat-card span {
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px 28px;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 16px;
}

.hero__headline {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
  max-width: 11ch;
}

.hero__intro,
.section-copy,
.prose p,
.timeline__content p,
.focus-card p,
.education-card p {
  margin: 0;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  justify-self: end;
}

.hero__portrait {
  width: min(100%, 420px);
  border-radius: 28px;
  border: 1px solid rgba(36, 27, 21, 0.09);
  box-shadow: 0 18px 60px rgba(56, 35, 20, 0.16);
}

.hero__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.stat-card strong {
  font-size: 2rem;
  color: var(--accent);
}

.section-grid {
  display: grid;
  gap: 22px;
}

.section-grid__content,
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
}

.prose {
  display: grid;
  gap: 16px;
}

.availability-note {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 87, 52, 0.18);
  border-left: 4px solid var(--accent);
  background: rgba(148, 87, 52, 0.06);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list__item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.detail-list dt {
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-list dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

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

.section-header {
  align-items: end;
  margin-bottom: 24px;
}

.focus-grid,
.skills-grid,
.education-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.focus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-card,
.skill-card,
.education-card,
.contact-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.focus-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(36, 27, 21, 0.08);
  background: linear-gradient(135deg, #f5ede4, #e7d8ca);
}

.focus-card__strapline,
.education-card__year {
  color: var(--accent);
}

.focus-card strong {
  color: var(--accent);
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.timeline__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline__meta p,
.timeline__company,
.site-footer p,
.site-footer span {
  margin: 0;
}

.timeline__meta p {
  font-weight: 700;
}

.timeline__meta span {
  color: var(--muted);
  line-height: 1.6;
}

.timeline__company {
  color: var(--accent);
  font-weight: 600;
}

.timeline__content {
  display: grid;
  gap: 12px;
}

.timeline__list,
.skill-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.timeline__list {
  color: var(--muted);
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.closing-grid p {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(148, 87, 52, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(148, 87, 52, 0.08), rgba(255, 255, 255, 0.62));
  line-height: 1.7;
}

.education-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-card__institution {
  font-weight: 600;
  color: var(--text);
}

.contact-panel {
  color: #f7efe5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 46%),
    url("/assets/images/accent-wave.svg") center / cover no-repeat,
    linear-gradient(160deg, #19120f 0%, #2e2018 100%);
}

.contact-panel .section-kicker,
.contact-panel .section-copy,
.contact-panel .contact-card__label,
.contact-panel .contact-links a,
.contact-panel .contact-card span,
.contact-panel .contact-card a {
  color: rgba(247, 239, 229, 0.82);
}

.contact-panel .section-title {
  color: #fff8f1;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-card a,
.contact-card span {
  font-weight: 600;
}

.contact-panel .button--ghost {
  color: #fff8f1;
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-panel .button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 20px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 900px) {
  .hero,
  .section-grid__content,
  .section-header,
  .timeline__item {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-self: start;
  }

  .focus-grid,
  .skills-grid,
  .education-grid,
  .contact-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 18px;
  }

  .panel {
    padding: 22px;
    border-radius: 24px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
