:root {
  --bg: #f5f5f2;
  --text: #181818;
  --muted: #686868;
  --line: #d8d8d2;
  --max: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 8px 10px;
  z-index: 100;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.site-nav .whiteboard-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-nav .whiteboard-link span {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.9em;
  transition: transform 120ms ease;
}

.site-nav .whiteboard-link:hover span,
.site-nav .whiteboard-link:focus-visible span {
  transform: translate(2px, -2px);
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.intro {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

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

.intro p {
  max-width: 560px;
}

.app-list {
  border-top: 1px solid var(--line);
}

.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.app-copy p {
  max-width: 600px;
}

.app-links {
  display: flex;
  gap: 16px;
  white-space: nowrap;
  padding-top: 1px;
}

.app-links a {
  font-size: 15px;
}

.narrow-copy p {
  max-width: 620px;
}

.site-footer {
  padding: 28px 0 36px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .header-row {
    min-height: 58px;
    align-items: flex-start;
    padding: 17px 0;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 12px 16px;
  }

  .section,
  .intro {
    padding: 36px 0;
  }

  h1 {
    font-size: 26px;
  }

  .app-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .app-links {
    padding-top: 0;
  }

  .footer-row {
    flex-direction: column;
    gap: 10px;
  }
}

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


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

.service-entry {
  margin-top: 28px;
}

.service-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.service-link span {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.9em;
  transition: transform 120ms ease;
}

.service-link:hover span,
.service-link:focus-visible span {
  transform: translate(2px, -2px);
}


.project-group + .project-group {
  margin-top: 38px;
}

.status-heading {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.app-copy h4 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.platform {
  margin-left: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

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

.pageview-counter[hidden] {
  display: none;
}


.project-group.in-progress .app-copy h4 {
  color: #666;
}

.project-group.in-progress .app-copy p,
.project-group.in-progress .platform {
  color: #858585;
}


.small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.035em;
}


.legal-copy h2 { margin-top: 32px; margin-bottom: 10px; }
.legal-copy p + p { margin-top: 12px; }
.legal-meta { margin-bottom: 28px; }
