/* ==========================================================================
   KAIBOSHOES — Retail & E-commerce Marketing
   Custom layer over the Tailwind CDN build. Retro catalogue system:
   warm aged cream, burnt orange, mustard, brown ink. DM Serif Display
   headings, double-rule borders, a sunburst motif, coupon-style forms.
   ========================================================================== */

:root {
  --ease: cubic-bezier(0.22, 1, 0.32, 1);
  --orange: #DD5A22;
  --ink: #2C2118;
}

* { border-color: #C9B896; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: #DD5A22; color: #F6EEDD; }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #DD5A22;
  color: #F6EEDD;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Eyebrow flanked by short rules --------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--cream { color: #F6EEDD; }
.eyebrow--mustard { color: #DFA22C; }

.em { font-style: italic; color: var(--orange); }
.em--teal { font-style: italic; color: #1E7367; }

/* Double-rule vintage borders */
.dbl { border: 3px double var(--ink); }
.dbl-b { border-bottom: 3px double var(--ink); }
.dbl-t { border-top: 3px double var(--ink); }

/* Circular seal / badge */
.seal {
  border-radius: 999px;
  border: 2px solid var(--ink);
  position: relative;
}
.seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.55;
}

/* Sunburst — radiating retro rays */
.sunburst {
  border-radius: 999px;
  background: repeating-conic-gradient(
    from 0deg,
    currentColor 0deg 3deg,
    transparent 3deg 15deg
  );
  animation: spin 44s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Buttons — stamped
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--orange { background: var(--orange); color: #F6EEDD; }
.btn--orange:hover { background: #B8451A; }

.btn--ink { background: var(--ink); color: #F6EEDD; }
.btn--ink:hover { background: var(--orange); border-color: var(--ink); }

.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #F6EEDD; }

.btn--cream { background: #F6EEDD; color: var(--ink); }
.btn--cream:hover { background: #fff; }

/* ==========================================================================
   Catalogue detailing
   ========================================================================== */

.catnum {
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--orange);
  line-height: 0.9;
}

.rule { height: 1px; background: #C9B896; }
.star { color: #DFA22C; }

/* Coupon dashed frame */
.coupon { border: 2px dashed rgba(246, 238, 221, 0.45); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease);
}
.faq-item[data-state="open"] .faq-body { max-height: 24rem; }

.faq-pm { position: relative; width: 16px; height: 16px; flex: none; color: var(--orange); }
.faq-pm::before,
.faq-pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-pm::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq-pm::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.faq-item[data-state="open"] .faq-pm::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-item[data-state="open"] .faq-q { color: var(--orange); }

/* ==========================================================================
   Forms (ink section · coupon style)
   ========================================================================== */

.field {
  width: 100%;
  background: transparent;
  border: 1.5px dashed rgba(246, 238, 221, 0.4);
  color: #F6EEDD;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s var(--ease), border-style 0.25s var(--ease);
}
.field::placeholder { color: rgba(246, 238, 221, 0.4); }
.field:focus { border-color: #DD5A22; border-style: solid; }
.field option { color: #2C2118; }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #DD5A22;
  border-bottom: 2px solid #DD5A22;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2C2118;
  color: #F6EEDD;
  border: 3px double #DD5A22;
  font-size: 13px;
  padding: 15px 22px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast.is-shown { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sunburst { animation: none; }
  .btn, .btn__arrow, .faq-pm::before, .faq-pm::after { transition: none; }
}
