/* ─── Site Header & Nav ──────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.97);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 24px rgba(28, 28, 28, 0.04);
}

.nav-shell {
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: clamp(122px, 10vw, 152px);
  height: auto;
}

/* Homepage filter chips */
.nav-cluster {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 22px);
  flex-wrap: wrap;
}

.filter-chip {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0.54;
  cursor: pointer;
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  opacity: 1;
  color: var(--accent-dark);
}

.filter-chip:hover {
  transform: translateY(-1px);
}

/* Post-page nav links */
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 22px);
}

.nav-links a {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.95rem, 1.08vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0.56;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
  opacity: 1;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

/* Socials */
.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-socials {
  display: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--accent-dark);
  background: rgba(201, 120, 74, 0.12);
  border-radius: 999px;
  opacity: 0.94;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease,
    background-color 180ms ease;
}

.social-link:hover {
  opacity: 1;
  background: rgba(201, 120, 74, 0.18);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
}

/* ─── Mosaic Grid ────────────────────────────────────────────────── */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
  align-items: start;
}

.intro-tile,
.tile {
  display: grid;
  gap: 14px;
}

.intro-tile {
  grid-column: span 1;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 8px;
}

.tile:focus-visible {
  outline: 2px solid rgba(201, 120, 74, 0.9);
  outline-offset: 2px;
}

.intro-block {
  display: grid;
  gap: 14px;
  align-content: start;
}

.intro-title {
  margin: 0;
  max-width: 8.4ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.15rem, 5.6vw, 6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  padding-bottom: 0.12em;
}

.intro-copy {
  margin: 0;
  max-width: 24rem;
  font-size: 0.98rem;
  line-height: 1.48;
  color: var(--muted);
}

.intro-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro-note::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.span-3,
.span-4,
.span-5,
.span-6 {
  grid-column: span 1;
}

/* ─── Cards ─────────────────────────────────────────────────────── */

.tile {
  cursor: pointer;
  transition: opacity 180ms ease, transform 220ms ease;
}

.tile[hidden] {
  display: none;
}

.content-card.is-dimmed {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(2px);
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-3px);
}

.media {
  overflow: hidden;
  background: var(--bg-soft);
}

.media img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.93) contrast(1.02);
  transition: transform 700ms ease, filter 300ms ease;
}

.tile:hover .media img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.05);
}

.meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  background: rgba(201, 120, 74, 0.13);
  color: var(--accent-dark);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-date {
  font-size: 0.8rem;
  color: rgba(28, 28, 28, 0.44);
  letter-spacing: -0.01em;
}

.price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.tile h2,
.tile h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.tile h2 {
  font-size: clamp(2rem, 2.7vw, 3rem);
}

.tile h3 {
  font-size: clamp(1.18rem, 1.3vw, 1.58rem);
}

.copy {
  margin: 0;
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.52;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.52em * 3);
}

/* ─── Linkline & Load More ───────────────────────────────────────── */

.linkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.linkline::after {
  content: "→";
}

.linkline:hover {
  color: var(--accent-dark);
  transform: translateX(2px);
}

.affiliate-disclosure {
  margin: 2px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(28, 28, 28, 0.56);
}

.actions {
  display: flex;
  justify-content: center;
  padding: 34px 0 78px;
}

.load-more {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 14px 18px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.load-more:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ─── Newsletter ─────────────────────────────────────────────────── */

.newsletter {
  padding: 0 0 56px;
}

.newsletter-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 54px;
  align-items: start;
  padding: 34px 36px;
  background: linear-gradient(
    135deg,
    rgba(201, 120, 74, 0.08),
    rgba(236, 228, 216, 0.86) 44%,
    rgba(245, 240, 232, 0.96)
  );
  overflow: hidden;
}

.newsletter-copy {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

/* Tag in grid context — prevent full-width stretch */
.newsletter-copy .tag {
  justify-self: start;
}

.newsletter-title {
  margin: 0;
  max-width: 9ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.newsletter-sub {
  margin: 0;
  max-width: 35rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.newsletter-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.newsletter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter-pill::before {
  content: "/";
  margin-right: 10px;
  color: rgba(168, 95, 54, 0.45);
}

.newsletter-pill:first-child::before {
  content: "";
  margin-right: 0;
}

.newsletter-form {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 30px 32px 28px;
  background: rgba(236, 228, 216, 0.5);
}

.newsletter-form label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.newsletter-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.newsletter-form input {
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(245, 240, 232, 0.95);
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input[aria-invalid="true"] {
  border-color: rgba(168, 95, 54, 0.6);
}

.newsletter-form button {
  appearance: none;
  border: 0;
  background: var(--accent);
  min-height: 56px;
  padding: 0 22px;
  color: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  justify-self: start;
  transition: background-color 180ms ease, transform 180ms ease;
}

.newsletter-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.newsletter-form small {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ─── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  padding: 44px 0 34px;
  background: rgba(236, 228, 216, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 220px) minmax(180px, 220px) minmax(180px, 220px);
  gap: 42px;
  align-items: start;
}

.footer-brand img {
  width: 120px;
}

.footer-left {
  display: grid;
  gap: 18px;
}

.footer-text {
  max-width: 26rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.56;
  color: var(--muted);
}

.footer-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.footer-nav {
  display: grid;
  gap: 12px;
  justify-content: flex-start;
  font-size: 0.92rem;
}

.footer-nav a {
  transition: color 180ms ease, opacity 180ms ease;
}

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

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-mini {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.42);
}

.footer-bottom {
  display: grid;
  gap: 10px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-bottom-copy {
  max-width: 62rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(28, 28, 28, 0.54);
}

.footer-bottom .footer-meta {
  font-size: 0.86rem;
}

/* ─── Shared Responsive ──────────────────────────────────────────── */

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto 1fr;
  }

  .site-header .socials {
    display: none;
  }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-tile {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .newsletter-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .newsletter-form button {
    justify-self: stretch;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
  }

  .nav-toggle {
    display: inline-block;
  }

  /* Homepage nav drawer */
  .nav-cluster {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(245, 240, 232, 0.98);
    box-shadow: 0 14px 30px rgba(28, 28, 28, 0.08);
  }

  .nav-cluster.is-open {
    display: flex;
  }

  /* Post-page nav drawer */
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(245, 240, 232, 0.98);
    box-shadow: 0 14px 30px rgba(28, 28, 28, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-socials {
    display: flex;
    margin-top: 4px;
    gap: 10px;
  }

  .filter-chip {
    font-size: 1rem;
    line-height: 1.1;
  }

  .mosaic {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .actions {
    padding: 30px 0 56px;
  }

  .intro-tile {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 4px;
  }

  .intro-title {
    max-width: 7.4ch;
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .intro-copy {
    max-width: none;
    font-size: 0.95rem;
  }

  .newsletter-form-row {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding-bottom: 48px;
  }

  .newsletter-shell {
    gap: 26px;
    padding: 26px 22px;
  }

  .newsletter-copy {
    gap: 16px;
    padding-top: 0;
  }

  .newsletter-title {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .newsletter-sub,
  .footer-text {
    font-size: 0.95rem;
  }

  .newsletter-form {
    padding: 22px 18px 18px;
  }

  .newsletter-form button {
    width: 100%;
    justify-self: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 26px;
  }

  .footer-left {
    justify-items: center;
  }

  .footer-nav {
    justify-items: center;
  }

  .footer-bottom {
    justify-items: center;
    text-align: center;
    padding-top: 22px;
    margin-top: 18px;
  }
}
