:root {
  color-scheme: light;
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #14231b;
  --muted: #526258;
  --line: #d9e4dc;
  --accent: #147a57;
  --accent-strong: #0d5f42;
  --shadow: 0 18px 46px rgba(20, 35, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.hero {
  max-width: 760px;
  padding: clamp(28px, 7vw, 76px) 0 clamp(36px, 8vw, 88px);
}

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

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-copy p:last-of-type {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.primary {
  color: #fff;
  background: #111814;
}

.secondary {
  color: var(--accent-strong);
  border: 1px solid var(--line);
  background: #f9fbfa;
}

.app-link {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 28px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.app-link img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(20, 35, 27, 0.16);
}

.app-link span {
  max-width: 260px;
  color: var(--muted);
  font-weight: 700;
}

.note {
  max-width: 760px;
  margin-top: clamp(42px, 8vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.note p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

  .app-link {
    justify-items: start;
    text-align: left;
    padding: 0;
  }
}

@media (max-width: 460px) {
  .actions {
    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }
}
