:root { color-scheme: dark; --ink: #e7ebf2; --muted: #a9b3c2; --ground: #14161a; --accent: #d7e2f8; --accent-ink: #172033; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--ground); color: var(--ink); }
body { font: 400 17px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-bar, .hero-copy, .match-copy, footer { padding-left: 28px; padding-right: 28px; }
.site-bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.site-bar a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); }
.brand { color: var(--ink); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.hero { min-height: calc(100svh - 64px); display: grid; grid-template-columns: minmax(280px, 460px) minmax(280px, 1fr); align-items: end; }
.hero-copy { max-width: 460px; padding-bottom: 8vh; }
h1 { margin: 0; font-size: clamp(64px, 8vw, 104px); font-weight: 520; letter-spacing: -.055em; line-height: .88; }
.lede, .status { max-width: 28rem; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 28px; }
.button, .quiet { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
.button { padding: 0 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.quiet { color: var(--accent); }
.hero-figure { width: auto; max-width: 100%; height: calc(100svh - 150px); justify-self: center; align-self: center; object-fit: contain; animation: arrive 680ms ease both; }
footer { padding-bottom: 22px; }
.ktb-footer__bottom { color: var(--muted); }
.ktb-language-switch { display: flex; gap: 16px; }
.ktb-language-switch a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.ktb-language-switch a[aria-current="page"] { color: var(--ink); }
.match { min-height: 100svh; }
.match-layout { display: grid; grid-template-columns: minmax(280px, 440px) minmax(280px, 1fr); gap: 12px 28px; align-items: center; min-height: calc(100svh - 128px); }
.match-copy h1 { font-size: clamp(42px, 5vw, 68px); max-width: 9ch; }
.photo-stage { min-height: 70svh; display: grid; place-items: end center; padding-bottom: 4vh; position: relative; cursor: pointer; color: var(--ink); background: url('/poster.webp') center 42% / auto 78% no-repeat; }
.photo-stage:has(img:not([hidden])) { background-image: none; }
.photo-prompt { background: color-mix(in srgb, var(--ground) 78%, transparent); padding: 8px 12px; }
.photo-stage img { width: 100%; height: 70svh; object-fit: contain; }
.photo-stage input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-stage:has(img:not([hidden])) .photo-prompt { position: absolute; left: 16px; bottom: 16px; background: color-mix(in srgb, var(--ground) 78%, transparent); padding: 8px 10px; }
.pose-choices { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 22px 0 0; padding: 0; }
.pose-choices button { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.pose-choices button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
#open-studio { margin-top: 8px; }
@media (max-width: 800px) {
  .site-bar, .hero-copy, .match-copy, footer { padding-left: 20px; padding-right: 20px; }
  .hero, .match-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; height: 50svh; align-self: end; }
  .hero-copy { padding-top: 8px; padding-bottom: 28px; }
  h1 { font-size: 60px; }
  .match-copy h1 { font-size: 44px; max-width: none; }
  .photo-stage { order: -1; min-height: 48svh; height: 48svh; background-position: center 12%; background-size: auto 74%; }
  .photo-stage img { min-height: 48svh; height: 48svh; }
  .actions { gap: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure { animation: none; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
