:root {
  --ink: #17211c;
  --muted: #647067;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #dfe5dc;
  --green: #2f7d57;
  --blue: #285f9f;
  --red: #a5443f;
  --shadow: 0 20px 60px rgba(23, 33, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 245, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav,
.hero,
.principles,
.latest,
.blog-index,
.page,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 24px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
}

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

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 56px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.98;
  max-width: 760px;
  margin-bottom: 24px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 620px;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button.secondary {
  background: var(--panel);
}

.device-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border: 10px solid #202b25;
  border-radius: 34px;
  background: #eff4ed;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.phone-bar {
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: #202b25;
  margin: 0 auto 18px;
}

.app-tile {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  min-height: 96px;
  display: grid;
  align-content: center;
}

.app-tile span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-tile strong {
  font-size: 1.35rem;
}

.accent-green {
  border-left: 6px solid var(--green);
}

.accent-blue {
  border-left: 6px solid var(--blue);
}

.accent-red {
  border-left: 6px solid var(--red);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 64px;
}

.principles article,
.post-card,
.post-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.principles h2,
.post-card h3,
.post-row h2 {
  margin-bottom: 8px;
}

.principles p,
.post-card p,
.post-row p,
.page-header p,
.site-footer {
  color: var(--muted);
}

.latest {
  padding: 0 0 80px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading a,
.site-footer a,
.back-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-card,
.post-row {
  display: block;
  text-decoration: none;
}

time {
  color: var(--green);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.blog-index,
.page {
  padding: 64px 0 88px;
}

.page {
  max-width: 760px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.post-list {
  display: grid;
  gap: 14px;
}

.prose h2 {
  margin-top: 36px;
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  color: #314139;
}

.prose a {
  color: var(--green);
  font-weight: 750;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .principles,
  .post-grid {
    grid-template-columns: 1fr;
  }

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