/* Acoustic Aisle site styles. Fonts are self-hosted (SIL OFL 1.1). No third-party requests. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Italic-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Map the brand palette (css/palette.css) to layout tokens.
   Fill-only accents are never used for small text or links. */
:root {
  --paper: var(--bg);
  --ink: var(--text);
  --muted: var(--text-secondary);
  --line: color-mix(in srgb, var(--text) 18%, var(--bg));
  --accent: var(--text);
  --accent-hover: var(--text-secondary);
  --max: 40rem;
  --wide: 52rem;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  background: var(--ink);
  color: var(--on-dark-text);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  flex: 0 1 auto;
}

.logo:hover,
.logo:focus-visible {
  color: var(--ink);
}

.logo img {
  display: block;
  height: 3.25rem;
  width: auto;
  min-width: 140px;
  max-width: min(22rem, 70vw);
  object-fit: contain;
  object-position: left center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.15rem;
  font-size: 0.9375rem;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

main {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 4rem;
}

main.wide {
  width: min(100% - 2rem, var(--wide));
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600; letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

p, li {
  overflow-wrap: break-word;
}

.dek {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.disclosure {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  margin-top: 1rem;
}

.card h2 {
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.card .meta {
  margin-bottom: 0.35rem;
}

.hero {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ico {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-media {
  margin: 1.25rem 0 1.5rem;
}

.hero-media img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.6rem 1rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
}

.trust .ico {
  color: var(--accent);
}

.topics {
  margin: 0 0 2rem;
}

.topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.6rem;
}

.topics li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.9rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.topics .ico {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--accent);
  stroke-width: 1.5;
}

.topics-title {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  background: var(--bg);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-disclosure {
  margin: 0;
  max-width: 48rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.footer-row p {
  margin: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 0.9rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.about-mark {
  width: min(8rem, 40vw);
  height: auto;
  margin: 0 0 1.25rem;
}

@media (max-width: 640px) {
  nav a {
    margin-left: 0.85rem;
  }

  .site-header .wrap {
    padding: 0.75rem 0;
  }

  .logo img {
    height: 2.75rem;
    min-width: 140px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip,
  .hero-media,
  .topics {
    display: none;
  }

  body,
  main {
    background: #fff;
    color: #000;
    width: auto;
    margin: 0;
  }

  a {
    color: inherit;
  }
}
