:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #5b6670;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d9d3c5;
  --cedar: #8b2f22;
  --cedar-dark: #6e2118;
  --river: #1f6f7a;
  --sun: #d89b35;
  --shadow: 0 18px 42px rgba(31, 45, 49, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 14px 24px;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
}

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

.brand-mark {
  align-items: center;
  background: var(--cedar);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cedar);
}

.hero {
  display: grid;
  min-height: 58vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  grid-area: 1 / 1;
  min-height: 430px;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(23, 32, 39, 0.84), rgba(23, 32, 39, 0.46) 55%, rgba(23, 32, 39, 0.1)),
    linear-gradient(0deg, rgba(247, 245, 239, 0.92), rgba(247, 245, 239, 0) 28%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  width: 100%;
}

.hero-copy {
  align-self: center;
  color: #fff;
  grid-area: 1 / 1;
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 24px 86px;
  position: relative;
  width: 100%;
}

.eyebrow,
.tool-label {
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 840px;
}

.hero-copy p:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
  max-width: 640px;
}

.preview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -42px auto 0;
  max-width: 1180px;
  padding: 0 24px 54px;
  position: relative;
}

.preview-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.preview-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.preview-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.preview-body .tool-label {
  color: var(--river);
}

.preview-body h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.preview-body p:not(.tool-label) {
  color: var(--muted);
  margin-bottom: 22px;
}

.button {
  align-items: center;
  background: var(--cedar);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: auto;
  min-height: 46px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--cedar-dark);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 10px 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

.site-footer p {
  margin: 0;
}

code {
  background: #ebe6da;
  border-radius: 4px;
  color: var(--ink);
  padding: 2px 6px;
}

@media (max-width: 920px) {
  .preview-grid {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .preview-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) 1fr;
  }

  .preview-card img {
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero-media,
  .hero-media img {
    min-height: 520px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(23, 32, 39, 0.88), rgba(23, 32, 39, 0.44)),
      linear-gradient(0deg, rgba(247, 245, 239, 0.92), rgba(247, 245, 239, 0) 20%);
  }

  .hero-copy {
    padding: 44px 18px 72px;
  }

  h1 {
    font-size: 2.38rem;
  }

  .preview-grid {
    gap: 16px;
    padding: 0 18px 36px;
  }

  .preview-card {
    display: flex;
  }

  .preview-card img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .preview-body {
    padding: 18px;
  }

  .site-footer {
    padding: 22px 18px;
  }
}
