:root {
  --primary: #ab3545;
  --primary-10: #942d3b;
  --primary-20: #7e2531;
  --primary-30: #681d27;
  --primary-40: #54151e;
  --primary-50: #400e15;

  --accent: #80ab35;
  --accent-10: #6e942d;
  --accent-20: #5d7e25;
  --accent-30: #4d681d;
  --accent-40: #3d5415;
  --accent-50: #2e400e;

  --surface-0: #ffffff;
  --surface-10: #f2f2f2;
  --surface-20: #e4e4e4;
  --surface-30: #d7d7d7;

  --tonal-0: #f9ebeb;
  --tonal-10: #ece0e0;
  --tonal-20: #e0d5d5;
  --tonal-30: #d3caca;

  --wash-a: #fdf6f6;
  --wash-b: #f4dede;

  --text-strong: #2a1f1f;
  --text-muted: #695d5d;
  --text-on-primary: #ffffff;
  --accent-text: #4d681d;
  --primary-text: #7e2531;
  --nav-bg: rgba(249, 235, 235, 0.86);

  --font: "Montserrat", sans-serif;
  --radius: 10px;
}

:root[data-theme="dark"] {
  --primary-10: #b64c56;
  --primary-20: #c06067;
  --primary-30: #ca7479;
  --primary-40: #d3888b;
  --primary-50: #db9c9e;

  --accent-10: #8cb44f;
  --accent-20: #98bc65;
  --accent-30: #a5c579;
  --accent-40: #b1cd8d;
  --accent-50: #bed6a0;

  --surface-0: #121212;
  --surface-10: #252525;
  --surface-20: #393939;
  --surface-30: #4f4f4f;

  --tonal-0: #201717;
  --tonal-10: #332a2a;
  --tonal-20: #463e3e;
  --tonal-30: #5b5353;

  --wash-a: #291d1d;
  --wash-b: #201717;

  --text-strong: #ffffff;
  --text-muted: #a89e9e;
  --accent-text: #8cb44f;
  --primary-text: #ca7479;
  --nav-bg: rgba(32, 23, 23, 0.86);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--tonal-0);
  background-image: linear-gradient(to bottom left, var(--wash-a), var(--wash-b));
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: var(--accent-text); }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

p { line-height: 1.7; color: var(--text-muted); margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tonal-20);
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 800;
  font-size: 1.05rem;
}
.nav__gem { width: 16px; height: 16px; fill: var(--accent-10); }

.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.nav__links a:not(.btn):hover { color: var(--text-strong); }

.btn--nav { padding: 9px 18px; font-size: 0.88rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--tonal-30);
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent-text); }
.theme-toggle:active { transform: scale(0.9); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle__sun circle { fill: currentColor; stroke: none; }
.theme-toggle__moon { display: none; }
.theme-toggle__moon path { fill: currentColor; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

@media (max-width: 640px) {
  .nav__mark span { display: none; }
  .nav__links { gap: 10px; }
  .nav__links a:not(.btn) { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 88px;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.hero__orb--1 { width: 420px; height: 420px; background: var(--primary); top: -140px; right: -100px; opacity: 0.22; }
.hero__orb--2 { width: 320px; height: 320px; background: var(--accent); bottom: -160px; left: -100px; opacity: 0.16; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}


.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-text);
  margin: 0 0 16px;
}

.hero__name {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--text-strong);
  opacity: 0.85;
  max-width: 54ch;
}

.hero__note { font-size: 0.95rem; max-width: 50ch; }

.hero__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--tonal-30);
  border-radius: 999px;
  padding: 7px 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.96); }

.btn--primary { background: var(--primary); color: var(--text-on-primary); }
.btn--primary:hover { background: var(--primary-10); }

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--tonal-30);
}
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* --- Content sections --- */
.content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 84px 0 0; }
.section--contact { padding-bottom: 88px; }

.section__head {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 26px;
}
.section__head h2 { margin: 0; }

.section__intro { margin-top: -12px; margin-bottom: 26px; }

/* --- Card --- */
.card {
  background: var(--tonal-10);
  border: 1px solid var(--tonal-20);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-40);
  box-shadow: 0 16px 32px -20px rgba(42, 31, 31, 0.35);
}

.lead { font-size: 1.08rem; color: var(--text-strong); font-weight: 500; }

/* --- About layout + polaroid photo --- */
.about__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
}

.polaroid {
  margin: 6px 8px 0 0;
  padding: 10px 10px 16px;
  background: var(--surface-0);
  border: 1px solid var(--tonal-20);
  border-radius: 4px;
  box-shadow: 0 14px 28px -16px rgba(42, 31, 31, 0.4);
  transform: rotate(3deg);
  width: 176px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.polaroid:hover { transform: rotate(0deg); }
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}
.polaroid figcaption {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 640px) {
  .about__card { grid-template-columns: 1fr; }
  .polaroid { justify-self: center; margin: 0; }
}

/* --- About facts --- */
.facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.facts li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-strong);
  background: var(--surface-0);
  border: 1px solid var(--tonal-20);
  padding: 12px 16px;
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.facts li:hover { border-color: var(--accent-text); transform: translateX(3px); }

/* --- Toolbox / skills --- */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-strong);
  background: var(--tonal-10);
  border: 1px solid var(--tonal-20);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: default;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.skills li:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--surface-0);
  transform: translateY(-2px);
}

/* --- Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.6;
}
.testimonial blockquote::before { content: "\201C"; }
.testimonial blockquote::after { content: "\201D"; }

.testimonial figcaption {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-strong);
}
.testimonial figcaption span {
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* --- Experience --- */
#experience .card { margin-bottom: 20px; }
#experience .card:last-child { margin-bottom: 0; }

.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}

.job__meta {
  font-size: 0.82rem;
  color: var(--primary-text);
  font-weight: 600;
}

.job ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.job li { color: var(--text-muted); }
.job li strong { color: var(--text-strong); font-weight: 800; }

/* --- Contact --- */
.card--contact { text-align: center; }

.contact__row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.copy-note {
  min-height: 20px;
  font-weight: 600;
  color: var(--accent-text);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 40px 20px 56px;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .section { padding-top: 88px; }
  .card { padding: 26px 22px; }
}
