/* JJ Cosmetics */

:root {
  --porcelain: #F5F3F6;
  --mist: #ECE7EE;
  --line: #DCD3DF;
  --ink: #2B1A2E;
  --ink-soft: #6B5B6E;
  --rouge: #A3123F;
  --chrome: #E6E0E9;
  --white: #FFFFFF;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: 62%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.75rem + 4.4vw, 5rem);
  --step-5: clamp(3.5rem, 1.6rem + 8vw, 8.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 68px;
  --radius-s: 4px;
  --radius-m: 10px;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--ink); color: var(--porcelain); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--porcelain);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

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

/* Condensed display type: the brand's voice */
.display {
  font-stretch: var(--narrow);
  font-variation-settings: "wdth" 62;
  font-weight: 320;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--ink-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn--solid { background: var(--ink); color: var(--porcelain); }
.btn--solid:hover { background: var(--rouge); border-color: var(--rouge); }
.btn--ghost:hover { background: var(--ink); color: var(--porcelain); }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--rouge); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--porcelain) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.logo__mark {
  font-stretch: var(--narrow);
  font-variation-settings: "wdth" 62;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.14em;
  padding-right: 0.14em;
}
.logo__word { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.975rem;
  font-weight: 450;
  text-decoration: none;
  border-radius: var(--pill);
  transition: background-color 0.2s;
}
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--porcelain); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle__icon {
  position: relative;
  width: 16px;
  height: 10px;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a {
    padding: 14px 16px;
    font-size: 1.375rem;
    font-stretch: var(--narrow);
    font-variation-settings: "wdth" 62;
    border-radius: var(--radius-m);
  }
}

/* ---------- Placeholder art & product media ---------- */

.media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: color-mix(in oklab, var(--shade, var(--mist)) 26%, var(--porcelain));
  transition: background-color 0.35s var(--ease);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art {
  position: absolute;
  inset: 8% 10% 13%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.art .art-svg {
  height: calc(var(--fit, 0.6) * 100%);
  width: auto;
  max-width: 100%;
  transition: transform 0.4s var(--ease);
}

.art-svg .b { fill: var(--shade, #D9CBE6); transition: fill 0.35s var(--ease); }
.art-svg .k { fill: var(--ink); }
.art-svg .c { fill: var(--chrome); }
.art-svg .l { fill: #FFFFFF; fill-opacity: 0.84; }
.art-svg .hl { fill: #FFFFFF; fill-opacity: 0.32; }
.art-svg .dk { fill: var(--ink); fill-opacity: 0.16; }
.art-svg .w { fill: #E9CFAE; }
.art-svg .sh { fill: var(--ink); fill-opacity: 0.1; }
.art-svg text {
  font-family: var(--font);
  font-stretch: var(--narrow);
  font-variation-settings: "wdth" 62;
  font-weight: 700;
  letter-spacing: -0.1em;
  text-anchor: middle;
}
.art-svg .t { fill: var(--ink); }
.art-svg .tl { fill: var(--chrome); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--porcelain);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Product grid & card ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 16px;
}
@media (min-width: 760px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
}
.card:hover .art-svg { transform: translateY(-6px); }
.card:hover .card__name { text-decoration: underline; text-decoration-thickness: 1px; }

.card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: baseline;
}
.card__name { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.card__price { font-size: 1rem; font-variant-numeric: tabular-nums; }
.card__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.dots { display: inline-flex; }
.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--porcelain);
  margin-left: -4px;
}
.dots span:first-child { margin-left: 0; }

/* ---------- Home: hero ---------- */

.hero { padding-top: clamp(40px, 7vw, 96px); }

.hero__intro {
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; }
}
.hero__title { font-size: var(--step-5); max-width: 11ch; }
.hero__aside { display: grid; gap: 24px; max-width: 42ch; }
.hero__aside p { font-size: var(--step-1); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The shelf: categories as products standing side by side */
.shelf { margin-top: clamp(48px, 7vw, 96px); }
.shelf__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  list-style: none;
  margin-block: 0;
}
.shelf__list > li { display: flex; flex-direction: column; }
.shelf__item {
  --art-h: clamp(calc(var(--h) * 0.46px), calc(var(--h) * 0.075vw), calc(var(--h) * 1px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding-bottom: clamp(8px, 2vw, 24px);
}
.shelf__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: calc(var(--art-h) + 24px);
  overflow: hidden;
}
.shelf__rise {
  display: flex;
  align-items: flex-end;
  height: var(--art-h);
}
.shelf__rise .art-svg {
  height: 100%;
  width: auto;
  transition: transform 0.45s var(--ease);
}
.shelf__item:hover .art-svg,
.shelf__item:focus-visible .art-svg { transform: translateY(-14px); }

/* Each item carries its own piece of plank so the pieces join into one shelf */
.shelf__plank {
  align-self: stretch;
  height: 14px;
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.shelf__name {
  font-size: clamp(1.0625rem, 0.75rem + 1.2vw, 1.625rem);
  font-stretch: var(--narrow);
  font-variation-settings: "wdth" 62;
  font-weight: 450;
  line-height: 1.2;
}
.shelf__item:hover .shelf__name { text-decoration: underline; text-decoration-thickness: 1px; }
.shelf__count { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 560px) {
  .shelf__count { display: none; }
}

/* One page-load moment: each product rises up from behind the shelf */
@media (prefers-reduced-motion: no-preference) {
  .js .shelf__rise {
    animation: rise 1.1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms + 200ms);
  }
}
@keyframes rise {
  from { transform: translateY(104%); }
  to { transform: none; }
}

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

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tint { background: var(--mist); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-title { font-size: var(--step-3); }

/* Principles */
.principles {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .principles { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}
.principles__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.principles__list li {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .principles__list li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; }
}
.principles__list h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.principles__list p { color: var(--ink-soft); max-width: 48ch; }

/* Split feature (story teaser, about) */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
  .split--flip > :first-child { order: 2; }
}
.split__text { display: grid; gap: 24px; justify-items: start; }

.still-life {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-m);
  background: color-mix(in oklab, var(--shade, #D9CBE6) 34%, var(--porcelain));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
  padding: 0 12% 14%;
  overflow: hidden;
}
.still-life > span {
  display: flex;
  align-items: flex-end;
  height: var(--size, 60%);
}
.still-life .art-svg { height: 100%; width: auto; }

.principles__lead { margin-top: 20px; max-width: 36ch; color: var(--ink-soft); }

/* ---------- Page header (inner pages) ---------- */

.page-body { padding-bottom: clamp(64px, 9vw, 128px); }

.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head__title { font-size: var(--step-4); }
.page-head__lead { margin-top: 16px; max-width: 52ch; font-size: var(--step-1); color: var(--ink-soft); }

/* ---------- Shop ---------- */

.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block: 4px;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
}
.chip {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 450;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }
.chip__count { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: 0.6; }

.sort { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.sort select {
  min-height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--porcelain) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%232B1A2E' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
}

.shop-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.empty {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 48px 0;
}

/* ---------- Product detail ---------- */

.breadcrumb { padding-top: 24px; font-size: 0.9rem; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.pdp {
  display: grid;
  gap: 32px;
  padding-top: 24px;
}
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 32px); }
}
.pdp .media { border-radius: var(--radius-m); }
.pdp__info { display: grid; gap: 24px; }
.pdp__cat { font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.pdp__cat:hover { text-decoration: underline; }
.pdp__title { font-size: var(--step-4); margin-top: 6px; }
.pdp__price-row { display: flex; align-items: baseline; gap: 16px; }
.pdp__price { font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.pdp__size { color: var(--ink-soft); }
.pdp__summary { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }

.shades { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.shades legend { padding: 0; font-size: 0.95rem; }
.shades legend strong { font-weight: 500; }
.shades__list { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.swatch span {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(43, 26, 46, 0.12);
  outline: 1.5px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.2s;
}
.swatch input:checked + span { outline-color: var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--rouge); }

.pdp__actions { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .pdp__actions { grid-template-columns: 1fr auto; }
}
.pdp__note { font-size: 0.9rem; color: var(--ink-soft); }

/* Tabs (product information) */
.tabs__list {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  padding: 12px 0;
  border: 0;
  background: none;
  font-size: 0.975rem;
  font-weight: 450;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { padding-top: 20px; max-width: 60ch; }
.tabs__panel[hidden] { display: none; }

.not-found { display: grid; gap: 20px; justify-items: start; padding-block: 64px 96px; }

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

.values {
  display: grid;
  gap: 40px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 800px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.values li { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--ink); }
.values h3 { font-size: var(--step-2); font-stretch: var(--narrow); font-variation-settings: "wdth" 62; font-weight: 400; line-height: 1.1; }
.values p { color: var(--ink-soft); }

.quote {
  font-size: var(--step-3);
  max-width: 22ch;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: 56px;
  padding-bottom: clamp(64px, 9vw, 128px);
}
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; }
}

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.95rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  transition: border-color 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%232B1A2E' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  cursor: pointer;
}
.field__hint { font-weight: 400; color: var(--ink-soft); }
.field input:hover,
.field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--rouge); }
.field__error { font-size: 0.875rem; color: var(--rouge); }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font-size: 0.95rem; }
.form__status:empty { display: none; }

.contact__aside { display: grid; gap: 32px; align-content: start; }
.contact__block { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact__block h2 { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.contact__block p,
.contact__block address { font-style: normal; font-size: var(--step-1); line-height: 1.45; }

.faq { display: grid; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  font-size: var(--step-1);
  font-weight: 450;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; max-width: 60ch; color: var(--ink-soft); }

/* ---------- Legal ---------- */

.legal { padding-bottom: clamp(64px, 9vw, 128px); }
.legal section { padding-block: 32px; border-top: 1px solid var(--line); }
.legal h2 { font-size: var(--step-2); font-weight: 500; margin-bottom: 16px; }
.legal p + p { margin-top: 0.75em; }

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

.site-footer {
  background: var(--ink);
  color: var(--porcelain);
  padding-top: clamp(56px, 7vw, 96px);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--porcelain); }

.footer-grid {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); }
}
.footer-brand { grid-column: 1 / -1; display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .footer-brand { grid-column: auto; }
}
.footer-brand .logo__mark { font-size: 3.5rem; }
.footer-brand p { max-width: 34ch; color: color-mix(in srgb, var(--porcelain) 72%, transparent); }

.footer-col h2 {
  font-size: 0.95rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--porcelain) 64%, transparent);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 24px;
  border-top: 1px solid color-mix(in srgb, var(--porcelain) 18%, transparent);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--porcelain) 64%, transparent);
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }

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

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