/* Digital Scribe Studio — dark, gold, warm. Mobile-first. */

:root {
  --bg: #0e0c09;
  --bg-soft: #151209;
  --surface: #171410;
  --surface-2: #1e1a13;
  --gold: #d9a441;
  --gold-bright: #f0c46c;
  --gold-dim: #9a7430;
  --text: #ece4d3;
  --muted: #a89e88;
  --line: #2b251a;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(1080px, 92%); margin: 0 auto; }
.narrow { max-width: 680px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(14, 12, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(14, 12, 9, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.brand-mark {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}
.site-nav a:hover { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.webp") center 62% / cover no-repeat;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,12,9,0.72) 0%, rgba(14,12,9,0.45) 45%, rgba(14,12,9,0.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  color: var(--gold-bright);
  font-size: 0.82rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.hero-sub {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  color: #d8cdb4;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 6px 24px rgba(217, 164, 65, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(217,164,65,0.38); }
.btn-ghost {
  border: 1.5px solid var(--gold-dim);
  color: var(--gold-bright);
  background: rgba(14,12,9,0.4);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 11px 22px; font-size: 0.92rem; margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  color: var(--gold-bright);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.section-lede { color: var(--muted); margin-bottom: 40px; max-width: 640px; }
#about p { margin-bottom: 18px; color: #ddd3bc; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  font-weight: 600;
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 6px;
}
.card .price {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.card .btn { align-self: flex-start; }

/* ---------- Contact ---------- */
#contact p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
  background: #0a0906;
}
.footer-inner { text-align: center; }
.footer-mark {
  font-family: var(--serif);
  color: var(--gold-dim);
  font-size: 2rem;
  margin-bottom: 10px;
}
.site-footer p { color: var(--muted); font-size: 0.95rem; }
.footer-sub { font-size: 0.82rem; margin-top: 6px; color: #6f675a; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14, 12, 9, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 4%;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-top: 1px solid var(--line); }
  .site-nav a:first-child { border-top: 0; }
}
