@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: oklch(98.5% 0 0);
  --surface: #ffffff;
  --ink: #2f241d;
  --muted: #715f52;
  --line: oklch(86% 0.012 55);
  --accent: #b46a3c;
  --accent-dark: #7d3f24;
  --ink-inverse: #ffffff;
  --shadow: 0 4px 24px oklch(17% 0.03 40 / 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

p { text-wrap: pretty; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--ink-inverse);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 100;
}
.skip-nav:focus {
  top: 16px;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  padding: 84px 0 60px;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button.primary {
  color: var(--ink-inverse);
  background: var(--accent-dark);
}

.button.primary:hover {
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-dark);
  border: 1px solid var(--line);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--accent);
  background: oklch(97% 0.01 55);
}

.projects {
  margin: 40px 0 28px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0 16px;
  padding: 0;
}

.project-tags li {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.project-tags li:hover {
  background: oklch(96% 0.01 55);
  border-color: var(--accent);
}

.project-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.notice, .contact, .policy {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice p, .contact p, .policy p {
  color: var(--muted);
}

.notice, .contact {
  margin-top: 18px;
  padding: 28px;
}

.policy {
  max-width: 880px;
  padding: 36px;
}

.policy h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.policy h2 {
  margin-top: 30px;
}

footer {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ── Shop page ─────────────────────────────────────────────── */

.shop-header {
  padding: 60px 0 36px;
  max-width: 720px;
}

.shop-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.shop-header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  box-shadow: 0 8px 32px oklch(17% 0.03 40 / 0.14);
  transform: translateY(-2px);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--ink-inverse);
  letter-spacing: 0.03em;
}

.product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.product-card__cta.live {
  background: var(--accent-dark);
  color: var(--ink-inverse);
}

.product-card__cta.live:hover {
  background: var(--accent);
  color: var(--ink-inverse);
}

.product-card__cta.soon {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
  cursor: default;
}

/* ── Product detail page ────────────────────────────────────── */

.product-page {
  padding-bottom: 80px;
  padding-top: 0;
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 24px 0 0;
}

.product-back:hover {
  color: var(--accent-dark);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 32px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-gallery__cover {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 1 / 1;
}

.product-gallery__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
}

.product-gallery__thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 1 / 1;
  flex: 1;
  max-width: 80px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.product-gallery__thumb:hover {
  border-color: var(--accent);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.product-info__short {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.product-info__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.product-info__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  background: var(--accent-dark);
  color: var(--ink-inverse);
  transition: background 0.15s ease;
  align-self: flex-start;
}

.product-info__cta:hover {
  background: var(--accent);
  color: var(--ink-inverse);
}

.product-info__cta.soon {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: default;
}

.product-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-tags-list li {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.product-description {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 16px;
  max-width: 720px;
}

.product-description h2 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.product-description p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 65ch;
}

.product-description ul {
  color: var(--muted);
  padding-left: 20px;
  line-height: 1.8;
}

/* ── Homepage shop teaser ───────────────────────────────────── */

.shop-teaser {
  margin-top: 40px;
}

.shop-teaser h2 {
  margin-bottom: 20px;
}

.shop-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.teaser-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  display: block;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.teaser-card:hover {
  box-shadow: 0 6px 24px oklch(17% 0.03 40 / 0.12);
  transform: translateY(-2px);
}

.teaser-card img {
  width: 100%;
  /* height:auto so the width/height attributes never fix the box height
     (Firefox honors them and crops via object-fit) */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.teaser-card__label {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.shop-teaser-more {
  font-size: 0.9rem;
  color: var(--muted);
}

.shop-teaser-more a {
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header, footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 48px;
  }

  .policy {
    padding: 24px;
  }

  .shop-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-layout,
  .product-page,
  .product-gallery,
  .product-info {
    min-width: 0;
    max-width: 100%;
  }

  .product-gallery__cover,
  .product-gallery__cover img {
    max-width: 100%;
    width: 100%;
  }

  .product-tags-list,
  .product-tags-list li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .product-info__cta {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 640px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  main, .site-header, footer {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  h1, h2, p, li {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    text-wrap: pretty;
  }

  img, picture, svg {
    max-width: 100%;
    height: auto;
  }

  .shop-teaser-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    min-width: 0;
    max-width: 100%;
  }

  .product-card__image,
  .product-card__image img {
    max-width: 100%;
  }

  .product-card__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-card__cta {
    width: 100%;
    text-align: center;
  }
}

/* ── Affiliate guide pages ──────────────────────────────────── */

.guide-page {
  max-width: 820px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.guide-page h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.guide-page .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.guide-updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.guide-hero {
  margin: 32px 0 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.guide-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-intro {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.affiliate-disclosure {
  margin: 32px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.affiliate-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.guide-section {
  margin-top: 44px;
}

.guide-section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.guide-section > p,
.guide-section > ul {
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
}

.guide-section__intro {
  margin: 0 0 20px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommendation-card__art {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  height: auto;
  margin: -22px -24px 2px;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  border-radius: 19px 19px 0 0;
}

.recommendation-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.recommendation-card__for {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.recommendation-card__notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.recommendation-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--accent-dark);
  color: var(--ink-inverse);
  transition: background 0.15s ease;
  align-self: flex-start;
  margin-top: auto;
}

.recommendation-card__cta:hover {
  background: var(--accent);
  color: var(--ink-inverse);
}

.recommendation-card__pending {
  margin: auto 0 0;
  padding: 10px 20px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  align-self: flex-start;
}

.kunans-cross-sell {
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kunans-cross-sell h2 {
  font-size: 1.4rem;
}

.kunans-cross-sell > p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}

.kunans-cross-sell .shop-teaser-grid {
  margin: 24px 0 16px;
}

.guide-faq__item {
  margin-top: 24px;
}

.guide-faq__item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.guide-faq__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}

/* ── Guides index ───────────────────────────────────────────── */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}

.guide-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.guide-card:hover {
  box-shadow: 0 8px 32px oklch(17% 0.03 40 / 0.14);
  transform: translateY(-2px);
}

.guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.guide-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.guide-card__title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}

.guide-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .kunans-cross-sell {
    padding: 22px;
  }

  .recommendation-card__cta,
  .recommendation-card__pending {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
