:root {
  --coral: #DF4283;
  --ink: #14141f;
  --muted: #6b6b73;
  --paper: #fff;
  --display: "Abril Fatface", "Playfair Display", "Bodoni MT Black", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --script: "Pacifico", "Lobster", "Brush Script MT", cursive;
  --bubble: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --sun: #FFD84A;
  --outline: #1d1a21;
  --body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home-redesign {
  margin: 0;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.home-redesign a { color: inherit; text-decoration: none; }
.home-redesign a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page {
  max-width: 1120px;
  margin: clamp(16px, 5vw, 56px) auto;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 36px) clamp(24px, 3vw, 40px);
  background: var(--paper);
  border-radius: clamp(20px, 3vw, 36px);
}

/* Header */
.site-header { text-align: center; }

.logo {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(16px, 3vw, 32px);
  margin-top: 22px;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--coral); border-color: var(--coral); }

/* Hero */
.hero { text-align: center; padding: clamp(36px, 7vw, 76px) 0 clamp(32px, 5vw, 52px); }


.hero p {
  max-width: 36rem;
  margin: clamp(36px, 5vw, 60px) auto 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}


/* Project tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}




.site-footer {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .tag, .pill { transition: none; }
}

/* Wordmark: retro script, pink-to-yellow gradient, dark outline and drop shadow */
.hero h1 { margin: 0; }

.wordmark {
  position: relative;
  display: inline-block;
  padding: 0.1em 0.18em 0.2em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 10rem);
  line-height: 1.15;
  transform: rotate(-3deg);
}

.wordmark .wm-back,
.wordmark .wm-front { display: block; white-space: nowrap; }

.wordmark .wm-back {
  position: absolute;
  inset: 0.1em 0.18em 0.2em;
  color: var(--outline);
  -webkit-text-stroke: 0.16em var(--outline);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.06em 0 var(--outline);
  user-select: none;
}

.wordmark .wm-front {
  position: relative;
  background: linear-gradient(180deg, var(--coral) 8%, #f3769a 38%, var(--sun) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sparkle {
  position: absolute;
  width: clamp(18px, 3.2vw, 38px);
  height: auto;
  fill: var(--sun);
  pointer-events: none;
}
.sparkle.s1 { top: 4%; right: 6%; }
.sparkle.s2 { top: 36%; right: -3%; width: clamp(14px, 2.4vw, 28px); }
.sparkle.s3 { bottom: 6%; left: 4%; }
.sparkle.s4 { bottom: 22%; left: 12%; width: clamp(12px, 2vw, 22px); }

/* Let the gradient box cover the descender and side overhang of the script glyphs */
.wordmark .wm-front {
  padding: 0.05em 0.2em 0.4em;
  margin: -0.05em -0.2em -0.4em;
  background: linear-gradient(180deg, var(--coral) 6%, #f3769a 30%, var(--sun) 66%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* Brush-stroke buttons: shared by the intro button and the project tags */
:root {
  --brush-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 72' preserveAspectRatio='none'%3E%3Cpath d='M8 24C12 9 40 12 72 8S150 6 187 11C198 14 198 26 193 35C199 45 193 58 180 61C150 65 104 60 62 64S19 63 12 57C3 51 10 41 6 33C4 29 6 26 8 24Z' fill='%23DF4283'/%3E%3C/svg%3E");
  --brush-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 72' preserveAspectRatio='none'%3E%3Cpath d='M8 24C12 9 40 12 72 8S150 6 187 11C198 14 198 26 193 35C199 45 193 58 180 61C150 65 104 60 62 64S19 63 12 57C3 51 10 41 6 33C4 29 6 26 8 24Z' fill='%23FFD84A'/%3E%3C/svg%3E");
}

.pill,
.tag {
  display: inline-block;
  font-family: var(--bubble);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  background: var(--brush-pink) center / 100% 100% no-repeat;
  transform: rotate(-2deg);
  transition: transform .2s ease, color .2s ease;
}

.pill {
  margin-top: 26px;
  padding: 0.7em 2.1em 0.8em;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}


/* Project tiles: name on a brush-stroke tag above a rounded card */
.tiles { row-gap: clamp(22px, 3.5vw, 38px); }

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tag {
  max-width: 100%;
  padding: 0.6em 1.7em 0.7em;
  font-size: clamp(0.95rem, 1.9vw, 1.2rem);
  text-align: center;
}
.tiles li:nth-child(even) .tag { transform: rotate(2deg); }


.tile:hover .tag,
.tile:focus-visible .tag { color: var(--outline); background-image: var(--brush-sun); }

/* Keep the cards in a row level even when a long name wraps */
.tile {
  display: grid;
  grid-template-rows: var(--tag-row, auto) auto;
  justify-items: center;
  align-items: end;
  gap: 10px;
}
.card { align-self: stretch; }

.tag {
  padding: 0.6em 1.15em 0.7em;
  font-size: clamp(0.85rem, 1.55vw, 1.05rem);
}

@media (min-width: 901px) and (max-width: 1060px) {
  .tiles { --tag-row: 3.6rem; }
}

@media (max-width: 480px) {
  .tag { font-size: 1.1rem; }
}

/* Round project cards: pink offset ring at the bottom right */
.tiles { column-gap: clamp(22px, 3.2vw, 40px); row-gap: clamp(30px, 4.5vw, 52px); }

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: clamp(7px, 1.2vw, 14px) clamp(7px, 1.2vw, 14px) 0 var(--coral);
  transition: transform .25s ease, box-shadow .25s ease;
}



.card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.tile:hover .card,
.tile:focus-visible .card { transform: translateY(-4px); }
.tile:hover .card,
.tile:focus-visible .card { box-shadow: clamp(7px, 1.2vw, 14px) clamp(7px, 1.2vw, 14px) 0 var(--sun); }

/* Illustration cover: artwork sits small on a white canvas, so tint the circle and zoom in */
.card-art {
  overflow: hidden;
  background: #ffefb0;
}
.card-art img {
  background: transparent;
  mix-blend-mode: multiply;
  transform: translateY(9%) scale(1.55);
}

/* Animation cover: viewport screenshot on a dark grid, scaled in so the feet and arms stay inside the circle */
.card-dark {
  overflow: hidden;
  background: #2c2c2c;
}
.card-dark img {
  background: #2c2c2c;
  transform: scale(0.9);
}

/* Project titles sit below the card, clear of the offset ring */
.tile {
  grid-template-rows: auto var(--tag-row, auto);
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
}



/* Phones: keep all five menu items on one line */
@media (max-width: 480px) {
  .site-nav { font-size: 0.74rem; gap: 8px 14px; letter-spacing: 0.02em; }
}

/* 3D menu item: hover (or keyboard focus) lists the 3D projects */
.site-header { position: relative; z-index: 30; }

.nav-item { position: relative; }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  display: none;
  min-width: 250px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  transform: translateX(-50%);
}
.nav-menu::before {
  content: "";
  position: absolute;
  inset: 14px 0 0;
  z-index: -1;
  border: 2px solid var(--coral);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--coral);
}
.nav-menu li { padding: 0 8px; }
.nav-menu li:first-child { padding-top: 8px; }
.nav-menu li:last-child { padding-bottom: 8px; }

.nav-menu a {
  display: block;
  padding: 0.5em 1em;
  border-bottom: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  transition: background .2s ease;
}
.home-redesign .nav-menu a:hover,
.home-redesign .nav-menu a:focus-visible {
  border-color: transparent;
  background: var(--sun);
  color: var(--outline);
}


/* "3D" is a button that only opens the project list: hover on computers, tap or click anywhere */
.site-nav .nav-trigger {
  display: block;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.site-nav .nav-trigger:hover,
.site-nav .nav-trigger.is-current,
.site-nav .nav-item.is-open > .nav-trigger { color: var(--coral); border-color: var(--coral); }
.site-nav .nav-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.nav-item.is-open > .nav-menu { display: block; }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-menu { display: block; }
}

/* Phones: show the list as a panel under the whole menu so it stays on screen */
@media (max-width: 600px) {
  .site-nav { position: relative; }
  .nav-item { position: static; }
  .nav-menu {
    left: 50%;
    width: min(88vw, 340px);
    min-width: 0;
  }
  .nav-menu a { white-space: normal; }
}

