:root {
  --paper: #f2f2ef;
  --paper-raised: #f8f8f6;
  --paper-sunk: #e8e8e4;
  --night: #09090b;
  --night-raised: #131316;
  --night-sunk: #050506;
  --ink: #0b0b0c;
  --ink-2: #0b0b0ca8;
  --ink-3: #0b0b0c94;
  --ink-4: #0b0b0c29;
  --line: #0b0b0c17;
  --line-strong: #0b0b0c29;
  --pearl: #efebe4;
  --pearl-2: #efebe4a8;
  --pearl-3: #efebe48f;
  --pearl-4: #efebe429;
  --pearl-line: #efebe417;
  --pearl-line-strong: #efebe429;
  --signal: #ff5a1f;
  --signal-soft: #ff5a1f24;
  --ok: #2f9e6a;
  --bg: var(--paper);
  --bg-raised: var(--paper-raised);
  --bg-sunk: var(--paper-sunk);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --fg-4: var(--ink-4);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --glass-fill: #ffffff8f;
  --glass-edge: #ffffffb3;
  --glass-shade: #0b0b0c0f;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-display: clamp(2.6rem, 1.3rem + 5.4vw, 6.4rem);
  --t-h1: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem);
  --t-h2: clamp(1.8rem, 1.25rem + 2.2vw, 3.3rem);
  --t-lead: clamp(1.12rem, 1rem + 0.5vw, 1.45rem);
  --t-micro: 0.72rem;
  --t-small: 0.875rem;
  --track-tight: -0.045em;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --max: 1360px;
  --section-y: clamp(2rem, 1.4rem + 2vw, 3rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-xl: 36px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-2: 0.32s;
  --dur-3: 0.64s;
  --shadow-1: 0 1px 1px #00000008, 0 2px 6px -2px #0000000f;
  --nav-h: 64px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: var(--night);
  --bg-raised: var(--night-raised);
  --bg-sunk: var(--night-sunk);
  --fg: var(--pearl);
  --fg-2: var(--pearl-2);
  --fg-3: var(--pearl-3);
  --fg-4: var(--pearl-4);
  --rule: var(--pearl-line);
  --rule-strong: var(--pearl-line-strong);
  --glass-fill: #1c1c2080;
  --glass-edge: #ffffff1a;
  --glass-shade: #0006;
  color-scheme: dark;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.006em;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }
[data-theme="dark"] ::selection { background: var(--pearl); color: var(--night); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.nav {
  z-index: 50;
  pointer-events: none;
  color: var(--fg);
  position: fixed;
  inset: 0 0 auto;
}
.nav-bar {
  padding: 12px var(--gutter) 0;
  display: flex;
  justify-content: center;
}
.nav-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 880px;
  height: 56px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 18px;
  transition: background-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.nav-pill.is-scrolled {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 18px 40px -22px var(--glass-shade);
}
.wordmark {
  width: 86px;
  height: 22px;
  margin-right: auto;
  background: var(--fg);
  -webkit-mask: url("/krews_logo.png") left center / contain no-repeat;
  mask: url("/krews_logo.png") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
.status {
  height: 28px;
  padding: 0 12px 0 11px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--fg-2);
  display: inline-grid;
  place-items: center;
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle-icons { display: grid; width: 18px; height: 18px; }
.theme-icon { grid-area: 1 / 1; opacity: 0; }
.theme-toggle[data-mode="system"] .theme-icon-system,
.theme-toggle[data-mode="light"] .theme-icon-light,
.theme-toggle[data-mode="dark"] .theme-icon-dark { opacity: 1; }

.opening {
  position: relative;
}
.opening::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 58svh;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-position: 50% -1px;
  background-size: 72px 72px;
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(76% 58% at 16% 32%, #000 6%, #0000 70%);
  mask-image: radial-gradient(76% 58% at 16% 32%, #000 6%, #0000 70%);
}

.hero {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding-block: calc(var(--nav-h) + 4.4rem) 2.1rem;
}
h1 {
  width: max-content;
  max-width: calc(100vw - var(--gutter) * 2);
  margin-left: -0.05em;
  font-size: clamp(2.7rem, 1rem + 4.4vw, 5.4rem);
  font-weight: 540;
  letter-spacing: -0.052em;
  line-height: 0.94;
}
.hero-line { display: block; padding-bottom: 0.05em; white-space: nowrap; }
.lead {
  max-width: 34rem;
  font-size: var(--t-lead);
  letter-spacing: -0.014em;
  color: var(--fg-2);
  line-height: 1.42;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--bg) 16%, transparent);
}

.access { min-height: 48px; }
.access-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: 36rem;
}
.access-form input[type="email"] {
  height: 48px;
  width: min(100%, 260px);
  border: 0;
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  padding: 0 16px;
}
.privacy {
  flex: 1 1 100%;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  color: var(--fg-3);
}
.access-success { max-width: 22rem; display: grid; gap: 6px; }
.success-title {
  font-size: var(--t-h3, 1.5rem);
  letter-spacing: var(--track-tight);
  font-weight: 540;
}
.access-success p:last-child { color: var(--fg-2); }
.access-error { margin-top: 12px; color: var(--fg-2); font-size: 0.95rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker-index { color: var(--fg); }
.kicker-rule { width: 24px; height: 1px; background: var(--fg-4); }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.feature {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.35rem 1.5rem 1.4rem 0;
}
.feature + .feature {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}
.feature-label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.feature-label span { color: var(--fg); }
.feature h2 {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  font-weight: 540;
  line-height: 1.2;
}
.feature p:last-child {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 28rem;
}

.site-footer {
  position: relative;
  overflow: clip;
  margin-top: auto;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--fg-3);
}
.footer-bar a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg-4);
  padding-bottom: 2px;
  transition: border-color var(--dur-2) var(--ease-out);
}
.footer-bar a:hover { border-color: var(--fg); }

.brand-wash {
  pointer-events: none;
  width: min(100% - var(--gutter) * 2, 980px);
  aspect-ratio: 1530 / 360;
  margin: 0.75rem auto calc(-1 * clamp(1.4rem, 4vw, 3.2rem));
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  -webkit-mask: url("/krews_text.png") 50% / contain no-repeat;
  mask: url("/krews_text.png") 50% / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line { animation: line-up 1.1s var(--ease-out) both; }
  .hero-line:nth-child(2) { animation-delay: 80ms; }
  .lead, .access { animation: rise 0.9s var(--ease-out) 0.2s both; }
}
@keyframes line-up {
  0% { opacity: 0.01; filter: blur(10px); transform: translateY(0.14em); }
  to { transform: none; }
}
@keyframes rise {
  0% { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.page-short main {
  width: min(calc(var(--max) + var(--gutter) * 2), 100%);
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 6rem;
  margin: 0 auto;
  display: grid;
  justify-items: start;
  gap: 1.75rem;
}
.page-short h1 {
  width: auto;
  font-size: var(--t-display);
  letter-spacing: -0.052em;
  font-weight: 540;
  line-height: 0.98;
}
.page-short .lead { font-size: 1.1rem; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .feature {
    padding: 1.15rem 0;
  }
  .feature + .feature {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .hero { padding-top: calc(var(--nav-h) + 3.6rem); }
  h1 {
    width: auto;
    max-width: none;
    font-size: clamp(2.45rem, 10vw, 3.2rem);
  }
  .hero-line { white-space: normal; }
  .access-form input[type="email"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
