:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-strong: #efe7db;
  --ink: #1f2933;
  --muted: #5f6c75;
  --line: #d8d1c7;
  --green: #1d6b5f;
  --green-dark: #13483f;
  --blue: #345f9f;
  --gold: #b7791f;
  --shadow: 0 18px 50px rgba(44, 38, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.1rem 1.25rem;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 760;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark,
.profile-symbol {
  align-items: center;
  aspect-ratio: 1;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.brand-mark {
  border-radius: 8px;
  width: 2.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-strong);
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 1.25rem;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  padding: 4rem 0 3rem;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 1.15rem;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.lede {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 720px;
}

.button-row,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.68rem 0.95rem;
  text-decoration: none;
}

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

.button:hover,
button:hover,
.button:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 107, 95, 0.18);
}

.profile-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.profile-symbol {
  border-radius: 8px;
  font-size: 4rem;
  margin-bottom: 1.25rem;
  width: 7rem;
}

dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0.15rem 0 0;
}

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

.feature-card,
.post-list a,
.post-index a,
.app-card,
.contact-panel,
.side-note,
.subscribe-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  color: var(--ink);
  display: grid;
  gap: 0.6rem;
  min-height: 10rem;
  padding: 1rem;
  text-decoration: none;
}

.feature-card span,
.post-list span,
.post-index span,
.post-index time {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.latest {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.35fr 0.65fr;
  padding: 3rem 0 4rem;
}

.post-list,
.post-index,
.app-list {
  display: grid;
  gap: 0.75rem;
}

.post-list a,
.post-index a {
  color: var(--ink);
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  text-decoration: none;
}

.post-list a:hover,
.post-index a:hover,
.feature-card:hover {
  border-color: var(--green);
}

.page {
  padding-bottom: 4rem;
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0 2rem;
}

.content-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.65fr) minmax(260px, 0.35fr);
  padding-top: 2rem;
}

.prose {
  font-size: 1.05rem;
  max-width: 760px;
}

.side-note,
.contact-panel,
.subscribe-box {
  padding: 1.25rem;
}

.side-note ul {
  margin: 0;
  padding-left: 1.2rem;
}

.app-list {
  padding-top: 2rem;
}

.app-card {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem;
}

.app-card p:last-child {
  margin-bottom: 0;
}

.post-index {
  padding-top: 2rem;
}

.post-index a {
  grid-template-columns: 7.5rem 6.5rem minmax(0, 1fr);
}

.subscribe-box,
.contact-panel {
  margin-top: 2rem;
  max-width: 760px;
}

label {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.45rem;
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1 1 18rem;
  font: inherit;
  min-height: 2.8rem;
  padding: 0.6rem 0.75rem;
}

.contact-email {
  background: var(--surface-strong);
  border-radius: 8px;
  display: inline-block;
  font-weight: 800;
  padding: 0.8rem 1rem;
}

.muted {
  color: var(--muted);
}

.blog {
  font-size: 1.08rem;
  margin: 2rem auto;
  max-width: 780px;
}

.tri-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 2rem auto 0;
  max-width: 780px;
  padding: 0 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.5rem 1.25rem 2rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .latest,
  .content-grid,
  .app-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .post-index a {
    grid-template-columns: 1fr;
  }
}

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

  h1 {
    font-size: 2.35rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
