:root {
  color-scheme: dark;
  --bg: #101217;
  --surface: #181b22;
  --surface-raised: #20242d;
  --text: #f6f7f9;
  --muted: #aeb5c1;
  --line: #303642;
  --accent: #ff6b4a;
  --accent-soft: #ffb09d;
  --code: #0b0d11;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% -10%, rgba(255, 107, 74, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-soft);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

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

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.swift-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #ff8a57, #f23d52);
  box-shadow: 0 0.5rem 1.5rem rgba(242, 61, 82, 0.25);
  font-weight: 850;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 13rem);
}

.hero {
  padding: 7rem 0 5rem;
  max-width: 54rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 6.8rem);
}

h2 {
  margin-top: 3.5rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.hero p:not(.eyebrow),
.page-intro {
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.65rem;
  background: var(--accent);
  color: #17100e;
  font-weight: 750;
  text-decoration: none;
}

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

.section {
  padding: 1rem 0 5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  min-height: 14rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
}

.card .number {
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.card h3 {
  margin: 2.8rem 0 0.5rem;
  font-size: 1.65rem;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.article {
  max-width: 52rem;
  padding: 3rem 0 6rem;
}

.article h1 {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.article > p,
.article li {
  color: #d9dde4;
}

.article code {
  padding: 0.12em 0.35em;
  border-radius: 0.3rem;
  background: var(--surface-raised);
  color: #ffd0c5;
  font-size: 0.92em;
}

.article pre {
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--code);
}

.article pre code {
  padding: 0;
  background: transparent;
  color: #f1f3f6;
}

.callout {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 0.25rem solid var(--accent);
  border-radius: 0 0.6rem 0.6rem 0;
  background: var(--surface);
}

.severity-table {
  width: 100%;
  border-collapse: collapse;
}

.severity-table th,
.severity-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.severity-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .site-header {
    justify-content: center;
    padding-block: 1rem;
  }

  .hero {
    padding-top: 4.5rem;
  }
}

