@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap");

:root {
  --ink: #17151a;
  --muted: #6b6570;
  --paper: #ffffff;
  --primary: #f8a4a4;
  --blossom: #eebcba;
  --bold: #e85b8a;
  --blush: #fadadd;
  --line: #f6dde0;
  --max-width: 840px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .site-name, .button, .eyebrow {
  font-family: "Poppins", -apple-system, "Segoe UI", Arial, sans-serif;
}

header {
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

nav .site-name {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .site-name::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  background: var(--primary);
  transform: rotate(8deg);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bold);
  margin: 0 0 0.75rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 320px;
}

.hero-visual {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
}

.hero-visual .block {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 14px;
  transform: rotate(4deg);
}

.hero-visual .card {
  position: absolute;
  inset: 0;
  background: var(--blush);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual .card img {
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-visual .card .initials {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--bold);
}

.button {
  position: relative;
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(232, 91, 138, 0.25);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button.secondary:hover {
  box-shadow: 0 6px 14px rgba(23, 21, 26, 0.15);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-stack .card {
  padding: 1.75rem;
}

.card-stack ul {
  margin-top: 0.5rem;
}

.card {
  border: 1px solid var(--blossom);
  border-radius: 14px;
  padding: 1.4rem;
  background: var(--blush);
}

.card h3 {
  margin-top: 0;
  font-family: "Poppins", sans-serif;
}

.card .icon {
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 0.5rem;
}

.hobby-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hobby-head .icon {
  margin: 0;
}

.hobby-head h3 {
  margin: 0 0 0.35rem;
}

.hobby-head p {
  margin: 0;
}

.gallery {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.gallery-item {
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
  border-radius: 10px;
}

img.gallery-item {
  object-fit: contain;
  display: block;
}

img.gallery-item.photo {
  object-fit: cover;
  border-radius: 10px;
}

.syrup-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.flip-card {
  width: 130px;
  height: 150px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backface-visibility: hidden;
}

.flip-card-front {
  background: var(--paper);
  border: 2px solid var(--blossom);
}

.flip-card-front .flip-icon {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.flip-card-front h4 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  line-height: 1.25;
}

.flip-card-front .flip-hint {
  margin: 0.4rem 0 0;
  font-size: 0.65rem;
  color: var(--muted);
}

.flip-card-back {
  background: var(--bold);
  color: var(--paper);
  transform: rotateY(180deg);
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-y: auto;
}

.flip-card-back strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
}

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  border: 2px dashed var(--blossom);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  box-sizing: border-box;
}

.card-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bold);
  margin: 0 0 0.5rem;
}

.role {
  margin-bottom: 1.75rem;
}

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.role-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.role-company {
  color: var(--muted);
  font-weight: 500;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}

.role-dates {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.role p {
  margin: 0.5rem 0 0;
}

main ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

main li {
  margin-bottom: 0.4rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 1.5rem;
}

footer a {
  color: var(--muted);
}

.eyebrow::before {
  content: "🍓 ";
}

footer p::before {
  content: "🍓 ";
}

.hero-visual .sticker {
  position: absolute;
  bottom: -14px;
  right: -14px;
  font-size: 2.2rem;
  transform: rotate(-12deg);
  filter: drop-shadow(0 4px 6px rgba(23, 21, 26, 0.2));
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--blush);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--blush);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--bold);
}

html {
  scrollbar-color: var(--primary) var(--blush);
  scrollbar-width: thin;
}

/* Edge sparkles: small stars pinned to the corners of a button/card,
   invisible until hover, with a distinct animation per module type. */
.edge-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  line-height: 1;
  opacity: 0;
  transform: scale(0.3) rotate(0deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition-delay: var(--delay, 0ms);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
}

.edge-sparkle.corner-tl { top: -10px; left: -10px; }
.edge-sparkle.corner-tr { top: -10px; right: -10px; }
.edge-sparkle.corner-bl { bottom: -10px; left: -10px; }
.edge-sparkle.corner-br { bottom: -10px; right: -10px; }

/* Buttons: bigger, bouncier stars */
.sparkle-button {
  font-size: 1.1rem;
}

.button:hover .sparkle-button {
  opacity: 1;
  transform: scale(1) rotate(15deg);
  animation: twinkle-pop 850ms ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.sparkle-button.burst {
  animation: sparkle-burst-button 550ms ease-out forwards !important;
}

@keyframes twinkle-pop {
  0%, 100% { transform: scale(1) rotate(15deg); }
  50% { transform: scale(1.4) rotate(-10deg); }
}

@keyframes sparkle-burst-button {
  0% { transform: scale(1) rotate(15deg); opacity: 1; }
  45% { transform: scale(1.9) rotate(90deg); opacity: 1; }
  100% { transform: scale(0.3) rotate(210deg); opacity: 0; }
}

/* Spin: for links out to other places (email, social) - a full lazy rotation */
.sparkle-spin {
  font-size: 1.1rem;
}

.button:hover .sparkle-spin {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: spin-twinkle 1100ms linear infinite;
  animation-delay: var(--delay, 0ms);
}

.sparkle-spin.burst {
  animation: sparkle-burst-spin 600ms ease-out forwards !important;
}

@keyframes spin-twinkle {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(360deg); }
}

@keyframes sparkle-burst-spin {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.3) rotate(360deg) translateY(-20px); opacity: 0; }
}

/* Inline PDF viewer, so writing samples open in-page instead of
   triggering the visitor's browser download/PDF-handling setting. */
.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 26, 0.65);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pdf-modal.open {
  display: flex;
}

.pdf-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  max-height: 850px;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pdf-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 480px) {
  nav ul {
    width: 100%;
    gap: 0.6rem 1rem;
  }

  .hero {
    flex-direction: column-reverse;
  }

  .hero-visual {
    width: 170px;
    height: 170px;
  }

  .pdf-modal {
    padding: 0.75rem;
  }
}
