:root {
  --color-bg: #e5e5e5;
  --color-ink: #141414;
  --color-muted: #6b6b6b;
  --color-border: #e4e2dd;
  --color-black: #0a0a0a;
  --color-accent: #4f6152;

  --font-body: "Syne Mono", -apple-system, BlinkMacSystemFont, sans-serif;

  --gap: 1.5rem;
  --max-width: 1200px;
  --content-pad: 3rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

p {
  margin: 0;
  padding-bottom: 0.5em;
}

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

.site-header {
  position: relative;
  width: 100%;
  height: 42vh;
  height: 42svh;
  min-height: 260px;
  max-height: 480px;
  background: var(--color-bg);
  overflow: hidden;
}

.site-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.9;
}

/* ----------------------------------------------------------
   Intro (description + contact)
   ---------------------------------------------------------- */

.intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--content-pad);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.intro__description p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.intro h1 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.intro__contact-group + .intro__contact-group {
  margin-top: 1.25rem;
}

.intro__contact-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.intro__contact-list {
  list-style: none;
  margin: 0;
  gap: 0.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.intro__contact-list a {
  text-decoration: none;
  color: var(--color-muted);
  border-bottom: 1px solid transparent;
}

.intro__contact-list a:hover,
.intro__contact-list a:focus-visible {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}

/* ----------------------------------------------------------
   Products
   ---------------------------------------------------------- */

.products {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--content-pad) 4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.product-card__thumb-link {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4f3f0;
}

.product-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__name {
  margin: 0.9rem 0.9rem 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
}

.product-card__specs {
  margin: 0 0.9rem 0.6rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.product-card__price {
  margin: 0 0.9rem 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.product-card__shipping {
  margin: 0 0.9rem 0.9rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.product-card__buy {
  margin: 0 0.9rem 0.9rem;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--color-ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink);
}

.product-card__buy:hover,
.product-card__buy:focus-visible {
  background: var(--color-ink);
  color: #ffffff;
}

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

.site-footer {
  background: var(--color-black);
  color: #b9b9b9;
  padding: 2.5rem 0 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer__legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.site-footer__legal p {
  margin: 0 0 0.4rem;
}

.site-footer__legal a {
  color: #b9b9b9;
  text-decoration: underline;
}

.site-footer__copyright {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 0 var(--content-pad);
  color: #7c7c7c;
}

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

@media (max-width: 720px) {
  :root {
    --content-pad: 1.25rem;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem var(--content-pad);
  }

  .products {
    padding: 2.5rem var(--content-pad) 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

    .site-header {
    height: 28vh;
    min-height: 180px;
    max-height: 260px;
  }
}
 
@media (max-width: 480px) {
  .site-header {
    height: 22vh;
    min-height: 140px;
    max-height: 200px;
  }
}

/* ----------------------------------------------------------
   Secondary pages
   ---------------------------------------------------------- */

.page-header {
  padding: 1.1rem 0;
  background: var(--color-black);
}

.page-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header__brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-header__back {
  color: #b9b9b9;
  text-decoration: none;
  font-size: 0.85rem;
}

.page-header__back:hover,
.page-header__back:focus-visible {
  color: #ffffff;
}

/* ----------------------------------------------------------
   Legal pages
   ---------------------------------------------------------- */

.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--content-pad) 4rem;
}

.legal-content__body {
  max-width: 72ch;
}

.legal-content h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.legal-content .legal-updated {
  margin: 0 0 2rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.legal-content h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-ink);
}

/* ----------------------------------------------------------
   Product template page
   ---------------------------------------------------------- */

.product-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--content-pad) 4rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}

.product-page__gallery,
.product-page__info {
  min-width: 0;
}

.product-page__gallery-main {
  display: block;
  width: 100%;
  background: #f4f3f0;
  margin-bottom: 0.75rem;
  padding: 0;
  border: none;
  cursor: pointer;
}

.product-page__gallery-main img {
  width: 100%;
  height: 100%;
}

.product-page__gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.product-page__gallery-thumb {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: #f4f3f0;
  cursor: pointer;
}

.product-page__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page__gallery-main:focus-visible,
.product-page__gallery-thumb:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.product-page__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.35);
  font-size: 0.85rem;
}

.product-page__name {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 1.4rem;
}

.product-page__specs {
  margin: 0 0 0.9rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-page__price {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.product-page__shipping {
  margin: 0 0 1.5rem;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.product-page__buy {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-ink);
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.9rem;
}

.product-page__buy:hover,
.product-page__buy:focus-visible {
  background: var(--color-ink);
  color: #ffffff;
}

.product-page__description p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ----------------------------------------------------------
   Accessibility utility
   ---------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------
   Lightbox (shared by every product page's gallery)
   ---------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img,
.lightbox__stage video {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.6rem;
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  color: var(--color-accent);
}
