/* Bricolage Grotesque (latin subset), self-hosted. Variable: weight 400-800, width 75-100. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbf7fc;
  --ink: #261a38;
  --ink-soft: #5b4e6e;
  --blush: #f6d9e8;
  --fuchsia: #c0267f;
  --iris: #6e5be0;
  --iris-tint: #dfdaf8;
  --mist: #e7ddf1;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --radius-lg: 28px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Sections receive focus from nav.js after a jump link; no ring needed there. */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Header ------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.site-header nav { margin-right: auto; }
.site-header nav ul { display: flex; gap: 1.75rem; }
.site-header nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  background: linear-gradient(var(--fuchsia), var(--fuchsia)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.2s ease;
}
.site-header nav a:hover { background-size: 100% 2px; }

.pill {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill--solid { background: var(--ink); color: var(--paper); }
.pill--solid:hover { background: var(--fuchsia); border-color: var(--fuchsia); }

/* Hero --------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.hero__name { grid-column: 1 / -1; position: relative; }

/* Pink shapes live on the name side: a large circle behind the name, a solid dot and a ring. */
.hero__name::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: clamp(-4rem, -5vw, -2rem);
  left: clamp(-4rem, -6vw, -2rem);
  width: clamp(15rem, 40vw, 31rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
}

.hero__name::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -1.25rem;
  left: clamp(11rem, 33vw, 27rem);
  width: clamp(2.25rem, 4.5vw, 3.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fuchsia);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0.25rem;
  left: clamp(11rem, 30vw, 24rem);
  width: clamp(1.5rem, 3vw, 2.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--iris);
}

h1 {
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  font-weight: 800;
  font-variation-settings: 'wdth' 80;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.hero__intro {
  grid-column: 1 / -1;
  max-width: 34rem;
  display: grid;
  gap: 1rem;
}

.lead {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.hero__intro p:not(.lead) { color: var(--ink-soft); }

/* Portrait: an arch with a flat blush shape offset behind it. */

.portrait {
  position: relative;
  grid-column: 1 / -1;
  width: min(100%, 19rem);
  margin: 0 0 0.75rem;
}

.portrait::before {
  content: '';
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border-radius: 999px 999px 28px 28px;
  background: var(--blush);
}

.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 46% 50%;
  border: 1.5px solid var(--ink);
  border-radius: 999px 999px 28px 28px;
  background: var(--mist);
}

/* At a glance ------------------------------------------------- */

.facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.facts li {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: #fff;
  font-weight: 550;
}

.facts li:nth-child(2) { background: var(--blush); }
.facts li:nth-child(3) { background: var(--iris-tint); }

/* Sections ----------------------------------------------------- */

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 1.5px solid var(--mist);
}

.block > h2,
.contact h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 750;
  font-variation-settings: 'wdth' 88;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.skills h3 { margin-bottom: 0.9rem; }

ul.ticks { display: grid; gap: 0.6rem; }

ul.ticks li {
  position: relative;
  padding-left: 1.5rem;
}
ul.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--fuchsia);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Process */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

/* The line the status pills sit on. */
.flow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 1rem;
  border-top: 2px dashed var(--iris);
  opacity: 0.45;
}

.flow li { display: grid; gap: 0.85rem; align-content: start; }
.flow p { color: var(--ink-soft); max-width: 18rem; }

.status {
  position: relative; /* paints above the dashed line behind it */
  justify-self: start;
  padding: 0.3rem 0.95rem;
  border-radius: 99px;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1.5px solid var(--ink);
}
.status--received { background: var(--mist); }
.status--logged { background: var(--blush); }
.status--coordinated { background: var(--iris-tint); }
.status--resolved { background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }

/* Timeline */

.timeline { display: grid; }

.timeline > li {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  column-gap: 2rem;
}

.timeline__when {
  padding-top: 0.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.timeline > li:first-child .timeline__when { color: var(--fuchsia); }

.timeline__what {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--mist);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.timeline > li:last-child .timeline__what { padding-bottom: 0; border-left-color: transparent; }
.timeline__what::before {
  content: '';
  position: absolute;
  left: -0.55rem;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
}
.timeline > li:first-child .timeline__what::before {
  background: var(--fuchsia);
  border-color: var(--fuchsia);
}

.org { color: var(--ink-soft); margin-top: 0.1rem; }

.timeline__what ul { margin-top: 0.9rem; display: grid; gap: 0.5rem; max-width: 40rem; }
.timeline__what li { position: relative; padding-left: 1.1rem; }
.timeline__what li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ink-soft);
}

/* Education */

.edu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.edu h3 { max-width: 24rem; }

/* Contact ------------------------------------------------------ */

.contact {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: clamp(2rem, 5vw, 4rem) var(--gutter);
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 36px;
}

@media (min-width: 76rem) {
  .contact { margin-inline: auto; }
}

.contact h2 { max-width: 34rem; margin-bottom: 1rem; }
.contact > p { color: #d9cfe6; }

.contact__mail {
  display: inline-block;
  margin: 1.75rem 0 2rem;
  max-width: 100%;
  color: var(--blush);
  font-size: clamp(1.15rem, 4.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--fuchsia);
}
.contact__mail:hover { text-decoration-color: var(--blush); }
.contact :focus-visible { outline-color: var(--blush); }

.contact__list { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.contact__list dt { font-size: 0.9rem; color: #d9cfe6; }
.contact__list dd { font-weight: 600; font-size: 1.1rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Responsive ---------------------------------------------------- */

@media (min-width: 56rem) {
  .hero__name { grid-column: 1 / 9; grid-row: 1; }
  .hero__intro { grid-column: 1 / 8; grid-row: 2; align-self: start; }
  .portrait { grid-column: 9 / -1; grid-row: 1 / 3; width: 100%; align-self: center; }
  .facts { grid-row: 3; }
}

@media (max-width: 55.99rem) {
  .skills { grid-template-columns: 1fr; gap: 2rem; }
  .edu { grid-template-columns: 1fr; }

  /* Process becomes a plain vertical list. */
  .flow { grid-template-columns: 1fr; gap: 1.75rem; }
  .flow::before { display: none; }
  .flow li { gap: 0.4rem; }
  .flow p { max-width: none; }
}

@media (max-width: 47.99rem) {
  .site-header nav { display: none; }
  .site-header .pill { margin-left: auto; }

  .timeline > li { grid-template-columns: 1fr; row-gap: 0.4rem; }
  .timeline__when { padding-left: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header nav a,
  .pill { transition: none; }
}

/* 404 page ------------------------------------------------------ */

.notfound {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: var(--gutter);
  text-align: center;
}
.notfound h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.notfound p { color: var(--ink-soft); max-width: 26rem; }
.notfound .pill { margin-top: 0.5rem; }
