/* Atlas Smaków — culinary editorial comparison */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --charcoal: #141814;
  --charcoal-deep: #0c0e0c;
  --copper: #c4a35a;
  --copper-soft: rgba(196, 163, 90, 0.35);
  --bone: #e8e2d6;
  --bone-muted: #c5beaf;
  --olive: #3d5c45;
  --olive-deep: #2a3f30;
  --ink: #e8e2d6;
  --muted: #a8a295;
  --line: rgba(196, 163, 90, 0.22);
  --panel: rgba(28, 34, 28, 0.92);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --cta-url: "https://winahoraly.com/l/6a9ad5ce731182f276020712?sub_id={sub_id_1}&click_id={click_id}";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--charcoal);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(61, 92, 69, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 60%, rgba(196, 163, 90, 0.06), transparent 50%);
  padding-bottom: 5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper);
}

h1, h2, h3, .brand-mark, .score-num, .note-rank {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.1rem 0;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--bone);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-mark img {
  width: 36px;
  height: 36px;
}

.brand-mark span {
  color: var(--copper);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  background: var(--copper);
  padding: 0.55rem 1.1rem;
  border: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.nav-cta:hover {
  background: #d4b56e;
  transform: translateY(-1px);
}

/* —— Hero (full-bleed, budget only) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--charcoal-deep) center / cover no-repeat;
  animation: kenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 14, 12, 0.45) 0%, rgba(20, 24, 20, 0.55) 40%, rgba(20, 24, 20, 0.94) 100%),
    linear-gradient(90deg, rgba(20, 24, 20, 0.75) 0%, transparent 55%);
  animation: veilFade 1.4s ease-out both;
}

.hero-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
  animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
  font-weight: 800;
  color: var(--bone);
  margin: 0 0 1.15rem;
  max-width: 16ch;
}

.hero-support {
  font-size: 1.08rem;
  color: var(--bone-muted);
  max-width: 38ch;
  margin: 0 0 2rem;
  font-style: italic;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.95rem 1.65rem;
  background: var(--copper);
  color: var(--charcoal);
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  background: #d4b56e;
  box-shadow: 0 8px 28px rgba(196, 163, 90, 0.28);
}

.btn-ghost {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-soft);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s, color 0.25s;
}

.btn-ghost:hover {
  color: var(--copper);
  border-color: var(--copper);
}

@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

@keyframes veilFade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Disclosure —— */
.disclosure {
  border-left: 3px solid var(--copper);
  background: var(--panel);
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.disclosure strong {
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 600;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

/* —— Section titles —— */
.section-head {
  margin: 3.5rem 0 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0 0 0.65rem;
  color: var(--bone);
  display: inline-block;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin-top: 0.55rem;
  background: var(--copper);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-head h2.is-drawn::after {
  width: 100%;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.98rem;
}

/* —— Tasting notes list —— */
.tasting-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.tasting-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.note-rank {
  font-size: 2.4rem;
  color: var(--copper);
  line-height: 1;
  min-width: 2.2ch;
}

.note-body {
  display: grid;
  gap: 0.85rem;
}

.note-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.note-logo {
  width: min(180px, 42vw);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.05);
}

.note-title-block h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--bone);
}

.note-bonus {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: 0.02em;
  margin: 0;
}

.score-pill {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--bone);
  padding: 0.35rem 0.7rem;
  line-height: 1;
}

.score-pill small {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.55;
  margin-left: 0.1rem;
}

.note-facets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.25rem 0;
}

.facet {
  border-top: 1px solid var(--olive);
  padding-top: 0.55rem;
}

.facet dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 0.3rem;
}

.facet dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--bone-muted);
  font-style: italic;
  line-height: 1.5;
}

.note-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
  opacity: 0.85;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.8rem;
}

/* —— Matrix —— */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin: 0.5rem 0 2rem;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.88rem;
}

.matrix th,
.matrix td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: transparent;
  vertical-align: middle;
}

.matrix thead th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(61, 92, 69, 0.15);
  border-bottom-color: var(--copper-soft);
}

.matrix tbody tr:hover td {
  background: rgba(61, 92, 69, 0.08);
}

.matrix-logo {
  width: 88px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.matrix .score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--copper);
}

/* —— Editorial sections —— */
.editorial {
  margin: 3rem 0;
  display: grid;
  gap: 2.5rem;
}

.editorial-block {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  outline: 1px solid var(--line);
  outline-offset: 0;
  background:
    linear-gradient(135deg, rgba(61, 92, 69, 0.12), transparent 40%),
    var(--panel);
}

.editorial-block::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.75rem;
  width: 3.5rem;
  height: 3px;
  background: var(--copper);
}

.editorial-block.with-photo {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.editorial-block.with-photo .ed-copy {
  padding: 1.75rem;
}

.editorial-block.with-photo .ed-photo {
  min-height: 280px;
  height: 100%;
  background: center / cover no-repeat;
}

.editorial-block h2 {
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
  color: var(--bone);
}

.editorial-block h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin-top: 0.5rem;
  background: var(--copper);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-block h2.is-drawn::after {
  width: 4.5rem;
}

.editorial-block p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.editorial-block p:last-child {
  margin-bottom: 0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover {
  color: var(--copper);
  border-color: var(--copper);
}

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bone);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--copper);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-age {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--copper);
  margin: 0 0 0.75rem;
}

.site-footer p {
  margin: 0 0 0.65rem;
  max-width: 62ch;
}

/* —— Sticky CTA —— */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(12, 14, 12, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bone-muted);
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .editorial-block.with-photo {
    grid-template-columns: 1fr;
  }

  .editorial-block.with-photo .ed-photo {
    min-height: 200px;
    order: -1;
  }

  .note-facets {
    grid-template-columns: 1fr;
  }

  .score-pill {
    margin-left: 0;
  }

  .tasting-note {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .note-rank {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding: 6rem 0 3.25rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .note-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-cta p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }

  .hero-veil,
  .hero-inner {
    animation: none;
  }

  .section-head h2::after,
  .editorial-block h2::after {
    width: 100%;
  }

  .editorial-block h2::after {
    width: 4.5rem;
  }

  .sticky-cta {
    transition: none;
  }
}
