/* Armored Storyteller Publishing - shared styles */

:root {
  --bg: #121010;
  --surface: #1c1817;
  --surface-2: #26201e;
  --border: #3a302b;
  --text: #ece4d8;
  --muted: #a99d8e;
  --ember: #e0803a;
  --ember-dark: #b55d22;
  --heading-font: "Cinzel", Georgia, serif;
  --body-font: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.2rem;
  line-height: 1.65;
}

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

a { color: var(--ember); }
a:hover { color: #f3a165; }

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 16, 16, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

/* The logo file is black on white; invert it for the dark theme */
.logo-img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.brand .logo-img { width: 44px; }

.brand span {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.site-nav a {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ember); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 90px;
  background:
    linear-gradient(180deg, rgba(18,16,16,0.55) 0%, rgba(18,16,16,0.85) 70%, var(--bg) 100%),
    url("images/cavern.png") center / cover no-repeat;
  text-align: center;
}

.hero .logo-img {
  width: 150px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin-bottom: 0.3em;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.3rem;
  color: #d8cfc2;
}

.eyebrow {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}

.button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--ember);
  color: #1a0f08;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
}

.button:hover { background: #f09550; color: #1a0f08; }

.button.ghost {
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--ember);
}

.button.ghost:hover { background: rgba(224, 128, 58, 0.12); color: var(--ember); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }

.section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Featured product */

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

.feature img {
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.feature h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.tag {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 12px;
  margin: 0 6px 16px 0;
}

/* Seasonal special section */

.special {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(160, 30, 20, 0.28) 0%, rgba(18, 16, 16, 0) 65%),
    var(--bg);
  border-top: 1px solid var(--ember-dark);
  border-bottom: 1px solid var(--ember-dark);
}

.special-callout {
  border-left: 3px solid var(--ember);
  padding: 4px 0 4px 14px;
  color: var(--text);
}

/* Slim "new bundle" strip */

.bundle-strip { padding: 22px 0; background: var(--surface); }

.bundle-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.bundle-strip p { margin: 0; flex: 1 1 480px; }

.bundle-strip .eyebrow { display: inline; margin-right: 8px; }

.bundle-strip s { color: var(--muted); margin-left: 6px; }

/* Product grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature .feature-cover {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.card-art {
  aspect-ratio: 600 / 775;
  background: radial-gradient(circle at 50% 40%, #3a2a20 0%, #1a1513 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-art img { width: 100%; height: 100%; object-fit: cover; }

.card-art .logo-img { width: 45%; height: auto; opacity: 0.35; }

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

.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

.card .tag { align-self: flex-start; font-size: 0.85rem; margin-bottom: 10px; }

.card p { margin: 0 0 16px; font-size: 1.05rem; color: var(--muted); }

.card .button { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: 0.8rem; }

/* Two-column "coming soon" */

.forge {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.forge-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: start;
}

.forge-item img { border-radius: 3px; border: 1px solid var(--border); }

.forge-item h3 { font-size: 1.25rem; }

.forge-item p { margin: 0; color: var(--muted); }

/* Customer Favorites bundles */

.bundles {
  display: grid;
  gap: 32px;
}

.bundle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
}

.bundle-covers {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

/* --n (number of covers) is set by favorites.html; covers overlap by 30% and always fit the column */
.bundle-covers img {
  --w: min(190px, calc(100% / (0.7 * var(--n, 2) + 0.3)));
  width: var(--w);
  min-width: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.bundle-covers img + img { margin-left: calc(-0.3 * var(--w)); }

.bundle-covers img:nth-child(even) { transform: translateY(14px); }

.bundle h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.4em; }

.bundle p { margin: 0 0 16px; color: #d8cfc2; }

.bundle-list {
  margin: 0 0 22px;
  padding-left: 1.2em;
}

.bundle-list li { margin: 4px 0; }

.bundle-list a { text-decoration: none; }

.bundle-list a:hover { text-decoration: underline; }

.bundle .bundle-note { color: var(--muted); font-style: italic; margin: 0; }

.bundle .bundle-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }

.bundle-price strong { font-family: var(--heading-font); font-size: 1.6rem; color: var(--text); }

.bundle-price s { color: var(--muted); font-size: 1.1rem; }

/* Seasonal / special-offer highlight */
.bundle-special { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember-dark), 0 18px 40px rgba(224, 128, 58, 0.12); }

.tag-special { background: var(--ember); border-color: var(--ember); color: #1a0f08; font-weight: 600; }

/* ---------- Text pages ---------- */

.page-head {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.4em 1.2em;
  border-left: 3px solid var(--ember);
  color: var(--muted);
  font-style: italic;
}

.post {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.post:last-child { border-bottom: 0; margin-bottom: 0; }

.post h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 0.3em; }

.post .meta {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.4em;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: grid;
  gap: 10px;
}

.post-list a { font-family: var(--heading-font); font-size: 1.05rem; text-decoration: none; }

.post-list span { color: var(--muted); font-size: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer .logo-img { width: 56px; margin: 0 auto 14px; }

.site-footer p { margin: 4px 0; }

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  body { font-size: 1.1rem; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { justify-content: center; }
  .hero { padding: 70px 0 60px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .forge-item { grid-template-columns: 100px 1fr; }
  .bundle { grid-template-columns: 1fr; gap: 24px; padding: 24px 18px; }
  section { padding: 52px 0; }
}
