/*
Theme Name: AURAÉVOLIN
Description: The AURAÉVOLIN fragrance collection preview and brand story.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.2
Text Domain: auraevolin
*/

:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #2a221b;
  --muted: #5a4939;
  --line: #bfb0a0;
  --night: #2b211b;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[id] { scroll-margin-top: 2rem; }

.frame { width: min(1440px, calc(100% - 112px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: var(--paper);
  background: var(--night);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.masthead, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
}

.masthead#top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: auto;
  gap: .5rem 1rem;
  padding-block: 1.1rem .9rem;
}

.masthead#top > p { grid-column: 2; }
.masthead#top nav {
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: .45rem;
}

.shop-tools {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: .18rem;
}

.shop-tools button, .shop-tools a, .favorite-button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.shop-tools button[hidden], .shop-count[hidden], .fragrance-actions[hidden] { display: none; }
.shop-tools a:hover, .shop-tools button:hover, .favorite-button:hover { background: #e9e1d5; }
.shop-tools svg, .favorite-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 15px;
  min-height: 15px;
  border-radius: 10px;
  padding: 1px 3px;
  background: var(--ink);
  color: var(--paper);
  font: .59rem/13px var(--body);
}

.wordmark {
  font: 400 clamp(1.1rem, 2.1vw, 1.65rem)/1 var(--display);
  letter-spacing: .16em;
  text-decoration: none;
}

.masthead nav, .contents {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 2rem;
  font-size: .8rem;
}

nav a { text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(565px, 76svh, 860px);
  overflow: hidden;
  color: #fff9ec;
  background: #21150d;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #180e09c2, #180e091a 63%, transparent);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: min(1440px, calc(100% - 112px));
  margin-inline: auto;
  padding-block: 5rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .21em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f0d8b6; }

.hero h1, .story h2, .chapter h3, .closing h2, .collection h2, .fragrance-category h3, .fragrance-card h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.055em;
}

.hero h1 {
  margin: .22em 0 .43em;
  font-size: clamp(3.5rem, 6.3vw, 7rem);
  line-height: .94;
}

.hero h1 em { color: #f0d8b6; font-weight: inherit; }

.hero > .wp-block-image.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
}

.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% 52%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-size: .78rem;
  line-height: 1.4;
  text-decoration: none;
}

.text-link span { font-size: 1.2em; }
.hero .text-link {
  padding: .85em 1.2em;
  border: 1px solid #f0d8b6b0;
  transition: background-color .18s ease, color .18s ease;
}

.hero .text-link:hover {
  color: #24170e;
  background: #f0d8b6;
  text-decoration: none;
}

.collection { padding-block: clamp(4rem, 8.1vw, 8rem); text-align: center; }

.collection h2 {
  margin: .23em 0 .48em;
  font-size: clamp(3.1rem, 6.6vw, 6.3rem);
  line-height: .98;
}

.collection-nav {
  justify-content: center;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.collection-nav a { border-bottom: 1px solid var(--line); padding-bottom: .3em; }

.fragrance-category {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 3.9vw, 3rem);
}

.fragrance-category + .fragrance-category { margin-top: clamp(3rem, 6vw, 6rem); }

.fragrance-category h3 {
  margin: 0 0 .65em;
  font-size: clamp(2.15rem, 4vw, 4.15rem);
  line-height: 1.05;
}

.fragrance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 940px);
  margin-inline: auto;
  gap: clamp(1rem, 2.25vw, 2rem);
}

.fragrance-card figure { margin: 0; }
.fragrance-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fragrance-card h4 { margin: 1.1rem 0 .33rem; font-size: clamp(1.5rem, 2.5vw, 2.2rem); letter-spacing: .065em; }
.fragrance-card p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.fragrance-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
}

.bag-button, .shop-row-actions button {
  min-height: 36px;
  padding: .33rem .85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: .78rem var(--body);
  cursor: pointer;
}

.bag-button:hover, .shop-row-actions button:hover { background: var(--ink); color: var(--paper); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }

.shop-dialog {
  width: min(100% - 32px, 520px);
  max-height: 85dvh;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.shop-dialog::backdrop { background: #1c130db3; }
.shop-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.shop-dialog-header h2 { margin: 0; font: 400 clamp(2.2rem, 5vw, 3.5rem)/1 var(--display); }
.shop-close { min-width: 38px; min-height: 38px; border: 0; background: transparent; color: var(--ink); font: 1.65rem/1 var(--body); cursor: pointer; }
.shop-search { margin-top: 1.5rem; }
.shop-search label { display: block; margin-bottom: .6rem; font-size: .85rem; }
.shop-search input { width: 100%; min-height: 42px; border: 1px solid var(--line); padding: .55rem .65rem; background: transparent; color: var(--ink); font: 1rem var(--body); }
.shop-dialog #shop-summary, .shop-preview-note { font-size: .85rem; color: var(--muted); }
.shop-results { margin: 0; padding: 0; list-style: none; }
.shop-results li { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-block: .7rem; }
.shop-results li img { width: 64px; height: 64px; object-fit: cover; }
.shop-results li a { font: 1.05rem var(--display); text-underline-offset: .2em; }
.shop-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.shop-row-actions button { min-width: 34px; }
.shop-row-actions span { font-size: .82rem; }

.story { padding-bottom: clamp(4.5rem, 9vw, 9rem); }
.story-header { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 6rem); }
.story .story-image { margin: 0 0 clamp(2.5rem, 5vw, 5rem); }
.story-image img { display: block; width: 100%; height: clamp(230px, 35vw, 510px); object-fit: cover; object-position: center 55%; }

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1.75rem;
}

.story h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7.9vw, 7.2rem);
  line-height: .95;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-block: clamp(2.35rem, 6vw, 5.75rem);
}

.chapter:last-child { border-bottom: 1px solid var(--line); }

.chapter h3 {
  max-width: 15ch;
  margin: .35em 0 0;
  font-size: clamp(2.2rem, 4vw, 4.15rem);
  line-height: 1;
}

.chapter-copy {
  width: min(100%, 64ch);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.75;
}

.chapter-copy p { margin: 0; }
.chapter-copy p + p { margin-top: 1em; }
.quotation { margin: 1.65rem 0 0; padding-left: 1.35rem; border-left: 1px solid var(--line); }
.quotation blockquote { margin: 0 0 .45em; font: italic clamp(1.35rem, 2.5vw, 2.2rem)/1.25 var(--display); }
.quotation figcaption { color: var(--muted); font-size: .8rem; }

.closing {
  padding-block: clamp(4.25rem, 10vw, 9rem);
  background: var(--night);
  color: var(--paper);
  text-align: center;
}

.closing h2 { margin: 0; font-size: clamp(2.85rem, 8vw, 7.4rem); line-height: .97; }
.closing p { max-width: 51ch; margin: 1.75rem auto 0; line-height: 1.7; }

@media (max-width: 990px) {
  .frame, .hero-copy { width: calc(100% - 64px); }
}

@media (max-width: 700px) {
  .frame, .hero-copy { width: calc(100% - 40px); }
  .masthead, .footer { min-height: 66px; }
  .masthead#top { min-height: 82px; grid-template-columns: 1fr auto; padding-block: .8rem; }
  .masthead#top > p { grid-column: 1; }
  .shop-tools { grid-column: 2; }
  .masthead nav, .contents { gap: .65rem 1rem; }
  .hero { min-height: clamp(460px, 78svh, 625px); align-items: end; }
  .hero::after { background: linear-gradient(0deg, #180e09f0, #180e0920 75%, transparent); }
  .hero-copy { padding-block: 3.25rem; }
  .hero h1 { font-size: clamp(2.85rem, 9vw, 4.4rem); }
  .hero-image img { object-position: 66% center; }
  .fragrance-grid { grid-template-columns: 1fr; width: min(100%, 400px); margin-inline: auto; gap: 2.4rem; }
  .chapter { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 420px) {
  .masthead#top { grid-template-columns: 1fr; justify-items: center; gap: .2rem; }
  .masthead#top .shop-tools { grid-column: 1; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .text-link { transition: none; }
}

.masthead > p, .footer > p, .hero-copy > p { margin: 0; }
.quotation.wp-block-quote { margin: 1.65rem 0 0; padding-left: 1.35rem; border-left: 1px solid var(--line); font: italic clamp(1.35rem, 2.5vw, 2.2rem)/1.25 var(--display); }
.quotation cite { display: block; margin-top: .45em; color: var(--muted); font: normal .8rem var(--body); }
.story > h1 { margin-top: 2rem; font: 400 clamp(2.8rem, 7vw, 5.5rem)/1 var(--display); }

