/* =========================================================
   Image Happy Birthday — Celebration Studio design system
   Mobile-first · Fast · SEO-friendly pure static CSS
   ========================================================= */

:root {
  --rose: #e11d48;
  --rose-deep: #be123c;
  --rose-soft: #fff1f2;
  --gold: #f59e0b;
  --gold-soft: #fffbeb;
  --coral: #fb7185;
  --ink: #1c1917;
  --ink-2: #44403c;
  --mute: #78716c;
  --line: #e7e5e4;
  --bg: #fffbfa;
  --card: #ffffff;
  --ok: #059669;
  --sky: #0ea5e9;
  --violet: #7c3aed;
  --max: 1100px;
  --measure: 42rem;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(28, 25, 23, 0.07);
  --shadow-lg: 0 18px 50px rgba(190, 18, 60, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans", sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
h1, h2, h3, h4 {
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.55rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }
p { margin: 0 0 1rem; color: var(--ink-2); }
ul, ol { padding-left: 1.2rem; color: var(--ink-2); }
li { margin: 0.35rem 0; }
strong { color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--rose), var(--coral) 55%, var(--gold));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
  flex-shrink: 0;
}
.logo span { display: block; line-height: 1.15; }
.logo small {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
  box-shadow: var(--shadow);
}
.site-nav.open { display: block; }
.site-nav a {
  display: block;
  padding: 0.7rem 0.5rem;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--rose-soft);
  color: var(--rose-deep);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.15rem;
    align-items: center;
  }
  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.92rem;
  }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.article {
  max-width: 760px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--mute);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose-deep); }
.breadcrumb span { color: var(--ink-2); }

.hero {
  background:
    radial-gradient(ellipse 80% 70% at 10% 0%, rgba(251, 113, 133, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(245, 158, 11, 0.14), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 2rem 1rem 2.25rem;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--rose-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}
.hero h1 { margin-bottom: 0.6rem; }
.hero-lead {
  font-size: 1.08rem;
  max-width: 40rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(225, 29, 72, 0.36); }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--coral); color: var(--rose-deep); }
.btn-copy {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  border: 1px solid #fecdd3;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-copy.copied {
  background: #d1fae5;
  color: var(--ok);
  border-color: #a7f3d0;
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #fecdd3;
}
.card-emoji {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  background: var(--rose-soft);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mute);
}
.card .meta {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.25rem 0 1rem;
  flex-wrap: wrap;
}
.section-title h2 { margin: 0; }
.section-title a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Comment / wish list items ---------- */
.wish-list,
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.wish-item,
.comment-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.03);
}
.wish-item p,
.comment-item p {
  margin: 0;
  flex: 1;
  color: var(--ink);
  font-size: 0.98rem;
}
.wish-item .num,
.comment-item .num {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 1.6rem;
}

/* ---------- Image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--rose-soft);
}
.gallery-item figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.gallery-item .cap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ---------- TOC / sticky tools ---------- */
.toc {
  background: linear-gradient(135deg, var(--rose-soft), var(--gold-soft));
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 1.75rem;
}
.toc h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}
.toc a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
}
.toc a:hover { color: var(--rose-deep); }

.stat-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
@media (min-width: 700px) {
  .stat-bar { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 1.35rem;
  color: var(--rose-deep);
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.78rem;
  color: var(--mute);
  font-weight: 600;
}

/* ---------- Fact table / bio ---------- */
.fact-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  box-shadow: var(--shadow);
}
.fact-table th,
.fact-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.fact-table th {
  width: 38%;
  background: var(--rose-soft);
  color: var(--ink);
  font-weight: 700;
}
.fact-table tr:last-child th,
.fact-table tr:last-child td { border-bottom: 0; }

.profile-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .profile-hero {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}
.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--rose-soft);
}
.profile-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--rose);
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-2);
}

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--rose);
  background: var(--rose-soft);
  padding: 0.95rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}
.callout.gold {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}
.callout p:last-child { margin-bottom: 0; }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.site-footer a {
  color: #a8a29e;
  text-decoration: none;
  display: block;
  padding: 0.22rem 0;
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fda4af; }
.footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.footer-brand span { color: #fb7185; }
.footer-note {
  font-size: 0.88rem;
  color: #a8a29e;
  max-width: 28rem;
  line-height: 1.55;
}
.footer-bottom {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #292524;
  font-size: 0.82rem;
  color: #78716c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* ---------- Home feature strip ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
}
.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.pill:hover {
  border-color: #fecdd3;
  color: var(--rose-deep);
  background: var(--rose-soft);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rose-deep);
  background: var(--rose-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.08rem; color: var(--ink-2); }

/* Search box on home */
.search-box {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0.5rem 0 0;
}
.search-box input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  background: #fff;
}
.search-box input:focus {
  outline: 2px solid #fecdd3;
  border-color: var(--coral);
}

/* Toast */
.copy-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 200;
  transition: transform 0.25s var(--ease);
  box-shadow: var(--shadow-lg);
}
.copy-toast.show { transform: translateX(-50%) translateY(0); }

/* Page intro image */
.page-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.page-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

@media print {
  .site-header, .site-footer, .btn-copy, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
