:root {
  color-scheme: light;
  --paper: #f7f7ef;
  --ink: #172018;
  --green: #293d2c;
  --muted: #4c584d;
  --line: #cdd2c6;
  --lime: #d9ec9f;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid #795025;
  outline-offset: 5px;
}

.frame {
  width: min(100% - clamp(2rem, 9vw, 9rem), 80rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  background: var(--lime);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-inline-end: .5rem;
  background: var(--green);
  clip-path: polygon(0 100%, 0 71%, 48% 14%, 73% 44%, 100% 12%, 100% 58%, 73% 91%, 48% 60%, 15% 100%);
}
nav { display: flex; flex-wrap: wrap; gap: .3rem clamp(1rem, 4vw, 2.5rem); }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  display: grid;
  grid-template-columns: .94fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5.5vw, 6rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.hero-copy { padding-block: 1rem; }
.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.35rem, 6.35vw, 6.35rem);
  font-weight: 775;
  line-height: .96;
  letter-spacing: -.061em;
}
.hero em {
  display: inline-block;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.055em;
  color: #415839;
}
.hero p {
  max-width: 29ch;
  margin-block: 1.6rem 1.75rem;
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
}
.hero-visual { margin: 0; }
.hero-visual figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .8rem;
  text-align: end;
}
.hero-visual figcaption a { text-underline-offset: .2em; }
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.12;
  object-fit: cover;
  object-position: 58% center;
  border-radius: .4rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  background: var(--lime);
  color: var(--ink);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #c9e182; border-color: var(--green); }

.ethos { background: var(--green); color: var(--paper); }
.ethos-inner { padding-block: clamp(2.5rem, 5vw, 4rem); }
h2 {
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
  font-weight: 725;
  letter-spacing: -.065em;
  line-height: 1;
}
.ethos-mission {
  max-width: 49ch;
  margin-top: 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}
.ethos-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 1.9rem;
}
.ethos-apps > div { border-top: 1px solid #889785; padding-top: .85rem; }
.ethos-apps dt { color: var(--lime); font-size: 1.15rem; font-weight: 700; }
.ethos-apps dd { margin-top: .42rem; max-width: 36ch; line-height: 1.55; }

.apps { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.app-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.65rem 0 0;
  list-style: none;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #fcfcf7;
}
.app-card-live { background: #edf2e4; border-color: #bacab2; }
.app-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  border-radius: .6rem;
}
.app-icon-run { background: #f2e1cb; --symbol: #7b4a2b; }
.app-icon-activity { background: #e4e8d8; --symbol: #415839; }
.app-icon-run::after, .app-icon-activity::after {
  content: "";
  width: 1.65rem;
  height: 1.65rem;
  background: var(--symbol);
}
.app-icon-run::after { clip-path: polygon(49% 0, 91% 0, 66% 36%, 96% 36%, 36% 100%, 48% 55%, 15% 55%); }
.app-icon-activity::after { clip-path: polygon(0 46%, 23% 46%, 38% 10%, 59% 69%, 70% 46%, 100% 46%, 100% 56%, 77% 56%, 58% 95%, 37% 39%, 30% 56%, 0 56%); }
.app-card h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  letter-spacing: -.05em;
  line-height: 1.12;
}
.app-card p { margin-block: .65rem 1.4rem; line-height: 1.55; color: var(--muted); }
.app-card .button, .app-status { margin-top: auto; }
.app-card .button { background: var(--green); color: white; }
.app-card .button:hover { background: #425942; }
.app-status { display: inline-flex; align-items: center; min-height: 3rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { padding-block: .5rem 0; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 10.5vw, 5.5rem); }
  .hero-image { aspect-ratio: 1.45; }
  .app-list { grid-template-columns: 1fr; }
}

@media (max-width: 35rem) {
  .site-header { min-height: 4.4rem; }
  nav { column-gap: .75rem; }
  .ethos-apps { grid-template-columns: 1fr; }
}
