/* Reset (replaces @import "tailwindcss" build-tool import) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
sup { font-size: 0.75em; vertical-align: super; }

/* .mt-1 utility used on one panel */
.mt-1 { margin-top: 0.25rem; }

:root {
  /* Google Font references (loaded via <link> in HTML) */
  --font-heading: 'Space Grotesk';
  --font-body: 'IBM Plex Sans';

  --background: #f4efe4;
  --surface: rgba(255, 251, 245, 0.72);
  --surface-strong: #fff7ec;
  --text: #1d1b1a;
  --muted: #5f5750;
  --line: rgba(52, 39, 29, 0.12);
  --accent: #0b6e4f;
  --accent-strong: #124734;
  --accent-soft: #d5e8dd;
  --warm: #d98f4e;
  --shadow: 0 20px 60px rgba(56, 37, 19, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body), sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 143, 78, 0.28), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(11, 110, 79, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f4ea 0%, #efe5d4 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.portfolio-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero-panel,
.section-grid,
.skills-panel,
.timeline-panel {
  margin-bottom: 24px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 250, 243, 0.86), rgba(244, 235, 221, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(11, 110, 79, 0.09);
  filter: blur(2px);
}

.eyebrow,
.section-tag,
.timeline-topline p,
.timeline-topline span,
.fact-chip span,
.detail-list span,
.contact-list span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-copy h1,
.panel h2,
.skills-header h2,
.timeline-heading h2 {
  margin: 10px 0 14px;
  font-family: var(--font-heading), sans-serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 3.8rem);
}

.lead,
.panel p,
.timeline-content p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #f8f4ea;
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.hero-card-title {
  margin: 18px 0 10px;
  font-family: var(--font-heading), sans-serif;
  font-size: 1.4rem;
  color: var(--text);
}

.avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  font-family: var(--font-heading), sans-serif;
  font-size: 2rem;
  color: #fff7ec;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.hero-grid,
.detail-list,
.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.fact-chip,
.detail-list div,
.contact-list div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(50, 40, 32, 0.08);
}

.fact-chip strong,
.detail-list strong,
.contact-list strong,
.reference-box h3,
.education-stack h3,
.timeline-content h3 {
  font-size: 1rem;
  color: var(--text);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  padding: 24px;
}

.story-panel {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.8), rgba(255, 255, 255, 0.5));
}

.emphasis-panel {
  background: linear-gradient(180deg, rgba(213, 232, 221, 0.72), rgba(255, 248, 237, 0.8));
}

blockquote {
  margin: 12px 0 18px;
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.education-stack {
  display: grid;
  gap: 22px;
}

.plain-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.plain-list.compact {
  margin-top: 10px;
}

.cv-download {
  margin-top: 18px;
}

.bottom-column {
  display: grid;
  gap: 24px;
}

.skills-panel {
  padding: 24px;
}

.skills-header {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: end;
}

.skill-cloud,
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud {
  margin-top: 22px;
}

.skill-cloud span,
.tech-list span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 71, 52, 0.14);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.94rem;
}

.timeline-heading {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 18px;
}

.timeline-marker {
  position: relative;
  width: 18px;
}

.timeline-marker::before,
.timeline-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-marker::before {
  top: 0;
  bottom: -20px;
  width: 2px;
  background: rgba(18, 71, 52, 0.18);
}

.timeline-marker::after {
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(217, 143, 78, 0.15);
}

.timeline-item:last-child .timeline-marker::before {
  bottom: 28px;
}

.timeline-content {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(18, 71, 52, 0.1);
  background: rgba(255, 255, 255, 0.48);
}

.timeline-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-content h3 {
  margin: 8px 0 10px;
  font-family: var(--font-heading), sans-serif;
  font-size: 1.45rem;
}

.reason {
  margin-top: 14px;
  font-style: italic;
}

.bottom-grid {
  align-items: start;
}

.reference-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px dashed rgba(18, 71, 52, 0.28);
}

@media (max-width: 980px) {
  .hero-panel,
  .section-grid,
  .skills-header {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .portfolio-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero-panel,
  .panel,
  .skills-panel,
  .timeline-content {
    border-radius: 22px;
  }

  .hero-panel,
  .panel,
  .skills-panel,
  .timeline-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-marker {
    display: none;
  }
}
