/* Structural styles only: layout and resets. Visual identity lives in theme.css. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

a { color: var(--color-accent); }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--color-text-muted); }

.button {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  text-decoration: none;
  font-weight: 600;
}
.button--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.section { padding-block: var(--space-5); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* Download pages (served by functions/d, not Astro) */
.download-page__header,
.download-page__footer { border-color: var(--color-border); border-style: solid; border-width: 0; }
.download-page__header { border-bottom-width: 1px; padding-block: var(--space-3); }
.download-page__footer { border-top-width: 1px; color: var(--color-text-muted); font-size: var(--text-sm); }
.download-page__brand { font-weight: 700; font-size: var(--text-lg); color: var(--color-text); text-decoration: none; }
.download { max-width: 70ch; }
.download__details { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); }
.download__details dt { font-weight: 600; }
.download__details dd { margin: 0; min-width: 0; }
.download__hash { font-family: var(--font-mono); font-size: var(--text-sm); overflow-wrap: anywhere; }
button.button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
