/* The Sword's Edge — mobile-first link page.
   Palette matches the Clear Path tarot playbooks (midnight navy, lavender, gold). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dm-sans-600.woff2") format("woff2");
}

:root {
  --ink: #221c35;
  --navy: #191427;
  --glow: #3a2f57;
  --card: #2a2340;
  --card-hover: #332b4c;
  --cream: #faf6ef;
  --gold: #a9874f;
  --gold2: #d6be8e;
  --lavender: #dcd2ec;
  --lavender-deep: #b7a7d4;
  --mute: #cfc3d8;
  --line: #4a3f63;
  --focus: #e8d7a8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle midnight glow + star field, matching the playbook covers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 18%, var(--glow) 0%, transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(58, 47, 87, 0.55) 0%, transparent 46%),
    var(--navy);
  pointer-events: none;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--gold2);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(28.5rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.55rem 0 2.25rem;
}

/* ----- Hero ----- */
.hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.moon {
  width: 3.85rem;
  height: 3.85rem;
  margin: 0 auto 0.65rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(214, 190, 142, 0.28));
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold2);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.35rem, 9vw, 3.15rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin: 0 0 0.55rem;
  color: var(--cream);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 0.7rem;
  color: var(--gold2);
}
.ornament::before,
.ornament::after {
  content: "";
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold2), transparent);
  opacity: 0.85;
}
.ornament svg { display: block; }

.tagline {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 1.02rem;
  color: var(--lavender);
  font-weight: 400;
}
.tagline em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--cream);
}

/* ----- Product cards ----- */
.products {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
}

.product {
  display: grid;
  grid-template-columns: 5.15rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem 0.65rem 0.65rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 6.1rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.product:hover,
.product:focus-visible {
  background: var(--card-hover);
  border-color: var(--gold);
}

.product .cover {
  width: 5.15rem;
  height: 6.65rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background: var(--ink);
  display: block;
}

.product .copy { min-width: 0; }

.product h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.15;
  margin: 0 0 0.28rem;
  color: var(--cream);
}

.product .blurb {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--mute);
}

.product .meta {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold2);
}

.chev {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gold2);
  flex: none;
}

/* ----- Button links ----- */
.links {
  display: grid;
  gap: 0.55rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(42, 35, 64, 0.72);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--card-hover);
  border-color: var(--gold2);
}
.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--gold2);
}
.btn.shop {
  background: linear-gradient(180deg, #c4a469 0%, #a9874f 100%);
  border-color: #d6be8e;
  color: #191427;
  font-weight: 700;
}
.btn.shop svg { color: #191427; }
.btn.shop:hover,
.btn.shop:focus-visible {
  background: linear-gradient(180deg, #d6be8e 0%, #b89655 100%);
  border-color: #faf6ef;
}

/* Gold shop button text on #a9874f: checked — #191427 on #A9874F is ~5.8:1, ok for large/bold text.
   The gradient starts lighter (#c4a469) so contrast is stronger on most of the button. */

/* ----- Footer ----- */
footer {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mute);
}
footer p { margin: 0.2rem 0; }
footer .fine {
  color: var(--lavender-deep);
}

/* ----- 404 ----- */
.notfound { text-align: center; padding: 3rem 0; }
.notfound h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}
.notfound p { color: var(--lavender); margin: 0 0 1.25rem; }

/* Focus */
a:focus-visible,
.product:focus-visible,
.btn:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

@media (min-width: 480px) {
  .product {
    grid-template-columns: 5.6rem 1fr auto;
  }
  .product .cover {
    width: 5.6rem;
    height: 7.25rem;
  }
}
