:root {
  --page: #f7f6f4;
  --paper: rgba(255, 255, 255, 0.84);
  --ink: #263044;
  --muted: #576174;
  --link: #2f72d0;
  --warm: #e6ad86;
  --mauve: #b18aa1;
  --lavender: #8f8fc2;
  --shadow: 0 24px 55px rgba(55, 48, 72, 0.24);
  --soft-shadow: 0 12px 30px rgba(55, 48, 72, 0.16);
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

a:hover {
  color: #174b91;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1rem;
  box-shadow: var(--soft-shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(38, 48, 68, 0.08);
  backdrop-filter: blur(14px);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.is-elevated {
  box-shadow: 0 12px 35px rgba(39, 41, 50, 0.08);
}

.header-inner {
  width: min(1190px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
}

.brand img {
  width: 72px;
  height: auto;
  transition: transform 240ms ease;
}

.brand:hover img {
  transform: rotate(-2deg) scale(1.04);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: clamp(620px, 47.5vw, 960px);
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -12vh 0;
  z-index: -2;
  background-image: url("assets/wine-hero.webp");
  background-size: cover;
  background-position: center 50%;
  will-change: transform;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1.14);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-card {
  width: min(650px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 980px) / 2));
  margin-top: 4vh;
  padding: clamp(2rem, 4vw, 3.3rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 238, 0.78));
  box-shadow: 0 24px 60px rgba(26, 21, 18, 0.18);
  backdrop-filter: blur(3px);
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: #7b5645;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.hero-card p:last-child {
  font-size: 0.95rem;
}

.hero-card p:last-child,
.story-card p,
.detail-group p,
.site-footer p {
  margin-bottom: 0;
}

.about-section {
  position: relative;
  padding: clamp(6rem, 11vw, 12rem) 0 clamp(5rem, 9vw, 8rem);
  overflow: clip;
  isolation: isolate;
  background: #fff;
}

.about-media {
  position: absolute;
  inset: -18vh 0;
  z-index: -2;
  background-image: url("assets/wine-detail.jpeg");
  background-size: cover;
  background-position: center 45%;
  will-change: transform;
  transform: translate3d(0, var(--about-parallax, 0px), 0) scale(1.18);
}

.about-wrap {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem 1.35rem;
}

.about-wrap h2 {
  margin: 0 0 1.6rem;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(24, 17, 13, 0.45);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.55rem, 3vw, 3rem);
}

.story-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 2.2rem);
  color: var(--muted);
  font-weight: 650;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.story-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 70px rgba(55, 48, 72, 0.28);
}

.story-card-a,
.story-card-c {
  grid-column: 1 / span 8;
}

.story-card-b,
.story-card-d {
  grid-column: 5 / span 8;
}

.story-card-c {
  margin-top: 0.6rem;
}

.visit-section {
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(5rem, 7vw, 7rem);
  background: #fff;
}

.visit-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.map-panel {
  min-height: 300px;
  border: 1px solid rgba(38, 48, 68, 0.08);
  overflow: hidden;
  background: #eef4f5;
  box-shadow: 0 18px 45px rgba(38, 48, 68, 0.08);
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 31vw, 360px);
  border: 0;
  transition: transform 240ms ease;
}

.visit-details {
  padding-top: 0.2rem;
}

.visit-details h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

.detail-group + .detail-group {
  margin-top: 2.1rem;
}

.detail-group h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.detail-group p {
  color: var(--muted);
  font-weight: 550;
}

.detail-group a {
  color: inherit;
}

.detail-group a:hover {
  color: var(--link);
}

.site-footer {
  border-top: 1px solid rgba(38, 48, 68, 0.12);
  background: #fff;
}

.footer-inner {
  width: min(1190px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: 0 18px 36px rgba(38, 48, 68, 0.2);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from {
    background-position: center 49%;
  }

  to {
    background-position: center 53%;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand img {
    width: 56px;
  }

  .site-nav {
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-card {
    width: auto;
    max-width: none;
    margin: 8vh 20px 4rem;
    padding: 2rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .about-section {
    padding-top: 4rem;
  }

  .about-wrap {
    width: min(calc(100% - 24px), 680px);
  }

  .story-grid,
  .visit-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-card-a,
  .story-card-b,
  .story-card-c,
  .story-card-d {
    grid-column: auto;
    margin-top: 0;
  }

  .visit-wrap {
    width: min(calc(100% - 32px), 680px);
  }

  .footer-inner {
    min-height: 112px;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media,
  .about-media {
    transform: none;
  }
}
