:root {
  color-scheme: light dark;
  --ink: #14211d;
  --muted: #52645e;
  --paper: #f7f9f6;
  --surface: #ffffff;
  --line: #d8e1dc;
  --brand: #087867;
  --brand-deep: #07594d;
  --mint: #a7f0d4;
  --accent: #e7664b;
  --measure: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(8 120 103 / 6%) 1px, transparent 1px),
    linear-gradient(rgb(8 120 103 / 6%) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Avenir Next", Avenir, "Gill Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  background: var(--brand-deep);
  color: #fff;
  border-bottom: 5px solid var(--mint);
}

.header-inner,
.page,
.footer-inner {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
}

.header-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 20%);
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--mint);
  text-decoration: underline;
}

.page {
  padding-block: 4rem 5rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  line-height: 1.12;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  font-weight: 700;
}

.lede {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
}

.contact-block {
  padding-left: 1.25rem;
  border-left: 4px solid var(--accent);
}

.contact-block p {
  margin: 0.25rem 0;
}

.gallery-section {
  padding-block: 3.5rem 3rem;
  border-bottom: 1px solid var(--line);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.gallery-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.screenshot-strip li {
  min-width: 11.5rem;
  scroll-snap-align: start;
}

.screenshot-strip figure {
  margin: 0;
}

.screenshot-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1rem 2.5rem rgb(20 33 29 / 12%);
}

.screenshot-strip figcaption {
  padding-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3.5rem;
  margin-top: 1rem;
}

.content-grid section,
.policy section {
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.content-grid h2,
.policy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.content-grid p,
.policy p,
.policy li {
  max-width: 68ch;
}

.policy {
  max-width: 52rem;
}

.policy .updated {
  margin-top: 0.8rem;
  color: var(--muted);
}

.notice {
  margin-top: 2.5rem;
  padding: 1.2rem 1.35rem;
  background: #eaf7f2;
  border: 1px solid #b9dacf;
  border-left: 5px solid var(--brand);
  border-radius: 6px;
}

.site-footer {
  color: #e8f3ef;
  background: #102b25;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--mint);
}

@media (max-width: 44rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding-block: 1rem;
  }

  .intro,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .gallery-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .screenshot-strip {
    grid-template-columns: repeat(5, 72vw);
  }

  .intro {
    align-items: start;
  }

  .contact-block {
    margin-top: 0.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ecf5f1;
    --muted: #b2c4bd;
    --paper: #101915;
    --surface: #17251f;
    --line: #34483f;
    --brand: #72d9bb;
    --brand-deep: #07594d;
    --accent: #ff8a70;
  }

  .notice {
    background: #18372e;
    border-color: #315e50;
  }
}

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