/*
Theme Name: Curated Storefront
Description: Editorial storefronts for Pearland & Sable, Gilded & Glow and Lumen & Petal.
Version: 1.0.1
Requires PHP: 8.0
Homepage design informed by unslop by Damir Sokolovsky (CC BY 4.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: #f7f1e9;
  --surface: #eae0d3;
  --ink: #302522;
  --quiet: #65544b;
  --line: #cfc2b6;
  --accent: #4d2f28;
  --accent-text: #fff8ee;
  --image: #e8ded4;
  --display: Cardo, Georgia, serif;
  --body: Inter, system-ui, sans-serif;
  --shell: 1296px;
}
.brand-gilded {
  --page: #f5f2e9;
  --surface: #e7e3d9;
  --ink: #202524;
  --quiet: #545650;
  --line: #c9c5b9;
  --accent: #69502c;
  --accent-text: #fff9ec;
  --image: #e6e0d4;
}
.brand-petal {
  --page: #faf7f1;
  --surface: #edefe2;
  --ink: #292b22;
  --quiet: #575c49;
  --line: #cdd1bf;
  --accent: #4d5839;
  --accent-text: #fbfaee;
  --image: #f1e8de;
}
*, *::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-gilded .wordmark { font-family: var(--body); font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
.masthead .wordmark { display: inline-flex; align-items: center; gap: 8px; }
.masthead .wordmark img { flex: none; }
.brand-petal .wordmark { letter-spacing: .005em; }
.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, 6.2vw, 96px); line-height: 1.02; letter-spacing: -.038em; max-width: 13ch; }
.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); border-radius: 6px; text-decoration: none; transition: color 120ms ease-out, background-color 120ms ease-out; }
.hero-all { display: inline-block; margin: 16px 0 0 12px; font-size: 14px; }
.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-pearland .hero {
  --shell: 1200px;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(55%, 528px));
}
.brand-pearland .hero-copy { border-left: 3px double var(--line); padding-inline-start: clamp(20px, 3vw, 48px); }
.brand-pearland .hero-image { aspect-ratio: 4 / 5; }
.brand-pearland .hero-feature figcaption { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.brand-gilded .hero {
  --hero-muted: #ddd5c5;
  grid-template-columns: minmax(0, 6fr) minmax(240px, 5fr);
  margin-top: 32px;
  padding: clamp(24px, 4vw, 64px);
  gap: clamp(28px, 5vw, 80px);
  background: #232725;
  color: #fbf4e5;
}
.brand-gilded .hero-feature { grid-column: 1; grid-row: 1; }
.brand-gilded .hero-copy { grid-column: 2; grid-row: 1; padding-inline: 0; }
.brand-gilded .hero-copy p, .brand-gilded .hero-feature figcaption { color: var(--hero-muted); }
.brand-gilded .hero .action { color: #25251f; background: #e4c990; border-color: #e4c990; }
.brand-gilded .hero .action:hover { color: #fbf4e5; background: transparent; }
.brand-gilded .hero :focus-visible { outline-color: #e4c990; }
.brand-gilded .hero a:not(.action):hover { color: #e4c990; }
.brand-gilded .hero-image { aspect-ratio: 5 / 4; }
.brand-gilded .hero-feature figcaption { padding-top: 8px; border-top: 1px solid #57584f; }
.brand-petal .hero { grid-template-columns: 5fr 5fr 2fr; gap: clamp(16px, 3vw, 48px); }
.brand-petal .hero-copy { padding-inline: 0; }
.brand-petal .hero-feature .hero-image { aspect-ratio: 4 / 5; border-radius: 48% 48% 0 0 / 26% 26% 0 0; }
.brand-petal .hero-companion { align-self: end; padding-bottom: 40px; }
.brand-petal .hero-companion .hero-image { aspect-ratio: 1; border-radius: 50%; }
.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; }
.brand-gilded .product-tile { padding-top: 8px; border-top: 1px solid var(--line); }
.brand-petal .product-tile .tile-image { border-radius: 16px 16px 0 0; }
.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-petal .hero { grid-template-columns: 4fr 5fr; }
  .brand-petal .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-pearland .hero, .brand-gilded .hero, .brand-petal .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 0; }
  .brand-gilded .hero { margin-top: 20px; padding: 24px; }
  .hero-copy, .brand-pearland .hero-copy { padding: 0; border: 0; }
  .brand-gilded .hero-copy, .brand-gilded .hero-feature { grid-area: auto; }
  .hero h1 { font-size: clamp(46px, 11vw, 62px); }
  .hero-copy p { margin-top: 16px; }
  .action { margin-top: 16px; }
  .brand-petal .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; }
}
