@import url('./tokens.css');

@font-face {
  font-family: Anybody;
  src: url('./assets/anybody.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('./assets/hanken.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --home-width: 76rem;
  --home-rule: var(--color-border);
  --home-forest: #263c30;
  --home-forest-paper: #e8eddb;
  --home-paper-shade: #351b1dce;
  --home-photo-top: #26171689;
  --home-photo-end: #261716ee;
  --home-blush-veil: #e4d2cef5;
  --home-lime-veil: #ddec9af5;
  --home-focus: #317b5d;
  --home-radius: 1.15rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-padding-top: 5rem; scroll-behavior: smooth; }
body { background: var(--color-paper); color: var(--color-dark); font: 400 1rem/1.55 var(--font-body); }
body.home-drawer-open { overflow-y: hidden; }
button, summary { cursor: pointer; font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 600 1rem/1.04 Anybody, sans-serif; letter-spacing: -.065em; overflow-wrap: break-word; }
h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid var(--home-focus); outline-offset: 4px; }
.home-hero :focus-visible, .home-header :focus-visible, .home-footer :focus-visible, .home-drawer :focus-visible { outline-color: var(--color-accent); }
.home-wrap { width: min(var(--home-width), calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.home-skip { position: fixed; z-index: 20; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--color-paper); transform: translateY(-170%); }
.home-skip:focus { transform: none; }
.home-icon { flex: none; width: 18px; height: 18px; }
.home-header { position: sticky; z-index: 5; top: 0; background: var(--color-dark); color: var(--color-paper); }
.home-header-inner, .home-header-actions, .home-nav, .home-language { display: flex; align-items: center; }
.home-header-inner { min-height: 4.7rem; justify-content: space-between; gap: clamp(.7rem, 2vw, 2.15rem); }
.home-header-actions, .home-language, .home-nav { gap: clamp(.45rem, 1.55vw, 1.2rem); }
.home-brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.home-brand img { height: auto; width: clamp(7.7rem, 13vw, 9.5rem); }
.home-nav a, .home-language a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.home-nav a:hover, .home-language a:hover, .home-language [aria-current] { text-decoration: underline; text-underline-offset: .35em; }
.home-language { font-size: .88rem; }
.home-access, .home-link, .home-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 700; text-decoration: none; }
.home-access, .home-button { padding: .67rem .95rem; border: 1px solid var(--color-light-rule); border-radius: .55rem; white-space: nowrap; }
.home-access:hover { background: var(--color-dark-mid); }
.home-access .home-icon, .home-button .home-icon, .home-menu .home-icon, .home-drawer button img { filter: brightness(0) invert(1); }
.home-menu { display: none; width: 44px; height: 44px; place-items: center; background: transparent; border: 1px solid var(--color-light-rule); border-radius: .55rem; }
.home-hero { position: relative; color: var(--color-paper); background: var(--color-dark); isolation: isolate; overflow: clip; }
.home-photos, .home-photos::after { position: absolute; inset: 0; z-index: -1; }
.home-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.home-photos img:first-child { object-position: 50% 56%; }
.home-photos img:last-child { object-position: 55% 48%; }
.home-photos::after { content: ''; z-index: 0; background: linear-gradient(to bottom, var(--home-photo-top), var(--home-photo-end)); }
.home-hero-inner { padding-block: clamp(3.4rem, 8.4vw, 7.8rem) 1.15rem; }
.home-hero h1 { font-size: clamp(2.6rem, 7.5vw, 6.75rem); max-width: 16ch; }
.home-intro { margin-block: 1rem clamp(1.8rem, 4.6vw, 3.9rem); font-size: clamp(1rem, 1.8vw, 1.35rem); max-width: 46ch; }
.home-product-grid, .home-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.3rem); }
.home-product { padding: clamp(1rem, 2.7vw, 2.25rem); border-radius: var(--home-radius); color: var(--color-dark); min-width: 0; display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; gap: .48rem; }
.home-offer { background: var(--home-blush-veil); }
.home-clean { background: var(--home-lime-veil); }
.home-product > p:first-child, .home-product-id { font-weight: 700; }
.home-product h2 { font-size: clamp(1.5rem, 3.4vw, 3.15rem); letter-spacing: -.05em; }
.home-product > p:nth-of-type(2) { max-width: 43ch; }
.home-link { justify-self: start; border-bottom: 1px solid currentColor; margin-top: .2rem; }
.home-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.home-product .home-link:focus-visible { outline-color: var(--home-focus); }
.home-photo-credit { font-size: .78rem; margin-top: 1rem; color: var(--color-paper); line-height: 1.4; }
.home-photo-credit a { text-underline-offset: .16em; }
.home-chapter { padding-block: clamp(3.7rem, 8vw, 7.6rem); }
.home-chapter-offer { background: var(--color-paper); }
.home-chapter-clean { background: var(--home-forest-paper); }
.home-chapter-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.home-chapter-clean .home-chapter-grid { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); }
.home-chapter-clean .home-sample { grid-area: 1 / 1; }
.home-chapter h2, .home-film h2, .home-questions h2 { font-size: clamp(2.3rem, 5.1vw, 4.8rem); margin-block: .45rem 1rem; max-width: 18ch; }
.home-chapter-intro, .home-film-copy p { max-width: 47ch; font-size: 1.1rem; }
.home-steps { padding: 0; margin: 1.35rem 0; list-style: none; }
.home-steps > li { border-top: 1px solid var(--home-rule); padding: .65rem 0; }
.home-steps h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.home-steps p { max-width: 58ch; }
.home-cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.home-button { background: var(--color-dark); color: var(--color-paper); }
.home-button:hover { background: var(--color-primary); }
.home-sample { border: 1px solid var(--home-rule); border-radius: var(--home-radius); overflow: clip; box-shadow: var(--shadow-document); margin: 0; background: var(--color-surface); }
.home-sample header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem .9rem; padding: .8rem clamp(1rem, 3vw, 1.65rem); background: var(--color-dark); color: var(--color-paper); }
.home-sample-clean header { background: var(--home-forest); }
.home-sample-body { padding: clamp(1rem, 3.5vw, 2.3rem); }
.home-sample h3 { font: 600 clamp(1.4rem, 3.1vw, 2.65rem)/1.12 Anybody, sans-serif; letter-spacing: -.045em; }
.home-sample dl, .home-sample ul { padding: 0; margin: 1.2rem 0; list-style: none; }
.home-sample dl > div, .home-sample li { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .7rem 0; border-top: 1px solid var(--home-rule); }
.home-sample dl > div { justify-content: space-between; }
.home-sample dd { margin: 0; font-weight: 700; }
.home-sample figcaption { color: var(--color-muted); font-size: .86rem; }
.home-sample-time { margin-top: .45rem; font-weight: 700; }
.home-film { color: var(--color-paper); background: var(--color-dark); padding-block: clamp(3rem, 7.5vw, 6rem); }
.home-film-copy p { margin-bottom: 1.3rem; }
.home-film video { width: 100%; height: auto; display: block; background: var(--color-black); border-radius: var(--home-radius); aspect-ratio: 16/9; object-fit: cover; }
.home-film figure { margin: 0; }
.home-film figcaption { font-size: .85rem; color: var(--color-dark-muted); margin-top: .65rem; }
.home-questions { padding-block: clamp(3rem, 7vw, 6rem); }
.home-question-grid > div > h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.home-question-grid details { border-top: 1px solid var(--home-rule); }
.home-question-grid summary { min-height: 44px; padding: .65rem 0; font-weight: 700; }
.home-question-grid details p { padding-bottom: .8rem; max-width: 52ch; }
.home-footer { background: var(--color-dark); color: var(--color-paper); }
.home-footer-inner, .home-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; }
.home-footer-inner { justify-content: space-between; padding-block: 1.25rem; }
.home-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.home-drawer { width: min(29rem, calc(100% - 1.5rem)); border: 1px solid var(--color-light-rule); border-radius: var(--home-radius); background: var(--color-dark); color: var(--color-paper); padding: 1.2rem; }
.home-drawer::backdrop { background: var(--home-paper-shade); }
.home-drawer header { display: flex; align-items: center; justify-content: space-between; }
.home-drawer button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--color-light-rule); border-radius: .55rem; }
.home-drawer nav:not(.home-language) { display: grid; margin: .85rem 0; }
.home-drawer nav:not(.home-language) a { min-height: 44px; display: flex; align-items: center; border-top: 1px solid var(--color-light-rule); }
.home-drawer .home-access { margin-top: .65rem; }
@media(max-width: 900px) {
  .home-nav { display: none; }
  .home-menu { display: grid; }
}
@media(max-height: 760px) and (min-width: 701px) {
  .home-hero-inner { padding-top: clamp(2.6rem, 6vw, 5rem); }
  .home-intro { margin-bottom: 1.6rem; }
}
@media(max-width: 700px) {
  .home-header-inner { min-height: 4.2rem; }
  .home-header .home-language { display: none; }
  .home-chapter-grid, .home-chapter-clean .home-chapter-grid, .home-question-grid { grid-template-columns: minmax(0, 1fr); }
  .home-chapter-clean .home-sample { grid-area: auto; }
}
@media(max-width: 510px) {
  .home-header-inner { gap: .35rem; }
  .home-header .home-access { padding-inline: .55rem; font-size: .9rem; }
  .home-header .home-access .home-icon { display: none; }
  .home-hero-inner { padding-top: 2.3rem; }
  .home-product-grid { grid-template-columns: minmax(0, 1fr); }
  .home-photo-credit { margin-top: .65rem; }
  .home-product { gap: .3rem; }
  .home-film video { border-radius: .75rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
