.companies,
footer {
  border-top: 1px solid #1f2937;
}
.company,
footer {
  grid-template-columns: 1fr auto;
}

:root {
  --bg: #0b0b0b;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --card: #0f0f0f;
  --accent: #d1d5db;
  --link: #e5e7eb;
  --focus: #f59e0b;
}

body,
html {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.company,
.news-items,
footer {
  gap: 12px;
  display: grid;
}

:where(a),
:where(a:visited) {
  color: var(--accent);
  text-decoration: none;
}
:where(a:hover) {
  color: var(--link);
  text-decoration: underline;
}

.brand,
.brand:visited {
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--link);
  font-size: clamp(18px, 2.2vw, 20px);
  text-decoration: none;
}

.arrow,
footer {
  font-size: 14px;
}

nav a,
nav a:visited {
  text-decoration: none;
  color: var(--muted);
  margin-left: 18px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  nav a {
    transition: color 160ms;
  }
}

.foot-links a:hover,
nav a:hover {
  color: var(--link);
}
.foot-links a:focus,
nav a:focus {
  color: var(--focus);
}

.hero p,
.section h2,
footer {
  color: var(--muted);
}
.section {
  padding: 40px 0 0;
}

footer {
  margin-top: 72px;
  padding-top: 24px;
  align-items: center;
}

.foot-links a,
.foot-links a:visited {
  text-decoration: none;
  color: var(--muted);
  margin-right: 16px;
}

.hero {
  padding: 96px 0 32px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p {
  max-width: 62ch;
  margin: 0;
}

.section h2 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.companies {
  margin-top: 24px;
}

.wrap ul.company-list {
  padding: 0;
  list-style: none;
  margin: 0;
}

.wrap ul,
.wrap ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 8px;
}
li::marker {
  color: var(--muted);
  font-weight: 400;
}

.legal-nav {
  display: flex;
  gap: 24px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.legal-nav li {
  margin: 0;
}

.legal-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.legal-nav a:hover {
  color: var(--link);
  text-decoration: none;
}
.legal-nav a[aria-current='true'] {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}

.wrap .legal-nav {
  padding: 0;
}

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid #1f2937;
}

.legal-section h2 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--muted);
}

.legal-section p {
  color: var(--muted);
  margin: 0 0 16px;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
}
.legal-section li {
  color: var(--muted);
}

ul li a,
ol li a,
ul li a:visited,
ol li a:visited {
  color: var(--link);
  text-decoration: none;
}

ul li a:hover,
ol li a:hover,
ul li a:focus,
ol li a:focus {
  text-decoration: underline;
  color: var(--link);
}

.company {
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid #1f2937;
}

.company:last-child {
  border-bottom: none;
}

.company a,
.company a:visited {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.company a:hover,
.news-items a:hover {
  text-decoration: underline;
}
.company .blurb {
  color: var(--muted);
  font-size: 15px;
}

.arrow {
  color: var(--accent);
}
.news-items time {
  margin-right: 0.5rem;
}
.news-items time {
  color: var(--muted);
  font-size: 12px;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.news-items a,
.news-items a:visited {
  color: var(--link);
  text-decoration: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
