@font-face {
  font-family: Instrument Serif;
  src: url("assets/serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("assets/serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("assets/sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7efe5;
  --cream: #fff7ec;
  --sand: #ecddcd;
  --ink: #34231e;
  --muted: #685249;
  --wine: #542e2a;
  --accent: #87453c;
  --rule: #d7c3b4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 72px);
  --header: 79px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header) + 22px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.58 var(--sans);
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 20;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--cream);
}
.skip:focus { transform: none; }

.intro { display: none; }
.first-visit .intro {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--wine);
  color: var(--cream);
  font: 400 clamp(3rem, 8vw, 5rem)/1 var(--serif);
  pointer-events: none;
  animation: intro-out .85s both;
}
.intro .flame { width: 23px; height: 29px; }
.intro span span { color: #d9a992; }
@keyframes intro-out {
  0%, 48% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--paper);
}
.header-inner {
  min-height: var(--header);
  display: grid;
  position: relative;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark > span { font: 400 2.25rem/.9 var(--serif); letter-spacing: -.025em; }
.brand-dot { color: var(--accent); }
.wordmark small {
  margin-block-start: 5px;
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1;
  text-transform: uppercase;
}
.primary-nav { display: flex; align-items: center; gap: clamp(24px, 3.65vw, 62px); }
.primary-nav a, .top-shop, .site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover, .top-shop:hover, .site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.top-shop { justify-self: end; gap: 9px; }
.top-shop svg { width: 22px; height: 22px; }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: stretch;
  min-height: clamp(510px, 45vw, 720px);
  background: var(--wine);
  color: var(--cream);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(32px, 4.5vw, 74px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 650;
  letter-spacing: .135em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ead0b8; }
.flame {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 13px;
  color: inherit;
  background: currentColor;
  border-radius: 95% 0 70% 55%;
  transform: rotate(-27deg);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 {
  margin-block: 27px 22px;
  font-size: clamp(3.55rem, 6.1vw, 7.2rem);
  letter-spacing: -.026em;
  line-height: .89;
}
.hero h1 em, .trade h2 em { color: #edc9ad; }
.hero-content > p:not(.eyebrow) { max-width: 32ch; color: #f3e5d7; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}
.hero .button { margin-block-start: 29px; }
.button-light { background: var(--cream); color: var(--wine); }
.button-light:hover { background: #e9cbb8; }
.button-light:focus-visible { outline-color: var(--cream); }
.button-dark { background: var(--wine); color: var(--cream); }
.button-dark:hover { background: var(--accent); }
.button-dark:focus-visible { outline-color: var(--wine); }
.hero-image {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: 380px;
  overflow: hidden;
  background: #8c644b;
}
.hero-image picture { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero-image figcaption {
  align-self: end;
  justify-self: end;
  display: grid;
  gap: 2px;
  margin: clamp(16px, 2.5vw, 36px);
  padding: 11px 16px 10px;
  background: var(--cream);
  color: var(--wine);
  line-height: 1.25;
}
.hero-image figcaption span { font-size: .73rem; font-weight: 600; }
.hero-image figcaption a { font: 400 1.45rem/1 var(--serif); text-decoration: none; }
.hero-image figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }

.catalog, .rituals { padding-block: clamp(66px, 7vw, 112px); }
.section-top {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  align-items: end;
  gap: 24px;
}
.section-top h2, .atelier h2, .trade h2 {
  margin-block-start: 8px;
  font-size: clamp(3.2rem, 6vw, 7rem);
  letter-spacing: -.026em;
  line-height: .94;
}
.section-top h2 em, .atelier h2 em { color: var(--accent); }
.section-top > p { align-self: end; color: var(--muted); }
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-block: 33px 17px;
  padding-block-start: 15px;
  border-top: 1px solid var(--rule);
}
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters button {
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
}
.filters button:hover { border-color: var(--wine); }
.filters button[aria-pressed="true"] { border-color: var(--wine); background: var(--wine); color: var(--cream); }
.filters button:focus-visible { outline-color: var(--wine); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(13px, 1.65vw, 26px); }
.product { min-width: 0; }
.product-picture { display: block; overflow: hidden; background: var(--sand); }
.product-picture:focus-visible { outline-offset: 2px; }
.product-picture img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform .42s ease; }
.product-picture:hover img { transform: scale(1.045); }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 3px; margin-block-start: 12px; }
.product-meta h3 { font-size: clamp(1.55rem, 2.4vw, 2.65rem); line-height: 1; }
.product-meta h3 a { text-decoration: none; }
.product-meta h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-meta p { font-size: .91rem; font-weight: 600; margin-block-start: 4px; }
.product-plus, .detail-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.28rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}
.product-plus:hover, .detail-close:hover { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.product-plus:focus-visible, .detail-close:focus-visible { outline-color: var(--wine); }
.product-note { margin-block-start: 7px; color: var(--muted); font-size: .875rem; line-height: 1.45; }

.atelier { background: var(--sand); }
.atelier-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
  padding-block: clamp(35px, 5.6vw, 84px);
}
.atelier-photo { background: #b38d70; }
.atelier-photo img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.atelier-content h2 { margin-block: 14px 23px; font-size: clamp(3rem, 5.7vw, 6.4rem); }
.atelier-content > p:not(.eyebrow) { max-width: 49ch; color: var(--muted); margin-block: 11px; }
.atelier-content .text-link { margin-block-start: 7px; }

.rituals { padding-bottom: clamp(57px, 6vw, 90px); }
.ritual-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2.55vw, 40px); margin-block-start: 29px; }
.ritual-card { display: block; text-decoration: none; background: var(--sand); }
.ritual-card img { height: clamp(220px, 31vw, 415px); object-fit: cover; }
.ritual-card:hover .text-link { text-decoration-thickness: 2px; }
.ritual-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px clamp(14px, 2vw, 27px); }
.ritual-caption strong { display: block; font: 400 clamp(1.8rem, 3.2vw, 3.15rem)/1 var(--serif); }
.ritual-caption small { color: var(--muted); font-size: .875rem; }
.ritual-caption > .text-link { flex: none; }

.trade { padding-block-end: clamp(42px, 6vw, 84px); }
.trade-panel {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: clamp(23px, 4vw, 72px);
  align-items: center;
  padding: clamp(27px, 5vw, 75px);
  background: var(--wine);
  color: var(--cream);
}
.trade .eyebrow { color: #ead0b8; }
.trade h2 { font-size: clamp(3rem, 5.2vw, 6rem); }
.trade-content p { max-width: 42ch; color: #f3e5d7; }
.trade-links { display: flex; flex-wrap: wrap; gap: 9px 17px; align-items: center; margin-block-start: 22px; }

.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; }
.site-footer p { margin-block-start: 11px; color: var(--muted); font-size: .875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 3vw, 48px); }

.detail {
  width: min(795px, calc(100% - 34px));
  max-width: none;
  max-height: calc(100dvh - 34px);
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
  box-shadow: 0 20px 70px #1f120d57;
}
.detail::backdrop { background: #291a16ad; }
.detail-layout { position: relative; display: grid; grid-template-columns: .88fr 1fr; }
.detail-close { position: absolute; top: 13px; right: 13px; z-index: 1; font-size: 1.55rem; }
.detail-photo { height: 100%; min-height: 100%; object-fit: cover; background: var(--sand); }
.detail-content { padding: clamp(28px, 4vw, 49px); }
.detail-content h2 { margin-block: 7px; font-size: clamp(3rem, 5vw, 4.65rem); line-height: .98; }
.detail-price { margin-block-end: 14px; font-weight: 700; }
.detail-content dl { margin: 16px 0 20px; }
.detail-content dl div { display: grid; grid-template-columns: minmax(86px, .75fr) 1fr; gap: 8px; padding-block: 6px; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.detail-content dt { font-weight: 650; }
.detail-content dd { margin: 0; }
.detail-note { margin-block-start: 12px; color: var(--muted); font-size: .84rem; }

@media (max-width: 980px) {
  .hero-content { padding: clamp(25px, 4vw, 44px); }
  .hero h1 { font-size: clamp(2.85rem, 6vw, 4.2rem); }
  .hero { min-height: 475px; }
}
@media (max-width: 760px) {
  :root { --header: 66px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 9px; }
  .wordmark > span { font-size: 2rem; }
  .wordmark small { font-size: .52rem; }
  .top-shop { grid-column: 2; grid-row: 1; padding-inline: 5px; }
  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 0 8px 9px;
    border: 0;
    background: transparent;
    font-size: .875rem;
    font-weight: 700;
  }
  .menu-lines { width: 16px; height: 9px; border-block: 1px solid currentColor; }
  .header-inner:has(.menu-toggle:not([hidden])) .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: 8px 16px;
    border: 1px solid var(--rule);
    background: var(--cream);
    box-shadow: 0 12px 25px #34231e17;
  }
  .header-inner:has(.menu-toggle[aria-expanded="true"]) .primary-nav { display: grid; gap: 0; }
  .primary-nav a { padding-inline: 5px; }
  .primary-nav a + a { border-top: 1px solid var(--rule); }
  .header-inner:has(.menu-toggle[hidden]) .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
  }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: clamp(28px, 7vw, 53px); }
  .hero h1 { margin-block: 18px 17px; font-size: clamp(2.8rem, 13.2vw, 5.6rem); }
  .hero .button { margin-block-start: 18px; }
  .hero-image { min-height: 0; aspect-ratio: 1.35; }
  .hero-image img { object-position: 50% 52%; }
  .section-top { grid-template-columns: 1fr; gap: 13px; }
  .section-top > p { max-width: 48ch; }
  .catalog-tools { margin-block-start: 23px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atelier-inner { gap: 22px; }
  .trade-panel { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  :root { --gutter: clamp(13px, 4vw, 22px); }
  .header-inner { gap: 6px; }
  .top-shop span { font-size: .81rem; }
  .top-shop { gap: 4px; }
  .top-shop svg { width: 19px; height: 19px; }
  .atelier-inner, .ritual-grid { grid-template-columns: 1fr; }
  .atelier-photo img { aspect-ratio: 1.32; }
  .atelier-content { padding-inline: 4px; }
  .ritual-card img { height: auto; aspect-ratio: 1.38; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-photo { height: min(34dvh, 260px); min-height: 0; object-position: 50% 54%; }
  .detail-close { top: 9px; right: 9px; }
  .detail-content { padding: 19px 22px 24px; }
}
@media (max-width: 385px) {
  .top-shop { min-width: 44px; justify-content: center; }
  .top-shop span { display: none; }
}
@media (max-width: 355px) {
  .hero-content { padding-inline: 21px; }
  .product-meta { align-items: start; }
  .product-plus { width: 44px; margin-inline-start: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .first-visit .intro { display: none; }
}
