@charset "UTF-8";
/* CSS Document */
 :root {
    --ink: #1a1410;
    --parchment: #f5ede0;
    --parchment-dark: #ead8c0;
    --parchment-light: #fdf8f2;
    --rust: #8b3a1e;
    --rust-light: #c4602e;
    --gold: #b8922a;
    --gold-light: #d4a843;
    --text: #2c1f10;
    --muted: #7a6550;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --display: 'Cinzel', serif;
    --fell: 'IM Fell English SC', serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--ink); color: var(--parchment); font-family: var(--serif); font-size: 18px; line-height: 1.75; overflow-x: hidden; }

  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 3rem; background: linear-gradient(to bottom, rgba(10,7,4,0.96) 0%, rgba(10,7,4,0) 100%); }
  nav .brand { font-family: var(--display); font-size: 1rem; letter-spacing: 0.25em; color: var(--gold-light); text-decoration: none; }
  nav ul { list-style: none; display: flex; gap: 2.5rem; }
  nav ul a { font-family: var(--fell); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--parchment); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
  nav ul a:hover { opacity: 1; color: var(--gold-light); }

  #hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem 2rem 5rem; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(80,40,10,0.55) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 20% 80%, rgba(30,50,20,0.35) 0%, transparent 60%), #0e0a06; }
  .hero-intro-img { position: absolute; inset: 0; background-image: url('https://tim.girvin.com/wp-content/uploads/2022/09/wanderer_intro.gif'); background-size: cover; background-position: center; opacity: 0.18; mix-blend-mode: luminosity; }
  .hero-figure { width: 200px; height: 200px; margin-bottom: 2rem; opacity: 0; animation: fadeUp 1.4s ease 0.3s forwards; position: relative; }
  .hero-label { font-family: var(--fell); font-size: 0.72rem; letter-spacing: 0.35em; color: var(--gold); margin-bottom: 0.75rem; opacity: 0; animation: fadeUp 1s ease 0.9s forwards; position: relative; }
  h1 { font-family: var(--display); font-size: clamp(3.2rem, 9vw, 6.5rem); font-weight: 400; letter-spacing: 0.12em; line-height: 1; color: var(--parchment); margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 1.2s ease 1.1s forwards; position: relative; }
  .hero-tagline { font-size: 1.2rem; font-weight: 300; font-style: italic; color: var(--parchment-dark); max-width: 520px; margin: 0 auto 2.5rem; opacity: 0; animation: fadeUp 1.2s ease 1.3s forwards; position: relative; }
  .hero-divider { width: 100px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 0 auto 2.5rem; opacity: 0; animation: fadeUp 1s ease 1.5s forwards; position: relative; }
  .hero-verse { max-width: 460px; font-size: 1.05rem; font-style: italic; color: var(--muted); line-height: 2.1; opacity: 0; animation: fadeUp 1s ease 1.7s forwards; position: relative; }
  .hero-verse em { color: var(--parchment-dark); font-style: normal; }
  .scroll-cue { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeUp 1s ease 2.3s forwards; }
  .scroll-cue span { font-family: var(--fell); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--muted); }
  .scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out 2.5s infinite; }

  #about { background: var(--parchment-light); color: var(--text); padding: 7rem 2rem; }
  .about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
  .section-label { font-family: var(--fell); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rust); margin-bottom: 1.5rem; display: block; }
  .about-inner h2 { font-family: var(--display); font-size: 2.3rem; font-weight: 400; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 2rem; }
  .about-inner p { font-size: 1.12rem; color: var(--text); margin-bottom: 1.5rem; }
  .about-inner .drop-cap::first-letter { font-family: var(--display); font-size: 4rem; line-height: 0.8; float: left; margin: 0.1em 0.1em 0 0; color: var(--rust); }
  .ornament { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 2rem 0; color: var(--gold); font-size: 1.1rem; }
  .ornament::before, .ornament::after { content: ''; flex: 1; max-width: 80px; height: 1px; background: var(--gold); opacity: 0.4; }

  #book { background: #110c07; padding: 7rem 2rem; }
  #book h2 { font-family: var(--display); font-size: 2.1rem; font-weight: 400; letter-spacing: 0.1em; color: var(--parchment); text-align: center; margin-bottom: 0.6rem; }
  #book .sub { text-align: center; font-style: italic; color: var(--muted); margin-bottom: 4rem; font-size: 1.05rem; }
  .suits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; max-width: 1080px; margin: 0 auto; background: rgba(184,146,42,0.08); }
  .suit-panel { background: #0d0905; padding: 0; cursor: pointer; transition: background 0.3s; position: relative; overflow: hidden; }
  .suit-panel:hover { background: #1a1108; }
  .suit-preview { width: 100%; height: 150px; object-fit: cover; display: block; filter: sepia(0.35) brightness(0.7); transition: filter 0.4s, transform 0.6s; }
  .suit-panel:hover .suit-preview { filter: sepia(0.1) brightness(0.92); transform: scale(1.04); }
  .suit-panel-body { padding: 1.5rem 1.5rem 1.75rem; }
  .suit-name { font-family: var(--display); font-size: 1rem; letter-spacing: 0.12em; color: var(--gold-light); margin-bottom: 0.4rem; }
  .suit-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; font-style: italic; }
  .suit-cards { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .suit-cards span { font-family: var(--fell); font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(184,146,42,0.5); border: 1px solid rgba(184,146,42,0.18); padding: 2px 7px; border-radius: 2px; }

  #casting { background: var(--parchment); color: var(--ink); padding: 7rem 2rem; text-align: center; }
  #casting h2 { font-family: var(--display); font-size: 2.3rem; font-weight: 400; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 0.6rem; }
  #casting .sub { font-style: italic; color: var(--muted); margin-bottom: 3.5rem; font-size: 1.05rem; }
  .intention-box { max-width: 520px; margin: 0 auto 3rem; }
  .intention-box label { display: block; font-family: var(--fell); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 0.75rem; }
  .intention-box textarea { width: 100%; background: var(--parchment-light); border: 1px solid rgba(26,20,16,0.18); border-radius: 3px; padding: 1rem 1.25rem; font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--ink); resize: none; height: 88px; outline: none; transition: border-color 0.2s; }
  .intention-box textarea:focus { border-color: var(--rust); }
  .intention-box textarea::placeholder { color: var(--muted); opacity: 0.55; }
  .draw-btn { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--rust); color: var(--parchment); border: none; padding: 1rem 2.5rem; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.2em; cursor: pointer; border-radius: 2px; transition: background 0.2s, transform 0.15s; }
  .draw-btn:hover { background: var(--rust-light); transform: translateY(-1px); }
  .draw-btn:active { transform: translateY(0); }
  .card-stage { margin: 4rem auto 0; max-width: 560px; min-height: 200px; }

  .card-face { display: none; background: #0f0a06; color: var(--parchment); border-radius: 6px; overflow: hidden; box-shadow: 0 28px 90px rgba(8,4,2,0.6); animation: cardReveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
  .card-face.visible { display: block; }
  .card-header { background: #130d08; padding: 2rem 2.5rem 1.75rem; border-bottom: 1px solid rgba(184,146,42,0.15); }
  .card-suit-badge { font-family: var(--fell); font-size: 0.64rem; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem; }
  .card-suit-badge::before, .card-suit-badge::after { content: '–'; opacity: 0.35; }
  .card-title { font-family: var(--display); font-size: 2.3rem; font-weight: 400; letter-spacing: 0.1em; color: var(--parchment); }
  .card-art { width: 100%; position: relative; background: #080503; overflow: hidden; max-height: 440px; }
  .card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 9s ease; }
  .card-face.visible .card-art img { transform: scale(1.05); }
  .card-art-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(8,4,2,0.7) 100%); }
  .card-body { padding: 2.25rem 2.5rem; }
  .card-facets { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 2rem; }
  .facet { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.1rem; }
  .facet-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 0.5rem; }
  .facet-text { color: var(--parchment-dark); font-style: italic; }
  .facet-text.dim { opacity: 0.42; }
  .card-reflection { border-top: 1px solid rgba(184,146,42,0.12); padding-top: 2rem; }
  .card-reflection h4 { font-family: var(--fell); font-size: 0.68rem; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 1rem; }
  .card-reflection p { font-size: 1.05rem; color: var(--muted); font-style: italic; line-height: 1.85; }
  .reflection-loading { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-style: italic; font-size: 0.95rem; min-height: 48px; }
  .dots span { display: inline-block; animation: dotPulse 1.4s ease-in-out infinite; opacity: 0.3; }
  .dots span:nth-child(2) { animation-delay: 0.2s; }
  .dots span:nth-child(3) { animation-delay: 0.4s; }
  .draw-again-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; background: transparent; border: 1px solid rgba(184,146,42,0.35); color: var(--gold); padding: 0.7rem 1.75rem; font-family: var(--fell); font-size: 0.68rem; letter-spacing: 0.2em; cursor: pointer; border-radius: 2px; transition: background 0.2s; }
  .draw-again-btn:hover { background: rgba(184,146,42,0.08); }

  #gallery { background: #090603; padding: 6rem 0 5rem; }
  #gallery h2 { font-family: var(--display); font-size: 2rem; font-weight: 400; letter-spacing: 0.1em; color: var(--parchment); text-align: center; margin-bottom: 0.6rem; }
  #gallery .sub { text-align: center; font-style: italic; color: var(--muted); margin-bottom: 3rem; }
  .gallery-outer { position: relative; }
  .gallery-strip { display: flex; gap: 1rem; padding: 1rem 3rem 2rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery-strip::-webkit-scrollbar { display: none; }
  .gallery-card { flex-shrink: 0; width: 180px; background: #110d08; border: 1px solid rgba(184,146,42,0.1); border-radius: 3px; overflow: hidden; cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
  .gallery-card:hover { transform: translateY(-8px); border-color: rgba(184,146,42,0.45); box-shadow: 0 20px 48px rgba(0,0,0,0.55); }
  .gallery-card img { width: 100%; height: 225px; object-fit: cover; display: block; filter: sepia(0.2) brightness(0.78); transition: filter 0.4s; }
  .gallery-card:hover img { filter: sepia(0) brightness(0.96); }
  .gallery-card-label { padding: 0.85rem 1rem; }
  .gallery-card-label .suit { font-family: var(--fell); font-size: 0.58rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.2rem; }
  .gallery-card-label .name { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--parchment); }
  .gallery-outer::before, .gallery-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
  .gallery-outer::before { left: 0; background: linear-gradient(to right, #090603, transparent); }
  .gallery-outer::after  { right: 0; background: linear-gradient(to left, #090603, transparent); }

  footer { background: #080503; border-top: 1px solid rgba(184,146,42,0.12); padding: 4rem 2rem; text-align: center; }
  .footer-logo { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 1rem; }
  .footer-verse { font-style: italic; color: var(--muted); font-size: 0.95rem; max-width: 440px; margin: 0 auto 2rem; line-height: 1.85; }
  .footer-links { display: flex; justify-content: center; gap: 2rem; list-style: none; margin-bottom: 2rem; }
  .footer-links a { font-family: var(--fell); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--gold-light); }
  .footer-copy { font-size: 0.78rem; color: rgba(122,101,80,0.45); }

  @keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
  @keyframes cardReveal { from { opacity:0; transform:scale(0.94) translateY(28px); } to { opacity:1; transform:scale(1) translateY(0); } }
  @keyframes scrollPulse { 0%,100%{opacity:.3;} 50%{opacity:.8;} }
  @keyframes dotPulse { 0%,80%,100%{opacity:.3} 40%{opacity:1} }

  @media (max-width: 640px) {
    nav { padding: 1rem 1.25rem; } nav ul { gap: 1rem; } nav ul a { font-size: 0.68rem; }
    h1 { font-size: 3rem; } .card-title { font-size: 1.8rem; }
    .card-body { padding: 1.5rem; } .card-header { padding: 1.5rem; }
    .gallery-strip { padding: 1rem 1.5rem 2rem; } .gallery-card { width: 148px; } .gallery-card img { height: 185px; }
  }
