/* Aphrona Beauty learning site.
   Design system: every color, size, space and radius below comes from the
   tokens in :root. Matches the store: off-white page, Halant serif headings,
   a clean sans for body text, with a rose-gold accent taken from Halo's visor. */

@font-face { font-family: "Halant"; src: url("fonts/halant-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Halant"; src: url("fonts/halant-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Halant"; src: url("fonts/halant-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* color */
  --bg: #fafafa;
  --surface: #ffffff;
  --sand: #f3efea;
  --ink: #232120;
  --head: #2b2420;
  --muted: #4f4a46;      /* 8.3:1 on --bg */
  --subtle: #6a6460;     /* 5.6:1 on --bg, smallest text allowed */
  --line: #e4dfda;
  --dark: #1c1a19;
  --on-dark: #e9e4df;
  --on-dark-muted: #b3aca6; /* 7.9:1 on --dark */
  --accent: #9a5a40;     /* rose gold, 5.6:1 with white text */
  --accent-hover: #824a33;
  --accent-soft: #f6ebe5;
  --red: #c8332b;
  --orange: #d97a2b;
  --blue: #3c5fb8;
  --ok: #2f6b45;
  --ok-soft: #e7f2ea;
  --warn: #8a5210;
  --bad: #a3261f;

  /* type */
  --serif: "Halant", Georgia, "Times New Roman", serif;
  --sans: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: clamp(1.75rem, 3vw, 2.375rem);
  --t-3xl: clamp(2.25rem, 4.4vw, 3.5rem);

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* shape: inner radius = outer radius - padding */
  --r-sm: 6px;
  --r-md: 12px;
  --pad-frame: 6px;
  --r-inner: calc(var(--r-md) - var(--pad-frame));

  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
@media (max-width: 760px) { [id] { scroll-margin-top: 136px; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--head); line-height: 1.12; margin: 0 0 var(--s-3); text-wrap: balance; }
h1 { font-size: var(--t-3xl); letter-spacing: -.005em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); line-height: 1.25; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
.num, .price, table, .facts, time { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: var(--s-2); background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); z-index: 50; border-radius: var(--r-sm); }
.skip:focus { left: var(--s-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- promo + header ---------- */
.promo { background: var(--dark); color: var(--on-dark); text-align: center; font-size: var(--t-xs); font-weight: 500; padding: var(--s-2) var(--s-3); }
.promo a { color: #fff; }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: var(--s-4); }
.nav { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.nav a { font-size: var(--t-sm); font-weight: 500; text-decoration: none; padding: var(--s-1) 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.brand { display: block; justify-self: center; }
.brand img { width: 112px; height: auto; }
.header-end { justify-self: end; }
@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; min-height: 60px; }
  .brand { justify-self: start; order: -1; }
  .brand img { width: 96px; }
  .nav { grid-column: 1 / -1; order: 3; gap: var(--s-4); padding-bottom: var(--s-3); overflow-x: auto; flex-wrap: nowrap; }
}

/* ---------- buttons ---------- */
/* One clear primary action per view (accent), everything else is secondary. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-sm);
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 var(--t-sm)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 var(--s-6); font-size: var(--t-md); }
.btn-sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--t-xs); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.text-link { font-weight: 600; font-size: var(--t-sm); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transition: transform .15s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-5); }

/* One icon style everywhere: 1.5px stroke, round caps, 24px grid. */
:root {
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- shared ---------- */
.lede { font-size: var(--t-lg); color: var(--muted); max-width: 58ch; }
.note { font-size: var(--t-sm); color: var(--subtle); }
.section { padding: var(--s-9) 0; }
.section.sand { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 0 var(--s-7); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); }
@media (max-width: 760px) { .section { padding: var(--s-8) 0; } }

/* Images: a soft placeholder until the photo arrives, then a quick fade-in. */
.img-frame { background: var(--sand); }
.img-frame.loaded { animation: none; background: var(--surface); }
.img-frame img { opacity: 0; transition: opacity .35s var(--ease); }
.img-frame.loaded img, .no-js .img-frame img { opacity: 1; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: var(--s-7); padding: var(--s-7) 0 var(--s-8); }
.hero-copy .lede { margin-top: var(--s-2); }
.hero-media { margin: 0; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: var(--s-4) var(--s-6); justify-content: start; }
.facts strong { display: block; font: 500 1.75rem/1 var(--serif); color: var(--head); margin-bottom: var(--s-1); }
.facts li { font-size: var(--t-sm); color: var(--subtle); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-5); padding-top: var(--s-4); }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: repeat(2, auto); }
}

/* ---------- questions ---------- */
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.qa p { color: var(--muted); }
@media (max-width: 860px) { .qa { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- light colors ---------- */
.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.light figure { margin: 0 0 var(--s-4); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-md); }
.light figure img { width: 100%; height: 100%; object-fit: cover; }
.light h3 { display: flex; align-items: center; gap: var(--s-2); }
.light h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }
.light p { color: var(--muted); }
.light .spec { font-size: var(--t-sm); color: var(--subtle); font-variant-numeric: tabular-nums; margin: 0; }
@media (max-width: 860px) { .lights { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-8); align-items: center; }
.split figure { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.split ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); color: var(--muted); }
.split li { padding-left: 28px; position: relative; margin-bottom: var(--s-3); }
.split li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- products ---------- */
/* The main product gets a full-width feature; the rest sit in one even row. */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-7) var(--s-5); }
.product { display: flex; flex-direction: column; }
.product figure { margin: 0 0 var(--s-4); background: var(--surface); padding: var(--pad-frame); border-radius: var(--r-md); aspect-ratio: 1; }
.product figure img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-inner); }
.product h3 { font-size: var(--t-lg); margin-bottom: var(--s-1); }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product .for { font-size: var(--t-sm); color: var(--muted); flex: 1; margin-bottom: var(--s-3); }
.product .buy { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.product .price { font-weight: 600; margin: 0; }
.product .stock { font-size: var(--t-sm); color: var(--subtle); margin: 0; }
.product.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.product.featured figure { margin: 0; }
.product.featured h3 { font-size: var(--t-2xl); }
.product.featured .for { font-size: var(--t-lg); flex: 0; margin-bottom: var(--s-5); }
.product.featured .buy { justify-content: flex-start; align-items: center; gap: var(--s-5); }
.product.featured .price { font-size: var(--t-xl); }
@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .products { grid-template-columns: repeat(2, 1fr); } .product.featured { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ---------- chooser ---------- */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { min-height: 44px; font: 500 var(--t-sm)/1 var(--sans); padding: 12px var(--s-4); border: 1px solid #cfc8c1; border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.no-js .choices, .no-js .result { display: none; }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result { background: var(--surface); border-radius: var(--r-md); padding: var(--s-6); min-height: 220px; }
.result .why { color: var(--muted); }
.result.updated > * { animation: rise .35s var(--ease) both; }
.result.updated > *:nth-child(2) { animation-delay: .04s; }
.result.updated > *:nth-child(3) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.result-label { font-size: var(--t-sm); color: var(--accent); font-weight: 600; margin-bottom: var(--s-2); }
@media (max-width: 860px) { .chooser { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 var(--t-lg) var(--serif); color: var(--head); }
tbody th { font-weight: 600; white-space: nowrap; color: var(--muted); }
td.yes { color: var(--ok); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-5) 40px var(--s-5) 0; position: relative; font: 500 var(--t-xl)/1.3 var(--serif); color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: currentColor; -webkit-mask: var(--icon-plus) center / contain no-repeat; mask: var(--icon-plus) center / contain no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] .answer { animation: rise .25s var(--ease); }
.faq .answer { padding: 0 0 var(--s-5); color: var(--muted); max-width: 66ch; }
.faq h2 { margin-top: var(--s-7); }

/* ---------- article pages ---------- */
.article { padding: var(--s-7) 0 var(--s-9); }
.article > .wrap { max-width: 760px; }
.article h2 { margin-top: var(--s-7); }
.article h3 { margin-top: var(--s-5); }
.article p, .article li { color: #3a3633; }
.crumbs { font-size: var(--t-sm); color: var(--subtle); margin-bottom: var(--s-5); }
.crumbs a { text-decoration: none; }
.updated { font-size: var(--t-sm); color: var(--subtle); }
.callout { background: var(--sand); padding: var(--s-5); margin: var(--s-6) 0; border-radius: var(--r-md); }
.callout p:last-child { margin: 0; }
.toc { padding: var(--s-5); margin: var(--s-6) 0; background: var(--surface); border-radius: var(--r-md); }
.toc ol { margin: var(--s-2) 0 0; padding-left: 1.2em; }

/* ---------- closing band ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); padding: var(--s-9) 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 var(--s-2); }
.cta-band p { color: var(--on-dark-muted); margin: 0; }
.cta-band .cta-row { margin: 0; }
.cta-band .text-link { color: #fff; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: var(--s-8) 0 var(--s-6); font-size: var(--t-sm); border-top: 1px solid #2e2b29; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-6); }
.site-footer h3 { font: 600 var(--t-sm)/1.4 var(--sans); color: #fff; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo img { width: 120px; margin-bottom: var(--s-3); }
.disclaimer { font-size: var(--t-xs); color: var(--on-dark-muted); margin-top: var(--s-7); border-top: 1px solid #2e2b29; padding-top: var(--s-5); max-width: 90ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
