@font-face {
  font-family: "Kyperek Lobster";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brand/Lobster-regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #211915;
  --muted: #67564c;
  --paper: #fffaf3;
  --cream: #f3eadb;
  --line: rgba(33, 25, 21, 0.16);
  --vine: #35523d;
  --vine-dark: #17251d;
  --wine: #842f42;
  --rose: #c98278;
  --gold: #c79a52;
  --shadow: 0 22px 70px rgba(29, 20, 14, 0.18);
  --hero-progress: 0;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(33, 25, 21, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(232, 195, 125, 0.82);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(13, 23, 17, calc(0.62 + var(--hero-progress) * 0.28)), rgba(13, 23, 17, 0));
  transition: padding 220ms ease, background 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(13, 23, 17, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-family: "Kyperek Lobster", Georgia, serif;
  font-size: 22px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: auto;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255, 250, 243, 0.94);
  transition: width 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled .brand img {
  width: 46px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: #e8c37d;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(20px, 5vw, 72px) 58px;
  color: #fff;
}

.hero-media,
.hero-overlay,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.035 - var(--hero-progress) * 0.018)) translateY(calc(var(--hero-progress) * 22px));
  transition: transform 120ms linear;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 250, 243, 0.2), rgba(255, 250, 243, 0) 28%),
    linear-gradient(90deg, rgba(12, 23, 16, 0.9), rgba(12, 23, 16, 0.5) 52%, rgba(12, 23, 16, 0.12)),
    linear-gradient(0deg, rgba(12, 23, 16, 0.86), rgba(12, 23, 16, 0.02) 58%);
}

.hero-grain {
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255, 250, 243, 0.18), rgba(255, 250, 243, 0) 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(780px, 100%);
  animation: heroContentIn 900ms ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  color: #e8c37d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  font-size: clamp(62px, 8.6vw, 128px);
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

h2 {
  font-size: clamp(34px, 4.9vw, 66px);
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: min(720px, 100%);
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-meta div {
  min-width: 148px;
  padding: 16px clamp(18px, 3vw, 30px) 16px 0;
}

.hero-meta dt {
  color: #e8c37d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-meta dd {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  text-align: left;
}

.hero-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.button.primary {
  color: var(--ink);
  background: #e8c37d;
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.section,
.band,
.contact-band {
  padding: clamp(70px, 9vw, 124px) 0;
  scroll-margin-top: 0;
}

.instagram-section {
  padding-bottom: clamp(48px, 5vw, 78px);
}

.js [data-reveal] {
  transform: translateY(22px);
  transition: transform 700ms ease;
}

.js [data-reveal].is-visible {
  transform: translateY(0);
}

.section-inner {
  width: min(1190px, calc(100% - 40px));
  margin: 0 auto;
}

.band {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.06), rgba(255, 250, 243, 0)),
    var(--vine-dark);
}

.intro-grid,
.profile-grid,
.map-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.intro-grid p,
.section-heading p,
.profile-copy p,
.map-grid p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.band .intro-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading h2,
.profile-copy h2,
.map-grid h2,
.contact-grid h2 {
  max-width: 820px;
}

.section-heading p {
  margin-top: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font: 850 14px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button.is-active {
  color: #fff;
  border-color: var(--vine);
  background: var(--vine);
}

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

.wine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--vine);
  background: transparent;
  transition: opacity 160ms ease, transform 160ms ease;
}

.wine-grid.is-switching {
  opacity: 0.72;
  transform: translateY(4px);
}

.wine-card {
  position: relative;
  min-height: 286px;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
  background: rgba(255, 250, 243, 0.72);
  box-shadow: none;
  transform: translateY(12px);
  animation: cardIn 420ms ease forwards;
  animation-delay: calc(var(--card-index) * 45ms);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.wine-card:nth-child(3n) {
  border-right: 0;
}

.wine-card::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  background: var(--vine);
  content: "";
}

.wine-card:hover {
  z-index: 1;
  background: #fffdf9;
  box-shadow: 0 20px 42px rgba(37, 24, 18, 0.12);
  transform: translateY(-5px);
}

.wine-card--rose {
  --card-accent: var(--rose);
}

.wine-card--red {
  --card-accent: var(--wine);
}

.wine-card--white {
  --card-accent: var(--vine);
}

.wine-card::before {
  background: var(--card-accent, var(--vine));
}

.wine-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.wine-card h3 {
  margin-top: 20px;
  font-size: clamp(28px, 2.4vw, 36px);
  font-style: italic;
  line-height: 1.1;
}

.wine-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.wine-card dl,
.facts {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.wine-card dl div,
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.wine-card__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  background: var(--card-accent, var(--wine));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-section,
.instagram-section,
.map-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.2), rgba(255, 250, 243, 0)),
    var(--cream);
}

.profile-image {
  margin: 0;
}

.profile-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: translateY(calc(var(--hero-progress) * -8px));
  transition: transform 160ms linear;
}

.profile-copy p,
.map-grid p {
  margin-top: 18px;
}

.map-grid iframe {
  width: 100%;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--vine);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

.instagram-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.instagram-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.instagram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.instagram-widget {
  min-width: 0;
}

.instagram-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.instagram-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: opacity 180ms ease, transform 380ms ease;
}

.instagram-frame img.is-switching {
  opacity: 0.7;
  transform: scale(1.015);
}

.instagram-meta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 70px;
  color: #fff;
  background: linear-gradient(0deg, rgba(16, 24, 18, 0.78), rgba(16, 24, 18, 0));
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.34);
}

.instagram-meta span {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.instagram-meta strong {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1;
  text-align: right;
}

.instagram-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font: 900 28px/1 Georgia, "Times New Roman", serif;
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: #fffdf9;
  transform: translateY(-1px);
}

.instagram-dots {
  display: flex;
  gap: 8px;
}

.instagram-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(53, 82, 61, 0.32);
  cursor: pointer;
}

.instagram-dot.is-active {
  background: var(--vine);
}

.contact-band {
  color: #fff;
  background: var(--vine-dark);
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #0f1913;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

@keyframes heroContentIn {
  from {
    transform: translateY(18px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.055);
  }

  to {
    transform: scale(1.02);
  }
}

@keyframes cardIn {
  to {
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .intro-grid,
  .profile-grid,
  .map-grid,
  .contact-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

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

  .wine-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .wine-card:nth-child(2n) {
    border-right: 0;
  }

  .hero-meta {
    width: 100%;
  }

  .instagram-frame img {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 52px;
  }

  .brand span {
    font-size: 16px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 104px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .hero-meta div {
    min-width: 50%;
    padding: 10px 12px 10px 0;
  }

  .hero-meta div:last-child {
    min-width: 100%;
  }

  .hero-meta dd {
    font-size: 20px;
  }

  .wine-card {
    min-height: auto;
    padding: 24px 20px;
    border-right: 0;
  }

  .wine-grid {
    grid-template-columns: 1fr;
  }

  .wine-card:nth-child(3n),
  .wine-card:nth-child(2n) {
    border-right: 0;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    flex: 1 1 142px;
  }

  .instagram-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .instagram-meta strong {
    text-align: left;
  }
}

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