/*
Theme Name: Blogrivo Atelier
Theme URI: https://blogrivo.com
Author: Blogrivo
Description: A restrained editorial storefront theme for Blogrivo.
Version: 1.0.0
Text Domain: blogrivo-atelier
*/

:root {
  --ink: #111111;
  --muted: #626262;
  --paper: #f7f7f4;
  --line: #d7d7d0;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(249,248,244,.98); border-bottom: 1px solid #ece9e1; }
.header-inner { width: min(100% - 64px, 1120px); height: 84px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 44px; }
.desktop-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 27px; }
.desktop-nav a, .mobile-nav a { color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--ink); }
.site-brand { font-family: var(--sans); font-size: 23px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover { color: var(--muted); }
.menu-toggle { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 18px 20px 22px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.hero { position: relative; min-height: min(770px, calc(100vh - 84px)); display: flex; align-items: flex-end; overflow: hidden; color: var(--ink); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(225,218,206,.22), rgba(225,218,206,0) 62%); }
.hero-content { position: relative; z-index: 1; width: min(100% - 64px, 1120px); margin: 0 auto 70px; text-align: left; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: var(--ink); }
.display-title { max-width: 530px; margin: 0; font-family: var(--serif); font-size: clamp(52px, 5.1vw, 78px); font-weight: 400; letter-spacing: 0; line-height: .93; }
.hero-copy { max-width: 380px; margin: 25px 0 0; font-size: 15px; line-height: 1.7; }
.hero .button { display: inline-block; margin-top: 34px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s; }
.hero .button::after { content: "\2192"; margin-left: 20px; font-size: 16px; vertical-align: -1px; }
.hero .button:hover { border-color: transparent; }
.hero-season { position: absolute; z-index: 1; right: 36px; bottom: 64px; margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { width: min(100% - 40px, 1312px); margin: 0 auto; padding: 120px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 64px; }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 70px); font-weight: 400; line-height: 1; }
.text-link { display: inline-flex; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.text-link:hover { border-color: transparent; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card { display: block; min-width: 0; }
.product-image { height: clamp(180px, 19vw, 260px); overflow: hidden; background: #fff; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-meta { display: block; padding-top: 16px; text-align: center; }
.product-name, .product-price { margin: 0; font-size: 15px; }
.product-price { margin-top: 4px; font-weight: 600; }
.product-category { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.collection-directory { padding-top: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.collection-tile { display: block; min-width: 0; }
.collection-tile-image { aspect-ratio: 4 / 5; overflow: hidden; background: #e6e4de; }
.collection-tile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collection-tile:hover .collection-tile-image img { transform: scale(1.03); }
.collection-tile-title { margin: 14px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }

.faq-section { padding: 120px 0; border-top: 1px solid var(--line); background: #fbfaf7; }
.faq-inner { width: min(100% - 64px, 1200px); margin: 0 auto; }
.faq-title { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(44px, 5vw, 68px); font-weight: 400; line-height: 1; text-align: center; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 23px 46px 23px 0; color: var(--ink); cursor: pointer; font-family: var(--serif); font-size: 19px; line-height: 1.35; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 20px; right: 0; font-family: var(--sans); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { max-width: 720px; margin: -2px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.site-footer { background: #111312; color: #f8f7f2; }
.footer-shell { width: min(100% - 64px, 1200px); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; min-height: 350px; padding: 100px 48px 64px; border-bottom: 1px solid rgba(248,247,242,.26); }
.footer-logo { align-self: start; }
.footer-logo .custom-logo-link { display: inline-block; }
.footer-logo .custom-logo { display: block; width: auto; max-width: 220px; max-height: 80px; }
.footer-wordmark { display: inline-block; color: #fff; font-family: var(--sans); font-size: 29px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-heading { margin: 3px 0 14px; color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a, .footer-column span { color: #f8f7f2; font-size: 14px; line-height: 1.25; }
.footer-column a:hover { color: #bbbcb7; }
.footer-column span { color: #b7b8b3; }
.footer-bottom { padding: 62px 0 42px; color: #fff; font-size: 12px; font-weight: 600; text-align: center; }

@media (max-width: 767px) {
  .header-inner { width: min(100% - 32px, 1440px); height: 68px; grid-template-columns: 40px 1fr 40px; column-gap: 0; }
  .menu-toggle { display: inline-grid; }
  .desktop-nav { display: none; }
  .site-brand { justify-self: center; font-size: 18px; }
  .header-actions { gap: 0; }
  .header-actions .account-link, .header-actions .search-link { display: none; }
  .mobile-nav.is-open { display: block; }
  .hero { min-height: calc(100svh - 68px); }
  .hero-content { width: calc(100% - 40px); margin-bottom: 48px; }
  .display-title { max-width: 320px; font-size: 52px; }
  .hero-copy { font-size: 15px; }
  .hero-season { right: 14px; bottom: 30px; font-size: 9px; }
  .section { width: min(100% - 40px, 1312px); padding: 76px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading .text-link { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .product-image { height: 160px; }
  .product-name, .product-price { font-size: 14px; }
  .product-category { font-size: 10px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .collection-tile-title { font-size: 21px; }
  .faq-section { padding: 76px 0; }
  .faq-inner { width: min(100% - 40px, 1200px); }
  .faq-title { font-size: 44px; text-align: left; }
  .faq-item summary { padding: 19px 36px 19px 0; font-size: 18px; }
  .faq-item summary::after { top: 16px; }
  .footer-shell { width: min(100% - 40px, 1200px); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 24px; min-height: 0; padding: 58px 0 42px; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-wordmark { font-size: 24px; }
  .footer-bottom { padding: 30px 0 34px; text-align: left; }
}
