:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5f6d62;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dfe4db;
  --moss: #35644a;
  --moss-dark: #1f4834;
  --clay: #b65f3c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer,
.hero,
.section,
.page-hero,
.post-list,
.content-grid,
.article {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand,
.site-header nav,
.hero-actions,
.input-row,
.screen-header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-header nav {
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-header nav a,
.site-footer a,
.back-link {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover,
.back-link:hover,
.post-card a:hover,
.feature-card a:hover,
.compact-card a:hover,
.text-link:hover,
.link-panel a:hover {
  color: var(--moss);
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
  align-items: center;
  gap: 48px;
  padding: 54px 0 64px;
}

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

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

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

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

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

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button,
.signup button {
  min-height: 46px;
  border: 1px solid var(--moss-dark);
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.signup button {
  background: var(--moss-dark);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--moss-dark);
}

.phone-preview {
  width: min(100%, 330px);
  min-height: 500px;
  justify-self: center;
  border: 8px solid #18231c;
  border-radius: 30px;
  background: linear-gradient(180deg, #f9f6ee 0%, #edf3ed 100%);
  box-shadow: 0 18px 46px rgba(23, 33, 27, 0.16);
  padding: 20px;
}

.phone-bar {
  width: 92px;
  height: 5px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #29352d;
}

.screen-header {
  gap: 12px;
  margin-bottom: 18px;
}

.screen-header img {
  border-radius: 10px;
}

.screen-header span,
.task-card span,
.sensei-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.screen-header strong {
  display: block;
  font-size: 1.25rem;
}

.task-card,
.sensei-card,
.feature-card,
.post-card,
.compact-card,
.link-panel,
.signup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.task-card,
.sensei-card {
  margin-top: 12px;
  padding: 18px;
}

.task-card.urgent {
  border-color: rgba(182, 95, 60, 0.38);
  background: #fff5ee;
}

.task-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.task-card small {
  display: block;
  margin-top: 24px;
  color: var(--clay);
}

.sensei-card {
  margin-top: 18px;
  background: #eef6f1;
}

.sensei-card p {
  margin: 10px 0 0;
  font-size: 1.08rem;
}

.section {
  padding: 58px 0;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card,
.post-card,
.compact-card,
.link-panel,
.signup {
  padding: 20px;
}

.feature-card p,
.post-card p,
.compact-card p,
.section p,
.signup p,
.page-hero p,
.article header p,
.article-body {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.signup label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.input-row {
  gap: 10px;
}

.signup input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.page-hero {
  padding: 58px 0 28px;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}

.post-list {
  display: grid;
  gap: 14px;
  padding: 18px 0 72px;
}

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

.post-list.compact {
  padding-bottom: 0;
}

.post-card time,
.compact-card time,
.article time {
  color: var(--clay);
  font-size: 0.88rem;
  font-weight: 800;
}

.post-card h2 {
  margin-top: 8px;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.14;
}

.post-card h2 a {
  text-decoration: none;
}

.feature-card a,
.compact-card a,
.text-link,
.link-panel a {
  color: var(--moss-dark);
  font-weight: 800;
  text-decoration: none;
}

.compact-card h3 {
  margin: 6px 0 8px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
}

.link-panel {
  display: grid;
  gap: 12px;
}

.link-panel a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.link-panel a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--moss-dark);
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.region-list a:hover {
  border-color: rgba(53, 100, 74, 0.42);
  color: var(--clay);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--moss-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.post-meta-row a,
.post-meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--moss-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.post-meta-row a:hover {
  color: var(--clay);
}

.article {
  max-width: 760px;
  padding: 54px 0 78px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
}

.article header h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.06;
}

.article-body {
  margin-top: 32px;
  font-size: 1.02rem;
}

.article-body h2 {
  margin-top: 36px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

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

.meta-grid,
.mini-meta {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-grid div,
.mini-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 12px;
}

.meta-grid dt,
.mini-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-grid dd,
.mini-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.related-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.related-list h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--moss-dark);
  font-weight: 800;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 32px;
  }

  .phone-preview {
    justify-self: start;
    min-height: 460px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .page-hero,
  .post-list,
  .content-grid,
  .article {
    width: min(100% - 28px, 1120px);
  }

  .feature-grid,
  .content-grid,
  .input-row,
  .meta-grid,
  .mini-meta {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .content-grid,
  .input-row,
  .site-footer {
    display: grid;
  }

  .site-header nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero,
  .section {
    padding-block: 42px;
  }

  .phone-preview {
    width: 100%;
    border-width: 8px;
    border-radius: 28px;
    padding: 18px;
  }

  .button,
  .signup button {
    width: 100%;
    text-align: center;
  }
}
