/* The Brands Guide — showcase theme */

:root {
  --ink: #121411;
  --ink-2: #1E211C;
  --ink-3: #2A2E27;
  --line-dark: #3A3F35;
  --on-dark: #F2F3EC;
  --on-dark-2: #D6D9CC;
  --on-dark-muted: #A9AE9F;
  --paper: #F2F3EC;
  --card: #FFFFFF;
  --muted: #4B5044;
  --line: #D9DCCF;
  --accent: #C8F03C;
  --accent-hover: #D8F76A;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; padding-bottom: 96px; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--accent); color: var(--ink);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible,
.hero :focus-visible,
.page-hero:not(.page-hero--tinted) :focus-visible,
.spotlight__text :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }

/* ---------- buttons, chips, links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: var(--accent); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }
.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--on-dark-2); text-decoration: none; font-size: 15px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--light { border-color: var(--line); color: var(--ink); background: var(--card); }
.chip--light:hover { border-color: var(--ink); color: var(--ink); }

.text-link { font-weight: 600; font-size: 15px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

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

.site-header { background: var(--ink); color: var(--on-dark); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 20px/1 var(--display); letter-spacing: -0.01em;
  color: var(--on-dark); text-decoration: none;
}
.logo__mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a {
  color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding-block: 10px;
}
.site-nav > a:hover { color: var(--on-dark); }
.site-nav > a[aria-current="page"] { color: var(--accent); }

.header-search input {
  width: 210px; height: 44px; padding: 0 18px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: var(--ink-2); color: var(--on-dark);
  font: 15px var(--body);
}
.header-search input::placeholder { color: var(--on-dark-muted); }
.header-search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.nav-toggle {
  display: none; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: transparent; color: var(--on-dark); font: 600 15px var(--body); cursor: pointer;
}

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .site-nav {
    width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 20px;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-top: 1px solid var(--line-dark); font-size: 17px; }
  .header-search { padding-top: 12px; }
  .header-search input { width: 100%; }
}

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

.hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 96px; }
.hero__title {
  margin: 0; font: 600 clamp(40px, 6.4vw, 76px)/1.04 var(--display);
  letter-spacing: -0.025em;
}
.hero__lede { margin: 24px 0 36px; max-width: 34em; font-size: 19px; color: var(--on-dark-muted); }

.hero-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 780px; min-height: 64px; padding: 8px 8px 8px 22px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--on-dark-muted);
}
.hero-search:focus-within { border-color: var(--accent); }
.hero-search svg { flex-shrink: 0; }
.hero-search input {
  flex: 1; min-width: 0; height: 46px; border: 0; background: transparent;
  color: var(--on-dark); font: 17px var(--body);
}
.hero-search input::placeholder { color: var(--on-dark-muted); }
.hero-search input:focus-visible { outline: none; }
.hero-search--compact { margin-top: 24px; }
.hero .chip-row { margin-top: 28px; }

@media (max-width: 560px) {
  .hero { padding: 32px 0 64px; }
  .hero-search { padding-left: 16px; min-height: 56px; }
  .hero-search .btn { padding: 0 18px; min-height: 44px; }
}

/* ---------- sections ---------- */

.section { padding-top: 80px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; font: 600 clamp(24px, 3vw, 32px)/1.2 var(--display); letter-spacing: -0.01em; }
@media (max-width: 560px) { .section { padding-top: 56px; } }

/* ---------- category bento ---------- */

.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px; grid-auto-flow: dense; gap: 16px;
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--tile, #E6E2D6); color: var(--ink); text-decoration: none;
}
.tile--xl { grid-column: span 2; grid-row: span 2; padding: 32px; }
.tile--tall { grid-row: span 2; padding: 28px; }
.tile__count { font-size: 14px; color: #33372F; }
.tile--empty .tile__count { color: var(--muted); }
.tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tile__name { font: 600 22px/1.15 var(--display); letter-spacing: -0.01em; }
.tile--tall .tile__name { font-size: 28px; }
.tile--xl .tile__name { font-size: clamp(32px, 4vw, 48px); }
.tile--xl .tile__count { font-size: 15px; }
.tile:hover .tile__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tile__arrow {
  width: 56px; height: 56px; border-radius: 999px; flex-shrink: 0;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
}
@media (max-width: 520px) {
  .bento { gap: 12px; grid-auto-rows: 132px; }
  .tile { padding: 18px; border-radius: var(--r-md); }
  .tile__name { font-size: 17px; }
  .tile--tall .tile__name { font-size: 20px; }
  .tile__count { font-size: 13px; }
  .tile__arrow { width: 44px; height: 44px; }
}

/* ---------- brand spotlight ---------- */

.spotlight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--r-xl); overflow: hidden; background: var(--card);
}
.spotlight__text {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.spotlight__kicker { margin: 0; font-size: 15px; font-weight: 500; color: var(--on-dark-muted); }
.spotlight__name {
  margin: 0; font: 700 clamp(48px, 7vw, 96px)/0.95 var(--display);
  letter-spacing: -0.03em; color: var(--accent);
}
.spotlight__summary { margin: 0; font-size: 18px; color: var(--on-dark-2); max-width: 30em; }
.spotlight__pick { margin: 0; font-size: 15px; color: var(--on-dark-muted); }
.spotlight__pick a { color: var(--on-dark); text-underline-offset: 3px; }
.spotlight .btn-row { margin-top: 8px; }
.spotlight__media {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 48px); background: #FFFFFF;
}
.spotlight__media img { width: 100%; max-width: 520px; height: auto; }

@media (max-width: 820px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { order: -1; }
  .spotlight__media img { max-width: 380px; }
}

/* ---------- product & brand cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--r-md); overflow: hidden;
}
.product-card__media {
  display: block; aspect-ratio: 1 / 1; padding: 20px; background: #FFFFFF;
  border-bottom: 1px solid #ECEEE6;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.product-card__brand { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; align-self: flex-start; }
.product-card__brand:hover { text-decoration: underline; }
.product-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }
.product-card__cta { margin-top: auto; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.product-card__title + .product-card__cta { margin-top: 14px; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px;
  background: var(--card); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
}
.brand-card .monogram { margin-bottom: 10px; }
.brand-card__name { font-size: 18px; font-weight: 600; }
.brand-card__meta { font-size: 14px; color: var(--muted); }
.brand-card:hover .brand-card__name { text-decoration: underline; }

.monogram {
  width: 56px; height: 56px; border-radius: 999px; flex-shrink: 0;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font: 700 20px/1 var(--display);
}
.monogram--xl { width: 128px; height: 128px; font-size: 52px; background: var(--accent); color: var(--ink); }

/* ---------- inner page heroes ---------- */

.page-hero { background: var(--ink); color: var(--on-dark); padding: 28px 0 64px; }
.page-hero h1 {
  margin: 20px 0 0; font: 600 clamp(34px, 5vw, 60px)/1.06 var(--display); letter-spacing: -0.02em;
}
.page-hero__lede { margin: 16px 0 0; max-width: 38em; font-size: 18px; color: var(--on-dark-muted); }
.page-hero__meta { margin: 12px 0 0; font-size: 15px; font-weight: 600; }

.page-hero--tinted { background: var(--tile); color: var(--ink); }
.page-hero--tinted .page-hero__lede { color: #33372F; }
.page-hero--tinted .breadcrumbs { color: var(--muted); }

.breadcrumbs { font-size: 14px; color: var(--on-dark-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: inherit; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: inherit; opacity: .85; }

.brand-hero { display: flex; align-items: center; gap: 40px; margin-top: 12px; }
.brand-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.brand-hero__text h1 { margin-top: 0; }
.brand-hero__text .page-hero__lede { margin-top: 0; }
@media (max-width: 680px) {
  .brand-hero { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 24px; }
  .monogram--xl { width: 88px; height: 88px; font-size: 36px; }
}

/* ---------- product page ---------- */

.product-top { padding-top: 28px; }
.product-top .breadcrumbs { color: var(--muted); }
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 24px;
}
.product-media {
  background: #FFFFFF; border-radius: var(--r-xl); padding: clamp(20px, 4vw, 48px);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.product-info__brand { align-self: flex-start; font-weight: 600; font-size: 16px; text-underline-offset: 4px; }
.product-info h1 { margin: 0; font: 600 clamp(26px, 3.2vw, 40px)/1.15 var(--display); letter-spacing: -0.015em; }
.product-info__summary { margin: 0; font-size: 18px; color: #33372F; }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.specs { margin: 8px 0 0; border-top: 1px solid var(--line); }
.specs div {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.details__block { background: var(--card); border-radius: var(--r-md); padding: 28px; }
.details__block h2 { margin: 0 0 14px; font: 600 20px/1.25 var(--display); }
.details__block ul { margin: 0; padding-left: 20px; }
.details__block li + li { margin-top: 10px; }

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-media { max-width: 560px; }
  .details { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .btn--lg { width: 100%; }
}

/* ---------- text pages ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin: 40px 0 12px; font: 600 24px/1.25 var(--display); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose a { text-underline-offset: 3px; }

/* ---------- empty state ---------- */

.empty {
  max-width: 720px; background: var(--card); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.empty h2 { margin: 0; font: 600 26px/1.2 var(--display); }
.empty p { margin: 0; color: #33372F; }

/* ---------- A–Z ---------- */

.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.az a, .az span {
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--display);
}
.az a { background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.az a:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.az span { color: #9A9E91; }
.az-group { padding-top: 32px; scroll-margin-top: 16px; }
.az-group__letter { margin: 0 0 16px; font: 700 44px/1 var(--display); }

/* ---------- search ---------- */

.search-status { margin: 0 0 20px; color: var(--muted); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.result {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--card); border-radius: 16px; text-decoration: none; color: var(--ink);
}
.result:hover .result__name { text-decoration: underline; }
.result__type {
  flex-shrink: 0; min-width: 84px; text-align: center;
  padding: 4px 10px; border-radius: 999px; background: var(--paper);
  font-size: 13px; font-weight: 600;
}
.result__name { display: block; font-weight: 600; }
.result__meta { display: block; font-size: 14px; color: var(--muted); }

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

.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; padding: 48px 0; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer__about { max-width: 64ch; }
.site-footer__about p { margin: 10px 0 0; }
.site-footer__about .logo { font-size: 17px; }
.site-footer__about .site-footer__disclosure { margin-top: 18px; color: var(--on-dark-2); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.site-footer__nav a { color: var(--on-dark-2); text-underline-offset: 3px; padding-block: 8px; }
.site-footer__nav a:hover { color: var(--on-dark); }
