/*
Theme Name: Golden & Muse
Version: 1.0.1
Requires PHP: 8.0
*/

@font-face {
    font-family: Cardo;
    src: url(assets/cardo-400.woff2) format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url(assets/inter.woff2) format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f8f4ec;
    --panel: #eee6d8;
    --ink: #2c231f;
    --secondary: #5e5049;
    --wine: #6c293a;
    --line: #d9cbbf;
    --display: Cardo, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 Inter, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--wine); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--wine);
    outline-offset: 4px;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.12; }
p { margin-block: 0 16px; }
.shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; inset: 8px auto auto 8px; z-index: 3; padding: 8px 16px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font: 400 26px/1 var(--display); text-decoration: none; white-space: nowrap; }
.wordmark img { border-radius: 6px; }
.primary-links, .header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.primary-links a, .header-actions a { padding-block: 12px; text-decoration: none; }
.primary-links a:hover, .primary-links a[aria-current], .header-actions a:hover { text-decoration: underline; }
.header-actions { justify-self: end; }
.mobile-nav { display: none; }
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding-block: 48px 64px; }
.hero h1 { max-width: 9.5em; font-size: clamp(48px, 5.15vw, 76px); line-height: 1.02; letter-spacing: -.034em; }
.hero-copy p { max-width: 29em; margin-block: 24px 28px; color: var(--secondary); font-size: 17px; }
.shop-button { display: inline-flex; min-height: 48px; align-items: center; padding-inline: 20px; margin: 0 16px 8px 0; border-radius: 6px; background: var(--wine); color: white; text-decoration: none; transition: background-color 150ms ease; }
.shop-button:hover { background: #4b1b28; color: white; }
.text-link { color: var(--wine); font-weight: 500; }
.hero-object { margin: 0; padding: 12px; background: var(--panel); border-radius: 8px; }
.hero-object a { display: block; border-radius: 4px; background: #fff; }
.hero-object img { display: block; width: 100%; height: clamp(320px, 39vw, 560px); object-fit: cover; object-position: 50% 52%; border-radius: inherit; }
.hero-object figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding: 12px 4px 0; color: var(--secondary); font-size: 13px; }
.hero-object figcaption span:last-child { color: var(--ink); }
.home-section { padding-block: 32px 56px; border-top: 1px solid var(--line); }
.home-section h2 { font-size: clamp(32px, 3.25vw, 48px); margin-block-end: 24px; }
.collections, .featured { display: grid; gap: 16px; }
.collections { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection, .feature a { display: block; text-decoration: none; }
.collection img, .feature img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 5px; }
.collection > span { display: flex; justify-content: space-between; gap: 8px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.collection:hover > span, .feature a:hover h3 { text-decoration: underline; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; }
.feature h3 { padding-top: 12px; font-size: 15px; font-weight: 500; }
.feature p { margin: 4px 0 0; color: var(--secondary); font-variant-numeric: tabular-nums; }
.site-footer { margin-top: 24px; background: #30231f; color: #f8f0e4; }
.site-footer a:hover { color: #f4d3a3; }
.site-footer :focus-visible { outline-color: #f4d3a3; }
.footer-inner { padding-block: 48px 32px; display: grid; grid-template-columns: 1.45fr repeat(3, 1fr) 1.25fr; gap: 24px; }
.site-footer h2 { font: 500 14px/1.4 Inter, system-ui, sans-serif; margin-bottom: 12px; }
.site-footer .wordmark { margin-bottom: 16px; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-contact span, .footer-contact a { display: block; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid #78665d; padding-block: 16px; font-size: 13px; }
.copyright { margin: 0; }
.content { padding-block: 48px 64px; min-height: 50vh; }
.content h1 { margin-bottom: 24px; font-size: clamp(36px, 5vw, 60px); }
.store-information { max-width: 760px; }
.store-information h2 { margin-block: 28px 12px; font-size: 28px; }
.woocommerce ul.products li.product a img { background: white; border-radius: 6px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--wine); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background-color: var(--wine); color: white; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background-color: #4b1b28; }

@media (max-width: 1080px) {
    .shell { width: calc(100% - 64px); }
    .masthead { gap: 16px; }
    .primary-links, .header-actions { gap: 12px; }
    .hero { gap: 32px; }
    .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .shell { width: calc(100% - 32px); }
    .masthead { position: relative; grid-template-columns: 1fr auto auto; min-height: 64px; }
    .wordmark { font-size: 22px; gap: 8px; }
    .wordmark img { width: 32px; height: 32px; }
    .primary-links, .header-actions a:first-child { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav summary { padding-block: 12px; cursor: pointer; }
    .mobile-nav nav { position: absolute; inset: 100% 0 auto auto; z-index: 2; min-width: 184px; padding: 8px 16px; border: 1px solid var(--line); background: var(--paper); }
    .mobile-nav nav a { display: block; padding-block: 8px; }
    .hero { grid-template-columns: 1fr; padding-block: 36px 44px; gap: 24px; }
    .hero h1 { font-size: clamp(42px, 9vw, 64px); }
    .hero-copy p { margin-block: 16px 20px; }
    .hero-object img { height: auto; aspect-ratio: 5 / 4; }
    .collections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .featured, .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 450px) {
    .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-signup, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
    .masthead { gap: 8px; }
    .wordmark { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-button { transition: none; }
}
