/*
Theme Name: Asia Ushakova Studio
Theme URI: https://example.com/
Author: Adaptive
Author URI: https://adaptive.ai/
Description: Minimal editorial portfolio theme for a sculptor, with editable collections, gallery, About, contact and WooCommerce shop support.
Version: 1.0.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: asia-ushakova
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --studio-ink: #24201d;
  --studio-muted: #746e68;
  --studio-paper: #f7f5f1;
  --studio-white: #fff;
  --studio-line: #ded9d2;
  --studio-accent: #9b806b;
  --studio-max: 1440px;
  --studio-gutter: clamp(1.2rem, 3.3vw, 4.2rem);
  --studio-serif: Georgia, "Times New Roman", serif;
  --studio-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--studio-paper);
  color: var(--studio-ink);
  font-family: var(--studio-sans);
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--studio-accent); }
button, input, textarea, select { font: inherit; }
button, input, textarea, select { border-radius: 0; }
:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 3px; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  overflow: hidden; position: absolute !important; white-space: nowrap; width: 1px;
}
.screen-reader-text:focus {
  background: var(--studio-white); clip: auto; clip-path: none; height: auto; left: 1rem;
  padding: .6rem 1rem; top: 1rem; width: auto; z-index: 999;
}

.site-header { background: var(--studio-paper); border-bottom: 1px solid var(--studio-line); position: sticky; top: 0; z-index: 20; }
.site-header__inner, .site-main, .site-footer__inner { margin: 0 auto; max-width: var(--studio-max); padding-left: var(--studio-gutter); padding-right: var(--studio-gutter); }
.site-header__inner { align-items: center; display: flex; gap: 1.25rem; justify-content: space-between; min-height: 82px; }
.site-brand { flex: 0 0 auto; font-size: .8rem; font-weight: 700; letter-spacing: .14em; line-height: 1.1; text-transform: uppercase; }
.site-brand img { max-height: 50px; width: auto; }
.site-nav { align-items: center; display: flex; gap: clamp(.7rem, 1.65vw, 2rem); margin-left: auto; }
.site-nav ul { align-items: center; display: flex; gap: inherit; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-social a, .cart-link { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.site-header__extras { align-items: center; display: flex; gap: .8rem; }
.site-social { align-items: center; display: flex; gap: .7rem; }
.cart-link { align-items: center; display: inline-flex; gap: .4rem; }
.cart-count { align-items: center; background: var(--studio-ink); border-radius: 50%; color: var(--studio-white); display: inline-flex; font-size: .62rem; height: 1.35rem; justify-content: center; min-width: 1.35rem; padding: 0 .2rem; }
.menu-toggle { background: transparent; border: 0; color: var(--studio-ink); cursor: pointer; display: none; padding: .5rem; }
.menu-toggle span { background: currentColor; display: block; height: 1px; margin: 5px 0; width: 22px; }

.site-main { padding-bottom: clamp(4rem, 8vw, 9rem); }
.hero { margin-left: calc(var(--studio-gutter) * -1); margin-right: calc(var(--studio-gutter) * -1); position: relative; }
.hero img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.hero__veil { background: linear-gradient(180deg, transparent 45%, rgba(25, 21, 18, .58)); inset: 0; position: absolute; }
.hero__copy { bottom: clamp(1.2rem, 4vw, 4rem); color: var(--studio-white); left: var(--studio-gutter); max-width: 33rem; position: absolute; }
.eyebrow { font-size: .7rem; letter-spacing: .16em; margin: 0 0 .75rem; text-transform: uppercase; }
.hero__title, .page-title { font-family: var(--studio-serif); font-size: clamp(2.6rem, 7vw, 7.5rem); font-weight: 400; letter-spacing: -.04em; line-height: .95; margin: 0; }
.hero__title { font-size: clamp(3.2rem, 7.8vw, 8.6rem); }
.hero__link { border-bottom: 1px solid currentColor; display: inline-block; font-size: .73rem; letter-spacing: .12em; margin-top: 1.4rem; padding-bottom: .35rem; text-transform: uppercase; }

.intro { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin: clamp(3.5rem, 9vw, 9rem) 0; }
.intro h2, .section-heading, .content-heading { font-family: var(--studio-serif); font-size: clamp(2rem, 4.2vw, 4.4rem); font-weight: 400; letter-spacing: -.035em; line-height: .98; margin: 0; }
.intro__text { color: var(--studio-muted); font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 38rem; }
.intro__text p { margin: 0 0 1rem; }

.section-heading { margin-bottom: 2rem; }
.section-heading-row { align-items: end; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.text-link { border-bottom: 1px solid currentColor; font-size: .7rem; letter-spacing: .12em; padding-bottom: .3rem; text-transform: uppercase; }
.collection-grid, .gallery-grid, .product-grid { display: grid; gap: clamp(1rem, 2.25vw, 2.6rem); }
.collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-card__image, .gallery-card__image, .product-card__image { background: #e8e3dc; overflow: hidden; }
.collection-card__image { aspect-ratio: 1 / 1.18; }
.collection-card__image img, .gallery-card__image img, .product-card__image img { height: 100%; object-fit: cover; transition: transform .6s ease; width: 100%; }
.collection-card:hover img, .gallery-card:hover img, .product-card:hover img { transform: scale(1.035); }
.collection-card__title, .product-card__title { font-size: .7rem; letter-spacing: .12em; margin: .9rem 0 0; text-transform: uppercase; }
.collection-card__meta { color: var(--studio-muted); font-size: .78rem; margin-top: .25rem; }

.page-header { margin: clamp(3rem, 8vw, 8rem) 0 clamp(2rem, 5vw, 4.5rem); max-width: 60rem; }
.page-header p { color: var(--studio-muted); font-size: 1.05rem; margin: 1.4rem 0 0; max-width: 38rem; }
.prose { max-width: 48rem; }
.prose p { font-size: clamp(1.05rem, 1.7vw, 1.35rem); margin: 0 0 1.3rem; }
.prose h2, .prose h3 { font-family: var(--studio-serif); font-weight: 400; }

.collection-hero { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); margin-bottom: clamp(3rem, 8vw, 8rem); }
.collection-hero img { aspect-ratio: 1.1 / 1; object-fit: cover; width: 100%; }
.collection-hero__copy { align-self: end; padding-bottom: 1rem; }
.collection-hero__copy h1 { font-family: var(--studio-serif); font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.05em; line-height: .93; margin: 0 0 1.5rem; }
.collection-hero__copy p { color: var(--studio-muted); max-width: 28rem; }
.work-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card:nth-child(3n + 1) { grid-row: span 2; }
.gallery-card__image { aspect-ratio: 4 / 5; }
.gallery-card:nth-child(3n + 1) .gallery-card__image { aspect-ratio: 3 / 4; }
.gallery-card__caption { color: var(--studio-muted); font-size: .72rem; letter-spacing: .08em; margin: .75rem 0 0; text-transform: uppercase; }

.about-layout, .contact-layout { display: grid; gap: clamp(2rem, 7vw, 8rem); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.about-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.contact-details { border-top: 1px solid var(--studio-line); margin-top: 2rem; padding-top: 1.2rem; }
.contact-details a { border-bottom: 1px solid var(--studio-line); display: table; margin: .35rem 0; padding-bottom: .15rem; }

.site-form { margin-top: 2rem; max-width: 44rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .7rem; letter-spacing: .12em; margin-bottom: .45rem; text-transform: uppercase; }
.field input, .field textarea, .field select { background: transparent; border: 1px solid var(--studio-line); color: var(--studio-ink); padding: .85rem .9rem; width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--studio-ink) !important; border: 1px solid var(--studio-ink) !important; color: var(--studio-white) !important; cursor: pointer; display: inline-block; font-size: .7rem !important; letter-spacing: .14em; padding: .9rem 1.2rem !important; text-transform: uppercase; }
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: transparent !important; color: var(--studio-ink) !important; }

.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card__image { aspect-ratio: 4 / 5; }
.product-card__price { color: var(--studio-muted); font-size: .82rem; margin-top: .35rem; }
.product-card__links { align-items: center; display: flex; gap: .8rem; justify-content: space-between; }
.product-card__links .text-link { font-size: .62rem; }
.single-product-layout { display: grid; gap: clamp(2rem, 7vw, 7rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-top: clamp(3rem, 8vw, 8rem); }
.single-product-layout__image img { max-height: 75vh; object-fit: cover; width: 100%; }
.single-product-layout__copy h1 { font-family: var(--studio-serif); font-size: clamp(2.7rem, 6vw, 6.5rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; margin: 0 0 1rem; }
.single-product-layout__price { font-size: 1.1rem; margin-bottom: 1.5rem; }
.single-product-layout__description { color: var(--studio-muted); margin-bottom: 2rem; max-width: 28rem; }

.site-footer { border-top: 1px solid var(--studio-line); padding: 2.2rem 0; }
.site-footer__inner { align-items: start; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr 1fr; }
.site-footer__title { font-size: .7rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 .6rem; text-transform: uppercase; }
.site-footer p, .site-footer a { color: var(--studio-muted); font-size: .78rem; margin: 0; }
.site-footer__links { display: flex; flex-direction: column; gap: .3rem; }
.site-footer__credit { text-align: right; }

.woocommerce .site-main, .woocommerce-page .site-main { padding-top: 1px; }
.woocommerce ul.products { display: grid; gap: clamp(1rem, 2.25vw, 2.6rem); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; margin: 0; width: auto; }
.woocommerce ul.products li.product a img { margin: 0 0 .9rem; }
.woocommerce div.product { margin-top: clamp(3rem, 8vw, 8rem); }
.woocommerce div.product div.images img { max-height: 75vh; object-fit: cover; }
.woocommerce div.product .product_title { font-family: var(--studio-serif); font-size: clamp(2.7rem, 6vw, 6.5rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--studio-ink); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--studio-accent); }
.woocommerce table.shop_table { border-color: var(--studio-line); border-radius: 0; }

.notice { border: 1px solid var(--studio-line); color: var(--studio-muted); margin: 1rem 0 2rem; padding: 1rem; }
.empty-state { color: var(--studio-muted); padding: 3rem 0; }

@media (max-width: 850px) {
  .site-header__inner { min-height: 68px; }
  .site-nav { background: var(--studio-paper); border-bottom: 1px solid var(--studio-line); display: none; left: 0; padding: 1rem var(--studio-gutter) 1.4rem; position: absolute; right: 0; top: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .site-nav a { font-size: .78rem; }
  .site-header__extras { margin-left: auto; }
  .site-social { display: none; }
  .menu-toggle { display: block; }
  .intro, .collection-hero, .about-layout, .contact-layout, .single-product-layout { grid-template-columns: 1fr; }
  .collection-hero__copy { order: -1; }
  .collection-hero__copy h1 { max-width: 30rem; }
  .work-grid, .gallery-grid, .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card:nth-child(3n + 1) { grid-row: auto; }
  .gallery-card:nth-child(3n + 1) .gallery-card__image, .gallery-card__image { aspect-ratio: 4 / 5; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__credit { text-align: left; }
}

@media (max-width: 520px) {
  .hero img { aspect-ratio: 4 / 5; }
  .hero__title { font-size: clamp(2.8rem, 16vw, 5rem); }
  .collection-grid, .work-grid, .gallery-grid, .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .collection-card__image { aspect-ratio: 4 / 5; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
