/* =========================================================
   Tokens
========================================================= */
:root {
  --bg: #fbf5f3;
  --bg-alt: #f4e7e8;
  --surface: #ffffff;
  --ink: #221016;
  --muted: #7a5f66;
  --pink: #d9376e;
  --pink-deep: #a81c50;
  --pink-soft: #f6d7e0;
  --line: #e5d4d3;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1040px;
  --gutter: 6vw;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); font-weight: 600; }
em { font-style: italic; color: var(--pink); font-family: var(--font-display); }

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

section { scroll-margin-top: 76px; }

::selection { background: var(--pink-soft); color: var(--pink-deep); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Nav
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  background: rgba(251, 245, 243, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  padding: 5px 9px;
  border-radius: 3px;
}

.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
}
.nl-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--pink); }
.nav-links a:hover .nl-num { color: var(--pink); }

.nav-cta {
  font-family: var(--font-mono);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-cta:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--surface);
}

/* =========================================================
   PICTURE
========================================================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 11vh var(--gutter) 9vh;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-grid { max-width: 660px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 500px;
  margin: 22px 0 0;
}

.hero-meta {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin: 34px 0 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hm-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hm-value { font-size: 0.95rem; font-weight: 500; max-width: 240px; }

.hero-links { display: flex; gap: 26px; flex-wrap: wrap; }

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.link-arrow:hover { color: var(--pink); border-color: var(--pink); }
.hero-photo{
    width:340px;
    height:430px;
    flex-shrink:0;
}

.hero-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:24px;
    border:1px solid var(--line);
    box-shadow:0 20px 50px rgba(0,0,0,.15);
    transition:0.3s ease;
}

.hero-photo img:hover{
    transform:translateY(-8px);
}
/* =========================================================
   Section shell
========================================================= */
.section {
  padding: 9vh var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
}
.section-alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 40px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pink);
}
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
}

/* =========================================================
   About
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}
.about-copy p { margin: 0 0 18px; color: var(--ink); }
.about-copy p:last-child { margin-bottom: 0; }

.fact-list { margin: 0; }
.fact-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 5px;
}
.fact-row dd { margin: 0; font-weight: 600; font-size: 0.98rem; }

/* =========================================================
   Projects
========================================================= */
.project-list { display: flex; flex-direction: column; }
.project-row {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px 60px;
  transition: padding-left 0.2s ease;
}
.project-list .project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row:hover { padding-left: 14px; }

.project-row-top { display: flex; flex-direction: column; gap: 8px; }
.project-title { font-size: 1.3rem; font-weight: 500; }
.project-stack {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pink-deep);
  margin: 0;
}
.project-desc { margin: 0; color: var(--muted); align-self: center; }

/* =========================================================
   Timeline
========================================================= */
.timeline { display: flex; flex-direction: column; }
.timeline-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.timeline:last-child .timeline-entry:last-child { border-bottom: 1px solid var(--line); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 4px;
}
.timeline-body h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.timeline-org {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pink-deep);
  margin: 0 0 10px;
}
.timeline-body p:last-child { margin: 0; color: var(--muted); }

/* =========================================================
   Skills
========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--surface);
}

/* =========================================================
   Education
========================================================= */
.edu-list { display: flex; flex-direction: column; gap: 22px; }
.edu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 32px;
}
.edu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.edu-card-top h3 { font-size: 1.2rem; font-weight: 500; }
.edu-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--pink-deep); white-space: nowrap; }
.edu-sub { font-weight: 600; margin: 0 0 8px; }
.edu-detail { margin: 0 0 10px; color: var(--muted); }
.edu-courses { margin: 0; font-size: 0.86rem; color: var(--muted); font-family: var(--font-mono); }

/* =========================================================
   Contact
========================================================= */
.contact-section { text-align: center; padding-top: 12vh; padding-bottom: 14vh; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin: 14px 0 20px;
}
.contact-sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 34px; }
.contact-section .hero-links { justify-content: center; }

/* =========================================================
   Footer
========================================================= */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--pink); }

/* =========================================================
   Scroll reveal
========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .project-row { grid-template-columns: 1fr; gap: 10px; }
  .project-row:hover { padding-left: 0; }
  .timeline-entry { grid-template-columns: 1fr; gap: 8px; }
  .timeline-date { padding-top: 0; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-cta { margin-top: 8px; }

  .hero { flex-direction: column; align-items: flex-start; padding-top: 6vh; }
  .hero-photo{
    width:260px;
    height:330px;
    margin:auto;
}
  .hero-meta { gap: 22px; }
  .footer { flex-direction: column; gap: 14px; text-align: center; }
}
  .timeline { padding-left: 20px; }
}
