/* ============================================
   Who Is the G.O.A.T. — shared stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --gold:   #E8A93B;
  --black:  #585854;
  --cream:  #FBF7EF;
  --mauve:  #A9788C;
  --red:    #D9524B;
  --green:  #7FA83B;
  --blue:   #3E90D6;
  --gray:   #B8B2A8;
  --pale:   #EFE1E6;

  --ink:    #2C2A28;
  --paper:  #FBF7EF;
  --card:   #FFFFFF;

  --radius: 20px;
  --shadow: 0 6px 20px rgba(44, 42, 40, 0.08);

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1rem + 0.15vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / hero band ---------- */

.page-header {
  padding: 56px 0 46px;
  text-align: center;
  color: var(--ink);
}

.page-header .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: block;
}

.page-header .hero-mascot {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 6px;
  display: block;
}

.page-header .hero-frame {
  width: 78%;
  max-width: 240px;
  margin: 0 auto 10px;
  background: var(--cream);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 6px 16px rgba(44, 42, 40, 0.15);
}
.page-header .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-header .color-tag {
  display: inline-block;
  margin: 12px auto 0;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.10);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-header.on-dark .color-tag {
  background: rgba(255, 255, 255, 0.22);
}

.page-header .icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(44, 42, 40, 0.18);
}

.page-header .icon-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin: 0;
  letter-spacing: 0.01em;
}

.page-header .title-gfx {
  display: block;
  height: 84px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  margin: 0 auto;
}

.page-header.on-dark { color: #FBF7EF; }
.page-header.on-dark .icon { fill: #FBF7EF; }
.page-header.on-light .icon { fill: var(--ink); }

.page-header.compact {
  padding: 28px 0 24px;
}

.bg-gray  { background: var(--gray); }
.bg-gold  { background: var(--gold); }
.bg-black { background: var(--black); }
.bg-white { background: var(--cream); border-bottom: 6px solid var(--mauve); }
.bg-red   { background: var(--red); }
.bg-green { background: var(--green); }
.bg-blue  { background: var(--blue); }

.bg-white .icon { fill: var(--mauve); stroke: var(--mauve); color: var(--mauve); }

/* ---------- Content card ---------- */

main {
  padding: 30px 0 10px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  margin-bottom: 22px;
}

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

.card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid #EFE9DC;
}
.card li:last-child { border-bottom: none; }
.card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.card ul.acrostic {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.card ul.acrostic li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #EFE9DC;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1em;
}
.card ul.acrostic li:last-child { border-bottom: none; }
.card ul.acrostic li::before { content: none; }

.card ul.acrostic .letter {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #FBF7EF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

blockquote.verse {
  margin: 0 0 22px;
  padding: 4px 0 4px 18px;
  border-left: 5px solid var(--gold);
  font-style: italic;
  color: #4A4642;
}
blockquote.verse cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85em;
  color: var(--ink);
}

/* colored verse accents to match each page */
.bg-gold  ~ main blockquote.verse { border-left-color: var(--gold); }
.bg-black ~ main blockquote.verse { border-left-color: var(--black); }
.bg-white ~ main blockquote.verse { border-left-color: var(--mauve); }
.bg-red   ~ main blockquote.verse { border-left-color: var(--red); }
.bg-green ~ main blockquote.verse { border-left-color: var(--green); }
.bg-blue  ~ main blockquote.verse { border-left-color: var(--blue); }

/* ---------- Bracelet nav (signature element) ---------- */

nav.bracelet {
  padding: 6px 0 44px;
}

nav.bracelet .label {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9em;
  color: #85807A;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.bracelet ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

nav.bracelet li { flex: 1; }

nav.bracelet li {
  position: relative;
}

nav.bracelet a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 68px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
  padding: 4px 4px;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

nav.bracelet a .num {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

nav.bracelet a:hover,
nav.bracelet a:active {
  filter: brightness(1.08);
}

/* current-page marker: a small dot, not a shape/size change */
nav.bracelet li.current a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}

.nav-gold  a { background: var(--gold);  color: #FBF7EF; }
.nav-black a { background: var(--black); color: #FBF7EF; }
.nav-white a { background: var(--pale); color: var(--ink); }
.nav-red   a { background: var(--red);   color: #FFF; }
.nav-green a { background: var(--green); color: #FBF7EF; }
.nav-blue  a { background: var(--blue);  color: #FFF; }

.back-home {
  display: block;
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.8em;
  color: #A6A099;
  text-decoration: underline;
  text-decoration-color: #D8D2C4;
  text-underline-offset: 3px;
}
.back-home:hover,
.back-home:active {
  color: #85807A;
}

footer {
  text-align: center;
  padding: 10px 0 40px;
  font-size: 0.8em;
  color: #A6A099;
}

/* ---------- small screens ---------- */

@media (max-width: 380px) {
  nav.bracelet a { font-size: 0.6rem; height: 60px; padding: 4px 2px; }
  nav.bracelet a .num { font-size: 1rem; }
  .card { padding: 22px 18px; }
}
