:root {
  --bg: #f7f4ef;
  --bg-elevated: #fffdf9;
  --ink: #1c1917;
  --muted: #6b6560;
  --line: #e4ddd4;
  --accent: #1f4b8f;
  --accent-hover: #163a70;
  --focus: #1f4b8f;
  --coming-soon-bg: #efeae3;
  --button-fg: #fff;
  --button-secondary-fg: var(--ink);
  --radius: 1rem;
  --wrap: 40rem;
  --wrap-wide: 48rem;
  --space: 1.25rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --bg-elevated: #1e1b18;
    --ink: #f3eee8;
    --muted: #b3aaa2;
    --line: #322d28;
    --accent: #8bb4e8;
    --accent-hover: #b7d0f2;
    --focus: #8bb4e8;
    --coming-soon-bg: #241f1b;
    /* Primary fills are light in dark mode; use dark label text for contrast. */
    --button-fg: #161412;
  }
}

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

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > * {
  min-width: 0;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap,
.wrap-wide {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-wide {
  max-width: var(--wrap-wide);
}

.site-header {
  padding: 1.25rem 0 0;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: var(--accent);
}

main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 0 4rem;
}

.hero {
  padding-bottom: 2.75rem;
  max-width: 100%;
}

.kicker {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 7.5vw, 3rem);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}

.lede,
.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.lede,
.prose p,
.feature p,
.card-copy {
  overflow-wrap: break-word;
}

.lede {
  max-width: 36em;
  font-size: 1.125rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.projects {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 640px) {
  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.15rem;
    row-gap: 0.35rem;
    align-items: start;
  }

  .card .app-icon {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
}

.app-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  box-shadow: 0 1px 2px rgb(28 25 23 / 12%);
}

.card-kicker {
  margin: 0.15rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-copy {
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.card-copy:last-child,
.card-actions:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--button-fg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--button-fg);
}

.button-secondary {
  background: transparent;
  color: var(--button-secondary-fg);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--bg-elevated);
  color: var(--button-secondary-fg);
  border-color: var(--muted);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--coming-soon-bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-hero,
.product-hero-text {
  min-width: 0;
  max-width: 100%;
}

.product-hero {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-bottom: 2.5rem;
}

.product-hero .app-icon {
  width: 5rem;
  height: 5rem;
}

@media (min-width: 640px) {
  .product-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .product-hero .app-icon {
    width: 5.5rem;
    height: 5.5rem;
  }
}

.product-hero-text h1 {
  margin-bottom: 0.35rem;
}

.tagline {
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 28rem;
}

.features {
  display: grid;
  gap: 1.75rem;
  padding: 0.5rem 0 2.5rem;
}

.feature p {
  margin: 0;
  color: var(--ink);
}

.quiet {
  color: var(--muted);
  font-size: 0.98rem;
}

.screenshots {
  padding: 0.25rem 0 2.5rem;
}

.screenshot-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.screenshot-row img {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 0.85rem;
}

.contact-list a {
  font-weight: 600;
}

.site-footer {
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}

.feature-shot {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.feature-shot p {
  margin: 0 0 1rem;
}

.feature-shot img {
  display: block;
  width: min(100%, 22rem);
  margin: 0.5rem auto 0;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.app-icon[src$=".svg"] {
  background: transparent;
  box-shadow: none;
}

.card-actions .coming-soon,
.product-actions .coming-soon {
  align-self: center;
}
