* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(199, 122, 28, 0.2), transparent 20%),
    radial-gradient(circle at left 18%, rgba(79, 168, 221, 0.16), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(229, 53, 164, 0.12), transparent 18%),
    linear-gradient(180deg, #24160f 0%, #382117 18%, #6e4324 42%, #d9bf97 82%, #f4ede3 100%);
  color: var(--color-ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

code,
pre,
.brand-eyebrow,
.hero-eyebrow,
.section-kicker,
.drawer-tab-handle,
.drawer-handle,
.post-card-date,
.post-meta,
.archive-list span {
  font-family: "Space Mono", monospace;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-anchor);
  color: #fff;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(23, 23, 23, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(254, 247, 236, 0.95), rgba(240, 225, 199, 0.9));
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.18);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 24px;
  border: 3px solid var(--color-anchor);
  background: linear-gradient(135deg, rgba(141, 90, 173, 0.2), rgba(79, 168, 221, 0.16));
  color: var(--color-anchor);
  font-family: "Bungee", cursive;
  font-size: 1.6rem;
  text-decoration: none;
  transform: rotate(-4deg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-eyebrow,
.hero-eyebrow,
.section-kicker,
.drawer-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.brand-name,
.site-nav a,
.action-link,
.text-link,
.pager-link,
.footer-links a {
  text-decoration: none;
}

.brand-name {
  font-family: "Bungee", cursive;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
}

.brand-tagline {
  margin: 0;
  color: rgba(23, 23, 23, 0.72);
}

.menu-toggle {
  display: none;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  background: transparent;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.action-link:hover,
.action-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.info-card:hover,
.info-card:focus-visible,
.post-card h3 a:hover,
.post-card h3 a:focus-visible,
.pager-link:hover,
.pager-link:focus-visible {
  color: var(--color-anchor);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(141, 90, 173, 0.24);
  background: rgba(141, 90, 173, 0.08);
}

.site-main {
  display: grid;
  gap: 1.5rem;
}

.hero-panel,
.lore-panel,
.dashboard-panel,
.destination-panel,
.post-panel,
.archive-callout,
.content-page,
.site-footer {
  position: relative;
  border: 3px solid rgba(23, 23, 23, 0.12);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(254, 247, 236, 0.95), rgba(236, 220, 189, 0.92));
  box-shadow: 0 20px 40px rgba(23, 23, 23, 0.18);
}

.hero-panel,
.lore-panel,
.dashboard-panel,
.destination-panel,
.post-panel,
.archive-callout,
.content-page {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  overflow: hidden;
}

.hero-panel::before,
.lore-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.08), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(199, 122, 28, 0.18), transparent 20%);
  pointer-events: none;
}

.hero-panel::after,
.lore-panel::after,
.dashboard-panel::after,
.content-page::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(23, 23, 23, 0.12);
  border-radius: 22px;
  pointer-events: none;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.drawer-panel h3,
.info-card h3,
.post-card h3,
.archive-callout h2,
.meta-block h2 {
  margin: 0;
  font-family: "Bungee", cursive;
  line-height: 1.05;
  font-weight: 400;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  max-width: 10ch;
}

.hero-intro,
.section-tagline,
.drawer-copy,
.post-card p,
.info-card p,
.archive-callout p,
.rich-content p,
.site-footer p {
  color: rgba(23, 23, 23, 0.8);
}

.hero-intro {
  font-size: 1.15rem;
  max-width: 42rem;
}

.hero-motto-strip {
  width: min(100%, 28rem);
  padding: 0.75rem;
  border: 3px solid rgba(23, 23, 23, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.06);
}

.hero-motto-image,
.hero-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-mascot-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: 8.5rem;
  padding: 0.5rem;
  border: 3px solid rgba(23, 23, 23, 0.16);
  border-radius: 22px;
  background: rgba(255, 247, 234, 0.84);
  box-shadow: 0 12px 24px rgba(23, 23, 23, 0.18);
  transform: rotate(-6deg) translate(-6%, 2%);
  z-index: 3;
}

.hero-mascot-image,
.drawer-mascot-image,
.lore-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-chips,
.hero-actions,
.footer-links,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip,
.action-link,
.pager-link,
.action-link-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  border: 2px solid var(--color-ink);
  font-weight: 700;
}

.chip {
  font-family: "Bungee", cursive;
  font-size: 0.95rem;
}

.chip-cyan,
.drawer-tab-cyan,
.drawer-panel-cyan {
  background: rgba(79, 168, 221, 0.22);
}

.chip-magenta,
.drawer-tab-magenta,
.drawer-panel-magenta {
  background: rgba(229, 53, 164, 0.18);
}

.chip-lime,
.drawer-tab-lime,
.drawer-panel-lime {
  background: rgba(180, 210, 52, 0.24);
}

.drawer-tab-anchor,
.drawer-panel-anchor {
  background: rgba(141, 90, 173, 0.18);
}

.drawer-tab-steel,
.drawer-panel-steel {
  background: rgba(93, 101, 112, 0.18);
}

.action-link,
.pager-link,
.text-link,
.post-card h3 a {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.action-link:hover,
.action-link:focus-visible,
.pager-link:hover,
.pager-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.info-card:hover,
.info-card:focus-visible,
.post-card h3 a:hover,
.post-card h3 a:focus-visible {
  transform: translateY(-2px);
}

.action-link-primary {
  background: var(--color-anchor);
  border-color: var(--color-anchor);
  color: #fff;
  box-shadow: 0 12px 20px rgba(141, 90, 173, 0.2);
}

.action-link-disabled,
.pager-link.is-disabled {
  cursor: default;
  color: rgba(23, 23, 23, 0.45);
  background: rgba(23, 23, 23, 0.06);
}

.hero-badge {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.hero-badge-core {
  display: grid;
  place-items: center;
  width: 10rem;
  height: 10rem;
  border-radius: 32px;
  border: 4px solid var(--color-anchor);
  background: linear-gradient(180deg, rgba(141, 90, 173, 0.18), rgba(244, 237, 227, 0.98));
  color: var(--color-anchor);
  font-family: "Bungee", cursive;
  font-size: 3rem;
  z-index: 2;
  overflow: hidden;
  padding: 1rem;
}

.hero-logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-badge-ring {
  position: absolute;
  padding: 0.7rem 1rem;
  border: 3px solid var(--color-ink);
  border-radius: 999px;
  font-family: "Bungee", cursive;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(23, 23, 23, 0.12);
}

.hero-badge-ring-cyan {
  top: 12%;
  left: 4%;
  background: var(--color-cyan);
}

.hero-badge-ring-magenta {
  right: 2%;
  bottom: 14%;
  background: var(--color-magenta);
}

.hero-badge-ring-lime {
  left: 12%;
  bottom: 2%;
  background: var(--color-lime);
}

.drawer-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.lore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: center;
}

.lore-frame {
  margin: 0;
  padding: 0.9rem;
  border: 3px solid rgba(23, 23, 23, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(56, 33, 23, 0.9), rgba(110, 67, 36, 0.75));
  box-shadow: 0 16px 32px rgba(23, 23, 23, 0.2);
}

.lore-image {
  border-radius: 18px;
}

.lore-copy {
  display: grid;
  gap: 0.9rem;
}

.lore-copy h3 {
  margin: 0;
  font-family: "Bungee", cursive;
  font-weight: 400;
  line-height: 1.1;
}

.drawer-tabs,
.drawer-panels,
.card-grid {
  display: grid;
  gap: 1rem;
}

.drawer-panels {
  position: relative;
}

.drawer-mascot {
  position: absolute;
  top: -1rem;
  right: 1rem;
  width: 8rem;
  padding: 0.45rem;
  border: 3px solid rgba(23, 23, 23, 0.14);
  border-radius: 20px;
  background: rgba(255, 247, 234, 0.92);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.16);
  transform: rotate(5deg);
  z-index: 2;
}

.drawer-mascot-label {
  margin: 0.45rem 0 0;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.drawer-tab,
.drawer-panel,
.info-card,
.post-card {
  border: 3px solid rgba(23, 23, 23, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.64);
}

.drawer-tab {
  width: 100%;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.drawer-tab.is-active,
.drawer-tab:hover,
.drawer-tab:focus-visible {
  transform: translateX(4px);
  border-color: rgba(23, 23, 23, 0.24);
  box-shadow: 0 12px 24px rgba(23, 23, 23, 0.12);
}

.drawer-tab-label,
.drawer-tab-handle,
.drawer-handle {
  display: block;
}

.drawer-tab-label {
  font-family: "Bungee", cursive;
  font-size: 1rem;
}

.drawer-tab-handle,
.drawer-handle,
.post-card-date,
.post-meta,
.archive-list span {
  color: rgba(23, 23, 23, 0.62);
  font-size: 0.9rem;
}

.drawer-panel {
  display: none;
  align-content: start;
  gap: 0.75rem;
  padding: 2.1rem 1.5rem 1.5rem;
  min-height: 100%;
}

.drawer-panel.is-active {
  display: grid;
}

.drawer-note {
  margin: 0;
  font-size: 0.95rem;
}

.info-card,
.post-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem;
}

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

.post-card h3 a,
.archive-list a {
  text-decoration: none;
}

.archive-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.content-page {
  display: grid;
  gap: 1.25rem;
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content h2,
.rich-content h3 {
  font-family: "Bungee", cursive;
  font-weight: 400;
  line-height: 1.15;
}

.rich-content ul,
.rich-content ol,
.archive-list {
  padding-left: 1.25rem;
}

.rich-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--color-anchor);
}

.meta-block {
  display: grid;
  gap: 0.75rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-list a,
.text-link,
.archive-list a {
  font-weight: 700;
}

.post-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.post-pager .pager-link:last-child {
  justify-self: end;
}

.archive-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(23, 23, 23, 0.16);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.5rem;
}

.footer-title {
  margin: 0 0 0.5rem;
  font-family: "Bungee", cursive;
}

.footer-links a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.05);
}

@media (max-width: 980px) {
  .hero-panel,
  .lore-grid,
  .drawer-board,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: start;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-badge {
    min-height: 280px;
  }

  .drawer-mascot {
    position: static;
    transform: none;
    width: 9rem;
    margin-bottom: 0.5rem;
  }

  .card-grid,
  .post-pager {
    grid-template-columns: 1fr;
  }

  .archive-callout,
  .archive-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
