:root {
  color-scheme: light dark;
  --bg: #f4f2eb;
  --text: #111111;
  --muted: #625f58;
  --line: #111111;
  --soft-line: #bcb8ae;
  --link: #003cff;
  --code: #dfdcd2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  text-transform: lowercase;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

code {
  padding: 0.08em 0.28em;
  background: var(--code);
  font: inherit;
}

.wrap {
  width: min(960px, calc(100% - 36px));
  margin-inline: auto;
}

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

.wordmark {
  margin: 0;
  font-size: 0.95rem;
}

.wordmark a {
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

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

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) 1.25fr;
  gap: 36px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature {
  padding: 30px 0;
  border-bottom: 1px solid var(--soft-line);
}

.feature h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.feature p {
  max-width: 780px;
}

.feature .stack {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
  text-transform: lowercase;
}

.subsection-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.subsection-heading h3 {
  font-size: 1.15rem;
}

.subsection-heading p {
  color: var(--muted);
}

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

.repo-list a {
  display: grid;
  grid-template-columns: 1fr 1.8fr 0.65fr;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-line);
  color: var(--text);
  text-decoration: none;
}

.repo-list a:hover strong {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.repo-list span,
.repo-list small {
  color: var(--muted);
}

.fixes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.fixes article {
  min-height: 285px;
  padding: 26px 24px 26px 0;
  border-bottom: 1px solid var(--line);
}

.fixes article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.fixes article:nth-child(even) {
  padding-right: 0;
  padding-left: 24px;
}

.fixes h3 {
  font-size: 1.18rem;
  line-height: 1.3;
}

.fixes p:last-child {
  margin-bottom: 0;
}

.fix-meta,
.pr-status {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.035em;
  text-transform: lowercase;
}

.pr-controls {
  max-width: 620px;
  margin-bottom: 20px;
}

.pr-controls label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
}

.pr-controls input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.pr-status {
  margin-bottom: 10px;
}

.pr-table {
  border-top: 1px solid var(--line);
}

.pr-row {
  display: grid;
  grid-template-columns: 110px minmax(190px, 0.9fr) minmax(300px, 2fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
  align-items: baseline;
}

.pr-head {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: lowercase;
}

.pr-row time,
.pr-repo {
  color: var(--muted);
  font-size: 0.78rem;
}

.pr-title {
  color: var(--text);
}

.pr-title:hover {
  color: var(--link);
}

.pr-row[hidden] {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 56px;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .section-heading,
  .subsection-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .repo-list a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .fixes {
    grid-template-columns: 1fr;
  }

  .fixes article,
  .fixes article:nth-child(even) {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
  }

  .pr-row {
    grid-template-columns: 92px 1fr;
    gap: 3px 12px;
  }

  .pr-title-cell {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(100% - 24px, 960px);
  }

  nav {
    gap: 8px 13px;
  }

  .section {
    padding-block: 48px;
  }

  .pr-head {
    display: none;
  }

  .pr-row {
    display: block;
    padding: 14px 0;
  }

  .pr-row time,
  .pr-repo,
  .pr-title-cell {
    display: block;
  }

  .pr-repo {
    margin: 2px 0 5px;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #f0eee7;
    --muted: #aaa79f;
    --line: #f0eee7;
    --soft-line: #55524d;
    --link: #86a8ff;
    --code: #2a2926;
  }
}
