:root {
  --ink: #1a1a1a;
  --muted: #555;
  --hair: #ededed;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

.topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5vw;
  z-index: 10;
}

.brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.topnav-link {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.topnav-link:hover {
  border-bottom-color: var(--ink);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7rem 5vw 3vw;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 5vw;
}

.content {
  max-width: 38rem;
}

.mission {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.5;
  color: #2b2b2b;
  margin: 0 0 2.6rem;
}

.footer-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
}

.footer-note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 1px;
}

.footer-note a:hover {
  border-bottom-color: var(--ink);
}

.art {
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.art img {
  width: 100%;
  height: auto;
  display: block;
}

/* Team / who we are section */
.team {
  border-top: 1px solid var(--hair);
  background: var(--bg);
}

.team-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5vw 5vw 5vw;
}

.team-header {
  max-width: 38rem;
  margin: 0 0 3rem;
}

.team-heading {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}

.team-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4vw;
}

.team-photo {
  margin: 0;
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.team-photo figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.team-bio {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: #2b2b2b;
  margin: 0;
}

/* Work / apps section */
.work {
  border-top: 1px solid var(--hair);
  background: #fafafa;
}

.work-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5vw 5vw 6vw;
}

.work-header {
  max-width: 38rem;
  margin: 0 0 3rem;
}

.work-heading {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

.work-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: 1.6rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.8rem;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.app-card:hover {
  border-color: #cfcfcf;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.35);
}

.app-logo {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1.1rem;
  display: block;
}

.app-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

/* Visually hidden, still available to screen readers */
.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;
}

.app-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 1.6rem;
}

.app-cta {
  margin-top: auto;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--muted);
  transition: color 0.2s ease;
}

.app-card:hover .app-cta {
  color: var(--ink);
}

/* Site footer / legal */
.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--bg);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 5vw 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0.7rem 0 0;
  max-width: 24rem;
}

.footer-details {
  font-size: 1rem;
  line-height: 1.7;
}

.footer-contact {
  margin: 0 0 1rem;
}

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 1px;
}

.footer-contact a:hover {
  border-bottom-color: var(--ink);
}

.footer-address {
  font-style: normal;
  color: var(--muted);
}

.footer-legal {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 5vw 3rem;
  border-top: 1px solid var(--hair);
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #888;
  margin: 0;
  max-width: 52rem;
}

/* Legal pages (Terms, Privacy) */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 8rem 5vw 5rem;
}

.legal-header {
  margin: 0 0 2.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--hair);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.legal-updated {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.legal p,
.legal li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #333;
}

.legal p {
  margin: 0 0 1.2rem;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.8rem;
}

.legal ul {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.legal li {
  margin: 0 0 0.6rem;
}

.legal a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 1px;
}

.legal a:hover {
  border-bottom-color: var(--ink);
}

.legal-address {
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.legal-back {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
}

/* Footer legal links */
.footer-links {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 1px;
}

.footer-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.footer-links .sep {
  color: #ccc;
  margin: 0 0.6rem;
  border: 0;
}

@media (max-width: 820px) {
  .legal {
    padding: 6rem 1.6rem 3.5rem;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.6rem;
  }

  .art {
    grid-row: 1;
    max-width: 280px;
  }

  .team-inner {
    padding: 3rem 1.6rem 3.5rem;
  }

  .team-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-header {
    margin-bottom: 2rem;
  }

  .work-inner {
    padding: 3rem 1.6rem 3.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.6rem 2rem;
  }

  .footer-legal {
    padding: 1.8rem 1.6rem 2.5rem;
  }
}
