:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --ink: #171715;
  --muted: #70706a;
  --line: #d8d8d2;
  --line-strong: #b8b8b1;
  --green: #23734a;
  --orange: #99501f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  display: flex;
  width: min(1040px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
}

.masthead {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.identity {
  font-size: .9375rem;
  font-weight: 680;
  letter-spacing: -.01em;
  text-decoration: none;
}

.masthead-domain,
.project-summary,
footer {
  color: var(--muted);
  font-size: .8125rem;
}

.project-section {
  flex: 1;
  padding: clamp(42px, 7vw, 72px) 0 88px;
}

.page-heading {
  padding-bottom: clamp(34px, 5vw, 52px);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.75rem);
  font-weight: 720;
  letter-spacing: -.06em;
  line-height: .95;
}

.project-summary {
  margin: 10px 0 0;
  white-space: nowrap;
}

.project-groups {
  display: grid;
  gap: 56px;
}

.project-group {
  min-width: 0;
}

.project-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.project-group-heading h2 {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-group-heading span {
  color: var(--muted);
  font-size: .8125rem;
}

.project-list {
  border-bottom: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: 26px 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.project-number {
  align-self: start;
  padding-top: 2px;
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.project-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.project-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.project-copy {
  min-width: 0;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-copy h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 680;
  letter-spacing: -.02em;
}

.project-copy p {
  max-width: 600px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9375rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-active {
  color: var(--green);
}

.status-development {
  color: var(--orange);
}

.project-meta {
  display: grid;
  grid-template-columns: 90px 132px;
  min-width: 238px;
  align-items: center;
  gap: 16px;
}

.platforms {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.platform {
  display: inline-flex;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

.project-action {
  display: inline-flex;
  width: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease;
}

.project-action[href]:hover {
  border-color: var(--ink);
}

.project-action:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(49, 94, 231, .28);
  outline-offset: 3px;
}

.project-action.disabled {
  border-color: transparent;
  color: var(--muted);
}

.notice {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

footer {
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 620px);
  }

  .masthead-domain {
    display: none;
  }

  .project-section {
    padding: 42px 0 64px;
  }

  .page-heading {
    padding-bottom: 34px;
  }

  .project-card {
    grid-template-columns: 22px 42px minmax(0, 1fr);
    gap: 14px;
  }

  .project-icon {
    width: 42px;
    height: 42px;
  }

  .project-meta {
    grid-column: 3;
    min-width: 0;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.75rem;
  }

  .project-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-number {
    display: none;
  }

  .project-icon {
    grid-column: 1;
  }

  .project-copy,
  .project-meta {
    grid-column: 2;
  }

  .project-meta {
    grid-template-columns: minmax(72px, 90px) minmax(118px, 132px);
    gap: 10px;
  }

  .project-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
