/* The vurt's Shoppe — palette & style extrapolated from the crest logo.
   Colours matched to the logo exactly: deep pine-teal badge, antique gold,
   d20 teal, mushroom rust, sage olive. Medieval type, atmospheric dark theme. */
:root {
  --bg: #103430;          /* deep pine-teal */
  --bg-badge: #15433d;    /* logo badge teal */
  --card: #184b45;        /* raised teal panel */
  --ink: #f3e8ca;         /* warm parchment text */
  --muted: #b9ad8a;       /* aged-gold/sage secondary text */
  --gold: #cda23a;        /* antique gold — primary accent */
  --gold-bright: #e7c869; /* gold highlight / hover */
  --teal: #37a890;        /* d20 / teacup teal */
  --rust: #c06a34;        /* mushroom terracotta */
  --rust-bright: #dd8450;
  --olive: #8a9a55;       /* foliage sage */
  --line: #2a5d54;        /* teal hairline */
  --radius: 14px;
  --maxw: 1140px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 72% -12%, #1b544c 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "MedievalSharp", Georgia, serif; font-weight: 400; letter-spacing: .01em; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-bright); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 52, 48, .82);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto; padding: .75rem 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.brand-name { font-family: "IM Fell English", Georgia, serif; font-size: 1.5rem; font-weight: 400; color: var(--gold); line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: Inter, sans-serif; font-weight: 400; font-size: .62rem; color: var(--olive); letter-spacing: .2em; text-transform: uppercase; margin-top: 2px; }
.site-header nav { display: flex; gap: 1.3rem; align-items: center; }
.site-header nav a { color: var(--ink); font-weight: 500; }
.site-header nav a:hover { color: var(--gold-bright); }
.site-header nav a.nav-ebay { color: var(--gold); }

/* Hero */
.hero { border-bottom: 1px solid var(--line); box-shadow: inset 0 -70px 90px -55px rgba(0,0,0,.4); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 16px 3.5rem; text-align: center; }
.hero-logo { width: clamp(300px, 44vw, 460px); max-width: 86vw; height: auto; margin: 0 auto 1.1rem; display: block; filter: drop-shadow(0 6px 22px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; margin: .4rem 0 1rem; color: var(--gold); }
.hero p { max-width: 58ch; margin: 0 auto 1.8rem; color: var(--ink); font-size: 1.08rem; }

/* Tagline flourish — IM Fell italic motto flanked by mushroom-rust ornaments */
.flourish {
  font-family: "IM Fell English", Georgia, serif; font-style: italic;
  color: var(--gold-bright); font-size: 1.12rem; letter-spacing: .02em;
  margin: 0 auto .4rem; max-width: 52ch; text-align: center;
}
.flourish::before { content: "❧\00a0\00a0"; }
.flourish::after { content: "\00a0\00a0❧"; }
.flourish::before, .flourish::after { color: var(--rust); font-style: normal; }

/* Decorative section rule (olive vine + rust bud) */
.rule { display: flex; align-items: center; gap: 1rem; max-width: 460px; margin: 1.2rem auto 0; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to var(--d, right), transparent, var(--olive)); }
.rule::after { --d: left; }
.rule span { color: var(--rust); font-size: 1rem; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: #10302b; font-weight: 600; padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid var(--gold); transition: background .12s ease; }
.btn:hover { background: var(--gold-bright); color: #10302b; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(205,162,58,.12); color: var(--gold-bright); }

/* Collection */
.collection { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 16px; }
.collection h2, .about h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 .3rem; color: var(--gold); }
.collection h2 .leaf, .about h2 .leaf { color: var(--olive); font-size: .8em; margin-left: .45rem; }
.collection h2 .leaf::after { content: "❦"; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 2.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.card-img { aspect-ratio: 1 / 1; background: var(--bg-badge); display: grid; place-items: center; border-bottom: 2px solid var(--rust); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .muted { font-size: .8rem; }
.card-img .noimg { font-size: 2.6rem; color: var(--line); }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { font-family: Inter, sans-serif; font-size: .95rem; font-weight: 500; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; font-size: 1rem; color: var(--gold); background: rgba(205,162,58,.14); border: 1px solid rgba(205,162,58,.3); padding: .12rem .5rem; border-radius: 6px; }
.cta { font-size: .78rem; color: var(--teal); }

/* About */
.about { background: var(--bg-badge); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 16px; text-align: center; }
.about p { max-width: 62ch; margin: .6rem auto 0; color: var(--ink); }

/* Footer */
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: 2rem 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--gold); }

/* ---- Responsive refinements ---- */
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 600px) {
  .header-inner { justify-content: center; text-align: center; gap: .6rem; }
  .brand { justify-content: center; }
  .site-header nav { gap: 1rem; flex-wrap: wrap; justify-content: center; font-size: .95rem; }
  .hero-inner { padding: 1.8rem 16px 2.6rem; }
  .hero-logo { width: 80vw; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .flourish { font-size: .98rem; gap: .5rem; flex-wrap: wrap; }
  .collection, .about-inner { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .8rem; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Polish ---- */
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
::selection { background: var(--gold); color: #10302b; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
.btn { transition: background .12s ease, transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.site-header nav a, .card, .price { transition: color .12s ease; }
#status { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Faint aged-paper grain, echoing the logo's letterpress texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Themed scrollbar */
* { scrollbar-color: var(--gold) var(--bg-badge); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-badge); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 3px solid var(--bg-badge); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #status { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Polish round 2 ---- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: 1.5rem; color: var(--muted); font-size: .85rem; letter-spacing: .03em; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust span::before { content: "✦"; color: var(--teal); font-size: .8em; }

.card-img img { transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.06); }

.skeleton { pointer-events: none; }
.skeleton .card-img { border-bottom-color: var(--line); }
.skeleton .card-img, .sk-line { background: linear-gradient(90deg, var(--card) 25%, #215a51 37%, var(--card) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.sk-line { height: .72rem; border-radius: 4px; margin: .15rem 0; }
.sk-line.sk-short { width: 55%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .skeleton .card-img, .sk-line { animation: none; }
  .card:hover .card-img img { transform: none; }
}

/* ---- Polish round 3: skip link, footer, back-to-top ---- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--gold); color: #10302b; padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }

.site-footer { display: block; max-width: none; margin: 0; padding: 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem 16px 1.6rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand p { margin: 0; }
.footer-name { font-family: "IM Fell English", Georgia, serif; font-size: 1.2rem; color: var(--gold); margin: 0 0 .15rem !important; }
.footer-links { display: flex; gap: 1.3rem; }
.footer-links a { color: var(--gold); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1rem 16px 2.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.privacy { max-width: 62ch; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(16,52,48,.9); color: var(--gold); font-size: 1.25rem; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, background .15s ease, color .15s ease; z-index: 40; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold); color: #10302b; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; } }

/* ---- Browse-by categories ---- */
.categories { max-width: var(--maxw); margin: 0 auto; padding: 3rem 16px 1rem; }
.categories h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--gold); margin: 0 0 1.2rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.cat { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-family: "IM Fell English", Georgia, serif; font-size: 1.15rem; text-align: center; transition: transform .12s ease, border-color .12s ease, color .12s ease; }
.cat:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-bright); }
.cat-glyph { font-size: 1.9rem; line-height: 1; color: var(--gold); }
.cat:nth-child(2) .cat-glyph { color: var(--teal); }
.cat:nth-child(3) .cat-glyph { color: var(--rust); }
.cat:nth-child(4) .cat-glyph { color: var(--olive); }
.cat:nth-child(5) .cat-glyph { color: var(--gold-bright); }
.cat:first-child { border-color: rgba(205,162,58,.4); }

/* ---- Sell banner, nav highlight & forms ---- */
.nav-sell { color: var(--rust-bright) !important; font-weight: 600; }
.nav-sell:hover { color: var(--gold-bright) !important; }

.sell-banner { background: var(--bg-badge); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sell-banner-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 16px 2.2rem 20px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-left: 4px solid var(--rust); }
.sell-banner h2 { color: var(--gold); margin: 0 0 .3rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.sell-banner p { margin: 0; color: var(--ink); max-width: 60ch; }
.sell-banner .btn { white-space: nowrap; }

/* Content pages (sell page) */
.page { max-width: 780px; margin: 0 auto; padding: 2.5rem 16px 1rem; }
.page h2 { color: var(--gold); margin: 2rem 0 .6rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin: .35rem 0; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: .8rem; }
.steps li { position: relative; padding-left: 2.6rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #10302b; font-weight: 700; }

/* Forms */
.form { max-width: 680px; margin: 1.4rem auto 0; display: grid; gap: 1.1rem; position: relative; }
.form label { display: block; font-weight: 500; margin-bottom: .3rem; }
.form input, .form textarea { width: 100%; background: var(--bg-badge); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; padding: .7rem .8rem; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(205,162,58,.25); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { color: var(--muted); font-size: .85rem; margin-top: -.4rem; }
.form-status { min-height: 1.4rem; font-weight: 500; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--rust-bright); }

