@import url("./page.css");

.blog-hero,
.blog-article-hero {
  padding: clamp(58px, 7vw, 88px) 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.58), rgba(240, 230, 215, 0)),
    var(--cream);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(320px, 0.44fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: end;
}

.blog-hero h1,
.blog-article-hero h1 {
  max-width: 760px;
  color: var(--wine);
  font-size: 35px;
  line-height: 1.18;
}

.blog-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(320px, 0.48fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.blog-feature figure,
.article-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.5);
}

.blog-feature img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.blog-feature h2,
.section-head.compact h2 {
  color: var(--wine);
  font-size: 35px;
  line-height: 1.18;
}

.blog-feature p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.blog-feature .button {
  margin-top: 28px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 15px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-meta a {
  color: var(--gold);
  border-bottom: 1px solid rgba(176, 138, 76, 0.32);
}

.section-head.compact {
  margin-bottom: 26px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.5);
}

.blog-card-image {
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  background: rgba(255, 250, 242, 0.72);
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: grid;
  grid-template-rows: auto minmax(70px, auto) minmax(104px, 1fr) auto;
  align-content: stretch;
  min-width: 0;
  padding: 22px;
}

.blog-card-body .blog-meta {
  margin-top: 0;
  min-height: 34px;
  align-content: start;
}

.blog-card h3 {
  margin-top: 14px;
  color: var(--wine);
  font-size: 25px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.blog-card h3 a:hover {
  color: var(--gold);
}

.blog-card p {
  margin: 13px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.blog-card .button.text {
  justify-self: end;
  align-self: end;
  max-width: 100%;
}

.article-section {
  padding-top: 48px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(36px, 6vw, 78px);
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  object-fit: cover;
}

.article-content {
  display: grid;
  gap: 22px;
}

.article-content p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.article-content .article-lead {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.62;
}

.article-related-wines {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-related-wines h2 {
  color: var(--wine);
  font-size: 27px;
  line-height: 1.2;
}

.article-related-wines div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-related-wines a,
.article-related-wines span {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.article-related-wines a {
  color: var(--wine);
}

.article-related-wines a:hover {
  color: var(--gold);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.blog-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 30px;
  min-width: 0;
}

.blog-sidebar-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 250, 242, 0.58);
}

.blog-sidebar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.blog-sidebar-search button {
  display: grid;
  width: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
}

.blog-sidebar-block {
  display: grid;
  gap: 14px;
}

.blog-sidebar-block h2 {
  margin: 0;
  color: var(--wine);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.blog-sidebar-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar-list li {
  border-bottom: 1px solid var(--line);
}

.blog-sidebar-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  transition: color 160ms ease, transform 160ms ease;
}

.blog-sidebar-list a:hover,
.blog-sidebar-list a.is-current {
  color: var(--wine);
  transform: translateX(2px);
}

.blog-sidebar-list small {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--wine);
}

.button.light {
  color: var(--wine);
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.5);
}

.button.text {
  min-height: auto;
  padding: 0 0 5px;
  color: var(--wine);
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
}

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

@media (max-width: 980px) {
  .blog-hero-grid,
  .blog-feature {
    grid-template-columns: 1fr;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .blog-hero,
  .blog-article-hero {
    padding-top: 48px;
  }

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

  .blog-feature img {
    height: 240px;
  }

  .blog-card-image img {
    height: 100%;
  }

  .article-related-wines div {
    grid-template-columns: 1fr;
  }

  .button:not(.text) {
    width: 100%;
  }

  .blog-card-body {
    grid-template-rows: auto auto auto auto;
  }

  .blog-card .button.text {
    justify-self: start;
  }
}
