/* =========================================================================
   Midnight Buffalo LLC
   Palette derived from the Midnight Buffalo logo: white paper and the
   night-sky navy of the lettering. Centred, single-column layout.
   ========================================================================= */

:root {
  --bg:      #FFFFFF;
  --ink:     #12304C;  /* logo night-sky navy — headings   13.5:1 on white */
  --body:    #2E3D4A;  /* body copy                        11.2:1 on white */
  --muted:   #5A6672;  /* labels, footer                    5.9:1 on white */
  --accent:  #205880;  /* logo mid blue — links             7.6:1 on white */
  --rule:    #E2E5E9;
  --underline: rgba(32, 88, 128, 0.35);

  /* A transitional serif for headings, a neutral sans for copy. Both are
     system stacks: nothing is downloaded and nothing can go stale. */
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --wrap:    46rem;
  --gutter:  clamp(1.5rem, 6vw, 2.5rem);

  color-scheme: light;
}

/* --- reset ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

h1, h2, h3, p, address, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(32, 88, 128, 0.15); }

/* --- shell ------------------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}

/* --- header ------------------------------------------------------------ */

.site-header {
  padding-block: clamp(2.5rem, 7vw, 4rem) clamp(1.75rem, 4.5vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}

.site-header__logo {
  width: clamp(15rem, 58vw, 26rem);
  margin-inline: auto;
}

/* --- hero -------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 9vw, 5rem) clamp(3.5rem, 10vw, 5.5rem);
}

.hero__statement {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 0.9rem + 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 20ch;
  margin-inline: auto;
}

.hero__lead {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
  max-width: 34rem;
  text-wrap: balance;
}

/* --- section label ----------------------------------------------------- */

.section-label {
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

/* --- brands ------------------------------------------------------------ */

.brands {
  padding-bottom: clamp(3rem, 8vw, 4.5rem);
}

/* .brand and .brand__name carry no styles: they are structural hooks that
   keep the duplicate-this-block workflow readable. */

/* One brand fills the row; a second and beyond fall into columns on wider
   viewports. Adding a brand needs no CSS change. */
.brands__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(2.75rem, 7vw, 3.75rem);
  margin-top: clamp(2rem, 5vw, 2.75rem);
}

.brand__logo {
  width: clamp(7rem, 19vw, 9.25rem);
  margin-inline: auto;
}

.brand__description {
  margin-top: clamp(1rem, 2.5vw, 1.25rem);
  font-size: 1.0625rem;
}

.brand__link-wrap {
  margin-top: 0.625rem;
}

.hero__actions {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

/* --- links ------------------------------------------------------------- */

.brand__link,
.text-link,
.site-footer a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--ink);
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 0.25em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.brand__link:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --- footer ------------------------------------------------------------ */

.site-footer {
  margin-top: auto;
  padding-block: clamp(3rem, 8vw, 4.5rem) clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer__contact {
  margin-top: 0.5rem;
}

/* --- accessibility ----------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- print ------------------------------------------------------------- */

@media print {
  .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .brand__link::after { content: " (gorastore.com)"; }
}
