:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #666666;
  --line: #e5e5e5;
  --paper: #fafafa;
  --surface: #ffffff;
  --soft-blue: #eef5ff;
  --soft-green: #edf8f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 5vw;
  background: rgba(250, 250, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
}

.hero {
  min-height: auto;
  padding: 96px 5vw 84px;
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 48px;
  align-items: center;
  padding: 72px 5vw;
  border-bottom: 1px solid var(--line);
}

.app-hero-copy {
  max-width: 820px;
}

.hero-product-image {
  width: min(100%, 320px);
  max-height: 620px;
  justify-self: center;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-note {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

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

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

.secondary-action {
  border: 1px solid var(--ink);
  background: transparent;
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

section:not(.hero):not(.app-hero) {
  padding: 64px 5vw;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.log-card {
  padding: 22px 22px 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.log-card h3,
.read-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.log-card p,
.read-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.reading {
  background: var(--paper);
}

.reading-list {
  display: grid;
  gap: 0;
  max-width: 980px;
  border-top: 1px solid var(--line);
}

.read-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.read-item a {
  text-decoration: none;
}

.read-item a:hover h3,
.read-item a:focus-visible h3 {
  text-decoration: underline;
}

.read-item span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.log-grid {
  max-width: 980px;
  grid-template-columns: 1fr;
}

.log-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.log-card[hidden] {
  display: none;
}

.tag {
  width: fit-content;
  margin: 0 0 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.log-card a {
  margin-top: auto;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1100px;
  border-top: 1px solid var(--line);
}

.plan-item {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}

.plan-item h3,
.product-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.plan-item p:not(.tag),
.product-copy p:not(.tag) {
  margin: 12px 0 0;
  color: var(--muted);
}

.product-showcase {
  display: grid;
  gap: 0;
  max-width: 1120px;
  border-top: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 360px);
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.product-row:nth-child(2) {
  background: linear-gradient(90deg, transparent, var(--soft-green));
}

.product-row:first-child {
  background: linear-gradient(90deg, transparent, var(--soft-blue));
}

.product-copy {
  max-width: 620px;
}

.product-image {
  width: min(100%, 280px);
  max-height: 520px;
  justify-self: center;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.article-cta {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.article-cta h2 {
  margin-top: 0;
}

.secondary-logs {
  opacity: 0.82;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.article-page {
  padding: 72px 5vw 96px;
}

.article-body {
  max-width: 760px;
}

.article-body h1 {
  margin-bottom: 22px;
}

.article-note {
  margin: 0 0 42px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.article-body h2 {
  margin: 42px 0 12px;
  font-size: 24px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 17px;
}

.article-body ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.article-body li + li {
  margin-top: 8px;
}

.entry-table {
  width: 100%;
  margin: 22px 0 34px;
  border-collapse: collapse;
  background: var(--surface);
}

.entry-table th,
.entry-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.entry-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.direction-table {
  width: 100%;
  margin: 18px 0 28px;
  border-collapse: collapse;
  background: var(--surface);
}

.direction-table th,
.direction-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.direction-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

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

  .hero {
    padding-top: 56px;
  }

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

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

  .product-row {
    grid-template-columns: 1fr;
  }

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

  .product-image {
    justify-self: start;
  }

  .hero-product-image {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .hero-actions a {
    width: 100%;
  }

  .app-actions a {
    width: 100%;
    justify-content: center;
  }

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

  .read-item {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
