/* ─── Bramble & Forge — stylesheet ─────────────────────────────────────── */

:root {
  --cream:      #F7F3EC;
  --cream-alt:  #F0EBE1;
  --ink:        #1E1B16;
  --ink-mid:    #4A4540;
  --ink-dim:    #8A8077;
  --gold:       #C9A227;
  --gold-light: #E8C84A;
  --rust:       #8B3A2A;
  --border:     #D8D2C7;
  --border-dark:#B8B0A4;
  --radius:     3px;
  --shadow:     0 1px 4px rgba(30,27,22,.10);
  --shadow-md:  0 4px 16px rgba(30,27,22,.13);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: Georgia, serif;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
h4 { font-size: 1rem; font-weight: bold; margin-bottom: 10px; font-family: system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }

p { color: var(--ink-mid); line-height: 1.7; }
a { color: var(--ink); }
a:hover { color: var(--gold); }

.eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--cream-alt);
}

.section--tight {
  padding: 60px 0;
}

.section--cta {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
}

.section--cta h2 { color: var(--cream); }
.section--cta p { color: var(--border); }
.section--cta .eyebrow { color: var(--gold); }

.hairline {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-dark);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.section--cta .btn--ghost {
  color: var(--cream);
  border-color: rgba(247,243,236,.4);
}
.section--cta .btn--ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--full { width: 100%; text-align: center; }

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  font-size: .65rem;
  font-weight: bold;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink-mid);
  transition: color .15s;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cart-pill {
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s;
  white-space: nowrap;
}
.cart-pill:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 72px;
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Ledger stats ───────────────────────────────────────────────────────── */

.ledger-stats {
  border-left: 1px solid var(--border);
  padding-left: 40px;
  min-width: 220px;
}

.ledger-stat {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ledger-stat:first-child { padding-top: 0; }
.ledger-stat:last-child  { border-bottom: none; padding-bottom: 0; }

.ledger-stat span {
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ledger-stat b {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--ink);
  margin-top: 2px;
}

.workshop-ledger {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ref {
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.stamp {
  font-family: system-ui, sans-serif;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 2px;
}
.stamp--low {
  border-color: var(--ink-dim);
  color: var(--ink-dim);
}

.swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: var(--cream-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 4px 0;
}

.price {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: auto;
}

.card h3 { font-size: 1.05rem; }
.card p { font-size: .9rem; color: var(--ink-mid); }

/* ─── Features ───────────────────────────────────────────────────────────── */

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.feature-icon {
  margin-bottom: 16px;
}

.feature h4 {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
}

.feature p { font-size: .9rem; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: var(--cream);
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 999;
  max-width: 280px;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: #17140F;
  color: var(--border);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--cream);
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer p { color: var(--ink-dim); font-size: .875rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  transition: color .15s;
}
.site-footer ul a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: system-ui, sans-serif;
  font-size: .75rem;
  color: #5A5550;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Page header (inner pages) ─────────────────────────────────────────── */

.page-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-note {
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  color: var(--ink-dim);
  margin-top: 6px;
}

/* ─── Order summary panel ─────────────────────────────────────────────────  */

.order-panel {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.order-panel h4 {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
}
.order-line:last-of-type { border-bottom: none; }
.order-line.total {
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 2px solid var(--border-dark);
  border-bottom: none;
}

/* ─── Alerts ──────────────────────────────────────────────────────────────  */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  margin-bottom: 20px;
  border-left: 3px solid;
}
.alert--info   { background: #EEF4FF; border-color: #4A7CFF; color: #1a3a7a; }
.alert--warn   { background: #FFF8E6; border-color: var(--gold); color: #7a5c00; }
