/* The Pop-Tarts Shrine · poptarts.co.uk */

:root {
  --night: #1a0c28;
  --night-2: #24113a;
  --night-3: #33194d;
  --night-deep: #12081c;
  --line: rgba(255, 201, 77, 0.18);
  --gold: #ffc94d;
  --gold-soft: #ffe6a6;
  --gold-ink: #9a5a17;
  --frosting: #ff6fae;
  --frosting-deep: #e0428c;
  --frosting-ink: #c21f6c;
  --crust: #e7b071;
  --crust-dark: #b8773a;
  --cream: #fff5e6;
  --cream-line: #ecd3ae;
  --ink: #2b1433;
  --ink-muted: #6b4f6e;
  --text: #f8ecdf;
  --muted: #cdb9d6;

  --wrap: 1180px;
  --radius: 22px;
  --font-display: "Shrikhand", Georgia, serif;
  --font-sacred: "Cinzel", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --sprinkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke-linecap='round' stroke-width='4'%3E%3Cpath d='M12 18l8-4' stroke='%23ff6fae'/%3E%3Cpath d='M60 10l2 9' stroke='%235ad1ff'/%3E%3Cpath d='M96 30l9 3' stroke='%23ffc94d'/%3E%3Cpath d='M30 60l-6 7' stroke='%237be495'/%3E%3Cpath d='M80 70l8-5' stroke='%23ff6fae'/%3E%3Cpath d='M14 98l9 2' stroke='%23ffc94d'/%3E%3Cpath d='M58 104l-3-9' stroke='%23b48cff'/%3E%3Cpath d='M104 96l5 7' stroke='%235ad1ff'/%3E%3Cpath d='M50 40l7 4' stroke='%23ffffff'/%3E%3Cpath d='M100 58l-2 8' stroke='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ol, ul { margin: 0; }
img, svg { display: block; }
a { color: inherit; }

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

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.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;
}

.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { left: 16px; }

.eyebrow {
  font-family: var(--font-sacred);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Disclosure bar ---------- */

.disclosure {
  background: var(--night-deep);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.disclosure strong { color: var(--gold-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 72px;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(255, 111, 174, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(255, 201, 77, 0.1), transparent 70%),
    var(--night);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sprinkles);
  opacity: 0.16;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
}
.brand span { color: var(--frosting); }
.topnav ul {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  padding: 0;
  list-style: none;
}
.topnav ul a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.topnav ul a:hover { color: var(--gold); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
}

.hero h1 {
  margin: 0.25em 0 0.3em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.95;
  color: var(--cream);
  text-shadow: 0 5px 0 var(--frosting-deep), 0 0 48px rgba(255, 111, 174, 0.35);
}

.lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-frosting {
  background: var(--frosting);
  color: #2b0a1d;
  box-shadow: 0 5px 0 var(--frosting-deep), 0 12px 30px -10px rgba(255, 111, 174, 0.7);
}
.btn-frosting:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--frosting-deep), 0 16px 34px -10px rgba(255, 111, 174, 0.8);
}
.btn-frosting:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--frosting-deep); }
.btn-ghost {
  color: var(--gold-soft);
  border: 2px solid rgba(255, 201, 77, 0.45);
}
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }

/* The altar */

.altar {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.rays {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 77, 0.24) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%);
  mask: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 80s linear infinite;
}
.glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.45), rgba(255, 111, 174, 0.15) 50%, transparent 70%);
  filter: blur(8px);
  animation: breathe 6s ease-in-out infinite;
}
.holy-pastry {
  position: relative;
  z-index: 2;
  width: 54%;
  height: auto;
  margin-bottom: 14%;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 201, 77, 0.3));
  animation: float 6s ease-in-out infinite;
}
.plinth {
  position: absolute;
  bottom: 3%;
  left: 4%;
  right: 4%;
  height: 11%;
  border-radius: 14px 14px 8px 8px;
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, #5c2f72, #2f1640);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7), inset 0 2px 12px rgba(255, 201, 77, 0.2);
}
.candle {
  position: absolute;
  z-index: 3;
  bottom: 13%;
  width: 8%;
  height: 24%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #e4cfa9, #fff9ef 45%, #e8d6b5);
}
.candle-left { left: 9%; }
.candle-right { right: 9%; height: 30%; }
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9%;
  width: 2px;
  height: 10%;
  background: #3a2418;
  transform: translateX(-50%);
}
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 500%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(255, 190, 80, 0.35), transparent 65%);
  pointer-events: none;
  animation: breathe 2.6s ease-in-out infinite;
}
.flame {
  position: absolute;
  left: 50%;
  bottom: 106%;
  width: 70%;
  height: 32%;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 72%, #fffbe8 0 18%, #ffd25a 38%, #ff8a2a 68%, rgba(255, 120, 40, 0) 72%);
  transform-origin: 50% 100%;
  animation: flicker 1.6s ease-in-out infinite alternate;
}
.candle-right .flame { animation-delay: -0.7s; }

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes flicker {
  0% { transform: translateX(-50%) scale(1, 1) rotate(-2deg); }
  40% { transform: translateX(-50%) scale(0.92, 1.08) rotate(2deg); }
  70% { transform: translateX(-50%) scale(1.04, 0.95) rotate(-1deg); }
  100% { transform: translateX(-50%) scale(0.96, 1.05) rotate(1.5deg); }
}

/* ---------- Commandments ---------- */

.commandments {
  background: var(--night-2);
  border-block: 1px solid var(--line);
  padding: 44px 0;
}
.commandments ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  list-style: none;
}
.commandments li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 16px;
  row-gap: 4px;
}
.numeral {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-sacred);
  font-weight: 700;
  color: var(--gold);
}
.commandments h3 { font-size: 1.08rem; color: var(--cream); }
.commandments p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-head { max-width: 46em; margin-bottom: 16px; }
.section-head.centred { margin-inline: auto; text-align: center; }
.section-head h2 {
  margin: 0.25em 0 0.35em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--cream);
}
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.sub-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 48px 0 24px;
  font-family: var(--font-sacred);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.sub-head::before,
.sub-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.chapel-blurb {
  margin: -12px 0 24px;
  text-align: center;
  color: var(--muted);
}

.chips.chapel-nav {
  justify-content: flex-start;
  max-width: none;
  margin: 24px 0 0;
}
.chapel-nav span { color: var(--gold); }

.sub-head { scroll-margin-top: 24px; }

/* ---------- Flavours ---------- */

.flavour-strawberry { --flavour: #ff7eb9; --icon: #3a0f2a; }
.flavour-wildberry  { --flavour: #b296ff; --icon: #1e0f3d; }
.flavour-smores     { --flavour: #f4e6cf; --icon: #4a2a16; }
.flavour-blueberry  { --flavour: #7aa2ff; --icon: #0f1f4a; }
.flavour-chocolate  { --flavour: #7a4528; --icon: #ffe7cf; }
.flavour-cinnamon   { --flavour: #dca064; --icon: #3d2210; }

/* A frosted tile in a crimped crust */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 10px solid var(--crust);
  border-radius: 18px;
  background: var(--sprinkles) center / 96px, var(--flavour);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 -10px 24px rgba(0, 0, 0, 0.12);
}
.tile::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px dotted rgba(150, 90, 35, 0.6);
  border-radius: 14px;
  pointer-events: none;
}
.tile svg {
  width: 40%;
  height: auto;
  aspect-ratio: 1;
  color: var(--icon);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.35));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Relic cards ---------- */

.altar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.relic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}

.relic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.relic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 201, 77, 0.6);
  box-shadow: 0 22px 44px -22px rgba(255, 201, 77, 0.5);
}
.relic-card:hover .tile svg,
.daily-card:hover .tile svg { transform: scale(1.1) rotate(-4deg); }

.relic-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 6px 6px;
}
.relic-no {
  font-family: var(--font-sacred);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.relic-title { font-size: 1.15rem; line-height: 1.25; color: var(--cream); }
.relic-blurb { font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
.cta {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--frosting);
}

.relic-card.is-altar {
  padding: 18px;
  border-color: rgba(255, 201, 77, 0.42);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 201, 77, 0.16), transparent 70%),
    linear-gradient(180deg, var(--night-3), var(--night-2));
}
.is-altar .tile { aspect-ratio: 5 / 4; }
.is-altar .tile svg { width: 36%; }
.is-altar .relic-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
}

/* ---------- Relic of the day ---------- */

.daily { padding-top: 72px; }
.daily-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 201, 77, 0.45);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(255, 111, 174, 0.16), transparent 70%),
    linear-gradient(135deg, var(--night-3), var(--night-2));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.daily-card:hover {
  border-color: var(--gold);
  box-shadow: 0 26px 60px -30px rgba(255, 201, 77, 0.6);
}
.daily-card .tile { aspect-ratio: 1; }
.daily-copy { display: flex; flex-direction: column; gap: 10px; }
.daily-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  color: var(--cream);
}
.daily-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 36em; }

/* ---------- Frosting drip into the pantheon ---------- */

.drip {
  height: clamp(36px, 5vw, 60px);
  background: var(--cream);
}
.drip svg { width: 100%; height: 100%; fill: var(--frosting); }

/* ---------- Pantheon (cream section) ---------- */

.pantheon {
  padding-top: 64px;
  background: var(--cream);
  color: var(--ink);
}
.pantheon .eyebrow,
.pantheon .relic-no { color: var(--gold-ink); }
.pantheon .section-head h2 { color: var(--ink); }
.pantheon .section-head p:not(.eyebrow) { color: var(--ink-muted); }
.pantheon .section-head { margin-bottom: 40px; }
.pantheon .relic-card {
  background: #fff;
  border-color: var(--cream-line);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--cream-line);
}
.pantheon .relic-card:hover {
  border-color: var(--crust);
  box-shadow: 0 22px 40px -24px rgba(184, 119, 58, 0.55);
}
.pantheon .relic-title { color: var(--ink); }
.pantheon .relic-blurb { color: var(--ink-muted); }
.pantheon .cta { color: var(--frosting-ink); }
.pantheon :focus-visible { outline-color: var(--frosting-ink); }

/* ---------- Pilgrim's search ---------- */

.search {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 111, 174, 0.14), transparent 70%),
    var(--night);
}
.search::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sprinkles);
  opacity: 0.1;
}
.pilgrim-form {
  max-width: 680px;
  margin: 32px auto 0;
}
.pilgrim-form label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sacred);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--gold-soft);
}
.field {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 2px solid rgba(255, 201, 77, 0.4);
  border-radius: 999px;
  background: var(--night-2);
  transition: border-color 0.2s;
}
.field:focus-within { border-color: var(--gold); }
.field input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 1.05rem var(--font-body);
}
.field input[type="search"]::placeholder { color: #9d88a8; }
.field input[type="search"]:focus { outline: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}
.chips a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chips a:hover {
  color: var(--gold-soft);
  border-color: rgba(255, 201, 77, 0.6);
  background: rgba(255, 201, 77, 0.08);
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--night-deep);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr 1fr;
  gap: 32px;
}
.footer .brand { display: inline-block; margin-bottom: 12px; }
.footer h2 {
  margin-bottom: 10px;
  font-family: var(--font-sacred);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer a { color: var(--gold-soft); }
.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 64px 0;
  text-align: center;
}
.lost h1 {
  margin: 0.3em 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 5px 0 var(--frosting-deep);
}
.lost p:not(.eyebrow) { max-width: 30em; margin: 0 auto 28px; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .altar { width: min(340px, 88%); }
  .commandments ol { grid-template-columns: 1fr; gap: 22px; }
  .altar-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .section { padding: 72px 0; }
}

@media (max-width: 620px) {
  .topnav { flex-direction: column; gap: 12px; }
  .daily-card { grid-template-columns: 1fr; }
  .daily-card .tile { width: min(220px, 70%); margin-inline: auto; }
  .daily-copy { text-align: center; align-items: center; }

  /* Compact relic rows on phones: small tile beside the text */
  .relic-grid { gap: 14px; }
  .relic-grid .relic-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: start;
    gap: 14px;
    padding: 12px;
  }
  .relic-grid .tile {
    aspect-ratio: 1;
    border-width: 6px;
    border-radius: 14px;
    background-size: 64px, auto;
  }
  .relic-grid .tile::before { inset: -4px; border-radius: 11px; }
  .relic-grid .tile svg { width: 58%; }
  .relic-grid .relic-meta { gap: 4px; padding: 2px 0 0; }
  .relic-grid .relic-title { font-size: 1.05rem; }
  .relic-grid .relic-blurb { font-size: 0.9rem; }
  .relic-grid .cta { padding-top: 4px; font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .field { flex-direction: column; border-radius: 24px; }
  .field .btn { width: 100%; }
}

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