:root {
  --bg: #1b1b1b;
  --ink: #ffffff;
  --muted: #b3b3b3;
  --accent: #e0592f;
  --accent-2: #8a3a28;
  --card: #232323;
  --line: #333333;
  --glow: rgba(176, 66, 40, 1);
  --cream: #f4ead7;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}
/* Fixed layer instead of background-attachment: fixed, which iOS Safari renders zoomed-in */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
    url("/static/earth.webp") center bottom / cover no-repeat;
}
img { max-width: 100%; }
@font-face {
  font-family: "Nescafe Sans";
  src: url("/static/fonts/NescafeSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Better Times";
  src: url("/static/fonts/BetterTimes.otf") format("opentype");
  font-display: swap;
}
/* Brush script for headings only; small text stays in Poppins for legibility */
h1, h2, .display-font { font-family: "Better Times", "Poppins", cursive; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
p { line-height: 1.6; }
a { color: var(--accent); }
button, .btn {
  font: inherit; font-weight: 500; cursor: pointer; border: 0; border-radius: 999px;
  padding: .75rem 1.4rem; background: var(--ink); color: var(--bg); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem; transition: transform .15s, opacity .15s, background .15s;
}
@media (hover: hover) { button:hover, .btn:hover { transform: translateY(-1px); } }
button, .btn { min-height: 44px; justify-content: center; } /* comfortable touch target */
button:disabled { opacity: .4; cursor: default; transform: none; }
.btn.ghost, button.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .5); }
.btn.accent, button.accent { background: var(--accent); color: #fff; }

/* Photo frame used on display + view pages: Nescafe red with a cream mat, gold keyline and logo footer */
.frame {
  position: relative; padding: 16px 16px 92px; border-radius: 10px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #e3202b 0%, #b3121b 60%, #8f0d15 100%);
  box-shadow:
    0 0 0 1px rgba(255, 214, 140, .55),
    0 0 0 5px rgba(0, 0, 0, .25),
    0 30px 60px -20px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}
.frame::before {
  content: ""; position: absolute; inset: 6px; border-radius: 6px; pointer-events: none;
  border: 1px solid rgba(255, 214, 140, .6);
}
.frame img {
  display: block; width: 100%; height: auto; border-radius: 3px;
  border: 6px solid var(--cream); box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 46px; height: 26px;
  background: url("/static/logo.png") center / contain no-repeat;
}
.frame .caption {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-family: "Nescafe Sans", "Poppins", sans-serif; font-weight: 700; font-size: .9rem; line-height: 1;
  letter-spacing: .02em; color: rgba(255, 233, 190, .95);
}
/* MomentX logo: gold-to-orange wordmark */
.brand {
  display: inline-block;
  font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffc94a 0%, #f5a623 55%, #e07b1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Fullscreen toggle (see fullscreen.js) */
.fs-btn {
  position: fixed; top: 12px; right: 12px; z-index: 9999;
  width: 44px; padding: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
}
.fs-btn.is-fs { opacity: .25; }
.fs-btn.is-fs:hover, .fs-btn.is-fs:focus-visible { opacity: 1; }
.corner-flourish { color: var(--accent); opacity: .8; }
