/* =========================================================================
   Jumble World — style.css
   Neo-brutalist puzzle-tile design system.
   Palette (60/30/10): cream (60) · ink navy (30) · coral accent (10)
   Fonts: Fredoka (display) / Work Sans (body)
   ========================================================================= */

/* ---------- CSS Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeSpeed; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Design Tokens ---------- */
:root {
  /* 60% — surface */
  --cream: #fbf3e7;
  --cream-soft: #fffaf2;
  --peach: #ffe4cf;

  /* 30% — ink */
  --ink: #1b1a2a;
  --ink-soft: #34324a;

  /* 10% — accent + supporting tile colors */
  --coral: #ff5c3e;
  --coral-dark: #e8431f;
  --gold: #ffc94a;
  --teal: #2fbfa0;

  --white: #ffffff;

  --font-display: 'Fredoka', 'Poppins', ui-rounded, system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-tile: 18px;

  --border-w: 3px;
  --shadow-offset: 6px;
  --shadow-hard: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --shadow-hover: 3px 3px 0 var(--ink);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  color-scheme: light;
}

/* ---------- Base ---------- */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }

p { max-width: 62ch; }
p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

section { padding-block: clamp(3rem, 7vw, 6rem); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 160ms ease;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: var(--border-w) solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary { background: var(--coral); color: var(--white); }
.btn-secondary { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--ink); }
.btn-ghost:hover { box-shadow: var(--shadow-hard-sm); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Domain For Sale Banner ---------- */
.domain-sale-banner {
  position: relative;
  z-index: 9999;
  width: 100%;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 92, 62, 0.38), transparent 34%),
    linear-gradient(100deg, #14131f 0%, #1b1a2a 58%, #3a1f18 100%);
  border-bottom: var(--border-w) solid var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-family: var(--font-body);
}
.domain-sale-banner__content {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.domain-sale-banner__text {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}
.domain-sale-banner__text strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: -0.01em;
}
.domain-sale-banner__text span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}
.domain-sale-banner__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--gold);
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.domain-sale-banner__button:hover,
.domain-sale-banner__button:focus-visible {
  background: var(--coral);
  color: var(--white);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  outline: none;
}
@media (max-width: 680px) {
  .domain-sale-banner__content {
    min-height: auto;
    padding: 14px 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .domain-sale-banner__button { width: 100%; }
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--cream-soft);
  border-bottom: var(--border-w) solid var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--coral);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-tile);
  transform: rotate(-6deg);
  box-shadow: var(--shadow-hard-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--coral-dark);
  margin-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle:not([aria-expanded="true"]) .icon-close { display: none; }

.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 84vw);
  height: 100vh;
  background: var(--ink);
  color: var(--cream);
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 600;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav__list { display: grid; gap: 0.25rem; }
.site-nav__list a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-nav__list a[aria-current="page"] { color: var(--gold); }
.site-nav__cta { margin-top: 1.75rem; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 26, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 550;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--ink);
    padding: 0;
    transform: none;
    transition: none;
    overflow: visible;
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .site-nav__list a {
    font-size: 1rem;
    padding: 0.25rem 0;
    border-bottom: none;
    position: relative;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__cta { margin-top: 0; }
  .site-header__inner { padding-block: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 8vw, 5.5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 1.25rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
  max-width: 480px;
}
.stat-card {
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.85rem 0.6rem;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--coral);
}
.stat-card span { font-size: 0.75rem; color: var(--ink-soft); }

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tile Word Art (inline SVG letters) ---------- */
.tile-word {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tile {
  --tile-bg: var(--coral);
  --tile-fg: var(--white);
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 6vw, 3.6rem);
  height: clamp(2.6rem, 6vw, 3.6rem);
  background: var(--tile-bg);
  color: var(--tile-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-hard-sm);
}
.tile-word .tile:nth-child(3n+1) { --tile-bg: var(--coral); --tile-fg: #fff; transform: rotate(-4deg); }
.tile-word .tile:nth-child(3n+2) { --tile-bg: var(--gold); --tile-fg: var(--ink); transform: rotate(3deg); }
.tile-word .tile:nth-child(3n)   { --tile-bg: var(--teal); --tile-fg: #fff; transform: rotate(-2deg); }

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 1.75rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--ink);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card:nth-child(3n+1) .card__icon { background: var(--coral); color: var(--white); }
.card:nth-child(3n+2) .card__icon { background: var(--gold); color: var(--ink); }
.card:nth-child(3n)   .card__icon { background: var(--teal); color: var(--white); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Panel (asymmetric feature block) ---------- */
.panel {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-hard);
}
.panel h2, .panel h3 { color: var(--white); }
.panel p { color: rgba(251, 243, 231, 0.78); }
.panel--peach { background: var(--peach); color: var(--ink); border-color: var(--ink); }
.panel--peach h2, .panel--peach h3 { color: var(--ink); }
.panel--peach p { color: var(--ink-soft); }

/* ---------- Marquee strip ---------- */
.marquee {
  border-block: var(--border-w) solid var(--ink);
  background: var(--gold);
  overflow: hidden;
  padding-block: 0.9rem;
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 0.6rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .chev { transition: transform 180ms ease; flex: none; }
.accordion-item[open] summary .chev { transform: rotate(180deg); }
.accordion-item .accordion-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

/* ---------- Forms (contact page) ---------- */
.form-card {
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  box-shadow: var(--shadow-hard-sm);
  transform: translate(-2px, -2px);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }

.contact-methods { display: grid; gap: 1rem; }
.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-hard-sm);
}
.contact-method__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--teal);
  color: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
}
.contact-method__icon svg { width: 22px; height: 22px; }
.contact-method h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.contact-method p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Timeline (about page) ---------- */
.timeline { display: grid; gap: 1.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
}
.timeline-item__dot {
  width: 18px; height: 18px;
  margin-top: 0.35rem;
  background: var(--coral);
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
}
.timeline-item h3 { margin-bottom: 0.3rem; }
.timeline-item p { color: var(--ink-soft); margin: 0; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 6rem);
}
.error-page__code {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.error-page__code .tile {
  width: clamp(3.2rem, 9vw, 5rem);
  height: clamp(3.2rem, 9vw, 5rem);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.error-page p.lede { margin-inline: auto; }
.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border-w) solid var(--ink);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand .brand { color: var(--cream); }
.footer-brand p { color: rgba(251, 243, 231, 0.7); margin-top: 0.9rem; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: rgba(251, 243, 231, 0.82); font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 243, 231, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(251, 243, 231, 0.6);
}
.footer-bottom a { color: rgba(251, 243, 231, 0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: grid; gap: 1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal);
  color: var(--white);
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
}
