﻿:root {
  --spacing-100: 1rem;
  --spacing-200: 2rem;
  --spacing-300: 3rem;
  --spacing-400: 5rem;
  --spacing-500: 6rem;
  --spacing-700: 7rem;
  --spacing-800: 8rem;
  --spacing-900: 9rem;
  --site-max-width: none;
  --spacing-v: var(--spacing-400);
  --spacing-h: var(--spacing-100);
  --text-ff: "Hind", serif;
  --heading-ff: var(--text-ff);
  --site-text-clr: #333;
}

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin and paddings
*/
* {
  margin: 0;
}

figure {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
html, body {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  6. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

html {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.313rem);
}

body {
  color: var(--site-text-clr);
  font-family: var(--text-ff);
}

h1, h2 {
  color: #333;
  font-family: var(--heading-ff);
  margin-bottom: 0.8em;
}

p {
  margin-bottom: 0.8em;
}

body {
  background-color: #fff;
}

.page__content {
  background-color: #fff;
}

.page__wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100dvh;
}
.page__wrapper > * {
  width: 100%;
}

.page__header,
.page__content,
.page__footer {
  max-width: var(--site-max-width);
  padding: 0 var(--spacing-h);
  margin: 0 auto;
}

.page__header {
  background-color: #eb6f33;
  padding-block: var(--spacing-h);
  border-bottom: 3px solid #e7e2e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page__header h1 {
  margin: 0;
  line-height: 1;
  color: #fff;
}

.page__content {
  padding-block: var(--spacing-200);
}

.page__footer {
  background-color: #e7e2e1;
  padding-block: var(--spacing-h);
  margin-top: auto;
  border-top: 3px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
}
.page__footer .branding {
  width: 120px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
}

.product__by {
  font-size: 0.6rem;
  margin: 0;
}

.channel__list {
  --channel-size: 280px;
  --channel-padding: 1rem;
  --body-ff: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--channel-size), 1fr));
  gap: var(--spacing-h);
}

.channel {
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: scale 150ms linear;
  border-radius: 10px;
}
.channel:hover {
  scale: 1.02;
}
.channel p {
  margin-bottom: 0;
}
.channel p:last-child {
  margin-bottom: 0;
}

.channel__image {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.channel__image img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: contain;
}

.channel__body {
  background-color: #e7e2e1;
  padding: var(--channel-padding);
  font-size: var(--body-ff);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  flex: 1;
}

.channel__heading {
  font-size: 1.2rem;
}

.channel__link {
  text-decoration: none;
  color: #eb6f33;
  margin-top: auto;
  text-align: right;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}
.channel__link:after {
  content: "";
  position: absolute;
  inset: 0;
}
