/*
Theme Name: ChronVexa Curator
Description: Contemporary editorial storefront for ChronVexa.
Template: twentytwentyfour
Version: 1.2.1
Text Domain: chronvexa-curator
*/

:root {
  --cv-ink: #171716;
  --cv-paper: #f7f5f1;
  --cv-stone: #e9e4dc;
  --cv-blue: #173047;
  --cv-wine: #6e1f24;
  --cv-line: rgba(23, 23, 22, .16);
  --cv-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --cv-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--cv-paper); color: var(--cv-ink); }
body, button, input, select, textarea { font-family: var(--cv-sans); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > header, .wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

.chronvexa-header-wrap {
  align-items: center;
  background: rgba(247, 245, 241, .96);
  border-bottom: 1px solid var(--cv-line);
  box-sizing: border-box;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
  min-height: 78px;
  padding: 0 3.2vw;
  position: relative;
  width: 100%;
  z-index: 50;
}

.chronvexa-wordmark {
  color: var(--cv-ink) !important;
  font-family: var(--cv-serif);
  font-size: clamp(30px, 2.8vw, 45px);
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
}

.chronvexa-primary-nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.chronvexa-primary-nav a,
.chronvexa-header-actions a,
.chronvexa-header-actions button,
.chronvexa-footer a { color: var(--cv-ink); text-decoration: none; }
.chronvexa-primary-nav a { font-size: 13px; letter-spacing: .02em; }
.chronvexa-primary-nav a:hover,
.chronvexa-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.chronvexa-header-actions { display: flex; gap: 18px; justify-content: flex-end; }
.chronvexa-header-actions a { display: inline-flex; height: 24px; width: 24px; }
.chronvexa-header-actions svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; width: 22px; }
.chronvexa-search { align-items: center; display: flex; justify-content: flex-end; margin: 0; position: relative; }
.chronvexa-search input[type="search"] {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cv-ink);
  border-radius: 0;
  box-sizing: border-box;
  color: var(--cv-ink);
  font-size: 12px;
  opacity: 0;
  outline: 0;
  padding: 5px 0;
  transition: opacity .2s ease, width .2s ease, margin .2s ease;
  width: 0;
}
.chronvexa-search input[type="search"]::placeholder { color: #6b6964; }
.chronvexa-search:focus-within input[type="search"] { margin-right: 9px; opacity: 1; width: 150px; }
.chronvexa-search button { background: transparent; border: 0; cursor: pointer; display: inline-flex; padding: 0; }

.chronvexa-home { overflow: hidden; }
.chronvexa-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, .95fr);
  margin: 0 auto;
  max-width: 1600px;
  min-height: 690px;
}
.chronvexa-hero__media { min-height: 620px; overflow: hidden; position: relative; }
.chronvexa-hero__media img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.chronvexa-hero__note {
  background: rgba(247, 245, 241, .92);
  bottom: 26px;
  font-size: 10px;
  left: 26px;
  letter-spacing: .23em;
  padding: 13px 15px;
  position: absolute;
  text-transform: uppercase;
}
.chronvexa-hero__copy {
  align-items: flex-start;
  background: #ede8e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 110px) clamp(34px, 5vw, 78px);
}
.chronvexa-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.chronvexa-hero h1 {
  font-family: var(--cv-serif);
  font-size: clamp(50px, 5.2vw, 84px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
  margin: 0 0 30px;
  max-width: 620px;
}
.chronvexa-hero__copy > p:not(.chronvexa-kicker) {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 460px;
}
.chronvexa-button {
  background: var(--cv-ink);
  border: 1px solid var(--cv-ink);
  color: #fff !important;
  display: inline-flex;
  font-size: 12px;
  gap: 34px;
  letter-spacing: .04em;
  padding: 16px 22px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.chronvexa-button:hover { background: transparent; color: var(--cv-ink) !important; }

.chronvexa-category-section { margin: 0 auto; max-width: 1600px; padding: 24px 2.2vw 86px; }
.chronvexa-categories { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chronvexa-category { color: var(--cv-ink); display: grid; grid-template-columns: 1fr auto; text-decoration: none; }
.chronvexa-category__image { aspect-ratio: 1.2; grid-column: 1 / -1; height: auto; object-fit: cover; transition: transform .4s ease; width: 100%; }
.chronvexa-category:hover .chronvexa-category__image { transform: scale(.985); }
.chronvexa-category__label { font-family: var(--cv-serif); font-size: clamp(23px, 2.2vw, 34px); letter-spacing: -.03em; margin-top: 15px; }
.chronvexa-category__link { align-self: end; font-size: 11px; letter-spacing: .05em; margin-bottom: 7px; text-transform: uppercase; }

.chronvexa-selection { border-top: 1px solid var(--cv-line); margin: 0 auto; max-width: 1600px; padding: 70px 2.2vw 104px; }
.chronvexa-section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 34px; }
.chronvexa-section-heading .chronvexa-kicker { margin-bottom: 10px; }
.chronvexa-section-heading h2,
.chronvexa-story h2 { font-family: var(--cv-serif); font-size: clamp(42px, 4vw, 66px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin: 0; }
.chronvexa-section-heading > a { border-bottom: 1px solid var(--cv-ink); color: var(--cv-ink); font-size: 12px; padding-bottom: 5px; text-decoration: none; }
.chronvexa-products { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chronvexa-product { min-width: 0; }
.chronvexa-product__media { background: #eeeae4; display: block; overflow: hidden; }
.chronvexa-product__media a { display: block; }
.chronvexa-product__image { aspect-ratio: .82; display: block; height: auto; object-fit: cover; transition: transform .45s ease; width: 100%; }
.chronvexa-product:hover .chronvexa-product__image { transform: scale(1.025); }
.chronvexa-product__meta { font-size: 13px; padding-top: 15px; }
.chronvexa-product__meta h3 { font-family: var(--cv-serif); font-size: 17px; font-weight: 400; line-height: 1.2; margin: 0 0 7px; }
.chronvexa-product__meta h3 a { color: var(--cv-ink); text-decoration: none; }
.chronvexa-product__price { color: #565653; font-size: 12px; }
.chronvexa-product__meta del { opacity: .55; }

.chronvexa-story { background: #eeeae4; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .8fr); margin: 0 auto; max-width: 1600px; }
.chronvexa-story > img { height: 100%; min-height: 580px; object-fit: cover; width: 100%; }
.chronvexa-story__copy { align-self: center; padding: 70px clamp(38px, 6vw, 100px); }
.chronvexa-story__copy .chronvexa-kicker { margin-bottom: 20px; }
.chronvexa-story__copy > p:not(.chronvexa-kicker) { font-size: 15px; line-height: 1.75; margin: 28px 0; max-width: 520px; }
.chronvexa-text-link { border-bottom: 1px solid; color: var(--cv-ink); display: inline-block; font-size: 12px; padding-bottom: 5px; text-decoration: none; }

.chronvexa-footer { border-top: 1px solid var(--cv-line); margin: 0 auto; max-width: 1600px; padding: 58px 3.2vw 28px; }
.chronvexa-footer__top { display: grid; gap: 50px; grid-template-columns: 1.2fr 1fr .85fr; }
.chronvexa-footer__top .chronvexa-wordmark { display: inline-block; font-size: 35px; }
.chronvexa-footer__top p { font-size: 9px; letter-spacing: .22em; margin: 12px 0 0; text-transform: uppercase; }
.chronvexa-footer nav { display: grid; font-size: 12px; gap: 12px 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chronvexa-footer__contact { align-items: flex-start; display: flex; flex-direction: column; font-size: 12px; gap: 9px; }
.chronvexa-footer__contact span { color: #6b6964; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.chronvexa-footer__bottom { border-top: 1px solid var(--cv-line); display: flex; font-size: 10px; justify-content: space-between; margin-top: 46px; padding-top: 20px; }
.chronvexa-footer__bottom div { display: flex; gap: 22px; }

.chronvexa-faq { margin: 0 auto; max-width: 920px; padding: 28px 22px 80px; }
.chronvexa-faq__intro { color: #565653; font-size: 15px; line-height: 1.7; margin: 0 0 30px; }
.chronvexa-faq__list { border-top: 1px solid var(--cv-line); }
.chronvexa-faq__item { border-bottom: 1px solid var(--cv-line); }
.chronvexa-faq__item summary { cursor: pointer; font-family: var(--cv-serif); font-size: clamp(21px, 2.5vw, 29px); list-style: none; padding: 24px 44px 24px 0; position: relative; }
.chronvexa-faq__item summary::-webkit-details-marker { display: none; }
.chronvexa-faq__item summary::after { content: "+"; font-family: var(--cv-sans); font-size: 22px; font-weight: 300; position: absolute; right: 4px; top: 24px; }
.chronvexa-faq__item[open] summary::after { content: "–"; }
.chronvexa-faq__item summary:focus-visible { outline: 2px solid var(--cv-blue); outline-offset: 3px; }
.chronvexa-faq__item p { color: #565653; font-size: 14px; line-height: 1.75; margin: 2px 48px 24px 0; max-width: 720px; }
.chronvexa-faq__contact { font-size: 13px; margin: 30px 0 0; }
.chronvexa-faq__contact a { color: var(--cv-ink); text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .chronvexa-header-wrap { gap: 22px; grid-template-columns: auto 1fr auto; }
  .chronvexa-primary-nav { gap: 18px; justify-content: center; }
  .chronvexa-primary-nav a:nth-child(5), .chronvexa-primary-nav a:nth-child(6) { display: none; }
  .chronvexa-hero { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr); min-height: 590px; }
  .chronvexa-hero__media { min-height: 590px; }
  .chronvexa-products { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 760px) {
  .chronvexa-header-wrap { gap: 16px; grid-template-columns: 1fr auto; min-height: 68px; padding: 0 20px; }
  .chronvexa-wordmark { font-size: 31px; }
  .chronvexa-primary-nav { border-top: 1px solid var(--cv-line); display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0 -20px; overflow-x: auto; padding: 12px 20px; }
  .chronvexa-primary-nav a { white-space: nowrap; }
  .chronvexa-primary-nav a:nth-child(5) { display: block; }
  .chronvexa-header-actions { gap: 13px; }
  .chronvexa-search:focus-within { background: var(--cv-paper); left: 20px; padding-left: 8px; position: absolute; right: 92px; }
  .chronvexa-search:focus-within input[type="search"] { width: 100%; }
  .chronvexa-hero { display: flex; flex-direction: column; min-height: 0; }
  .chronvexa-hero__media { aspect-ratio: 1.08; min-height: 0; }
  .chronvexa-hero__media img { object-position: 58% center; }
  .chronvexa-hero__note { bottom: 14px; left: 14px; }
  .chronvexa-hero__copy { padding: 48px 24px 56px; }
  .chronvexa-hero h1 { font-size: clamp(48px, 14vw, 64px); }
  .chronvexa-category-section { padding: 18px 16px 58px; }
  .chronvexa-categories { gap: 30px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chronvexa-category__image { aspect-ratio: 1; }
  .chronvexa-category__label { font-size: 25px; }
  .chronvexa-category__link { display: none; }
  .chronvexa-selection { padding: 50px 16px 68px; }
  .chronvexa-section-heading { align-items: flex-start; gap: 22px; }
  .chronvexa-section-heading > a { margin-top: 4px; white-space: nowrap; }
  .chronvexa-products { gap: 28px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chronvexa-product__meta h3 { font-size: 16px; }
  .chronvexa-story { display: flex; flex-direction: column; }
  .chronvexa-story > img { aspect-ratio: 1.08; min-height: 0; object-position: 40% center; }
  .chronvexa-story__copy { padding: 52px 24px 62px; }
  .chronvexa-footer { padding: 44px 22px 26px; }
  .chronvexa-footer__top { display: block; }
  .chronvexa-footer nav { margin: 36px 0; }
  .chronvexa-footer__bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
