:root {
  --bg: #090817;
  --ink: #fffdf7;
  --muted: #c9c3d5;
  --yellow: #eab308;
  --purple: #a855f7;
  --pink: #ec4899;
  --teal: #14b8a6;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(168,85,247,.16), transparent 28rem),
    radial-gradient(circle at 82% 65%, rgba(234,179,8,.11), transparent 30rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 5px;
}

a { color: inherit; }
.topbar, main, footer { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 90px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.wordmark { font-family: Anton, sans-serif; font-size: 1.7rem; text-decoration: none; letter-spacing: .035em; }
.wordmark span { color: var(--yellow); }
.back-link { color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .22em; }
.back-link:hover, footer a:hover { color: var(--yellow); }

main { padding: clamp(3rem, 7vw, 6rem) 0 5rem; }
.intro { max-width: 790px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--yellow); font-size: .72rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
h1 { margin: 0; font-family: Anton, sans-serif; font-size: clamp(3.8rem, 9vw, 7.2rem); font-weight: 400; line-height: .96; letter-spacing: -.025em; }
h1 span { background: linear-gradient(90deg,var(--purple),var(--yellow),var(--pink)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.intro > p:last-child { max-width: 650px; margin: 1.8rem auto 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.reading-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.reading-card { position: relative; min-height: 480px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; text-decoration: none; isolation: isolate; }
.reading-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(7,6,19,.05) 15%,rgba(7,6,19,.94) 92%); }
.card-number { position: absolute; top: 1.3rem; left: 1.4rem; z-index: 1; color: var(--yellow); font-family: Anton,sans-serif; font-size: 2.5rem; }
.card-copy { position: absolute; inset: auto 1.6rem 1.6rem; z-index: 1; display: grid; gap: .8rem; }
.card-copy strong { font-family: Anton,sans-serif; font-size: clamp(2rem,3.3vw,3.25rem); font-weight: 400; line-height: 1; white-space: nowrap; }
.card-copy small { max-width: 34rem; color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.55; }
.card-copy em { width: fit-content; margin-top: .3rem; padding: .75rem 1rem; border: 1px solid white; border-radius: 5px; font-size: .7rem; font-style: normal; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.tarot-card:hover { border-color: var(--pink); box-shadow: 0 0 35px rgba(236,72,153,.2); }
.saju-card:hover { border-color: var(--purple); box-shadow: 0 0 35px rgba(168,85,247,.22); }
.natal-card:hover { border-color: var(--yellow); box-shadow: 0 0 35px rgba(234,179,8,.2); }
.reading-card:hover img, .reading-card:focus-visible img { transform: scale(1.04); }
.reading-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid rgba(255,255,255,.18); color: #837d90; font-size: .75rem; }
footer a { color: var(--yellow); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 900px) {
  .reading-options { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar, main, footer { width: min(100% - 32px, 1180px); }
  .topbar { min-height: 70px; }
  .wordmark { font-size: 1.45rem; }
  .back-link { max-width: 145px; text-align: right; line-height: 1.45; }
  main { padding: 2.8rem 0 3rem; }
  h1 { font-size: clamp(3.4rem, 17vw, 5.2rem); line-height: .98; }
  .intro { margin-bottom: 2.2rem; }
  .intro > p:last-child { margin-top: 1.25rem; font-size: .9rem; }
  .reading-options { grid-template-columns: 1fr; gap: 1rem; }
  .reading-card { min-height: 390px; }
  .card-copy { inset: auto 1.2rem 1.2rem; }
  .card-copy strong { font-size: clamp(1.9rem, 9vw, 2.35rem); }
  footer { flex-direction: column; text-align: center; line-height: 1.5; }
}
