/* Primordial Dreams — site styles
   Palette and patterns reproduced from the original Shopify Dawn theme:
   background #f2efdd, foreground #3d081b, accent/button #910f3f,
   inverse/accent-1 blocks #910f3f with cream text. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo_n4.dc8d917cc69af0a65ae04d01fd8eeab28a3573c9.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo_n7.651b020b3543640c100112be6f1c1b8e816c7f13.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo_i4.37d8c4e02dc4f8e8b559f47082eb24a5c48c2908.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo_i7.3dc798c6f261b8341dd97dd5c78d97d457c63517.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Asul";
  src: url("/assets/fonts/asul_n4.814c5323104eaec8052c156ea81d27e4cc2ecc89.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --cream: #f2efdd;
  --maroon: #3d081b;
  --accent: #910f3f;
  --cream-2: #faf9e1;
  --border: rgba(61, 8, 27, 0.2);
  --body-font: "Archivo", sans-serif;
  --heading-font: "Asul", serif;
  --page-width: 120rem;
  --header-height: 4rem;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--maroon);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .site-title { font-family: var(--heading-font); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.5rem; }
h2 { font-size: 1.5rem; margin: 0 0 1rem; }

a { color: inherit; }
p a, li a, td a, .rte a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
p a:hover, li a:hover, td a:hover, .rte a:hover { color: var(--accent); }

/* Header — cream bar, hides on scroll down / reveals on scroll up (Dawn on-scroll-up) */
.site-header {
  background: var(--cream);
  border-bottom: 0.1rem solid var(--border);
  position: sticky; top: 0; z-index: 50;
  transition: transform 0.14s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.site-header__inner {
  max-width: var(--page-width); margin: 0 auto; padding: 0 5rem;
  min-height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.site-title { font-size: 1.6rem; text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 1rem; color: var(--maroon); padding: 0.4rem 0; border-bottom: 0.1rem solid transparent; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-nav a.active { text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle { display: none; }

@media (max-width: 749px) {
  .site-header__inner { padding: 0 1.5rem; }
  .nav-toggle {
    display: block; background: none; border: none;
    font: inherit; padding: 0.5rem 0; cursor: pointer; color: var(--maroon);
  }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.6rem; padding: 0.5rem 0 1rem; }
}

/* Hero banner — Dawn image-banner: text box over image, middle-left */
.hero { position: relative; }
.hero img { width: 100%; max-height: 56rem; object-fit: cover; }
.hero__box {
  position: absolute; top: 50%; transform: translateY(-50%); left: clamp(1.5rem, 5vw, 5rem);
  max-width: 44rem; background: var(--cream);
  padding: 2.5rem 3rem; box-shadow: 0 0 1rem rgba(61, 8, 27, 0.15);
}
.hero__box h1 { margin: 0 0 1.5rem; }
@media (max-width: 749px) {
  .hero__box { position: static; transform: none; max-width: none; padding: 1.5rem; }
}

/* Buttons — Dawn: filled accent, or cream secondary */
.button {
  display: inline-block; background: var(--accent); color: var(--cream) !important;
  padding: 0.9rem 3rem; text-decoration: none;
  font-size: 1rem; letter-spacing: 0.06rem; border: 0.1rem solid var(--accent);
  cursor: pointer;
}
.button:hover { background: var(--maroon); border-color: var(--maroon); }
.button--secondary { background: var(--cream); color: var(--maroon) !important; border-color: var(--maroon); }
.button--secondary:hover { background: var(--maroon); color: var(--cream) !important; }

/* Page layout */
.page { max-width: var(--page-width); margin: 0 auto; padding: 2.7rem 5rem 5rem; }
.page--narrow { max-width: 74rem; }

/* Card grids (featured products) */
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.product-card { display: block; text-decoration: none; }
.product-card figure { margin: 0; }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-card figcaption { padding: 0.9rem 0 0; font-size: 0.95rem; text-align: center; }
.product-card:hover figcaption { text-decoration: underline; text-underline-offset: 2px; }

/* Galleries — original table layout preserved: bordered cells, centered captions */
.rte table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.rte table td {
  border: 0.1rem solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  vertical-align: top;
  font-size: 0.95rem;
}
.rte table td img { margin: 0 auto 0.6rem; }
.rte p { margin: 0 0 1em; }

/* Product page */
.product { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 750px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.product__media { display: grid; gap: 1rem; }
.product__media img { background: var(--cream-2); }
.product__info h1 { margin-bottom: 0.5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.product__price { font-size: 1.1rem; margin: 0 0 1.5rem; }
.product__description p { margin: 0 0 1em; }
.product__cta { margin-top: 2rem; }
.product__cta .note { font-size: 0.88rem; margin-top: 0.7rem; }

.related { margin-top: 5rem; }

/* Article */
.article-meta { margin-bottom: 2.5rem; }
.article-body { max-width: 74rem; }
.article-body p { margin: 0 0 1.2em; }

/* Forms — Dawn field style: bordered input, small label above */
.contact-form,
#ContactForm { max-width: 46rem; margin-top: 1rem; }
.contact-form .field,
#ContactForm .field { position: relative; margin-bottom: 1.2rem; }
.contact__fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem;
}
@media (max-width: 749px) { .contact__fields { grid-template-columns: 1fr; } }
.contact-form .field__input,
#ContactForm .field__input {
  width: 100%; padding: 1.3rem 1.5rem 0.6rem; font: inherit; color: var(--maroon);
  border: 0.1rem solid rgba(61, 8, 27, 0.55); border-radius: 0.5rem;
  background: var(--cream); appearance: none;
}
.contact-form .field__input:focus,
#ContactForm .field__input:focus { outline: 0.2rem solid var(--accent); outline-offset: 1px; }
.contact-form .field__label,
#ContactForm .field__label {
  position: absolute; top: 0.45rem; left: 1.5rem; font-size: 0.72rem;
  letter-spacing: 0.05rem; color: var(--maroon); pointer-events: none;
}
.contact-form textarea.field__input,
#ContactForm textarea.field__input { min-height: 16rem; padding-top: 1.4rem; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }

.newsletter { max-width: 36rem; }
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter-row input {
  flex: 1; padding: 0.8rem 1rem; font: inherit; color: var(--maroon);
  border: 0.1rem solid rgba(242, 239, 221, 0.55); border-radius: 0.5rem;
  background: var(--cream);
}
.form-note { font-size: 0.88rem; }

/* Footer — accent block like the original (color-accent-1) */
.site-footer { background: var(--accent); color: var(--cream); }
.site-footer__inner {
  max-width: var(--page-width); margin: 0 auto; padding: 3rem 5rem 3.5rem;
  display: grid; gap: 2.5rem; grid-template-columns: 2fr 1.2fr 1fr;
}
@media (max-width: 749px) { .site-footer__inner { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; } }
.site-footer h2 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
.site-footer .button--secondary { background: transparent; color: var(--cream) !important; border-color: var(--cream); }
.site-footer .button--secondary:hover { background: var(--cream); color: var(--accent) !important; }
.site-footer__legal {
  border-top: 0.1rem solid rgba(242, 239, 221, 0.25);
  padding: 1.2rem 1.5rem; text-align: center; font-size: 0.85rem;
}
