:root {
  color-scheme: dark;
  --charcoal: #2c2c2c;
  --wine: #853953;
  --plum: #612d53;
  --off-white: #f3f4f4;
  --surface: color-mix(in srgb, var(--charcoal) 95%, var(--off-white));
  --paper: var(--charcoal);
  --ink: var(--off-white);
  --text: var(--off-white);
  --header: var(--surface);
  --newsletter-bg: var(--surface);
  --footer: var(--surface);
  --accent-link: var(--off-white);
  --navigation-accent: #b7a9ef;
  --focus: var(--off-white);
  --line: color-mix(in srgb, var(--off-white) 24%, var(--charcoal));
  --control-border: color-mix(in srgb, var(--off-white) 55%, var(--charcoal));
  --disabled-bg: var(--surface);
  --disabled-text: color-mix(in srgb, var(--off-white) 62%, var(--charcoal));
  --disabled-border: var(--line);
  --hero-bg: var(--surface);
  --hero-text: var(--off-white);
  --action: var(--wine);
  --action-hover: var(--plum);
  --action-ink: var(--off-white);
  --display: 'Amatic SC', 'Arial Narrow', sans-serif;
  font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--navigation-accent); }
a:focus-visible, select:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.site-header { background: var(--header); border-top: 3px solid var(--action); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-footer { background: var(--footer); border-top: 1px solid var(--line); }
.site-footer .bar { flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; font-size: .9rem; }
.footer-links a, .store-policy a { text-underline-offset: .2em; }
.footer-links a:hover, .store-policy a:hover { color: var(--accent-link); }
.store-policy { max-width: 68ch; margin: clamp(2rem, 5vw, 4rem) auto; }
.store-policy h2 { margin-top: 1.5rem; }
.store-policy p { overflow-wrap: anywhere; }
.wordmark img { width: clamp(10rem, 28vw, 15rem); height: auto; }
.wordmark img { filter: brightness(0) invert(95%); }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .4rem clamp(.75rem, 3vw, 2rem); }
.site-header nav a { font-size: 1rem; font-weight: 600; text-underline-offset: .25em; }
.site-header nav a:hover { color: var(--accent-link); }
.skip-link { position: absolute; top: -5rem; padding: .7rem; background: var(--paper); }
.skip-link:focus { top: .5rem; left: .5rem; z-index: 2; }

.hero { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 3.75rem; background: var(--hero-bg); color: var(--hero-text); }
.hero-copy { padding: clamp(1.75rem, 5vw, 4.5rem); align-self: center; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(3.25rem, 7vw, 5.5rem); line-height: 1; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; }
p { line-height: 1.6; }
.hero-copy h1 { color: inherit; }
.hero-copy p { font-size: 1.125rem; max-width: 32ch; margin-block: 1.35rem 1.7rem; }
.button { display: inline-flex; gap: .8rem; align-items: center; background: var(--action); color: var(--action-ink); font-weight: 600; text-decoration: none; padding: .8rem 1.05rem; }
.button:hover, .shopify-add:not(:disabled):hover { background: var(--action-hover); }
.hero .button:focus-visible { outline-color: var(--action); }
.hero-image { width: 100%; height: 100%; min-height: 19rem; aspect-ratio: 3 / 2; object-fit: cover; }

.collection { margin-bottom: 4rem; }
.shop-page { margin-top: 3rem; }
.shop-intro { padding-bottom: 1.25rem; }
.shop-categories { margin-top: 1rem; }
.shop-categories ul { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 0; list-style: none; }
.shop-categories a, .shop-page .product-breadcrumbs a { color: var(--navigation-accent); text-decoration: none; }
.shop-categories a:hover, .shop-categories a:focus-visible,
.shop-page .product-breadcrumbs a:hover, .shop-page .product-breadcrumbs a:focus-visible { color: var(--accent-link); }
.shop-search { margin-top: 1.25rem; }
.shop-search input { width: min(100%, 23rem); padding: .55rem .7rem; border: 1px solid var(--control-border); background: var(--paper); color: var(--ink); font: inherit; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.product-card { display: block; color: inherit; text-decoration: none; }
.product-card:focus-visible { outline-offset: -3px; }
.product-card:hover h3, .product-card:focus-visible h3 { color: var(--navigation-accent); }
@media (prefers-reduced-motion: no-preference) {
  .shop-categories a, .shop-page .product-breadcrumbs a, .product-card h3 { transition: color 160ms ease; }
}
.product-art { position: relative; overflow: hidden; width: 100%; display: grid; place-items: center; aspect-ratio: 5 / 4; object-fit: cover; }
.catalog-image { aspect-ratio: 3 / 2; height: auto; }
.art-ink { background: #33312c; color: #e9bb74; }
.art-ink i { width: 32%; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.art-gold { background: #e9be70; color: #8a361f; }
.art-gold i { width: 33%; aspect-ratio: 1.1; border: .3rem solid; border-radius: .15rem .15rem .8rem .8rem; position: relative; margin-top: 9%; }
.art-gold i::before { content: ''; position: absolute; width: 57%; height: 62%; border: .3rem solid; border-bottom: 0; border-radius: 100% 100% 0 0; bottom: 100%; left: 18%; }
.art-moss { background: #ccd0b1; color: #334938; }
.art-moss i { width: 29%; aspect-ratio: 1; background: currentColor; transform: rotate(45deg); border-radius: 9% 35% 9% 35%; }
.product-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin-top: .8rem; }
.product-meta, .product-card-swatches, .product-card > .category { padding-inline: clamp(1rem, 2vw, 1.5rem); }
.product-meta h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; }
.product-card-price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.product-card-swatches:not([hidden]) { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.product-card-swatch { width: .8rem; height: .8rem; border: 1px solid var(--control-border); border-radius: 50%; background: var(--swatch-color); }
.category { font-size: .95rem; margin: .25rem 0; }

.product-page { margin-block: 2.5rem 4rem; }
.back-link { color: var(--navigation-accent); display: inline-block; margin-bottom: 1.5rem; text-underline-offset: .2em; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); }
.product-detail h1 { font-size: clamp(3rem, 6vw, 4.75rem); margin-top: .5rem; }
.product-breadcrumbs { margin-bottom: .45rem; font-size: .875rem; }
.product-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.product-breadcrumbs li span { margin-inline-end: .15rem; }
.product-breadcrumbs a { color: var(--navigation-accent); text-underline-offset: .2em; }
.shopify-product-page { margin-top: 0; }
.shopify-product-page:has(> shopify-context .shopify-product-info) > .shopify-product-fallback { display: none; }
.shopify-product { --product-detail-top: clamp(1.5rem, 4vw, 4rem); gap: 0; }
.shopify-product-info { padding: var(--product-detail-top) clamp(1rem, 4vw, 4rem) 0; }
.shopify-product h1 { margin-top: 0; }
.product-stock { margin: .35rem 0 0; color: var(--accent-link); font-size: .9rem; font-weight: 600; }
.product-stock::before { content: ''; display: inline-block; width: .45rem; height: .45rem; margin-inline-end: .45rem; border-radius: 50%; background: currentColor; vertical-align: .1em; }
.shopify-product .price { margin-top: .35rem; }
.shopify-product > * { min-width: 0; }
shopify-product-mockup img { width: 100%; height: auto; }
shopify-product-mockup p { padding-inline: 1rem; }
shopify-product-mockup img[hidden] { display: none; }
.shopify-description { overflow-x: auto; }
.shopify-description [hidden] { display: none; }
.shopify-description table, .size-guide-table table { width: 100%; border-collapse: collapse; }
.shopify-description th, .shopify-description td, .size-guide-table th, .size-guide-table td { padding: .35rem .55rem; border-bottom: 1px solid var(--line); }
.size-guide-table { margin-bottom: 1rem; overflow-x: auto; }
.color-picker { min-inline-size: 0; margin: 1rem 0 .75rem; padding: 0; border: 0; }
.color-picker legend { padding: 0; }
.color-picker legend strong { margin-inline-start: .35rem; color: var(--ink); font-weight: 600; }
.color-swatches { display: flex; flex-wrap: wrap; gap: .125rem; }
.color-swatch { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0; cursor: pointer; }
.color-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.color-swatch span { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--control-border); background: var(--swatch-color); }
.color-swatch input:checked + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.color-swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.color-swatch input:disabled + span { opacity: .45; }
.shopify-product-info > shopify-variant-selector { display: block; margin-block-start: 1rem; }
shopify-variant-selector::part(label) { color: var(--ink); }
shopify-variant-selector::part(select), shopify-variant-selector::part(radio) { background-color: var(--paper); color: var(--ink); border-color: var(--control-border); }
shopify-variant-selector::part(radio-selected) { background-color: var(--plum); color: var(--off-white); border-color: var(--accent-link); }
shopify-variant-selector::part(radio) { inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border-radius: 50%; align-items: center; justify-content: center; }
.shopify-add { width: 100%; margin-top: 1rem; padding: .7rem 1.05rem; border: 1px solid var(--action-hover); background: var(--action); color: var(--action-ink); font: inherit; font-weight: 600; cursor: pointer; }
.shopify-add:disabled { border-color: var(--disabled-border); background: var(--disabled-bg); color: var(--disabled-text); cursor: default; }
.shopify-accordion { margin-top: 1.25rem; border-block: 1px solid var(--line); }
.shopify-accordion:not([hidden]) + .shopify-accordion { margin-top: 0; border-top: 0; }
.shopify-accordion summary { padding-block: .8rem; color: var(--ink); font-weight: 600; cursor: pointer; }
.shopify-accordion summary::marker { color: var(--navigation-accent); }
.shopify-specifications ul { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.shopify-specifications li + li { margin-top: .35rem; }
shopify-cart::part(dialog) { background: var(--paper); color: var(--ink); border-color: var(--line); }
shopify-cart::part(primary-button) { background-color: var(--action); color: var(--action-ink); }
shopify-cart::part(primary-button):hover { background-color: var(--action-hover); }
shopify-cart[data-checkout-pending]::part(primary-button) { cursor: wait; opacity: .65; }
.price { font-size: 1.25rem; }
label { color: var(--ink); display: block; font-weight: 600; margin-top: 1rem; margin-bottom: .35rem; }
select { width: min(100%, 15rem); padding: .55rem; border: 1px solid var(--control-border); background: var(--paper); color: var(--ink); font: inherit; }
.preview-note { font-size: .875rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }

.newsletter-page { display: grid; grid-template-columns: 1.2fr 1fr; max-width: 960px; margin: clamp(1.5rem, 6vw, 4rem) auto; }
.newsletter-intro, .newsletter-signup { padding: clamp(1.5rem, 5vw, 3.75rem); }
.newsletter-intro { background: var(--newsletter-bg); color: var(--ink); box-shadow: inset 0 4px var(--action); }
.newsletter-intro p { max-width: 35ch; margin: 1.25rem 0 0; font-size: 1.125rem; }
.newsletter-signup { background: var(--footer); }
.newsletter-signup input { display: block; width: 100%; padding: .65rem .75rem; border: 1px solid var(--control-border); color: var(--ink); background: var(--paper); font: inherit; }
.newsletter-signup button { width: 100%; justify-content: center; margin-top: .75rem; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.newsletter-honeypot { position: absolute; inset-inline-start: -5000px; }
.newsletter-signup p { margin: .75rem 0 0; font-size: .9rem; }

@media (width > 660px) {
  shopify-product-mockup {
    align-self: start;
    position: sticky;
    top: 1rem;
    margin-top: var(--product-detail-top);
  }
}

@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .hero, .product-detail, .newsletter-page { grid-template-columns: 1fr; }
  .hero-image { min-height: 0; aspect-ratio: 4 / 3; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
  .product-grid > li:only-child { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .site-header .bar, .site-footer .bar { flex-wrap: wrap; gap: .65rem 1rem; }
  .site-header nav, .footer-credit { margin-inline-start: auto; }
}
