/* ==========================================================================
   Ivanhoe Broadcast News, Inc. — Stylesheet
   ========================================================================== */

:root {
  --color-red: #b93434;
  --color-red-dark: #9a2a2a;
  --color-dark: #161616;
  --color-page-bg: #f3f3f3;
  --color-white: #ffffff;
  --color-text: #161616;

  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --max-width: 800px;
  --gutter: 24px;
}

/* Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
}

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

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: 36px;
}

p {
  margin: 0 0 1em;
}

/* Page container
   -------------------------------------------------------------------------- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
}

main {
  padding: 0 var(--gutter);
}

/* Header / logo
   -------------------------------------------------------------------------- */

.site-header {
  padding: 56px var(--gutter) 40px;
  text-align: center;
}

.logo img {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

/* Brand image grid
   -------------------------------------------------------------------------- */

.brands {
  padding: 8px 0 40px;
}

.brands__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  /* Each column is sized to its image's aspect ratio (140x115, 623x294, 510x328)
     so all three render at the same height. Smart Woman gets a ~7% bump because
     its file has white padding around the artwork. */
  grid-template-columns: 1.217fr 2.27fr 1.555fr;
  gap: 24px;
  align-items: center;
  max-width: 1000px;
}

.brands__grid li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brands__grid img {
  width: 100%;
  height: auto;
}

/* Message + call to action
   -------------------------------------------------------------------------- */

.message {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 0 56px;
  text-align: center;
}

.message__cta {
  margin: 40px 0 0;
}

.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-white);
  background: var(--color-red);
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.button:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 3px;
}

/* Team
   -------------------------------------------------------------------------- */

.team {
  padding: 16px 0 64px;
  text-align: center;
}

.team h2 {
  margin-bottom: 24px;
}

.team img {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 28px var(--gutter);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

/* Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .brands__grid {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }

  .site-header {
    padding: 40px var(--gutter) 28px;
  }

  .brands__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: none;
  }

  /* Stacked: every image gets the same height, width follows. */
  .brands__grid img {
    width: auto;
    max-width: 100%;
    height: 100px;
  }

  .message {
    padding-bottom: 40px;
  }

  .button {
    display: block;
    font-size: 19px;
    padding: 14px 20px;
  }

  .team {
    padding-bottom: 48px;
  }

  .site-footer {
    font-size: 13px;
    padding: 22px var(--gutter);
  }
}
