@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
}

:root {
  --cream: #FFF8EC;
  --ink: #141414;
  --coral: #FF6B5A;
  --blue: #3D5AFE;
  --lime: #C6F432;
  --lilac: #C9B6FF;
  --white: #FFFFFF;
  --muted: #5A544B;

  /* Derived tokens (light) */
  --on-accent: #141414;
  --sticker-neutral: #FFFFFF;
  --focus-ring: #3D5AFE;
  --link-accent: #3D5AFE;
  --dots: rgba(20, 20, 20, 0.11);

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.7;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(var(--dots) 1.25px, transparent 1.25px);
  background-size: 28px 28px;
}

/* Accessibility: Skip Link & Focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 1000;
  background-color: var(--lime);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Navigation */
.site-header {
  background-color: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  background-color: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(1px);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.site-nav a:hover {
  background-color: var(--white);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.site-nav a[aria-current="page"] {
  background-color: var(--lime);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--on-accent);
}

/* Main Content */
main {
  flex: 1;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.section {
  margin-top: clamp(4rem, 10vw, 7rem);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

h2,
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background-color: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.wavy-word {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.wavy-underline {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 12px;
  overflow: visible;
  pointer-events: none;
}

.hero-intro {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 2rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Decorative Hero Shapes */
.hero-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-shape-circle {
  top: 0;
  right: 4%;
  width: 84px;
  height: 84px;
}

.hero-shape-squiggle {
  top: 44%;
  right: 2%;
  width: 140px;
  height: 44px;
}

.hero-shape-squiggle path {
  stroke: var(--blue);
}

.hero-shape-star {
  bottom: 4%;
  right: 10%;
  width: 76px;
  height: 76px;
}

.hero-shape-blob {
  top: 14%;
  right: 20%;
  width: 68px;
  height: 68px;
}

@media (max-width: 719px) {
  .hero-shape {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.btn-primary {
  background-color: var(--coral);
  color: var(--on-accent);
}

.btn-secondary {
  background-color: transparent;
}

.btn:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Currently Strip */
.currently-strip {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

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

.currently-card {
  background-color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.25rem 1.4rem;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.currently-card:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 var(--ink);
}

.currently-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-accent);
  padding: 0.15rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 0.55rem;
  background-color: var(--lime);
}

.currently-card:nth-child(2) .currently-label {
  background-color: var(--lilac);
}

.currently-card:nth-child(3) .currently-label {
  background-color: var(--coral);
}

.currently-value {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 var(--ink);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(20, 20, 20, 0.2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-link:hover {
  color: var(--link-accent);
}

/* Feature list inside project card */
.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.35rem;
}

/* Sticker Tags */
.tag,
.sticker-list li {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-accent);
  background-color: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
}

.card:nth-child(1) .tag {
  background-color: var(--lime);
  transform: rotate(-3deg);
}

.card:nth-child(2) .tag {
  background-color: var(--lilac);
  transform: rotate(2deg);
}

.card:nth-child(3) .tag {
  background-color: var(--coral);
  transform: rotate(-1deg);
}

.sticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sticker-list li {
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
}

.sticker-list li:nth-child(3n + 1) {
  background-color: var(--lime);
  transform: rotate(-3deg);
}

.sticker-list li:nth-child(3n + 2) {
  background-color: var(--lilac);
  transform: rotate(2deg);
}

.sticker-list li:nth-child(3n) {
  background-color: var(--sticker-neutral);
  transform: rotate(-1deg);
}

.sticker-list-warm li:nth-child(3n + 1) {
  background-color: var(--coral);
  transform: rotate(2deg);
}

.sticker-list-warm li:nth-child(3n + 2) {
  background-color: var(--lime);
  transform: rotate(-2deg);
}

.sticker-list-warm li:nth-child(3n) {
  background-color: var(--lilac);
  transform: rotate(-1deg);
}

/* Find Me / Contact Cards */
.find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 1.5rem;
}

.find-card {
  background-color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.75rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.find-card:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 var(--ink);
  background-color: var(--lime);
  color: var(--on-accent);
}

.find-card-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.find-card:hover .find-card-label {
  color: var(--on-accent);
}

.find-card-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Prose / About blocks */
.prose {
  background-color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  max-width: 880px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.closing-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
}

/* 404 Box */
.not-found-box {
  background-color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 680px;
}

/* Footer */
.site-footer {
  background-color: var(--cream);
  border-top: 3px solid var(--ink);
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-copy,
.footer-links {
  margin: 0;
  max-width: none;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--link-accent);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .currently-card:hover,
  .find-card:hover,
  .btn:hover,
  .btn:active,
  .site-nav a:hover {
    transform: none;
  }
}
