/*
Theme Name: Curated Storefront
Description: Editorial WooCommerce storefronts for Velvet & Dawn, Asteravelle and Bellora Gems.
Version: 1.1.0
Requires PHP: 8.0
*/
@font-face {
  font-family: Cardo;
  src: url(assets/cardo-400.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(assets/inter.woff2) format("woff2");
  font-display: swap;
}
:root {
  --page: #f8f4ee;
  --surface: #eee5dc;
  --ink: #28201e;
  --quiet: #62534d;
  --line: #cfc3ba;
  --accent: #692c3d;
  --accent-text: #fff9f5;
  --image: #eee7e1;
  --display: Cardo, Georgia, serif;
  --body: Inter, system-ui, sans-serif;
  --shell: 1296px;
}
.brand-aster {
  --page: #f3f4f1;
  --surface: #e7ebe6;
  --ink: #202925;
  --quiet: #48564f;
  --line: #c1cac4;
  --accent: #244e49;
  --accent-text: #fff;
  --image: #e3e8e5;
}
.brand-bellora {
  --page: #fbf8f0;
  --surface: #eee9da;
  --ink: #26261e;
  --quiet: #5a5645;
  --line: #cfc8b6;
  --accent: #494e33;
  --accent-text: #fffdf3;
  --image: #eee9dd;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 15px/1.6 var(--body); }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0; }
h1, h2, .wordmark { font-family: var(--display); }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 8px 16px; color: var(--accent-text); background: var(--accent); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: inline-block; width: fit-content; text-decoration: none; font-size: 31px; line-height: 1.1; letter-spacing: -.025em; }
.brand-aster .wordmark { font-family: var(--body); font-size: 24px; font-weight: 600; letter-spacing: -.055em; }
.brand-bellora .wordmark { letter-spacing: .015em; }
.shop-navigation, .shop-utilities { display: flex; align-items: center; gap: 20px; }
.shop-utilities { justify-content: end; }
.shop-navigation a, .shop-utilities a { text-decoration: none; padding-block: 8px; white-space: nowrap; font-size: 14px; }
.shop-navigation a:hover, .shop-navigation [aria-current="page"], .shop-utilities a:hover { text-decoration: underline; }
.cart-count { font-variant-numeric: tabular-nums; color: var(--quiet); }
.hero { display: grid; grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding-block: 40px 0; }
.hero-copy { padding-inline: clamp(0px, 3vw, 48px) 0; }
.hero h1 { font-size: clamp(52px, 7.1vw, 100px); line-height: .98; letter-spacing: -.039em; max-width: 12ch; }
.hero-copy p { max-width: 35ch; margin-top: 24px; color: var(--quiet); font-size: 17px; line-height: 1.55; }
.action { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 24px; padding-inline: 20px; background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); text-decoration: none; }
.action:hover { background: var(--page); color: var(--accent); }
.hero-feature { width: 100%; min-width: 0; }
.hero-image { display: block; overflow: hidden; background: var(--image); aspect-ratio: 5 / 4; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-feature figcaption, .hero-companion figcaption { color: var(--quiet); font-size: 13px; margin-top: 8px; }
.hero-feature figcaption a, .hero-companion figcaption a { text-decoration: none; }
.hero-feature figcaption a:hover, .hero-companion figcaption a:hover { text-decoration: underline; }
.brand-aster .hero { grid-template-columns: minmax(0, 7fr) minmax(240px, 5fr); }
.brand-aster .hero-feature { grid-column: 1; grid-row: 1; }
.brand-aster .hero-copy { grid-column: 2; grid-row: 1; padding-inline: 0; }
.brand-aster .hero h1 { font-family: var(--body); font-size: clamp(52px, 7.1vw, 92px); font-weight: 500; letter-spacing: -.085em; }
.brand-aster .hero-image { aspect-ratio: 7 / 5; }
.brand-bellora .hero { grid-template-columns: 5fr 5fr 2fr; gap: clamp(16px, 3vw, 48px); }
.brand-bellora .hero-copy { padding-inline: 0; }
.brand-bellora .hero-feature .hero-image { aspect-ratio: 4 / 5; }
.brand-bellora .hero-companion { align-self: end; padding-bottom: 40px; }
.brand-bellora .hero-companion .hero-image { aspect-ratio: 1; }
.collection { padding-block: 76px; }
.category-section { background: var(--surface); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2, .content h1 { font-size: clamp(36px, 4.1vw, 56px); letter-spacing: -.032em; }
.text-link { font-size: 14px; white-space: nowrap; }
.text-link span { margin-left: 4px; }
.product-grid, .category-grid { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-tile a, .category-tile { display: block; text-decoration: none; }
.product-tile a:hover h3, .category-tile:hover > span { text-decoration: underline; }
.tile-image { overflow: hidden; background: var(--image); aspect-ratio: 1; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; }
.product-tile h3 { margin-top: 12px; font-size: 15px; line-height: 1.45; }
.tile-price { display: block; margin-top: 4px; color: var(--quiet); font-size: 14px; font-variant-numeric: tabular-nums; }
.category-tile > span { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 32px; padding-block: 48px 36px; }
.footer-inner h2 { font: 600 14px/1.45 var(--body); margin-bottom: 12px; }
.footer-inner nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-inner nav a, .footer-contact a { text-decoration: none; }
.footer-inner nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-signup .wordmark { margin-bottom: 16px; }
.footer-signup h2 { margin-bottom: 8px; }
.footer-signup p { color: var(--quiet); margin-bottom: 8px; max-width: 28ch; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact a { max-width: 100%; }
.footer-bottom { padding-block: 16px 24px; border-top: 1px solid var(--line); }
.copyright { color: var(--quiet); font-size: 13px; }
.store-information { max-width: 760px; margin-inline: auto; }
.store-information h2 { font-size: clamp(25px, 3vw, 32px); margin: 32px 0 12px; }
.store-information p + p { margin-top: 12px; }
.store-information .track_order { margin-block: 24px; }
.store-information .track_order .input-text { width: 100%; padding: 10px; }
.content { min-height: 60vh; padding-block: 48px 76px; }
.content h1 { margin-bottom: 24px; }
.content h2 { margin-block: 20px 12px; }
.woocommerce ul.products li.product a, .woocommerce div.product div.summary a { color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--quiet); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--accent); color: var(--accent-text); border-radius: 0;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
  background: var(--ink); color: var(--accent-text);
}
@media (max-width: 1040px) {
  .masthead-inner { grid-template-columns: 1fr auto; padding-block: 16px 4px; gap: 8px 20px; }
  .shop-navigation { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 16px; }
  .brand-bellora .hero { grid-template-columns: 4fr 5fr; }
  .brand-bellora .hero-companion { display: none; }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-signup { grid-column: span 2; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { gap: 8px 12px; }
  .wordmark { font-size: 26px; }
  .shop-utilities { gap: 12px; }
  .shop-navigation { column-gap: 14px; }
  .shop-navigation a, .shop-utilities a { font-size: 13px; }
  .hero, .brand-aster .hero, .brand-bellora .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 0; }
  .hero-copy { padding: 0; }
  .brand-aster .hero-copy, .brand-aster .hero-feature { grid-area: auto; }
  .hero h1, .brand-aster .hero h1 { font-size: clamp(46px, 11.5vw, 62px); }
  .hero-copy p { margin-top: 16px; }
  .action { margin-top: 16px; }
  .brand-bellora .hero-feature .hero-image { aspect-ratio: 5 / 4; }
  .collection { padding-block: 44px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: 32px; }
  .text-link { font-size: 13px; }
  .product-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; padding-block: 32px; }
  .footer-contact { grid-column: 1 / -1; }
}
