/* katsanes.com — one stylesheet, black and white, system type. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #d2d2d7;
  --link: #1d1d1f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101010;
    --fg: #f5f5f7;
    --muted: #86868b;
    --hairline: #333336;
    --link: #f5f5f7;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); padding: 6px 10px; z-index: 10; }

/* ---------- Global nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); text-decoration: none; }

/* ---------- Layout ---------- */

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 692px; margin: 0 auto; padding: 0 22px; }

section { padding: 120px 0; }
section.tight { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.hero + section.tight { padding-top: 24px; }
.center { text-align: center; }

/* ---------- Type ---------- */

.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; margin: 0 0 8px; }

.headline {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.headline-md {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}

.lede {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: var(--muted);
  margin: 20px auto 0;
  max-width: 34ch;
}

.lede strong { color: var(--fg); font-weight: 600; }

.body-lg { font-size: 21px; line-height: 1.38; color: var(--muted); margin: 18px 0 0; }
.body-lg strong { color: var(--fg); font-weight: 600; }

.fine { font-size: 12px; line-height: 1.33; color: var(--muted); letter-spacing: -0.01em; }

.chevron::after { content: " \203A"; }

/* ---------- App icons ---------- */

.icon {
  border-radius: 22.37%;
  border: 1px solid var(--hairline);
}

.icon-xl { width: 144px; margin: 0 auto 28px; }
.icon-md { width: 96px; flex: none; }
.app > picture { flex: none; }

/* ---------- Home: app list ---------- */

.apps { list-style: none; margin: 0; padding: 0; }

.app {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
}

.app:last-child { border-bottom: 1px solid var(--hairline); }
.app h2 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: 0.007em; margin: 0; }
.app p { margin: 4px 0 10px; color: var(--muted); font-size: 19px; line-height: 1.4; }
.app .status { font-size: 12px; color: var(--muted); margin-left: 10px; font-weight: 400; letter-spacing: 0; vertical-align: 4px; white-space: nowrap; }

/* ---------- Product page ---------- */

.hero { padding: 96px 0 72px; text-align: center; }
.cta { margin-top: 32px; display: inline-flex; gap: 28px; align-items: center; font-size: 17px; flex-wrap: wrap; justify-content: center; }
.soon { font-size: 17px; color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .feature-text { order: 2; }

.screen {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 13% / 6%;
  border: 1px solid var(--hairline);
}

.pair { display: flex; gap: 32px; justify-content: center; margin-top: 64px; }
.pair .screen { max-width: 300px; margin: 0; }

/* A coach note set as type, the way the app shows it. */
.note {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 32px;
  max-width: 440px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.47;
  text-align: left;
}

section.alt .note { background: var(--bg); }
.note h3 { font-size: 21px; margin: 0 0 20px; font-weight: 600; }
.note dt { font-size: 15px; font-weight: 600; color: var(--muted); }
.note dd { margin: 2px 0 18px; }
.note dd:last-child { margin-bottom: 0; }

.price { font-size: 21px; line-height: 1.38; margin: 24px 0 0; }

/* ---------- Legal pages ---------- */

.doc { padding: 72px 0 120px; }
.doc h1 { font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -0.003em; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 48px; }
.doc h2 { font-size: 24px; line-height: 1.17; font-weight: 600; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--fg); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Footer ---------- */

.footer { background: var(--bg-alt); padding: 32px 0 48px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a, .footer p { font-size: 12px; color: var(--muted); margin: 0; }
.footer a:hover { color: var(--fg); }

/* ---------- Small screens ---------- */

@media (max-width: 734px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 14px; }
  section { padding: 80px 0; }
  .hero { padding: 64px 0 48px; }
  .feature { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature.flip .feature-text { order: 0; }
  .pair { gap: 16px; }
  .pair .screen { max-width: 46%; }
  .app { gap: 20px; padding: 28px 0; }
  .icon-md { width: 72px; }
  .app h2 { font-size: 24px; }
  .app p { font-size: 17px; }
  .doc h1 { font-size: 36px; }
}
