:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --line: #d8d8d8;
  --soft: #f6f6f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

h1,
h2,
p,
a,
span {
  overflow-wrap: break-word;
}

.page-shell {
  width: 100%;
  max-width: 620px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 24px 0 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 46px;
  height: 2px;
  background: var(--ink);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 10.5vw, 3.35rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.content-section {
  flex: 1;
  min-width: 0;
}

.link-grid,
.material-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.link-card,
.material-item {
  width: 100%;
  max-width: calc(100vw - 32px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.link-card {
  min-height: 176px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--ink);
  transform: translateY(-2px);
  outline: none;
}

.card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.card-title {
  display: block;
  margin-top: 16px;
  font-size: 1.38rem;
  line-height: 1.22;
  font-weight: 700;
}

.card-description {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.card-action {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 700;
}

.card-action::after {
  content: " ->";
}

.material-item {
  padding: 18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
}

.language-code {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-weight: 700;
}

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

.material-copy h2 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.2;
}

.download-button {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc(100vw - 70px);
  min-height: 52px;
  padding: 15px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.download-button:hover,
.download-button:focus-visible {
  background: #333333;
  outline: none;
}

.site-footer {
  padding-top: 28px;
  display: flex;
  justify-content: flex-start;
}

.footer-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

@media (min-width: 760px) {
  .page-shell {
    max-width: 980px;
    padding: 40px 24px 28px;
  }

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

  h1 {
    max-width: 760px;
    font-size: 4.6rem;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .link-card {
    min-height: 210px;
    padding: 24px;
    max-width: none;
  }

  .material-item {
    grid-template-columns: 72px 1fr auto;
    max-width: none;
  }

  .download-button {
    grid-column: auto;
    width: auto;
    max-width: none;
    min-width: 156px;
  }

  .site-footer {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
