@font-face {
  font-family: 'Fredoka';
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/fredoka.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/nunito.woff2') format('woff2');
}

:root {
  --paper: #0d2038;
  --paper-2: #123058;
  --ink: #fffbda;
  --ink-soft: #b9c6dc;
  --red: #a90e02;
  --red-accent: #ff6a4d;
  --red-ink: #fffbda;
  --card-bg: #123058;
  --card-border: rgba(255, 251, 218, 0.14);
  --shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.55);
  --focus: #ff6a4d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: 'Fredoka', ui-rounded, sans-serif;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.hero-visual {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}
.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--red-ink);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ---------- Grid ---------- */
.grid-section { padding: 8px 0 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card .thumb {
  position: relative;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-body h3 { font-size: 1.08rem; }
.card-body p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  flex: 1;
}
.card-foot { margin-top: 4px; }
.mini-btn {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--red-accent);
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 9, 6, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-card {
  background: var(--card-bg);
  border-radius: 22px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.lightbox-card.simple { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 720px) {
  .lightbox-card.simple { grid-template-columns: 1fr; }
}
.lightbox-card .img-pane { background: var(--paper-2); display: flex; align-items: center; }
.lightbox-card .img-pane img { width: 100%; }
.lightbox-info {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox-info h3 { font-size: 1.4rem; }
.lightbox-info p.blurb { color: var(--ink-soft); margin: 0; }
.lightbox-info label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.lightbox-info textarea {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  min-height: 76px;
  resize: vertical;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: #2b0d06;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 17px;
  cursor: pointer;
}

.btn {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--red); color: var(--red-ink); box-shadow: var(--shadow); }

/* sheet mode */
.sheet-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 22px; }
.sheet-block h4 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-accent);
  margin: 0 0 8px;
}
.sheet-block img { border-radius: 14px; background: var(--paper-2); }
.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sheet-footer textarea { flex: 1; min-width: 220px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer {
  padding: 24px 0 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
