/* ═══════════════════════════════════════════════════════════
   Han & Ollie · Shared Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --pink:     #F472B6;
  --magenta:  #DB2777;
  --purple:   #7C3AED;
  --lavender: #C4B5FD;
  --blue:     #60A5FA;
  --yellow:   #FCD34D;
  --dark:     #1E1B4B;
  --white:    #FFFFFF;
  --cream:    #FFF9F5;
  --max-w:    1100px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(30, 27, 75, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.875rem 2.5rem;
}

.nav-logo {
  font-family: 'Lilita One', cursive;
  font-size: 1.5rem;
  color: var(--yellow);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--dark);
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ─── Page hero (sub-pages) ──────────────────────────── */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 9rem 2rem 4.5rem;
  background: linear-gradient(170deg,
    #F472B6 0%,
    #C084FC 40%,
    #818CF8 70%,
    #60A5FA 100%
  );
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.page-hero-content { position: relative; z-index: 2; max-width: 55rem; }

.page-hero-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--yellow);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.page-hero-title {
  font-family: 'Lilita One', cursive;
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--yellow);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-shadow:
    3px 3px 0 var(--dark),
    6px 6px 0 rgba(30, 27, 75, 0.35);
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 1.0625rem;
  color: var(--white);
  font-weight: 500;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.55;
  text-shadow: 1px 1px 0 rgba(30, 27, 75, 0.3);
}

/* ─── Details band + pills ───────────────────────────── */
.band {
  background: var(--dark);
  padding: 1.625rem 2.5rem;
}

.band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 0.625rem 1.25rem;
  color: var(--white);
  font-size: 0.9rem;
  white-space: nowrap;
}

.pill-em {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ─── Section base ───────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 6.5rem) 2.5rem; }
.container { max-width: var(--max-w); margin: 0 auto; }

.section--cream  { background: var(--cream); }
.section--white  { background: var(--white); }
.section--purple { background: #F0E9FF; }
.section--blue   { background: #E0F2FE; }
.section--pink   { background: #FCE7F3; }
.section--yellow { background: var(--yellow); }

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.325rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.tag--purple { background: var(--lavender); color: var(--dark); }
.tag--pink   { background: #FBCFE8;          color: var(--dark); }
.tag--blue   { background: #BAE6FD;          color: var(--dark); }
.tag--yellow { background: var(--yellow);    color: var(--dark); }

.h2 {
  font-family: 'Lilita One', cursive;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.0;
  color: var(--dark);
  margin-bottom: 2rem;
}

.h3-retro {
  font-family: 'Lilita One', cursive;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--dark);
  margin-bottom: 1rem;
  margin-top: 2.75rem;
  line-height: 1.05;
}

.h3-retro:first-child { margin-top: 0; }

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(30, 27, 75, 0.78);
  max-width: 45rem;
  margin-bottom: 2.5rem;
}

.prose p { font-size: 0.9875rem; line-height: 1.7; color: rgba(30, 27, 75, 0.75); max-width: 45rem; }
.prose p + p { margin-top: 1rem; }

/* ─── Retro button ───────────────────────────────────── */
.btn-retro {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--dark);
  color: var(--yellow);
  border: 2.5px solid var(--dark);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-retro:hover, .btn-retro:focus-visible {
  background: var(--purple);
  border-color: var(--purple);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

/* ─── Retro link ─────────────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  margin-top: auto;
  padding-top: 1rem;
}

.link-arrow::after { content: '→'; transition: transform 0.2s; }
a.card:hover .link-arrow::after { transform: translateX(4px); }

/* ─── Card ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 2.5px solid var(--dark);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 4px 4px 0 var(--dark);
  display: flex;
  flex-direction: column;
}

a.card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

a.card:hover, a.card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dark);
}

.card--feature {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--yellow);
}

.card--pink   { background: #FCE7F3; }
.card--blue   { background: #E0F2FE; }
.card--purple { background: #F0E9FF; }

.card-icon { font-size: 2rem; margin-bottom: 0.875rem; display: block; }

.card h3 {
  font-family: 'Lilita One', cursive;
  font-size: 1.375rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.card--feature h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); }

.card p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(30, 27, 75, 0.68);
}

.card p + p { margin-top: 0.75rem; }
.card p strong { color: var(--dark); font-weight: 700; }
.card--feature p { font-size: 0.975rem; }

.card-meta {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-top: 0.75rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Item list (grouped tips) ───────────────────────── */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
}

.item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.125rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: 1rem;
  box-shadow: 3px 3px 0 var(--dark);
}

.item-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--dark);
  margin-top: 0.15rem;
}

.dot--pink   { background: #FBCFE8; }
.dot--yellow { background: var(--yellow); }
.dot--blue   { background: #BAE6FD; }
.dot--purple { background: var(--lavender); }
.dot--green  { background: #BBF7D0; }

.item-body h4 {
  font-family: 'Lilita One', cursive;
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.item-body p {
  font-size: 0.875rem;
  color: rgba(30, 27, 75, 0.68);
  line-height: 1.55;
}

.item-meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  white-space: nowrap;
  padding-top: 0.35rem;
}

/* ─── Callout ────────────────────────────────────────── */
.callout {
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--yellow);
  background: rgba(252, 211, 77, 0.14);
  border-radius: 0 1rem 1rem 0;
  margin: 1.75rem 0;
}

.callout p { font-size: 0.9375rem; color: rgba(30, 27, 75, 0.82); line-height: 1.65; }
.callout p + p { margin-top: 0.5rem; }
.callout strong { color: var(--dark); }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 3.5rem 2.5rem 3rem;
  text-align: center;
}

.footer-title {
  display: block;
  font-family: 'Lilita One', cursive;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--yellow);
  text-shadow: 3px 3px 0 rgba(252, 211, 77, 0.25);
  margin-bottom: 0.625rem;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 1.75rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--yellow); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.75rem 1.5rem; }
  .section { padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
  .page-hero { padding: 7rem 1.5rem 3.5rem; min-height: 42vh; }
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .item { grid-template-columns: 26px 1fr; gap: 0.75rem 1rem; padding: 1rem 1.25rem; }
  .item-meta { grid-column: 2; padding-top: 0; }
  .band-inner { justify-content: flex-start; }
  .pill { font-size: 0.85rem; }
}

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

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