:root {
  --pink: #c98b97;          /* dusty pink, main brand colour */
  --pink-strong: #a05a69;   /* darker dusty pink for buttons/links (AA contrast) */
  --pink-soft: #f6e8ea;
  --bg: #fdfafa;
  --bg-tint: #f7eef0;
  --surface: #ffffff;
  --text: #55535a;          /* grey */
  --text-strong: #3a383e;
  --border: #ebd9dd;
  --shadow: 0 6px 24px rgba(160, 90, 105, .10);
  --radius: 18px;
}
:root[data-theme="dark"] {
  --pink: #d6a0ab;
  --pink-strong: #d6a0ab;
  --pink-soft: #3a2a2f;
  --bg: #1b1a1c;
  --bg-tint: #232124;
  --surface: #29262a;
  --text: #b4b1b8;
  --text-strong: #e3e0e5;
  --border: #3b363c;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: background .25s, color .25s;
}
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; font-weight: 600; color: var(--text-strong); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--pink-strong); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.nav__brand { font-family: "Pacifico", cursive; font-size: 1.4rem; color: var(--pink-strong); text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav__links a:hover { color: var(--pink-strong); }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--pink-strong); cursor: pointer; }
.theme-toggle:hover { background: var(--pink-soft); }
.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 5rem); background: linear-gradient(180deg, var(--pink-soft), var(--bg)); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: none; }
.hero__hello { font-weight: 600; color: var(--pink-strong); margin-bottom: .2rem; }
.hero__name { font-size: clamp(2.6rem, 8vw, 4.8rem); color: var(--pink-strong); margin-bottom: .2em; }
.hero__title { font-size: 1.2rem; font-weight: 700; color: var(--text-strong); }
.hero__bio { max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__photo { margin: 0; justify-self: end; }
.hero__photo img { display: block; width: min(100%, 320px); height: 400px; object-fit: cover; object-position: center 72%; border-radius: 28px; border: 4px solid var(--surface); box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.35rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--pink-strong); transition: transform .15s, background .2s, color .2s; }
.btn__icon { flex: none; }
.btn--primary { background: var(--pink-strong); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #2a1d21; }
.btn--ghost { color: var(--pink-strong); background: transparent; }
.btn--ghost:hover { background: var(--pink-soft); }
.btn:active { transform: scale(.97); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--pink-strong); margin-bottom: 1.2rem; }

/* About */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.about__text p { max-width: 62ch; }
.about__card { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--pink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.about__detail + .about__detail { margin-top: 1.2rem; }
.about__detail h3 { font-size: 1.15rem; color: var(--pink-strong); margin-bottom: .2em; }
.about__detail p { margin: 0; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 2.5rem; }
.skills__group h3 { font-size: 1.15rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .3rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; font-weight: 500; color: var(--text-strong); }
.chips--small li { font-size: .8rem; padding: .15rem .65rem; background: var(--pink-soft); border-color: transparent; color: var(--pink-strong); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.6rem; }
.project { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.project h3 { font-size: 1.25rem; margin-bottom: .15em; }
.project__role { font-weight: 700; font-size: .9rem; color: var(--pink-strong); }
.project .chips { margin: auto 0 1rem; padding-top: .5rem; }
.project__link { font-weight: 700; }

/* Contact */
.contact { text-align: center; }
.contact__text { max-width: 56ch; margin-inline: auto; }
.contact .hero__actions { justify-content: center; }
.contact__email { margin-top: 1.4rem; font-weight: 600; }
.contact__email a { color: var(--text-strong); text-decoration: none; }
.contact__email a:hover { color: var(--pink-strong); }

.footer { padding: 2rem 0; text-align: center; font-size: .92rem; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { justify-self: start; }
  .hero__photo img { width: min(100%, 260px); height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
