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

:root {
  --bg: #FBFBFA;
  --text: #2A2E30;
  --sage: #8DA8A0;
  --blush: #E8D2D8;
  --rose: #B56878;
  --muted: #6B7275;
  --border: rgba(141, 168, 160, 0.25);
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}


/* ── Header ── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  display: block;
  height: 28px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--rose);
}

.icon {
  display: block;
  width: 18px;
  height: 18px;
}


/* ── Hero ── */

.hero {
  padding: 3rem 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 360px;
}


/* ── Section label ── */

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2.5rem;
}


/* ── Apps ── */

#apps {
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  outline: 1px solid var(--border);
}

.app-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.app-card:last-child {
  border-right: none;
}

.app-card:hover {
  background: color-mix(in srgb, var(--blush) 20%, var(--bg));
}

.app-card:hover .app-link {
  color: var(--rose);
}

.app-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blush);
  border-bottom: 1px solid var(--border);
}

.app-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.app-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.app-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.app-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 100px;
  padding: 0.2em 0.65em;
  white-space: nowrap;
}

.tagline {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

.app-body p:not(.tagline) {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.app-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.app-link:hover {
  color: var(--rose);
}


/* ── About ── */

#about {
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 540px;
}

.about-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.bmc-button--small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.bmc-button.bmc-button--hero-mobile {
  display: none;
}

.about-content .bmc-button {
  margin-top: 1.5rem;
}

.bmc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--blush);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.bmc-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bmc-button:hover {
  opacity: 0.82;
}

.about-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.about-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-links a:hover {
  color: var(--text);
}


/* ── Footer ── */

footer {
  padding: 1.75rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--sage);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}


/* ── Responsive ── */

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .app-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  header {
    padding: 1.25rem 1.5rem;
  }

  .bmc-button--small,
  .nav-icon {
    display: none;
  }

  .bmc-button--hero-mobile {
    display: inline-flex;
  }

  .hero {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero h1 {
    white-space: normal;
  }

  #apps,
  #about {
    padding: 3.5rem 1.5rem;
  }

  footer {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
