/* Ashes to Ashtrays - legacy ceramics studio */

:root {
  --ink: #171512;
  --ink-soft: #241f1b;
  --paper: #f1ece3;
  --paper-dim: #e7e0d3;
  --brass: #b08d4f;
  --brass-soft: #c9ad78;
  --muted: #7d7468;
  --muted-dark: #a89c8c;
  --card: #ffffff;
  --line: #d9d1c2;
  --shadow: 0 10px 30px rgba(23, 21, 18, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 10px 0 16px; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 8px 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(176, 141, 79, 0.35);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.brand img { width: 40px; height: 40px; border-radius: 50%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--brass-soft); }

.cart-btn {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--brass-soft);
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}

.cart-btn:hover { background: var(--brass); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero .wrap {
  position: relative;
  padding: 110px 20px 120px;
  max-width: 820px;
  text-align: center;
}

.hero .tag {
  font-size: 1.15rem;
  color: var(--paper-dim);
  max-width: 620px;
  margin: 0 auto 30px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: var(--brass);
  color: var(--paper);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 11px 26px;
  margin: 4px 6px 4px 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: #997a41; }

.btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(241, 236, 227, 0.6);
}

.btn.ghost:hover { background: rgba(241, 236, 227, 0.12); }

.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn.dark:hover { background: #33291f; }

.btn.small { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; scroll-margin-top: 70px; }
section.alt { background: var(--paper-dim); }

section.dark {
  background: var(--ink);
  color: var(--paper);
}

section.dark .eyebrow { color: var(--brass-soft); }
section.dark p { color: var(--paper-dim); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.split p { color: #4c453c; }

/* ---------- Product grid ---------- */
.vessel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.vessel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.vessel-card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vessel-card .notes {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.vessel-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.price { font-size: 1.2rem; font-weight: 600; }

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper-dim);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.badge.brass { background: var(--brass-soft); }

/* ---------- Heirloom projector ---------- */
.projector {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 34px 38px;
  text-align: center;
}

.projector input[type="range"] {
  width: 100%;
  margin: 22px 0 10px;
  accent-color: var(--brass);
}

.projector .gens {
  font-size: 1.7rem;
  font-weight: 600;
}

.projector .gens span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.projector .dial {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.projector .dial div strong { display: block; font-size: 1.25rem; }
.projector .dial div span { color: var(--muted); font-size: 0.85rem; }

.projector .stage-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brass);
  margin-top: 12px;
}

.projector .stage-desc { color: var(--muted); }

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.quote {
  background: rgba(241, 236, 227, 0.06);
  border: 1px solid rgba(176, 141, 79, 0.35);
  border-radius: 10px;
  padding: 24px 26px;
  font-style: italic;
  color: var(--paper-dim);
}

.quote footer {
  margin-top: 14px;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--brass-soft);
}

/* Light variant for the testimonials page */
.quotes.light .quote {
  background: var(--card);
  border-color: var(--line);
  color: #4c453c;
  box-shadow: var(--shadow);
}

.quotes.light .quote footer { color: var(--brass); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.price-card.featured { border-color: var(--brass); border-width: 2px; }

.price-card .amount {
  font-size: 2rem;
  font-weight: 600;
  margin: 6px 0 12px;
}

.price-card .amount span { font-size: 1rem; color: var(--muted); font-weight: 400; }

.price-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.price-card li { margin-bottom: 6px; }

/* ---------- Form ---------- */
.form-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.form-box form {
  margin-top: 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-box label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 6px;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
}

.form-box textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: #100e0c;
  color: var(--muted-dark);
  padding: 44px 0 54px;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer nav { display: flex; flex-direction: column; gap: 8px; }

.site-footer a { color: var(--brass-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Cart drawer ---------- */
.drawer-veil {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.55);
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: var(--paper);
  z-index: 70;
  padding: 28px 26px;
  overflow-y: auto;
  box-shadow: -12px 0 30px rgba(16, 14, 12, 0.3);
}

.cart-drawer h2 { margin-top: 4px; }

.cart-drawer .fine {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

.cart-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.cart-row .qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-row .qty button {
  font: inherit;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 18px 0;
}

/* ---------- Order modal ---------- */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.6);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-modal .box {
  background: var(--paper);
  border-radius: 12px;
  max-width: 420px;
  padding: 30px 32px;
  text-align: center;
}

/* ---------- Lightbox ---------- */
img.zoom { cursor: zoom-in; }

.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.88);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.modal-veil img {
  max-width: min(920px, 100%);
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.modal-veil figcaption {
  color: var(--paper-dim);
  text-align: center;
  font-style: italic;
  margin-top: 14px;
}

.modal-veil[hidden],
.order-modal[hidden] { display: none; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

/* ---------- Marketing page ---------- */
.poster-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.poster-stack figure {
  margin: 0;
  text-align: center;
  max-width: 760px;
}

.poster-stack img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.poster-stack figcaption {
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .vessel-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero .wrap { padding: 80px 20px 90px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .vessel-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .projector { padding: 26px 20px 30px; }
}
