:root {
  --bg: #faf6f0;
  --bg-alt: #f3ece2;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --text: #1c1a17;
  --muted: #6d665e;
  --border: rgba(28, 26, 23, 0.08);
  --gold: #c6a15b;
  --gold-dark: #8d6b2b;
  --shadow: 0 24px 70px rgba(32, 24, 16, 0.08);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

iframe {
  width: 100%;
  border: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(250, 246, 240, 0.82);
  border-bottom: 1px solid rgba(28, 26, 23, 0.05);
}

.header-inner,
.footer-inner,
.footer-bottom,
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 82px;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span,
.hero h1 span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 0;
  position: relative;
}

.nav a.is-active,
.nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

.nav a.is-active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.button,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(141, 107, 43, 0.18);
}

.button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.button-small {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.button-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(198, 161, 91, 0.35);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(198, 161, 91, 0.18), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  padding: 100px 0 88px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-head h1,
.section-head h2,
.admin-topbar h1,
.admin-auth-card h1,
.repeater-card h3,
.post-content h2,
.sidebar-card h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 6.8rem);
  color: #fff;
}

.hero p {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-button {
  margin-top: 34px;
}

.page-shell {
  padding-top: 14px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(243, 236, 226, 0.58));
}

.section-head {
  margin-bottom: 34px;
}

.section-head.center {
  text-align: center;
}

.section-head.between {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-head p,
.muted-text,
.card-body p,
.sidebar-card p,
.footer-note,
.footer-bottom,
.empty-state {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.posts-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card,
.sidebar-card,
.admin-auth-card,
.admin-section,
.repeater-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.card {
  overflow: hidden;
}

.card-image-wrap,
.post-image-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.post-image-link {
  aspect-ratio: 16 / 10;
}

.card-image,
.post-hero-image,
.sidebar-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image {
  transition: transform 0.45s ease;
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin: 8px 0 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}

.card-body h3 a:hover {
  color: var(--gold-dark);
}

.meta-row,
.card-actions,
.footer-links,
.filters,
.admin-topbar-actions,
.repeater-card-head,
.admin-submit-bar,
.sidebar-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta-row {
  flex-wrap: wrap;
}

.pill,
.rating,
.filter-chip {
  font-size: 0.82rem;
}

.pill,
.rating {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(198, 161, 91, 0.12);
  color: var(--gold-dark);
}

.muted {
  color: var(--muted);
}

.price {
  font-size: 1.12rem;
}

.text-link {
  color: var(--gold-dark);
  font-weight: 600;
}

.site-footer {
  padding: 40px 0 24px;
  background: #141210;
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand {
  color: #fff;
  margin-bottom: 10px;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links a,
.footer-bottom p {
  color: rgba(255,255,255,0.68);
}

.footer-inner {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
  padding-top: 18px;
  font-size: 0.94rem;
}

.filters {
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-chip {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(28, 26, 23, 0.08);
  box-shadow: none;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-color: transparent;
}

.empty-state {
  width: 100%;
  padding: 48px 24px;
  text-align: center;
  background: rgba(255,255,255,0.55);
  border: 1px dashed rgba(28,26,23,0.15);
  border-radius: var(--radius);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.post-main {
  min-width: 0;
}

.post-hero-image {
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin: 12px 0 30px;
}

.prose {
  background: rgba(255,255,255,0.5);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 30px;
}

.prose p:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.post-back-link {
  padding-top: 26px;
}

.post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-products {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.sidebar-product {
  align-items: flex-start;
}

.sidebar-product img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  flex: 0 0 84px;
}

.sidebar-product div {
  display: grid;
  gap: 4px;
}

.sidebar-product a {
  color: var(--gold-dark);
  font-weight: 600;
}

.admin-login-page,
.admin-page {
  background: linear-gradient(180deg, #f8f3ec, #efe4d4);
}

.admin-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-auth-card {
  width: min(100%, 480px);
  padding: 32px;
}

.admin-auth-card p {
  color: var(--muted);
}

.admin-form,
.admin-section,
.repeater-list,
.admin-grid,
.admin-auth-card,
.sidebar-card,
.post-main,
.admin-topbar {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  padding: 28px 0 10px;
}

.admin-shell {
  padding: 16px 0 80px;
}

.alert {
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.alert-success {
  background: rgba(32, 162, 88, 0.12);
  border: 1px solid rgba(32, 162, 88, 0.2);
  color: #1d6b3f;
}

.alert-error {
  background: rgba(185, 50, 50, 0.1);
  border: 1px solid rgba(185, 50, 50, 0.2);
  color: #8c2424;
}

.admin-section,
.repeater-card {
  padding: 24px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(28, 26, 23, 0.07);
}

.admin-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

label span {
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(28, 26, 23, 0.12);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(198, 161, 91, 0.55);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.12);
}

textarea {
  resize: vertical;
}

.link-danger {
  border: 0;
  background: transparent;
  color: #9e3636;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.admin-submit-bar {
  position: sticky;
  bottom: 18px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner,
  .footer-bottom,
  .section-head.between,
  .admin-topbar-inner,
  .admin-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .admin-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 80px;
  }

  .button,
  .filter-chip {
    width: 100%;
  }

  .nav {
    width: 100%;
  }
}
