:root {
  --ink: #12100e;
  --ink-soft: #3c342c;
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --resin-deep: #061018;
  --resin-blue: #0c2840;
  --resin-teal: #1a4a5c;
  --amber: #c9a15b;
  --amber-hot: #d4a054;
  --wood: #3d2914;
  --wood-light: #6b4420;
  --line: rgba(18, 16, 14, 0.12);
  --err: #8b2e1f;
  --ok: #2b5a3e;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.wood-bar {
  height: 7px;
  background:
    repeating-linear-gradient(
      90deg,
      #2a180c 0 7px,
      #5a3a1c 7px 12px,
      #3a2412 12px 18px,
      #6b4420 18px 22px,
      #21120a 22px 28px
    );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark span {
  letter-spacing: 0.08em;
  font-size: 0.7em;
  opacity: 0.55;
  margin-left: 0.35rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.site-nav a.is-current,
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--amber);
}
.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 99px;
  background: var(--resin-blue);
  color: var(--paper);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}
.nav-fold { display: none; }
.nav-fold summary {
  list-style: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.nav-fold summary::-webkit-details-marker { display: none; }

.page-hero, .band-inner, .hero-copy, .product, .form-wrap, .confirm {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-hero { padding-top: 3.5rem; padding-bottom: 1rem; }
.lede { font-size: 1.15rem; max-width: 38rem; color: var(--ink-soft); }
.about-prose { max-width: 40rem; }
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.quotes blockquote {
  margin: 0;
  padding: 1.35rem 1.4rem 1.2rem;
  background: #fffdf8;
  border-left: 3px solid var(--amber);
}
.quotes blockquote p {
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 0.85rem;
}
.quotes footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-light);
}
.quotes cite { font-style: normal; color: var(--ink); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--wood-light);
  margin-bottom: 0.6rem;
}
.price {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--wood);
}

.hero {
  position: relative;
  min-height: min(82vh, 740px);
  display: grid;
  place-items: end start;
  color: var(--paper);
  overflow: hidden;
}
.hero-resin {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 28%, #1a5a6e 0%, transparent 46%),
    radial-gradient(ellipse at 82% 72%, #8b4513 0%, transparent 42%),
    radial-gradient(ellipse at 60% 20%, rgba(201, 161, 91, 0.28) 0%, transparent 36%),
    radial-gradient(ellipse at 50% 50%, #0c2840 0%, #050a10 72%);
  animation: resin-drift 22s ease-in-out infinite alternate;
}
.hero-resin::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0 18px,
      rgba(255, 255, 255, 0.015) 18px 19px
    );
  mix-blend-mode: overlay;
}
@keyframes resin-drift {
  from { filter: saturate(1) hue-rotate(0deg); transform: scale(1); }
  to { filter: saturate(1.08) hue-rotate(-8deg); transform: scale(1.04); }
}
.hero-copy {
  position: relative;
  padding: 4rem 1.25rem 3.5rem;
}
.hero-copy h1 { font-size: clamp(4rem, 12vw, 8rem); letter-spacing: 0.12em; text-transform: uppercase; }
.hero-copy .lede { color: rgba(244, 239, 230, 0.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  background: var(--resin-blue);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  font: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn:hover { background: var(--resin-teal); }
.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-danger { background: var(--err); }
.text-link { letter-spacing: 0.03em; }
.text-btn {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
}

.band { padding: 4rem 0; }
.band-story { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.section-head { margin-bottom: 1.75rem; }
.section-foot { margin-top: 1.75rem; }
.prose p { max-width: 40rem; }

.piece-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.shop-grid { grid-template-columns: repeat(2, 1fr); }
.piece-card a { text-decoration: none; display: block; }
.piece-card h3 { margin-top: 0.2rem; }
.piece-meta { padding: 0.9rem 0 0.2rem; }
.piece-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, var(--resin-b, #1a5a6e), transparent 52%),
    radial-gradient(ellipse at 80% 80%, var(--resin-c, #c4782a), transparent 46%),
    linear-gradient(160deg, var(--resin-a, #0a2a40), #05080c);
}
.piece-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.78;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.piece-card:hover img { transform: scale(1.04); opacity: 0.9; }

.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.product-media { min-height: 420px; }
.spec { display: grid; gap: 0.9rem; margin: 1.4rem 0; }
.spec dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wood-light); }
.spec dd { margin: 0.15rem 0 0; }
.add-form { display: flex; gap: 0.75rem; align-items: end; margin: 1.2rem 0; }
.add-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; }
.add-form input { width: 5rem; }
.fine, .muted, .optional { color: var(--ink-soft); font-size: 0.92rem; }
.optional { font-size: 0.8rem; }
.gallery { display: grid; gap: 0.75rem; margin-top: 2rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.step-n {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--amber);
}

.stack-form, .stack-form label { display: grid; gap: 0.4rem; }
.stack-form { gap: 1rem; max-width: 36rem; }
.stack-form input, .stack-form textarea, .stack-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 0.7rem 0.75rem;
  font: inherit;
  min-height: 44px;
}
.stack-form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 0.45rem; }

.banner {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.banner-ok { background: #dce8df; color: var(--ok); }
.banner-err { background: #f3ddd8; color: var(--err); }

.cart-root { max-width: 40rem; }
.lines { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.lines th, .lines td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
.checkout-steps {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.checkout-steps [aria-current="step"] { color: var(--amber-hot); }
.order-ref { font-size: 1.1rem; }
.empty { padding: 2rem 0; }

.site-footer {
  background: var(--resin-deep);
  color: rgba(244, 239, 230, 0.82);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.footer-mark {
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--amber); }

.admin-body { background: #efe8db; }
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--resin-deep);
  color: var(--paper);
  flex-wrap: wrap;
}
.admin-header nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.admin-header a { color: var(--paper); text-decoration: none; }
.admin-header .text-btn { color: var(--amber); text-decoration: none; }
.admin-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fffdf8; }
.admin-table th, .admin-table td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  background: var(--paper-2);
}
.pill-on { background: #dce8df; color: var(--ok); }
.pill-gold { background: #efe1be; color: var(--wood); }
.admin-form { max-width: 40rem; }
.danger-form { margin-top: 2rem; }
.inbox { display: grid; gap: 1rem; }
.inbox-card { background: #fffdf8; padding: 1.1rem 1.2rem; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--resin-deep); }
.login-card {
  width: min(28rem, calc(100% - 2rem));
  background: var(--paper);
  padding: 2rem 1.5rem;
}
.inline-form { display: inline; }

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .nav-fold { display: block; }
  .nav-fold[open] .site-nav {
    position: absolute;
    right: 1rem;
    top: 4.2rem;
    background: var(--paper);
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.7rem;
    border: 1px solid var(--line);
  }
  .split, .product, .piece-grid, .shop-grid, .form-row, .steps li {
    grid-template-columns: 1fr;
  }
  .product-media { min-height: 260px; }
}

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