/* Lunar Bunny Art — modern Victorian-celestial theme.
   Palette: twilight indigo, antique gold, parchment, wine. */

:root {
  --ink: #171028;          /* deepest twilight */
  --bg: #1d1433;           /* page base */
  --bg-2: #251a40;         /* raised panels */
  --line: #3b2d5e;         /* hairlines */
  --gold: #c9a227;
  --gold-hi: #f0d98c;
  --cream: #f2e9d8;
  --cream-dim: #cfc3ae;
  --wine: #7e3a56;
  --serif: "Didot", "Bodoni MT", "Cochin", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 70% -10%, #2c1f4d 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 100%, #241536 0%, transparent 55%),
    var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* faint engraved-star field */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #d8c88a66 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, #d8c88a4d 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 55% 38%, #d8c88a40 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 72%, #d8c88a33 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90% 60%, #d8c88a4d 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 90%, #d8c88a33 50%, transparent 51%);
}

main { flex: 1; width: min(1060px, 92vw); margin: 0 auto; padding: 2.2rem 0 4rem; position: relative; z-index: 1; }

h1, h2, h3, .brand span, .card-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--cream);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: 1.7rem; margin: 2.4rem 0 .9rem; }
h3 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
p { margin: .7rem 0; color: var(--cream-dim); }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* header */
.site-head {
  position: relative; z-index: 2;
  width: min(1060px, 92vw); margin: 0 auto; padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand span { font-size: 1.35rem; color: var(--cream); }
.brand:hover { text-decoration: none; }
.site-head nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-head nav a { color: var(--cream-dim); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.site-head nav a.on, .site-head nav a:hover { color: var(--gold-hi); text-decoration: none; }

/* hero */
.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero .mark { width: 110px; height: 110px; filter: drop-shadow(0 0 24px #c9a22740); }
.hero p { max-width: 34rem; margin: 1rem auto 0; font-size: 1.1rem; }
.hero .orn { color: var(--gold); margin-top: 1.4rem; display: flex; gap: .8rem; justify-content: center; align-items: center; }

/* ornament rule */
.orn { color: var(--gold); display: flex; gap: .8rem; justify-content: center; align-items: center; margin: 1.2rem 0; }
.orn::before, .orn::after { content: ""; height: 1px; width: 90px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { background: linear-gradient(270deg, transparent, var(--gold)); }

/* card grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; margin-top: 1.4rem; }
.card { display: block; }
.card:hover { text-decoration: none; }
.frame {
  position: relative; display: block; aspect-ratio: 4/5; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--gold);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  box-shadow: 0 12px 30px #00000055;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover .frame { transform: translateY(-4px); box-shadow: 0 18px 40px #00000070; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--line); }
.badge {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--wine); color: var(--cream);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .6rem;
}
.card-title { display: block; margin-top: .9rem; font-size: 1.15rem; }
.card-sub { display: block; color: var(--gold-hi); font-size: .95rem; margin-top: .15rem; }

/* detail pages */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.detail .frame { aspect-ratio: auto; }
.detail .frame img { height: auto; }
.thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.thumbs img { width: 74px; height: 74px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.thumbs img.on { border-color: var(--gold); }
.meta { color: var(--cream-dim); font-size: .95rem; }
.meta b { color: var(--cream); font-weight: 500; }
.price { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-hi); margin: 1rem 0 .3rem; }

/* buttons + forms */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--gold); color: var(--ink);
  border: none; font-family: var(--sans); font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .8rem 1.9rem; margin-top: .8rem;
  transition: background .2s;
}
.btn:hover { background: var(--gold-hi); text-decoration: none; }
.btn[disabled] { background: var(--line); color: var(--cream-dim); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--gold-hi); border: 1px solid var(--gold); }

label { display: block; margin: 1rem 0 .3rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); }
input, textarea, select {
  width: 100%; background: var(--bg-2); color: var(--cream);
  border: 1px solid var(--line); padding: .7rem .8rem; font: inherit; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
form { max-width: 34rem; }
.note { font-size: .9rem; color: var(--cream-dim); }
.msg-ok { color: #a8d8a8; margin-top: 1rem; }
.msg-err { color: #e8a0a0; margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  text-align: center; padding: 1.6rem 0 2rem; position: relative; z-index: 1;
}
.site-foot p { font-size: .9rem; }
.foot-orn { color: var(--gold); display: flex; gap: .7rem; justify-content: center; align-items: center; margin-bottom: .4rem; }

/* prose pages */
.prose { max-width: 44rem; }
.prose p { white-space: pre-line; }

table.plain { border-collapse: collapse; width: 100%; margin-top: 1rem; }
table.plain th, table.plain td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.plain th { color: var(--cream-dim); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
