/* ==========================================================================
   Armor & Thread — site styles
   Colors, fonts and spacing are defined once as variables below.
   ========================================================================== */

:root {
  --radius: 1rem;

  --background: oklch(18% 0.06 300);
  --foreground: oklch(96% 0.03 85);
  --card: oklch(25% 0.08 300);
  --card-foreground: oklch(96% 0.03 85);
  --primary: oklch(66% 0.24 350);
  --primary-foreground: oklch(99% 0 0);
  --secondary: oklch(32% 0.1 290);
  --secondary-foreground: oklch(96% 0.03 85);
  --muted: oklch(30% 0.08 300);
  --muted-foreground: oklch(78% 0.05 300);
  --accent: oklch(84% 0.15 85);
  --accent-foreground: oklch(22% 0.06 300);
  --border: oklch(84% 0.15 85 / 0.45);
  --ring: oklch(84% 0.15 85);
  --teal: oklch(72% 0.13 195);
  --grape: oklch(55% 0.22 300);
  --glow-gold: 0 0 0 1px oklch(84% 0.15 85 / 0.6), 0 10px 40px -8px oklch(66% 0.24 350 / 0.55);

  --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cinzel", Georgia, serif;

  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  background-image:
    radial-gradient(at top, oklch(30% 0.12 310) 0%, transparent 60%),
    radial-gradient(at 100% 100%, oklch(25% 0.1 260) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.02em; font-weight: 700; margin: 0; line-height: 1.2; }
p, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.container.wide { max-width: 64rem; }
.container.medium { max-width: 64rem; }
.container.narrow { max-width: 48rem; }
.section { padding-block: 2.5rem; }
.section-lg { padding-block: 3rem; }
.center { text-align: center; }
.grid { display: grid; gap: 1.25rem; }
.flex-col { display: flex; flex-direction: column; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.section > .row-between { align-items: flex-end; gap: 1rem; }
@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.section .grid-3 { gap: 1.25rem; }

/* ---------- Spacing / text helpers ---------- */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; }
.inline-block { display: inline-block; }
.muted { color: var(--muted-foreground); }
.lead { font-size: 1.125rem; line-height: 1.556; }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.bold { font-weight: 700; }
.accent { color: var(--accent); }
.text-glow { text-shadow: 0 0 24px oklch(84% 0.15 85 / 0.6); }

.h-lg { font-size: 3rem; line-height: 1.1; }
.h-md { font-size: 1.875rem; line-height: 1.2; }
.h-sm { font-size: 1.5rem; line-height: 1.3; }
.h-xs { font-size: 1.25rem; line-height: 1.4; }
@media (max-width: 639px) { .h-lg { font-size: 2.4rem; } }

.link-primary { color: var(--primary); font-weight: 700; }
.link-primary:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 2px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 0.75rem; }
@media (min-width: 640px) {
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav-link { border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700; transition: background-color .15s; }
.nav-link:hover { background: var(--muted); }
.nav-link.is-active, .nav-link.is-active:hover { background: var(--primary); color: var(--primary-foreground); }

.site-main { min-height: 100vh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: 999px; border: 2px solid var(--border);
  padding: 0.75rem 1.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  line-height: 1.5; transition: transform .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--glow-gold); }
.btn-primary:hover { transform: translateY(-2px); }
.hero .btn-primary { border-color: var(--accent); }
.btn-ghost { background: color-mix(in oklab, var(--background) 60%, transparent); color: var(--foreground); }

/* ---------- Badges, chips, tags ---------- */
.badge {
  display: inline-block; border-radius: 999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em;
}
.badge-beginner { background: var(--teal); color: var(--accent-foreground); }
.badge-intermediate { background: var(--accent); color: var(--accent-foreground); }
.badge-advanced { background: var(--grape); color: var(--primary-foreground); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border-radius: 999px; border: 2px solid var(--border); padding: 0.375rem 1rem;
  font-size: 0.875rem; font-weight: 700; background: var(--card);
}
.chip.is-active { background: var(--accent); color: var(--accent-foreground); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); padding: 0.375rem 1rem; font-weight: 700; }
.tag-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; text-transform: uppercase; }
.tag-block { display: block; width: fit-content; }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.category-label { border-radius: var(--radius-xl); background: var(--accent); color: var(--accent-foreground); padding: 0.25rem 0.75rem; }

/* ---------- Cards ---------- */
.card {
  display: block; border-radius: var(--radius-3xl); border: 2px solid var(--border);
  background: var(--card); color: var(--card-foreground); padding: 1.5rem; overflow: hidden;
}
.card.flex-col { display: flex; }
.card-sm { border-radius: var(--radius-2xl); padding: 1.25rem; }
.card-pop { box-shadow: var(--glow-gold); }
.card-lift { transition: transform .15s; }
.card-lift:hover { transform: translateY(-4px); }
.card-hover { transition: background-color .15s; }
.card-hover:hover { background: var(--muted); }
.card-foot { margin-top: auto; padding-top: 1.25rem; }
.card-img {
  margin: -1.5rem -1.5rem 0; width: calc(100% + 3rem); max-width: none;
  object-fit: cover; object-position: top; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}
.card-img-wide { aspect-ratio: 4 / 3; margin-bottom: 0.5rem; }
.card-img-tall { aspect-ratio: 4 / 5; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--border); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
@media (min-width: 640px) { .hero-img { object-position: center; } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklab, var(--background) 85%, transparent),
    color-mix(in oklab, var(--background) 30%, transparent),
    transparent);
}
.hero-content { position: relative; padding-block: 6rem; }
@media (min-width: 640px) { .hero-content { padding-block: 8rem; } }
.hero-pill {
  display: inline-block; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 60%, transparent);
  padding: 0.25rem 1rem; font-size: 0.875rem; font-weight: 700; color: var(--accent);
}
.hero-title { margin-top: 1.25rem; max-width: 42rem; font-size: 3rem; font-weight: 900; line-height: 1.25; }
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
.hero-lead { margin-top: 1.25rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.556; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Quote & blog band ---------- */
.quote {
  text-align: center; padding: 2.5rem 1.5rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
}
@media (min-width: 640px) { .quote { padding: 3rem 3.5rem; } }
.quote-star { display: block; font-size: 1.875rem; color: var(--accent); }
.quote-text { margin: 1rem auto 0; max-width: 48rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.625; }
@media (min-width: 640px) { .quote-text { font-size: 1.875rem; } }
.quote-cite { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.025em; color: var(--accent); }

.blog-band {
  border-radius: var(--radius-3xl); border: 2px solid var(--border); padding: 2rem;
  background: color-mix(in oklab, var(--secondary) 80%, transparent); color: var(--secondary-foreground);
}
.blog-band .grid { gap: 1rem; }
@media (min-width: 768px) { .blog-band .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-post { display: block; border-radius: var(--radius-2xl); background: var(--card); padding: 1.25rem; transition: transform .15s; }
.mini-post:hover { transform: translateY(-2px); }
.mini-post-title { margin-top: 0.25rem; font-size: 1.125rem; }

/* ---------- Costume detail ---------- */
.detail { display: grid; gap: 2rem; }
@media (min-width: 768px) { .detail { grid-template-columns: auto 1fr; } }
.detail-img {
  width: 100%; max-width: 20rem; border-radius: var(--radius-3xl); border: 2px solid var(--border);
  object-fit: cover; box-shadow: var(--glow-gold);
}

/* ---------- Blog post & about ---------- */
.post-body p, .prose p { font-size: 1.125rem; line-height: 1.625; }
.post-body p + p { margin-top: 1.25rem; }
.prose p + p { margin-top: 1rem; }
.step-num { margin-right: 0.5rem; font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.verse {
  border-radius: var(--radius-3xl); border: 2px solid var(--border); background: var(--accent);
  color: var(--accent-foreground); padding: 1.5rem; font-family: var(--font-display); font-size: 1.25rem;
  box-shadow: var(--glow-gold);
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; border-top: 2px solid var(--border); background: var(--card); color: var(--card-foreground); }
.footer-inner { padding-block: 2.5rem; }
.footer-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.footer-text { margin-top: 0.5rem; max-width: 36rem; font-size: 0.875rem; opacity: 0.8; }
.footer-copy { margin-top: 1.5rem; font-size: 0.75rem; opacity: 0.6; }

/* ---------- Toast notice ---------- */
.toast-region { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; display: flex; flex-direction: column; gap: 0.5rem; max-width: calc(100vw - 3rem); width: 22rem; }
.toast {
  display: flex; flex-direction: column; gap: 0.25rem; border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--background); color: var(--foreground); padding: 1rem; font-size: 0.875rem;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast-title { font-weight: 700; }
.toast-desc { color: var(--muted-foreground); }

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