/* Brand: forest green #1F2D27, brass #B79A62, paper #EEEFEC (from the logo files). */

:root {
  --green: #1f2d27;
  --brass: #b79a62;
  --paper: #eeefec;

  --bg: #d8dbd6;
  --surface: #e6e8e4;
  --text: var(--green);
  --muted: #48554e;
  --line: #b9bfb7;
  --label: #6b5627;
  --band-muted: #b4bdb6;
  --band-line: rgba(183, 154, 98, 0.45);
  --sans: Futura, "Avenir Next", Avenir, "Century Gothic", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18231e;
    --surface: var(--green);
    --text: var(--paper);
    --muted: #a9b3ac;
    --line: #34443c;
    --label: var(--brass);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--sans);
}

a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 42rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--green);
  z-index: 1;
}

/* Small wide-spaced capitals, as in the logo */

.caps {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Green band: header and hero */

.band {
  background: var(--green);
  color: var(--paper);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: var(--band-muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem 4rem;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.hero-logo {
  display: block;
  width: clamp(11rem, 26vw, 17rem);
  height: auto;
}

@media (max-width: 44rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-logo {
    order: -1;
    width: 9.5rem;
  }
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--brass);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.rule {
  width: 4.5rem;
  height: 1px;
  margin: 1.75rem 0;
  border: 0;
  background: var(--brass);
}

.lede {
  margin: 0;
  max-width: 30em;
  color: var(--band-muted);
  font-size: 1.15rem;
}

/* Sections */

section {
  padding-top: 4.5rem;
}

h2 {
  margin: 0;
  color: var(--label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1rem 0 1.75rem;
  background: var(--brass);
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

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

/* App cards */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.app-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.app-kind {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app p {
  margin: 0;
}

.status {
  margin: 0;
  color: var(--label);
  font-size: 0.72rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: auto 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.app.next {
  justify-content: center;
  background: transparent;
  border-color: var(--brass);
}

/* About + contact */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0 4rem;
}

.two-col p {
  margin: 0 0 0.9rem;
}

.facts {
  margin: 0 0 1.25rem;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.facts div:first-child {
  border-top: 1px solid var(--line);
}

.facts dt {
  flex: 0 0 7.5rem;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Text pages */

.page {
  padding-top: 3.5rem;
}

.page h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.page h2 {
  margin-top: 2.75rem;
}

.page h2::after {
  margin-bottom: 1.1rem;
}

/* Footer */

.foot-band {
  margin-top: 5.5rem;
  border-top: 1px solid var(--band-line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
  color: var(--band-muted);
  font-size: 0.9rem;
}

.foot p {
  margin: 0;
}

.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
