/* Farmer & Fable Studios — Dark Fantasy Theme */
:root {
  --bg-dark: #0f0c09;
  --bg-card: #1a1410;
  --parchment: #f4e8d0;
  --ember: #c45c26;
  --ember-light: #e07a3d;
  --gold: #d4af37;
  --deep-red: #5b2421;
  --text: #e8dcc8;
  --text-muted: #b8a990;
  --accent: #8b3a2a;
}

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

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

a {
  color: var(--gold);
  text-decoration: none;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 60px;
}

.logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(196, 92, 38, 0.4));
}

.logo-text {
  font-size: 1.1rem;
  color: var(--parchment);
  display: none;
}

nav a {
  margin-left: 1.5rem;
  font-size: 1.05rem;
  color: var(--parchment);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--gold);
}

/* Hero */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/fantasy-landscape.png') center/cover no-repeat;
  color: var(--parchment);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,12,9,0.55) 0%, rgba(15,12,9,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

h1 em {
  font-style: italic;
  color: var(--ember-light);
}

.intro {
  font-size: 1.35rem;
  max-width: 600px;
  margin: 1rem auto 2rem;
  color: var(--parchment);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary {
  background: var(--deep-red);
  color: var(--parchment);
  box-shadow: 0 4px 15px rgba(91, 36, 33, 0.4);
}

.btn-primary:hover {
  background: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 92, 38, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--parchment);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.ribbon {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

/* About */
#about {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1c1510 100%);
  text-align: center;
}

#about h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--text);
}

/* Shop */
#shop {
  padding: 4rem 2rem 6rem;
  background: #120e0b;
}

#shop h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: var(--parchment);
}

.shop-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--parchment);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--deep-red);
  border-color: var(--deep-red);
  color: var(--parchment);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(196, 92, 38, 0.3);
}

.product-image {
  height: 220px;
  background: #0a0806;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--parchment);
  line-height: 1.3;
}

.product-price {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.product-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.product-sizes {
  font-size: 0.85rem;
  color: var(--ember-light);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.buy-btn {
  display: block;
  text-align: center;
  background: var(--deep-red);
  color: var(--parchment);
  padding: 0.7rem;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  margin-top: auto;
}

.buy-btn:hover {
  background: var(--ember);
}

/* Etsy banner */
.etsy-banner {
  text-align: center;
  padding: 0.85rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.95rem;
}

.etsy-banner a {
  color: var(--gold);
  text-decoration: none;
}

.etsy-banner a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #0a0806;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--gold);
}

footer .tagline {
  font-family: 'Cinzel', serif;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0.6rem 1rem;
  }
  nav a {
    margin-left: 1rem;
    font-size: 0.95rem;
  }
  .hero-logo {
    width: 140px;
  }
  h1 {
    font-size: 2.4rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  #shop, #about {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 769px) {
  .logo-text {
    display: block;
  }
}
