/* ==========================================================================
   Mad Hatter Cardz — base styles
   Palette pulled from the logo:
   purple hat, golden-yellow "Mad Hatter", navy outline, orange "Cardz"
   ========================================================================== */

:root {
  --purple: #6a2c91;
  --purple-dark: #431c5e;
  --yellow: #ffc72c;
  --navy: #1b3a6b;
  --navy-deep: #122844;
  --orange: #ee5b22;
  --cream: #fff8e7;
  --white: #ffffff;

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --shadow: 0 6px 18px rgba(27, 58, 107, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessibility helpers -------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* Header ------------------------------------------------------------------ */

.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.brand {
  display: block;
  flex-shrink: 0;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 0 8px;
}

.primary-nav {
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

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

.hero {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 450px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  max-width: 42ch;
  margin: 0 0 2rem;
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-divider {
  height: 24px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin-top: -24px;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 3px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--cream);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 248, 231, 0.12);
}

/* Section layout -------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #f3eafb;
}

.section-title {
  font-size: 2rem;
  color: var(--purple);
}

.section-lede {
  font-size: 1.1rem;
  max-width: 65ch;
  margin-bottom: 2.5rem;
}

.section-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--navy);
  opacity: 0.75;
}

.section-note code {
  background: rgba(27, 58, 107, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* About feature grid ------------------------------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  color: var(--orange);
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
}

/* Online inventory link grid ------------------------------------------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, background 0.12s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  background: var(--yellow);
}

.link-card-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.link-card-cta {
  font-weight: 700;
  color: var(--orange);
}

/* Upcoming shows list --------------------------------------------------- */

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.show-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.show-date {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.show-month {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.show-day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.show-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.show-meta {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

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

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 248, 231, 0.2);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact a {
  text-decoration: none;
  font-weight: 700;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--yellow);
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom a {
  font-weight: 700;
  text-decoration: underline;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--yellow);
}

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .show-card {
    flex-wrap: wrap;
  }
}
