:root {
  --ink: #222;
  --muted: #6a6a6a;
  --paper: #fff;
  --content-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background: #4c463f url("assets/images/header.jpg") center center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 35%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: absolute;
  right: 1.5rem;
  bottom: 3.3rem;
  left: 1.5rem;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 48px;
  gap: 2rem;
  align-items: center;
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
}

.brand-logo {
  display: block;
  width: 80px;
  height: 80px;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-weight: 800;
}

.brand-copy p {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.down-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
}

.down-arrow:hover,
.down-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.content-section {
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
}

.products {
  min-height: 470px;
}

.section-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 6rem;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 800;
}

.product-list {
  display: grid;
  gap: 1.4rem;
}

.product {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  text-decoration: none;
}

.product:hover span:last-child,
.product:focus-visible span:last-child {
  text-decoration: underline;
}

.product-logo {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
}

.product-logo img {
  display: block;
  width: auto;
  max-width: 250px;
  max-height: 84px;
}

.photo-panel {
  min-height: 66vh;
  background-color: #2e2e2e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.coffee {
  background-image: linear-gradient(rgba(0, 0, 0, 0.17), rgba(0, 0, 0, 0.17)), url("assets/images/coffee.jpg");
}

.espresso {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("assets/images/espresso.jpg");
}

.prose p,
address p {
  margin: 0 0 1.4rem;
}

.prose p:last-child,
address p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

address a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

footer {
  border-top: 1px solid #e7e7e7;
  color: #333;
}

.footer-inner {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  z-index: 10;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: rgba(20, 20, 20, 0.88);
  text-decoration: none;
  font-size: 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #000;
}

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .photo-panel {
    background-attachment: fixed;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 88vh;
  }

  .hero-content {
    bottom: 2.25rem;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-copy h1 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .down-arrow {
    display: none;
  }

  .section-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .product-logo {
    justify-content: flex-start;
  }

  .photo-panel {
    min-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
