/* ================== THEME ================== */
:root {
  --bg: #f8f8f8;
  --text: #333;
  --accent: #FADADD;   /* blush pink */
  --muted: #777;
  --card-bg: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --radius: 12px;
  --gap: 12px;
  --link: #0055ff;

  /* quilt controls */
  --diamond: 140px;     /* spacing between stitch lines */
  --quilt-opacity: .25; /* stitched overlay strength */
}

* {
  box-sizing: border-box;
}

/* ================== BASE ================== */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

h2 {
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: .5rem;
  margin: 2rem auto 1rem;
  max-width: 800px;
}

/* ================== HEADER / NAV ================== */
header {
  background: var(--accent);        /* full pink header */
  color: var(--text);
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}

/* white “browser strip” */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  background: #fff;
  margin: 0 12px 12px;             /* pink shows on the sides */
  padding: .35rem 0;
}

.marquee span {
  display: inline-block;
  padding: .4rem 0;
  animation: slide 18s linear infinite;
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 0.25px;
  color: #222;
}

@keyframes slide {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* nav tabs as white chips on pink */
nav {
  margin-top: .25rem;
}

nav a {
  display: inline-block;
  padding: .35rem .7rem;
  margin: 0 .5rem;
  color: #222;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #222;
  background: #fff;                 /* chip background */
  box-shadow: 2px 2px 0 #222;
  transition: transform .12s ease, box-shadow .12s ease;
}

nav a:hover,
nav a:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #222;
  outline: none;
}

/* ================== LAYOUT ================== */
section {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* caption rail on the left */
.project {
  margin-top: 2rem;
}

.project-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.project-aside {
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  max-width: 28ch;
}

.project-caption {
  font-family: "Purple Purse", monospace;
}

.project-aside.caption-only .project-caption {
  font-weight: 600;
  font-size: 16px;
  margin-top: 0;
}

/* sticky caption on larger screens */
@media (hover: hover) {
  .project-aside { position: sticky; top: 6rem; }
}

/* mobile: stack columns */
@media (max-width: 820px) {
  .project-wrap { grid-template-columns: 1fr; }
  .project-aside { position: static; border-left-width: 4px; }
}

/* ================== GALLERY & CARDS ================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  align-items: start;
}

/* retro 3-column variant */
.gallery--retro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 1100px) {
  .gallery--retro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gallery--retro { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
  margin: 0;
}

.card:hover { transform: translateY(-2px); }

.card img,
.card video {
  display: block;
  width: 100%;
  height: auto;
}

/* retro card styling layer */
.retro-card {
  background: #fff;
  border: 2px solid #fabfc5;
  border-radius: 6px;
  padding: 8px;
  transition: transform .12s ease;
}
.retro-card:hover { transform: translate(-1px, -1px); }
.retro-card img,
.retro-card video {
  border-radius: 0;
  background: #f4f4f5;
}

/* video feels like an image tile */
.hover-video {
  width: 100%;
  height: auto;
  background: #f4f4f5;
  border-radius: 12px;
}

/* optional play hint */
@media (hover: hover) {
  .card:hover::after {
    content: "▶";
    position: absolute;
    top: 10px; right: 10px;
    font-size: 14px;
    opacity: .7;
  }
}

/* ================== LINKS / HELPERS / FOOTER ================== */
a { color: var(--link); text-decoration: underline; }
a:hover { text-decoration-thickness: 3px; }
.muted { color: var(--muted); }

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
  background: #eee;
  margin-top: 2rem;
}

/* ================== SPARKLE TRAIL ================== */
.spark {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  user-select: none;
  font-size: 14px; line-height: 1;
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
  animation: sparkleFloat 700ms ease-out forwards;
  will-change: transform, opacity;
  color: var(--accent);
}
@keyframes sparkleFloat {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -90%) scale(0.7) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spark { display: none; }
}

/* ================== QUILTED BACKGROUND OVERLAY ================== */
body { position: relative; }
header, main, footer { position: relative; z-index: 1; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--quilt-opacity);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'>\
  <defs>\
    <filter id='emb' x='-20%' y='-20%' width='140%' height='140%'>\
      <feDropShadow dx='0.5' dy='0.5' stdDeviation='0.25' flood-color='%23d27' flood-opacity='0.14'/>\
      <feDropShadow dx='-0.5' dy='-0.5' stdDeviation='0.25' flood-color='%23ffffff' flood-opacity='0.35'/>\
    </filter>\
    <style>\
      .s{ stroke:%23f7c9d3; stroke-width:1.3; stroke-linecap:round; stroke-dasharray:8 10; fill:none; }\
    </style>\
  </defs>\
  <g class='s' filter='url(%23emb)'>\
    <path d='M-8 72 L72 -8'/>\
    <path d='M-8 -8 L72 72'/>\
  </g>\
</svg>");
  background-size: var(--diamond) var(--diamond);
  background-attachment: fixed;
}

/* ================== NICE TOUCHES ================== */
h1 {
  font-family: "Press Start 2P", system-ui, sans-serif;
  letter-spacing: .5px;
  font-size: 30px;
}

.intro {
  font-family: "Purple Purse", monospace;
  font-weight: 200;
  font-size: 16px;
  margin-top: 0;
}

/* Intro panel */
.intro {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #222;
  box-shadow: 4px 4px 0 #222;
  border-radius: 6px;
}

.intro h2 {
  margin: 0 0 .25rem;
  border: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Feature cards grid */
.section { padding: 2rem 1rem; max-width: 1100px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  place-items: start;
  gap: .35rem;
  min-height: 160px;
}
.feature-card h3 { margin: 0; font-weight: 800; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); }

.feature-emoji {
  font-size: 28px; line-height: 1;
  background: #fff5f7;
  border: 2px solid #fabfc5;
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: 2px 2px 0 #222;
}

.tagline {
  margin: .25rem 0 0;
  font-family: "VT323", monospace;
  font-size: 22px;
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.email-line { margin: .75rem 0; font-weight: 600; }
.email-obf { letter-spacing: .2px; }

.feature-caption {
  margin-top: .35rem;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* === REALLY bigger bubble + label (strong override) === */

/* Bubble text */
.sticker .bubble{
  font-family: "VT323", monospace;
  font-size: clamp(14px, 2.2vw, 18px) !important;  /* was tiny; now ~24–32px */
  line-height: 1.2 !important;
  padding: 12px 14px !important;
  max-width: 30ch !important;
  z-index: 2;
}

/* Scale the tail with the bigger bubble */
.sticker .bubble::after{      /* outline tail (pointing LEFT; swap to right if needed) */
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 14px solid #111;
}
.sticker .bubble::before{     /* inner white fill */
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 13px solid #fff;
}

/* Scribble label under the photo */
.sticker .scribble{
  font-size: clamp(14px, 2.2vw, 18px) !important;  /* noticeably larger */
  line-height: 24px !important;
  padding: 0 12px !important;
}

/* === Bigger door titles + captions (home) === */
.door-stack .door{
  grid-template-columns: 44px 1fr;     /* wider emoji lane */
  column-gap: 14px;
  min-height: 80px;
  padding: 12px 14px;
}

/* emoji gets a little larger too */
.door-stack .door .door-emoji{
  font-size: 28px;
  line-height: 1;
  padding: 6px 8px;
}

/* title (top line) */
.door-stack .door .door-title{
  font-size: clamp(18px, 2.2vw, 22px) !important;
  line-height: 1.15;
  font-weight: 800;
}

/* caption (second line) */
.door-stack .door .door-sub{
  font-size: clamp(14px, 1.8vw, 16px) !important;
  line-height: 1.25;
  margin-top: 4px;
  max-width: 36ch;            /* keep it to 1–2 lines */
  color: #555;
}

/* mobile: keep it comfy */
@media (max-width: 640px){
  .door-stack .door{
    min-height: 84px;
    grid-template-columns: 40px 1fr;
  }
  .door-stack .door .door-emoji{ font-size: 26px; }
}

