:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #68645f;
  --line: #e7e1d8;
  --soft: #f2eee6;
  --accent: #2f6f63;
  --accent-ink: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links,
.site-footer nav,
.app-links,
.app-meta {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  font-weight: 700;
}

.brand-logo {
  width: 186px;
  height: auto;
  display: block;
}

.brand-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 84px 0;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 9vw, 6.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

.intro {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.apps-section,
.about-section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.app-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.02);
}

.app-card p {
  margin: 0;
  color: var(--muted);
}

.app-status {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--soft);
  color: var(--ink) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-meta span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b2aaa0;
}

.app-links {
  flex-wrap: wrap;
  gap: 10px;
}

.app-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  font-weight: 700;
}

.app-links a:first-child {
  background: var(--ink);
  color: var(--accent-ink);
  border-color: var(--ink);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.about-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.about-section code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 2px 5px;
  color: var(--ink);
}

.legal-page {
  max-width: 840px;
  padding: 74px 0;
}

.legal-page h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.legal-page section {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.legal-page section:first-of-type {
  margin-top: 54px;
}

.legal-page h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.legal-page p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-page p + p {
  margin-top: 14px;
}

.legal-page a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-date {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4.3rem);
  }

  .section-heading,
  .about-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-section {
    display: flex;
    gap: 24px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 168px;
  }

  .apps-section,
  .about-section,
  .legal-page {
    padding: 56px 0;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}
