@font-face {
  font-family: Lora;
  src: url("assets/lora-regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #faf7ef;
  --ink: #17231f;
  --forest: #173c35;
  --muted: #4d5b51;
  --line: #c9cdbf;
  --quiet: #dfe5d5;
  --width: 1280px;
  --edge: clamp(1.125rem, 4.5vw, 4rem);
  --serif: Lora, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-inline-size: 100%; }
button { font: inherit; }
a { color: inherit; }
:where(a, button):focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
:where(section[id], div[id="app"]) { scroll-margin-top: 1.25rem; }
.wrapper { inline-size: min(calc(100% - var(--edge) * 2), var(--width)); margin-inline: auto; }

.sr-only {
  clip-path: inset(50%);
  inline-size: 1px;
  block-size: 1px;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 3;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 2rem;
  min-block-size: 4.65rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-block-size: 44px;
  text-decoration: none;
  font: 400 1.45rem/1.2 var(--serif);
  letter-spacing: -.035em;
}
:is(.header-inner, .footer-inner) nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.8rem, 3vw, 2.4rem); }
:is(.header-inner, .footer-inner) nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  font-size: .875rem;
  text-decoration: none;
}
:is(.header-inner, .footer-inner) nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3.15rem;
  padding: .65rem 1.26rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  text-decoration: none;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.34;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.button-primary { color: var(--paper); background: var(--forest); }
.button-primary:hover { background: #285548; }
.button-light { color: var(--forest); background: var(--paper); }
.button-light:hover { background: #e5edde; }
.button-outline { color: var(--forest); border-color: #87988a; background: transparent; }
.button-outline:hover { background: #e2e9dd; }
.button:active { transform: translateY(1px); }
.button-primary:focus-visible { outline-color: var(--forest); }
.button-light:focus-visible { outline-color: var(--paper); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.text-link:hover { text-decoration-thickness: 2px; }

.eyebrow {
  margin-block-end: .8rem;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.047em; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 5.35vw, 5.65rem); }
h2 { font-size: clamp(2.42rem, 4.6vw, 4.85rem); }
h3 { font-size: clamp(1.65rem, 2.58vw, 2.6rem); line-height: 1.14; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.01fr);
  align-items: center;
  column-gap: clamp(2rem, 4vw, 4.25rem);
  padding-block: clamp(2.5rem, 5.5vw, 5.5rem) clamp(3.3rem, 7.5vw, 7rem);
}
.hero-copy { animation: reveal .58s ease both; }
.hero h1 em { color: #38634e; font-weight: 400; }
.lead { max-inline-size: 34ch; margin-block: 1.35rem 1.7rem; color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.24rem); }
.hero-figure { min-inline-size: 0; animation: reveal .65s ease both; }
.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-block-size: clamp(27rem, 45vw, 38rem);
  padding: 1.8rem clamp(1.3rem, 5vw, 4.7rem);
  overflow: hidden;
  background: #dce4d4;
}
.hero-stage::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -20% -32% -25% 35%;
  border: 1px solid #a0b49c;
  border-radius: 50% 0 0 50%;
  background: #d0ddcb;
}
.hero-garment {
  position: absolute;
  inset: auto auto -5% -20%;
  inline-size: 81%;
  max-inline-size: none;
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
}
.phone {
  position: relative;
  inline-size: clamp(12.2rem, 20vw, 15rem);
  padding: 5px;
  border: 1px solid #3f4c43;
  border-radius: 1.6rem;
  background: #23362e;
  box-shadow: 0 15px 36px #1b3e3430, 0 3px 14px #1b3e3430;
}
.app-screen { inline-size: 100%; block-size: auto; aspect-ratio: 390 / 844; border-radius: 1.22rem; background: #fffcf7; }
.hero-caption {
  display: flex;
  gap: 0 .8rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-block-size: 44px;
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.section-intro { max-inline-size: 48rem; margin-block-end: clamp(2rem, 4.2vw, 3.7rem); }
.section-intro > p:not(.eyebrow) { max-inline-size: 48ch; margin-block-start: .98rem; color: var(--muted); font-size: 1.09rem; }
.story-section { background: #e9e9db; padding-block: clamp(3.6rem, 7.5vw, 7.5rem) clamp(2rem, 5vw, 4.5rem); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .84fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.story-visual { min-inline-size: 0; background: #e9e9db; }
.js-enabled .story-visual { position: sticky; top: clamp(.65rem, 11vh, 5rem); z-index: 1; }
.story-stage {
  position: relative;
  isolation: isolate;
  block-size: clamp(22rem, 57vh, 37rem);
  overflow: hidden;
  background: #f7f3e8;
  border: 1px solid #50625635;
}
.story-image {
  position: absolute;
  inset: 0;
  margin: auto;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity .44s ease, visibility 0s .44s, filter .42s ease, transform .5s ease;
}
.story-image[data-image="0"] { object-fit: cover; }
.story-image[data-image="2"] { mix-blend-mode: multiply; }
.story-screen {
  inline-size: auto;
  block-size: 94%;
  border: 4px solid #23362e;
  border-radius: .8rem;
  box-shadow: 0 7px 20px #173c3530;
}
.story-visual:is([data-state="0"], [data-state="1"]) [data-image="0"],
.story-visual[data-state="2"] [data-image="2"],
.story-visual[data-state="3"] [data-image="3"],
.story-visual[data-state="4"] [data-image="4"] {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.story-visual[data-state="1"] [data-image="0"] { filter: brightness(.65) saturate(.72); transform: scale(1.035); }
.story-meta {
  position: absolute;
  z-index: 2;
  inset: auto 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem .8rem;
  padding: .7rem 1rem;
  border: 1px solid #a6ae9f;
  background: var(--paper);
  color: var(--muted);
  font-size: .875rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(.55rem);
  transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
}
.story-meta strong { display: block; color: var(--ink); }
.story-visual[data-state="1"] .story-meta { visibility: visible; opacity: 1; transform: none; transition-delay: .12s; }
.story-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem .65rem;
  padding: .62rem 0;
  border-block-end: 1px solid #a4ad9d;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.story-demo-label { color: var(--muted); font-weight: 400; }
.story-steps { margin: 0; padding: 0; list-style: none; }
.story-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: start;
  gap: .9rem 1.25rem;
  padding: 1.3rem 0;
  border-block-start: 1px solid #abbaa9;
}
.js-enabled .story-steps li { min-block-size: clamp(12.4rem, 37vh, 24rem); }
.story-steps li:first-child { border: 0; }
.story-steps p { max-inline-size: 35ch; margin-block: .62rem .15rem; color: var(--muted); }
.step-index {
  display: grid;
  place-items: center;
  inline-size: 2.55rem;
  block-size: 2.55rem;
  border: 1px solid #8b9e8d;
  border-radius: 50%;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: color .24s ease, background-color .24s ease;
}
.story-steps li.is-current .step-index { background: var(--forest); color: var(--paper); }
.story-steps button[aria-current="step"] { text-decoration-thickness: 2px; }

.outfit-section { padding-block: clamp(3.6rem, 7vw, 7.25rem); }
.look-selectors, .screen-selectors { display: flex; flex-wrap: wrap; gap: .5rem; }
.look-selectors { margin-block-end: 1rem; }
.look-selectors button, .screen-selectors button {
  min-block-size: 44px;
  border: 1px solid #899d8e;
  border-radius: 2rem;
  padding: .45rem 1.05rem;
  background: transparent;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.look-selectors button:hover, .screen-selectors button:hover { background: #e3e9dd; }
:is(.look-selectors, .screen-selectors) button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: white; }
:is(.look-selectors, .screen-selectors) button:focus-visible { outline-color: var(--forest); }
.look-layout {
  --look-paper: #e9e1d5;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
  min-inline-size: 0;
  background: var(--look-paper);
  transition: background-color .35s ease;
}
.look-layout[data-look="contrast"] { --look-paper: #e8e2d4; }
.look-layout[data-look="outside"] { --look-paper: #dce5db; }
.look-figure { min-inline-size: 0; }
.look-mat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  grid-template-rows: minmax(0, 1.05fr) minmax(0, .55fr);
  aspect-ratio: 1.18 / 1;
  padding: clamp(.55rem, 3vw, 3rem);
}
.look-mat img { inline-size: 100%; block-size: 100%; min-block-size: 0; object-fit: contain; mix-blend-mode: multiply; }
.look-top { grid-area: 1 / 1; }
.look-bottom { grid-area: 1 / 2 / 3; }
.look-shoes { grid-area: 2 / 1; }
.look-copy { align-self: center; padding: clamp(1.2rem, 5vw, 5rem) clamp(1.2rem, 4vw, 4rem); }
.look-copy h3 { max-inline-size: 14ch; font-size: clamp(2.12rem, 3.7vw, 3.85rem); line-height: 1.04; }
.look-copy > p:not(.eyebrow) { max-inline-size: 35ch; margin-block: .95rem 1.3rem; color: var(--muted); }
.look-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }

.feature-section { padding-block: clamp(3.25rem, 7vw, 6rem); background: #f0eee3; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.35rem, 3.5vw, 3.5rem); }
.feature-list article { border-block-start: 1px solid #879b8a; padding-block-start: 1.12rem; }
.feature-list h3 { font-size: clamp(1.42rem, 2.1vw, 2.1rem); }
.feature-list p { max-inline-size: 32ch; margin-block: .6rem .3rem; color: var(--muted); }

.closing { background: var(--forest); color: var(--paper); }
.closing-inner { display: grid; justify-items: start; gap: .85rem; padding-block: clamp(3rem, 7vw, 6.7rem); }
.closing h2 { max-inline-size: 19ch; }
.closing p, .closing small { color: #e0e9dd; }
.closing small { font-size: .875rem; }
.closing .button { margin-block-start: .55rem; }
.site-footer { padding-block: .7rem; }

.overlay {
  inline-size: min(44rem, calc(100% - 1.25rem));
  max-block-size: calc(100% - 1.25rem);
  max-block-size: calc(100dvh - 1.25rem);
  padding: clamp(.88rem, 3vw, 1.65rem);
  border: 1px solid #9ea99a;
  border-radius: .55rem;
  color: var(--ink);
  background-color: var(--paper);
  box-shadow: 0 15px 40px #122f2860;
  overscroll-behavior: contain;
}
.overlay::backdrop { background: #17231fb8; }
.overlay-header { display: flex; justify-content: space-between; align-items: start; gap: .5rem 1.2rem; margin-block-end: 1rem; }
.overlay h2 { font-size: clamp(1.55rem, 3.2vw, 2.5rem); }
.overlay .eyebrow { margin-block-end: .38rem; }
.close-button { min-block-size: 44px; }
.screen-selectors { margin-block-end: .9rem; }
.screen-figure {
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: .9rem .7rem;
  background: var(--quiet);
  color: var(--muted);
  text-align: center;
}
.screen-figure .phone { inline-size: clamp(9rem, min(45vw, 24dvh), 15rem); }
.screen-figure figcaption { font-size: .875rem; }
.look-pieces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.look-pieces li { background: #edeadf; }
.look-pieces img { inline-size: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.look-pieces p { padding: .55rem .72rem .72rem; font-size: .875rem; font-weight: 650; }
@keyframes reveal { from { opacity: .35; transform: translateY(.62rem); } to { opacity: 1; transform: none; } }

@media (max-width: 840px) {
  .hero { column-gap: 1.5rem; }
  .hero-stage { padding-inline: 1.25rem; min-block-size: 25rem; }
  .hero-stage .phone { inline-size: 10.7rem; }
  .story-layout { gap: 2rem; }
  .story-caption { justify-content: flex-start; }
  .story-caption > :nth-child(2) { margin-inline-start: auto; }
  .story-demo-label { flex-basis: 100%; }
}

@media (max-width: 680px) {
  .header-inner { gap: 0 .75rem; min-block-size: 0; padding-block: .25rem; }
  .header-inner nav { column-gap: .85rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-block-start: 2.4rem; }
  h1 { font-size: clamp(2.72rem, 10vw, 4.2rem); }
  .lead { margin-block: .95rem 1.35rem; }
  .hero-stage { min-block-size: 0; justify-content: flex-end; padding: 1.3rem 12% 1.3rem 1rem; }
  .hero-stage .phone { inline-size: clamp(10.4rem, 46vw, 13rem); }
  .hero-garment { inset-inline-start: -15%; inline-size: 74%; }
  .story-layout, .look-layout, .feature-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .js-enabled .story-visual { top: 0; padding-block-start: .5rem; }
  .story-stage { block-size: min(45svh, 23rem); }
  .story-caption { padding-block: .37rem; }
  .story-demo-label { flex-basis: auto; }
  .story-caption > :nth-child(2) { margin-inline-start: auto; }
  .js-enabled .story-steps li { min-block-size: clamp(12rem, 37svh, 17rem); }
  .story-steps li { gap: .85rem; }
  .story-steps button { scroll-margin-block-start: 53svh; }
  .story-meta { inset: auto .5rem .5rem; padding: .45rem .6rem; }
  .look-mat { aspect-ratio: 1.28 / 1; }
  .look-copy { padding-block-start: .3rem; }
  .feature-list { gap: 1.45rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2.59rem; }
  .screen-selectors button { padding-inline: .7rem; }
  .story-demo-label { flex-basis: 100%; }
}
@media (max-height: 520px) {
  .js-enabled .story-visual { top: 0; }
  .story-stage { block-size: min(46svh, 20rem); }
}
@media (max-width: 480px) {
  .look-pieces { grid-template-columns: 1fr; }
  .look-pieces li { display: grid; grid-template-columns: 6rem 1fr; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
