/**
 * Base — page canvas & section rhythm from confirmed mockup
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--page);
}

.main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1280px) {
  .container { padding-inline: var(--gutter-d); }
}

.section {
  padding-block: 32px;
}

.section--roomy {
  padding-block: 40px;
}

.section--banners {
  padding-block: 12px 32px;
}

@media (min-width: 1280px) {
  .section { padding-block: 56px; }
  .section--roomy { padding-block: 72px; }
  .section--banners { padding-block: 8px 56px; }
  body { font-size: var(--fs-16); }
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sec-head__title {
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sec-head__link {
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .sec-head { margin-bottom: 32px; }
  .sec-head__title { font-size: var(--fs-36, 2.25rem); }
  .sec-head__link { font-size: var(--fs-15); }
}
