:root {
  color-scheme: light;
  --ink: #263b43;
  --muted: #566a70;
  --blue: #59788a;
  --blue-deep: #385869;
  --gold: #805822;
  --cream: #fcf4e7;
  --paper: #fffdf9;
  --line: #e6ddd0;
  --soft-blue: #edf2f3;
  --white: #ffffff;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--blue-deep);
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.97);
}

.header-inner {
  width: min(var(--content-width), calc(100% - 3rem));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.nav-links a:hover,
.contact-email:hover {
  color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  min-height: 510px;
  padding: 5.5rem max(1.5rem, calc((100% - var(--content-width)) / 2));
  background: var(--cream);
}

.hero-content {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

h1,
h2,
.brand,
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 6vw, 4.65rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-mark {
  justify-self: center;
  width: min(100%, 300px);
}

.hero-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.content-section {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading h2,
.downloads h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.about {
  max-width: 850px;
  text-align: center;
}

.about-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.features {
  width: 100%;
  max-width: none;
  padding: 5rem max(1.5rem, calc((100% - var(--content-width)) / 2));
  background: var(--soft-blue);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.feature-card {
  position: relative;
  min-height: 205px;
  padding: 1.35rem;
  border: 1px solid #dce5e6;
  border-radius: 5px;
  background: var(--white);
}

.feature-card h3 {
  margin-bottom: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.3;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  padding: 1.2rem 1.35rem 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.screenshot-card figcaption strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.downloads {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 3rem;
  max-width: none;
  padding-right: max(1.5rem, calc((100% - var(--content-width)) / 2));
  padding-left: max(1.5rem, calc((100% - var(--content-width)) / 2));
  background: var(--cream);
}

.downloads-copy {
  max-width: 590px;
}

.downloads-copy > p:last-child {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.platform-panel {
  padding: 1.5rem 1.7rem;
  border: 1px solid #e6d9c4;
  border-radius: 5px;
  background: var(--paper);
}

.platform-panel h3 {
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.platform-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 0.6rem;
}

.contact > p:not(.eyebrow) {
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.contact-email {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 0.15rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer small {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  }

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

@media (max-width: 650px) {
  html {
    scroll-padding-top: 8rem;
  }

  .header-inner {
    width: calc(100% - 2rem);
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.25rem 1.15rem;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 4rem 1.5rem;
  }

  .hero-mark {
    width: min(54vw, 220px);
  }

  .content-section {
    width: calc(100% - 2rem);
    padding: 3.75rem 0;
  }

  .features {
    width: 100%;
    padding: 3.75rem 1rem;
  }

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

  .feature-card {
    min-height: 0;
  }

  .screenshot-grid,
  .downloads {
    grid-template-columns: 1fr;
  }

  .downloads {
    gap: 1.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
