/* Colorado Candle Co. — site styles.
   Quiet, editorial, mostly ink on stone. Colour comes from the amber jars
   and the muted tone behind each scent. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f2ee;
  --paper-deep: #e9e7e0;
  --ink: #1b1c19;
  --ink-2: #4e504a;
  --ink-3: #63655e;
  --rule: #d6d4cc;
  --white: #fbfaf7;

  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 152px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 380;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Anything marked hidden stays hidden, whatever display a class gives it. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 1px;
  color: var(--ink-2);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ui,
.btn,
.price,
.num {
  font-family: var(--sans);
  font-feature-settings: "tnum" 1;
}

.num {
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.notes {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  background: #000;
  color: var(--white);
}
.btn--quiet {
  background: transparent;
  color: var(--ink);
}
.btn--quiet:hover {
  background: var(--ink);
  color: var(--white);
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

.text-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

/* ---------- Header ---------- */

.notice {
  background: var(--ink);
  color: #d9d7cf;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-left: 0.32em; /* balances the trailing letter-spacing */
}
.wordmark:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.cart-link,
.menu-btn {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover,
.cart-link:hover {
  text-decoration: underline;
}
.nav a[aria-current="page"] {
  text-decoration: underline;
}

.header-end {
  display: flex;
  justify-content: flex-end;
}

.cart-link,
.menu-btn {
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
}

/* Mobile menu: a native <details>, so it works without JavaScript. */
.menu {
  display: none;
}
.menu-btn {
  list-style: none;
}
.menu-btn::-webkit-details-marker {
  display: none;
}
.menu .menu-close,
.menu[open] .menu-open {
  display: none;
}
.menu[open] .menu-close {
  display: inline;
}
.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 820px) {
  .site-header .wrap {
    min-height: 60px;
  }
  .wordmark {
    font-size: 0.8125rem;
    letter-spacing: 0.24em;
  }
  .site-header .nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px var(--gutter) 20px;
  }
  .mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.375rem;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 380px) {
  .wordmark {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 6vw, 88px) 0 var(--section);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.25rem, 1.8rem + 5.4vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
}

.hero h1 em {
  font-weight: 400;
}

.hero .lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 2em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero .meta {
  margin-top: 2.5em;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.stage {
  margin: 0;
}

.stage__panel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 5 / 4;
  padding: 12% 10% 9%;
  background: var(--tone, var(--paper-deep));
}

.stage__panel .pair {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.stage figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.stage figcaption a {
  text-decoration: none;
}
.stage figcaption a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero .stage {
    order: -1;
  }
  .stage__panel {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section) 0;
}

.section--rule {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.section-head p {
  margin: 0;
  max-width: 34em;
  color: var(--ink-2);
}

/* ---------- Collection grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile {
  display: block;
  text-decoration: none;
}
.tile:hover {
  color: var(--ink);
}

.tile__img {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 0 16% 13%;
  background: var(--tone);
  overflow: hidden;
}

.tile__img .jar {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.tile:hover .tile__img .jar {
  transform: translateY(-6px);
}

.tile__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding-top: 16px;
}

.tile__meta .num {
  grid-column: 1 / -1;
}

.tile__name {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.tile:hover .tile__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tile__meta .price {
  align-self: baseline;
  font-size: 0.875rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.tile__meta .notes {
  grid-column: 1 / -1;
  font-size: 1.125rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .tile__meta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sizes ---------- */

.sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}

.size {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  padding: clamp(28px, 4vw, 52px) clamp(0px, 3vw, 44px) 0 0;
}

.size + .size {
  border-left: 1px solid var(--rule);
  padding-left: clamp(20px, 3vw, 44px);
}

.size__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(150px, 18vw, 230px);
}
.size__art .jar {
  height: 100%;
  width: auto;
}
.size--S .size__art .jar {
  height: 80%;
}

.size h3 {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 14px;
}

.size h3 .price {
  font-size: 1rem;
  color: var(--ink-2);
  margin-left: 0.6em;
  letter-spacing: 0.02em;
}

.specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.specs li {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .sizes {
    grid-template-columns: 1fr;
  }
  .size,
  .size + .size {
    padding: 32px 0;
    border-left: 0;
  }
  .size + .size {
    border-top: 1px solid var(--rule);
  }
}

/* ---------- Materials ---------- */

.materials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.materials li {
  padding: 24px clamp(16px, 2vw, 28px) 0 0;
}
.materials li + li {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--rule);
}

.materials h3 {
  font-size: 1.625rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.materials p {
  font-size: 1rem;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 900px) {
  .materials {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
  .materials li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 520px) {
  .materials {
    grid-template-columns: 1fr;
  }
  .materials li,
  .materials li + li {
    padding: 20px 0 0;
    border-left: 0;
  }
  .materials li + li {
    border-top: 1px solid var(--rule);
  }
}

/* ---------- Statement ---------- */

.statement {
  max-width: 22em;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.125rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 0.9em;
}

.statement-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.statement-row .aside {
  color: var(--ink-2);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .statement-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ / details ---------- */

.faq {
  border-top: 1px solid var(--ink);
}

.faq details,
.accordion details {
  border-bottom: 1px solid var(--rule);
}

.faq summary,
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  line-height: 1.25;
}

.faq summary::-webkit-details-marker,
.accordion summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.accordion summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-2);
}

.faq details[open] summary::after,
.accordion details[open] summary::after {
  content: "−";
}

.faq .answer,
.accordion .answer {
  padding: 0 0 24px;
  max-width: 40em;
  color: var(--ink-2);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
}

@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product page ---------- */

.crumbs {
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

.product {
  padding: 24px 0 var(--section);
}

.product .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.product .stage__panel {
  aspect-ratio: 1 / 1;
  padding: 14% 9% 12%;
}

.product__info {
  position: sticky;
  top: 104px;
  padding-top: 8px;
}

.product__info h1 {
  font-size: clamp(2.875rem, 1.9rem + 3.4vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  margin: 10px 0 10px;
}

.product__info .notes {
  font-size: 1.5rem;
  margin-bottom: 1.2em;
}

.product__info .story {
  color: var(--ink-2);
  margin-bottom: 2em;
}

@media (max-width: 900px) {
  .product .wrap {
    grid-template-columns: 1fr;
  }
  .product__info {
    position: static;
  }
}

.buy fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.buy legend,
.qty-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.size-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.size-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.size-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.size-option > span {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: transparent;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.size-option strong {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
}

.size-option small {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.size-option:hover > span {
  border-color: var(--ink-3);
}

.size-option input:checked + span {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--white);
}

.size-option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.buy-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.qty {
  display: inline-grid;
  grid-template-columns: 44px 40px 44px;
  align-items: stretch;
  border: 1px solid var(--rule);
  height: 52px;
}

.qty button {
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--ink);
  cursor: pointer;
}
.qty button:hover {
  background: var(--paper-deep);
}
.qty input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty--sm {
  grid-template-columns: 32px 30px 32px;
  height: 34px;
}
.qty--sm button {
  font-size: 0.9375rem;
}
.qty--sm input {
  font-size: 0.8125rem;
}

.buy-note {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.accordion {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
}
.accordion summary {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 18px 0;
}
.accordion .answer {
  font-size: 1rem;
}
.accordion dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin: 0;
}
.accordion dt {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-3);
  padding-top: 2px;
}
.accordion dd {
  margin: 0;
}

/* ---------- Prose pages ---------- */

.page-head {
  padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px);
}

.page-head h1 {
  font-size: clamp(2.875rem, 1.8rem + 4vw, 5.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.024em;
  max-width: 14em;
}

.page-head .lede {
  margin-top: 0.9em;
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-2);
}

.page-head .updated {
  margin-top: 1.2em;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-3);
}

.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: var(--section);
  border-top: 1px solid var(--ink);
  padding-top: 40px;
}

.prose-layout .toc {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
}
.prose-layout .toc ol {
  position: sticky;
  top: 104px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.prose-layout .toc li {
  padding: 6px 0;
}
.prose-layout .toc a {
  text-decoration: none;
  color: var(--ink-2);
}
.prose-layout .toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .prose-layout {
    grid-template-columns: 1fr;
  }
  .prose-layout .toc {
    display: none;
  }
}

.prose {
  max-width: 40em;
}
.prose h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 2em 0 0.6em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.4375rem;
  font-weight: 600;
  margin: 1.6em 0 0.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--ink-3);
}
.prose .callout {
  margin: 1.6em 0;
  padding: 20px 24px;
  background: var(--paper-deep);
  border-left: 2px solid var(--ink);
}
.prose .callout p:last-child {
  margin-bottom: 0;
}

/* ---------- About ---------- */

.about-art {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(48px, 6vw, 88px);
}
.about-art > div {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 0 14% 12%;
  background: var(--tone);
}
.about-art .jar {
  width: 100%;
  height: auto;
}
@media (max-width: 700px) {
  .about-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Order thanks ---------- */

.order {
  padding: clamp(48px, 7vw, 104px) 0 var(--section);
}

.order .wrap {
  max-width: 760px;
}

.order h1 {
  font-size: clamp(2.875rem, 1.8rem + 4vw, 5.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.024em;
  margin: 20px 0 16px;
}

.order .flame {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.order-table th,
.order-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
}
.order-table td:last-child,
.order-table th:last-child {
  text-align: right;
}
.order-table thead th {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-bottom-color: var(--ink);
}
.order-table tfoot td {
  border-bottom: 0;
  padding: 6px 0;
  color: var(--ink-2);
}
.order-table tfoot tr:last-child td {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-3);
  padding-top: 4px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Cart drawer ---------- */

.cart {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.cart::backdrop {
  background: rgba(22, 22, 20, 0.36);
}

.cart[open] {
  display: flex;
  flex-direction: column;
  animation: cart-in 0.35s var(--ease);
}

@keyframes cart-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--rule);
}
.cart__head h2 {
  font-size: 1.875rem;
  font-weight: 500;
}
.cart__close {
  background: none;
  border: 0;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}

.cart__empty {
  padding: 40px 0;
  color: var(--ink-2);
}
.cart__empty p {
  margin-bottom: 1.4em;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.cart-line__swatch {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 64px;
  height: 80px;
  padding: 7px;
  background: var(--tone);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.cart-line__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.25;
  text-decoration: none;
}
.cart-line__name:hover {
  text-decoration: underline;
}
.cart-line__meta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin: 2px 0 10px;
}
.cart-line__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-line__remove {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.cart-line__remove:hover {
  color: var(--ink);
}
.cart-line .price {
  font-size: 0.9375rem;
}

.cart__foot {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.ship-progress {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.ship-progress__bar {
  height: 2px;
  margin-top: 8px;
  background: var(--rule);
  overflow: hidden;
}
.ship-progress__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.totals dt {
  color: var(--ink-2);
}
.totals dd {
  margin: 0;
  text-align: right;
}
.totals .total {
  font-weight: 500;
  color: var(--ink);
}

.cart__fine {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-3);
  text-align: center;
}

.cart__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f1e3df;
  color: #6e2a1c;
  font-family: var(--sans);
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c9c7bf;
  padding: clamp(56px, 7vw, 96px) 0 32px;
  font-family: var(--sans);
  font-size: 0.875rem;
}

.site-footer a {
  color: #e8e6df;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer-brand .flame {
  width: 22px;
  height: 22px;
  color: #e8e6df;
  margin-bottom: 18px;
}
.footer-brand .wordmark {
  color: #f3f2ee;
  font-size: 0.875rem;
  padding-left: 0;
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 24em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.5;
  color: #b5b3ab;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #8f8d86;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  padding: 4px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid #3a3b37;
  color: #8f8d86;
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */

.lost {
  padding: clamp(64px, 10vw, 140px) 0 var(--section);
}
.lost h1 {
  font-size: clamp(2.875rem, 1.8rem + 4vw, 5.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.024em;
  margin: 12px 0 20px;
}
.lost p {
  max-width: 30em;
  color: var(--ink-2);
  margin-bottom: 2em;
}

/* ---------- Small pieces ---------- */

.section--flush {
  padding-top: 0;
}

.more-link {
  margin-top: 28px;
}

.muted {
  color: var(--ink-3);
}

.fine {
  margin-top: 2em;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.2em;
}

.buy-status {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  min-height: 1.4em;
}

.order__help,
.order__ship {
  margin-top: 28px;
  color: var(--ink-2);
}

.faq-page {
  max-width: 900px;
}

.cart__quiz {
  margin-top: 1.6em;
  font-size: 0.9375rem;
}

/* Engraved ingredient drawings */

.drawing {
  display: block;
  color: var(--ink);
}

.drawing--product {
  width: 76px;
  height: 76px;
  margin: 0 0 12px -6px;
}

.drawing--result {
  width: 88px;
  height: 88px;
  margin: 0 0 8px -8px;
}

/* Quiz band on the home page */

.quiz-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.quiz-band__drawings {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
}

.quiz-band__drawings .drawing {
  width: clamp(80px, 11vw, 150px);
  height: auto;
}

.quiz-band h2 {
  font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 0.4em;
}

.quiz-band p {
  max-width: 30em;
  color: var(--ink-2);
  margin-bottom: 1.8em;
}

@media (max-width: 760px) {
  .quiz-band__inner {
    grid-template-columns: 1fr;
  }
  .quiz-band__drawings {
    justify-content: flex-start;
  }
}

/* ---------- Scent quiz ---------- */

.quiz {
  padding: clamp(40px, 6vw, 88px) 0 var(--section);
  min-height: 70vh;
  scroll-margin-top: 80px;
}

.quiz__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quiz__drawings {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(4px, 1.4vw, 18px);
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}

.quiz__drawings .drawing {
  width: 100%;
  height: auto;
}

.quiz__intro h1 {
  font-size: clamp(3.25rem, 1.8rem + 5.4vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.quiz__intro .lede {
  color: var(--ink-2);
  margin: 0 auto 2em;
  max-width: 34em;
}

.quiz__steps {
  max-width: 760px;
  margin: 0 auto;
}

.quiz__progress {
  height: 2px;
  background: var(--rule);
  margin-bottom: clamp(32px, 5vw, 56px);
  overflow: hidden;
}

.quiz__progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.quiz__q h2 {
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 8px 0 clamp(24px, 4vw, 40px);
  outline: none;
}

.quiz__q:not([hidden]) {
  animation: quiz-in 0.45s var(--ease);
}

@keyframes quiz-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.quiz__sub {
  margin: -16px 0 28px;
  color: var(--ink-2);
}

.quiz__answers {
  display: grid;
  gap: 12px;
}

.quiz__answer {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.quiz__answer em {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--ink-2);
}

.quiz__answer:hover {
  border-color: var(--ink);
  background: var(--white);
  transform: translateX(4px);
}

.quiz__letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.quiz__answer:hover .quiz__letter {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.quiz__back {
  margin-top: 28px;
  background: none;
  border: 0;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.quiz-result {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  animation: quiz-in 0.6s var(--ease);
}

.quiz-result__art {
  aspect-ratio: 1 / 1;
  padding: 14% 9% 12%;
}

.quiz-result__art .pair {
  width: 100%;
  height: auto;
}

.quiz-result h2 {
  font-size: clamp(2.875rem, 1.9rem + 3.4vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  outline: none;
}

.quiz-result .notes {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

.quiz-result__because {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4em;
}

.quiz-result__persona {
  color: var(--ink-2);
}

.quiz-result__size {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 2px solid var(--ink);
  background: var(--paper-deep);
  font-size: 0.9375rem;
}

.quiz-result__more {
  margin-top: 18px;
  font-size: 0.9375rem;
}

.quiz__after {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.quiz__after p {
  margin: 0;
}

.quiz__after .text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .quiz-result {
    grid-template-columns: 1fr;
  }
  .quiz__drawings {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 320px;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tones (generated per scent) ---------- */

.tone-vanilla-bean { --tone: #E4E2DC; }
.tone-fresh-balsam { --tone: #CBD3C7; }
.tone-comfort-spice { --tone: #DCCBC0; }
.tone-spiced-pumpkin-ginger { --tone: #E2D6BA; }
.tone-eucalyptus-lavender-herb { --tone: #D7D3DB; }
.tone-sea-breeze { --tone: #CAD6D6; }
.tone-pink-grapefruit { --tone: #E5D3CC; }
.tone-honeysuckle { --tone: #DFDCC6; }
