/* Toon Carnival site. One small local stylesheet: no external fonts, scripts or images from anywhere else. */

:root {
  --red: #d8322f;
  --red-dark: #9f1f26;
  --cream: #fff6dd;
  --cream-deep: #ffe9b0;
  --gold: #f6b72b;
  --gold-dark: #c98a0b;
  --purple: #4a2b7e;
  --purple-deep: #33195c;
  --sky: #cfeaff;
  --ink: #2b1b3d;
  --muted: #5d4a73;
  --card: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image: linear-gradient(180deg, var(--sky) 0, var(--cream) 340px);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 960px; }

a { color: var(--red-dark); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--purple); }

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

/* The striped awning and the string of lights across the top. */
.awning {
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--cream) 40px 80px);
  border-bottom: 4px solid var(--red-dark);
}
.lights {
  height: 18px;
  background: radial-gradient(circle at 50% 8px, var(--gold) 0 5px, rgba(246, 183, 43, 0.35) 6px 8px, transparent 9px) 0 0 / 32px 18px repeat-x;
}

.site-header { padding: 6px 0 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--purple); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--purple); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--purple); }
nav a:hover, nav a:focus, nav a[aria-current="page"] { background: var(--purple); color: #fff; }

main { flex: 1 0 auto; padding-bottom: 32px; }

h1, h2, h3 { line-height: 1.2; color: var(--purple-deep); }
h1 { font-size: clamp(2rem, 7vw, 2.9rem); margin: 18px 0 6px; font-weight: 900; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.4rem, 4.6vw, 1.8rem); margin: 34px 0 8px; font-weight: 800; }
h3 { font-size: 1.15rem; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 6px; }

/* Home page */
.hero { text-align: center; padding: 14px 0 6px; }
.hero .tagline { font-size: 1.25rem; font-weight: 700; color: var(--muted); margin: 0 auto 16px; max-width: 30ch; }
.logo { width: 120px; height: 120px; border-radius: 28px; border: 4px solid var(--gold); box-shadow: 0 6px 0 var(--purple), 0 10px 18px rgba(51, 25, 92, 0.3); }
.hero-title { margin: 14px 0 4px; color: var(--gold); -webkit-text-stroke: 0; text-shadow: -2px -2px 0 var(--purple), 2px -2px 0 var(--purple), -2px 2px 0 var(--purple), 2px 2px 0 var(--purple), 0 5px 0 var(--purple-deep); }
.hero-shot { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 4px solid var(--purple); box-shadow: 0 8px 0 var(--purple-deep); background: var(--cream-deep); }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 6px; }
.store { display: flex; flex-direction: column; align-items: center; min-width: 210px; padding: 12px 22px; border-radius: 16px; background: var(--purple); color: #fff; border: 3px dashed var(--gold); text-align: center; }
.store small { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.store strong { font-size: 1.15rem; }
.soon { text-align: center; color: var(--muted); font-weight: 700; margin: 8px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 8px; padding: 0; list-style: none; }
.card { background: var(--card); border: 3px solid var(--purple); border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: 0 5px 0 var(--purple-deep); margin: 0; }
.card h3 { margin: 0 0 4px; color: var(--red-dark); }
.card p { margin: 0; color: var(--ink); font-size: 1rem; }

.panel { background: var(--card); border: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px 6px; margin: 22px 0; }
.panel h2 { margin-top: 4px; }

/* Policy and support text pages */
.doc { background: var(--card); border: 3px solid var(--purple); border-radius: var(--radius); padding: 8px 20px 18px; margin: 14px 0 24px; box-shadow: 0 6px 0 var(--purple-deep); }
.doc h1 { margin-top: 14px; }
.updated { color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.toc { background: var(--cream); border: 2px solid var(--gold); border-radius: 14px; padding: 10px 18px 4px; margin: 14px 0 6px; }
.toc p { margin: 0 0 4px; font-weight: 800; color: var(--purple-deep); }
.toc ol { columns: 2 220px; margin: 0 0 10px; }
.toc li { margin-bottom: 3px; }
.doc section { scroll-margin-top: 12px; }
.note { background: var(--cream); border-left: 6px solid var(--red); border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.note p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 6px 0 16px; font-size: 0.98rem; }
th, td { border: 2px solid var(--cream-deep); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--cream); color: var(--purple-deep); }
.table-scroll { overflow-x: auto; }

details { background: var(--cream); border: 2px solid var(--gold); border-radius: 14px; padding: 4px 16px; margin: 0 0 12px; }
details[open] { background: #fff; }
summary { cursor: pointer; font-weight: 800; color: var(--purple-deep); padding: 10px 0; }
details > :not(summary) { margin-top: 0; }

.button { display: inline-block; background: var(--red); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 3px solid var(--red-dark); box-shadow: 0 4px 0 var(--red-dark); word-break: break-word; }
.button:hover, .button:focus { background: var(--red-dark); color: #fff; }

footer { background: var(--purple); color: #fff; padding: 22px 0 26px; margin-top: 12px; border-top: 6px solid var(--gold); }
footer a { color: var(--gold); }
footer p { margin: 0 0 6px; }
footer ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer li { margin: 0; }
.fine { font-size: 0.9rem; opacity: 0.85; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .doc { padding: 4px 14px 14px; }
  .store { width: 100%; }
  .logo { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
