:root {
  color-scheme: light;
  --paper: #f7f5f1;
  --light: #fffdf9;
  --ink: #292433;
  --muted: #625b65;
  --plum: #553447;
  --brick: #9a4f38;
  --line: #d9d1c9;
  --body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: Bahnschrift, "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
img { max-width: 100%; }
h1,h2,h3,p,figure { margin: 0; }
a { color: var(--plum); text-underline-offset: .19em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 8; left: 12px; top: -100px; padding: 7px 16px; background: var(--light); }
.skip-link:focus { top: 12px; }
.wrap, .nav-shell { width: min(90%, 1320px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 75px; display: flex; justify-content: space-between; align-items: stretch; gap: 18px; }
.brand, .footer-brand { color: var(--ink); text-decoration: none; letter-spacing: -.064em; font-weight: 750; }
.brand { display: inline-flex; align-items: center; font-size: 27px; line-height: 1; }
.brand img { display: block; width: 28px; height: 28px; margin-right: 7px; }
.brand span, .title-stop { color: var(--brick); }
.site-nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.site-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; font-size: .94rem; color: var(--muted); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--plum); }
.site-nav a[aria-current=page] { box-shadow: inset 0 -2px var(--plum); }
.site-footer { margin-top: auto; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 25px; }
.site-footer a:last-child { color: var(--muted); font-size: .875rem; }
.site-footer .footer-brand { font-size: 1.05rem; }
.page-title {
  font: 750 clamp(2.7rem, 5.5vw, 5.35rem)/.95 var(--display);
  font-stretch: condensed; font-variation-settings: "wdth" 80;
  letter-spacing: -.058em; text-transform: uppercase; text-wrap: balance;
}
.page-intro, .home-lead { color: var(--muted); font-size: clamp(1.08rem, 1.33vw, 1.32rem); line-height: 1.53; }
.primary, .secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  padding: 10px 22px; border-radius: 7px; border: 1px solid transparent;
  font-weight: 650; text-decoration: none; text-align: center;
}
.primary { color: var(--light); background: var(--plum); }
.primary:hover { background: #422636; }
.secondary { color: var(--plum); border-color: var(--line); background: var(--light); }
.secondary:hover { border-color: var(--plum); }
.prose { max-width: 70ch; }
.prose h2 { font: 400 clamp(1.65rem, 3vw, 2.2rem)/1.15 var(--serif); letter-spacing: -.035em; }
.prose p, .prose li { line-height: 1.65; }
.prose p + p { margin-top: .85em; }
.article-page .prose { margin-inline: auto; padding-block: clamp(36px, 6vw, 88px); }
.article-page .page-intro { margin-top: 1.25rem; }
.article-page .prose h2 { margin: 2.2rem 0 .65rem; }
.article-page figure { margin: 1rem 0 1.25rem; }
.article-page figure svg { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.article-page figcaption { margin-top: .45rem; font-size: .875rem; color: var(--muted); }
.retake-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); max-width: 490px; }
.retake-pair figure { margin: .9rem 0; }
.retake-pair img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.retake-pair strong { color: var(--ink); white-space: nowrap; }
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(32px, 4.45vw, 74px); padding-block: clamp(38px, 4.6vw, 73px);
}
.home-title { font-size: clamp(3.3rem, 6.15vw, 6.95rem); line-height: .90; }
.title-line { white-space: nowrap; }
.home-lead { margin-top: 25px; max-width: 33ch; }
.home-actions { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-private { margin-top: 15px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; }
.lock-icon { width: 11px; height: 9px; border: 1.3px solid; border-radius: 2px; position: relative; margin-left: 1px; }
.lock-icon::before { content: ""; position: absolute; top: -6px; left: 1.5px; right: 1.5px; height: 5px; border: 1.3px solid; border-bottom: 0; border-radius: 5px 5px 0 0; }
.portrait-panel { margin: 0; min-width: 0; background: var(--light); border: 1px solid #cfc6be; border-radius: 12px; overflow: hidden; box-shadow: 0 13px 26px -21px #513c4a70; }
.example-photo { --position: 29%; isolation: isolate; position: relative; aspect-ratio: 1.5; background: #d4cabb; }
.example-photo > img, .example-photo canvas, .example-photo input { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.example-photo > img { object-fit: contain; }
.example-photo canvas { pointer-events: none; }
.example-photo:focus-within { outline: 3px solid var(--plum); outline-offset: -3px; }
.example-divider { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.example-divider::before { content: ""; position: absolute; inset-block: 0; left: var(--position); width: 1px; background: #fffaf3; box-shadow: 0 0 1px 1px #503d3835; }
.example-divider span {
  display: flex; align-items: center; justify-content: center; gap: 3px; position: absolute;
  width: 36px; height: 36px; left: clamp(20px, var(--position), calc(100% - 20px)); top: 76%;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--plum); border: 1px solid #f7e8db; box-shadow: 0 2px 8px #261a2c33;
}
.example-divider span::before, .example-divider span::after { content: ""; width: 6px; height: 6px; border: solid white; border-width: 0 0 1.4px 1.4px; }
.example-divider span::before { transform: rotate(45deg); }
.example-divider span::after { transform: rotate(225deg); }
.example-photo input { z-index: 2; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.example-caption { min-height: 128px; padding: 20px 22px; }
.example-caption h2, .home-features h2 { font: 400 clamp(1.42rem, 2.1vw, 1.9rem)/1.1 var(--serif); letter-spacing: -.035em; }
.example-caption p { font-size: .96rem; line-height: 1.45; color: var(--muted); margin-top: 7px; max-width: 52ch; }
.home-features { background: #ece8e2; padding-block: 23px 26px; border-block: 1px solid #ded7cf; }
.home-features h2 { font-size: clamp(1.45rem, 2.12vw, 1.9rem); margin-bottom: 14px; }
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feature {
  display: flex; align-items: center; gap: 13px; min-width: 0; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font-weight: 650; text-align: left;
}
.feature:enabled:hover, .feature[aria-pressed=true] { border-color: var(--plum); background: var(--light); }
.feature[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--plum); }
.feature:disabled { cursor: default; }
.feature-thumb { flex: none; width: 54px; height: 45px; border-radius: 5px; background-color: #ddd3c8; background-image: url("/assets/studio-hero.webp"); background-repeat: no-repeat; }
.eye-slope { background-size: 510%; background-position: 49.9% 28%; }
.eye-spacing { background-size: 645%; background-position: 50.6% 30.7%; }
.alignment { background-size: 340%; background-position: 50.7% 38%; }
.mouth-width { background-size: 660%; background-position: 50.7% 48%; }
@media (max-width: 880px) {
  .home-hero { gap: 25px; }
  .home-title { font-size: clamp(2.8rem, 5.95vw, 4.25rem); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-lead { margin-top: 19px; }
  .example-caption { min-height: 136px; padding: 17px; }
}
@media (max-width: 700px) {
  .nav-shell { min-height: 63px; }
  .brand { font-size: 24px; }
  .brand img { width: 25px; height: 25px; }
  .home-hero { grid-template-columns: 1fr; gap: 27px; padding-block: 34px 28px; }
  .home-title { font-size: clamp(2.85rem, 10.5vw, 5rem); }
  .home-lead { max-width: 39ch; margin-top: 16px; }
  .home-actions { margin-top: 19px; }
  .home-private { margin-top: 10px; }
  .example-caption { min-height: 111px; }
  .home-features { padding-block: 19px; }
  .feature { gap: 9px; padding: 8px; font-size: .925rem; }
  .feature-thumb { width: 44px; height: 38px; }
}
@media (max-width: 450px) {
  .nav-shell { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 5px; }
  .brand { min-height: 44px; }
  .site-nav { gap: 24px; }
}
@media (max-width: 385px) {
  .feature { gap: 6px; padding: 6px; font-size: .86rem; }
  .feature-thumb { width: 35px; height: 32px; }
}
