:root {
  color-scheme: light dark;
  --bg: #f4f2eb;
  --text: #111111;
  --muted: #625f58;
  --line: #111111;
  --soft-line: #bcb8ae;
  --link: #003cff;
  --code: #dfdcd2;
  --apple: #d7e3ff;
  --publication: #dcebd6;
  --community: #f0dfb8;
  font-family: ui-monospace, 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;
}

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);
  color: var(--text);
  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.9rem;
  font-weight: 700;
}

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

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

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

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

.eyebrow,
.release-kicker,
.change-meta,
.filter-status {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.035em;
  text-transform: lowercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(2.7rem, 8.6vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.lede {
  max-width: 720px;
  margin-bottom: 44px;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  line-height: 1.42;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-grid div {
  min-height: 92px;
  padding: 17px 14px;
  border-right: 1px solid var(--line);
}

.hero-grid div:first-child {
  padding-left: 0;
}

.hero-grid div:last-child {
  border-right: 0;
}

.hero-grid span,
.hero-grid strong {
  display: block;
}

.hero-grid span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: lowercase;
}

.hero-grid strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.scope-note {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
}

.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);
}

.build-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.build-index li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.build-index li:nth-child(3n) {
  border-right: 0;
}

.build-index a {
  display: grid;
  min-height: 132px;
  padding: 17px;
  color: var(--text);
  text-decoration: none;
}

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

.build-index span,
.build-index code {
  align-self: start;
  justify-self: start;
  color: var(--muted);
  font-size: 0.72rem;
}

.build-index strong {
  align-self: center;
  font-size: 1rem;
}

.filters {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr 0.55fr 1fr 0.55fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.filters label {
  font-size: 0.76rem;
}

.filters input,
.filters select,
.filters button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.filters button {
  cursor: pointer;
}

.filters button:hover {
  background: var(--text);
  color: var(--bg);
}

.filter-status {
  margin: 18px 0 0;
}

.release {
  scroll-margin-top: 20px;
}

.release-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 24px;
}

.release-header h2 {
  max-width: 450px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.release-kicker {
  margin-bottom: 10px;
}

.release dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.release dl div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.release dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: lowercase;
}

.release dd {
  margin: 0;
  font-size: 0.82rem;
}

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

.change {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1.25fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--soft-line);
}

.change h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.34;
}

.change > p:not(.change-meta) {
  grid-column: 3;
}

.change > p:nth-of-type(2) {
  grid-row: 1;
}

.change .why,
.change .links {
  margin-bottom: 0;
}

.change .why {
  color: var(--muted);
  font-size: 0.84rem;
}

.change .links {
  font-size: 0.78rem;
}

.change-meta {
  margin-bottom: 0;
}

.change-meta > span:last-child {
  display: block;
  margin-top: 8px;
}

.label {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: #111111;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: lowercase;
}

.label.apple {
  background: var(--apple);
}

.label.publication {
  background: var(--publication);
}

.label.community {
  background: var(--community);
}

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

.method-grid article {
  min-height: 285px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid article:first-child {
  padding-left: 0;
}

.method-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.method-grid h3 {
  font-size: 1.05rem;
}

.method-grid p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.boundaries {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-top: 34px;
}

.boundaries h3 {
  font-size: 1rem;
}

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

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

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

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

.source-list span {
  color: var(--muted);
}

.disclaimer > p {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 52px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #f0eee7;
    --muted: #aaa79f;
    --line: #f0eee7;
    --soft-line: #57544e;
    --link: #86a8ff;
    --code: #2d2c29;
    --apple: #9db7ec;
    --publication: #a8c99a;
    --community: #d9bb79;
  }
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid div:nth-child(2) {
    border-right: 0;
  }

  .hero-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .build-index {
    grid-template-columns: 1fr 1fr;
  }

  .build-index li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .build-index li:nth-child(2n) {
    border-right: 0;
  }

  .filters {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .filters button {
    grid-column: 2;
  }

  .change {
    grid-template-columns: 0.65fr 1.35fr;
  }

  .change > p:not(.change-meta) {
    grid-column: 2;
  }

  .change > p:nth-of-type(2) {
    grid-row: auto;
  }

  .change h3 {
    grid-column: 2;
  }
}

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

  .site-header {
    padding-block: 15px;
  }

  .section-heading,
  .release-header,
  .boundaries {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .release-header {
    gap: 22px;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.7rem);
  }

  .build-index {
    grid-template-columns: 1fr;
  }

  .build-index li,
  .build-index li:nth-child(2n),
  .build-index li:nth-child(3n) {
    border-right: 0;
  }

  .build-index a {
    min-height: 104px;
  }

  .change {
    display: block;
  }

  .change h3 {
    margin: 12px 0;
  }

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

  .method-grid article,
  .method-grid article:first-child,
  .method-grid article:last-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
  }

  .source-list a {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

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