/* Home Run Cellars — site styles
   Brand colors (style guide): Phillies Vermilion #E33232, Dodger Sapphire #004C99,
   Athletics Emerald #007E3D, Sox Onyx, Nationals Slate #636A7D. */

:root {
  --red: #E33232;
  --red-text: #C42828;   /* red that passes contrast on white at small sizes */
  --red-on-dark: #FF5A52;
  --blue: #004C99;
  --onyx: #111111;
  --paper: #F4F4F1;
  --slate: #636A7D;
  --ink: #2B2F38;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--onyx); background: #FFFFFF; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #5BA4F5; outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--onyx); color: #FFFFFF; padding: 12px 16px; }
.skip-link:focus { top: 16px; }

.label { margin: 0; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--display); font-weight: 700; line-height: 0.9; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid currentColor; background: transparent; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.btn--solid { background: var(--onyx); border-color: var(--onyx); color: #FFFFFF; }
.btn--light { color: #FFFFFF; }
.btn--blue { color: var(--blue); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 48px; background: #FFFFFF; border-bottom: 1px solid #E6E6E6; }
.site-header .logo img { height: 24px; width: auto; }
.site-header .btn { min-height: 44px; padding: 0 22px; font-size: 16px; letter-spacing: 0.12em; }

/* Hero: the two wines */
.wines { display: flex; flex-wrap: wrap; }
.wine { flex: 1 1 520px; min-height: 800px; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 56px 0; }
.wine__text { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.wine__text p { margin: 0; }
.wine__name { font-size: 84px; }
.wine__desc { font-size: 19px; line-height: 1.5; }
.wine__text .btn { margin-top: 10px; align-self: flex-start; }
.wine__bottle { height: 560px; width: auto; align-self: center; margin-top: 32px; }
.wine--cab { background: var(--onyx); color: #FFFFFF; }
.wine--cab .label { color: var(--red-on-dark); }
.wine--cab .wine__desc { color: #D6D6D6; }
.wine--sb { background: var(--paper); }
.wine--sb .wine__text { align-self: flex-end; align-items: flex-end; text-align: right; }
.wine--sb .wine__text .btn { align-self: flex-end; }
.wine--sb .label, .wine--sb .wine__name { color: var(--blue); }
.wine--sb .wine__desc { color: #3A3F4B; }

/* Tagline band */
.band { background: var(--red); color: #FFFFFF; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; text-align: center; }
.band img { width: 64px; height: 64px; }
.band p { font-size: 72px; line-height: 1; letter-spacing: 0.02em; }

/* Story */
.story { display: flex; flex-wrap: wrap; }
.story__photo { flex: 1 1 520px; position: relative; aspect-ratio: 1 / 1; min-height: 640px; background: var(--onyx); }
.story__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.story__text { flex: 1 1 520px; padding: 96px 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.story__text h2 { font-size: 80px; }
.story__text p { margin: 0; max-width: 560px; }
.story__lead { font-size: 28px; line-height: 1.4; font-weight: 600; }
.story__body { font-size: 20px; line-height: 1.6; color: var(--ink); }
.story__signoff { margin-top: 6px !important; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; text-transform: uppercase; color: var(--red-text); }

/* MVP signup */
.mvp { background: var(--blue); color: #FFFFFF; padding: 80px 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 64px; }
.mvp__intro { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.mvp__intro h2 { font-size: 56px; line-height: 1; }
.mvp__intro p { margin: 0; font-size: 19px; line-height: 1.5; color: #DCE6F2; }
.mvp__form { position: relative; flex: 1 1 380px; max-width: 520px; display: flex; flex-wrap: wrap; gap: 12px; }
.mvp__form input[type="email"] { flex: 1 1 240px; min-height: 56px; padding: 0 18px; border: 0; border-radius: 0; font: inherit; font-size: 18px; color: var(--onyx); background: #FFFFFF; }
.mvp__form input[aria-invalid="true"] { outline: 3px solid #FFB4B4; }
.mvp__form button { min-width: 212px; min-height: 56px; padding: 0 28px; border: 0; background: var(--onyx); color: #FFFFFF; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.mvp__form button:disabled { opacity: 0.7; cursor: progress; }
.mvp__error { position: absolute; top: 100%; left: 0; right: 0; margin: 10px 0 0; font-size: 16px; line-height: 1.4; color: #FFE3E3; }
.mvp__thanks { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid #FFFFFF; padding: 6px 0 6px 20px; outline: none; }
.mvp__thanks [data-title] { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase; }
.mvp__thanks [data-line] { margin: 0; font-size: 18px; color: #DCE6F2; }
.mvp__trap { position: absolute; left: -5000px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--onyx); color: #A3A3A3; padding: 8px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; font-size: 14px; line-height: 1.4; }
.site-footer__left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 0; }
.site-footer__left img { height: 16px; width: auto; }
.site-footer p { margin: 0; }
.site-footer nav { margin-left: auto; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; }

/* Wine details dialog */
.wine-dialog { width: min(980px, calc(100% - 48px)); max-height: calc(100% - 48px); padding: 0; border: 0; background: #FFFFFF; color: var(--onyx); overflow: auto; }
.wine-dialog::backdrop { background: rgba(10, 10, 10, 0.66); }
.wine-dialog[open] { animation: dialog-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wine-dialog[open] { animation: none; } }
.wine-dialog__inner { position: relative; display: flex; flex-wrap: wrap; }
.wine-dialog__panel { flex: 1 1 300px; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; padding: 48px 24px 0; }
.wine-dialog__panel img { height: 460px; width: auto; }
.wine-dialog--cab .wine-dialog__panel { background: var(--onyx); }
.wine-dialog--sb .wine-dialog__panel { background: var(--paper); }
.wine-dialog__body { flex: 999 1 420px; padding: 48px 48px 40px; display: flex; flex-direction: column; gap: 18px; }
.wine-dialog__body p { margin: 0; }
.wine-dialog__meta { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; }
.wine-dialog--cab .wine-dialog__meta { color: var(--red-text); }
.wine-dialog--sb .wine-dialog__meta, .wine-dialog--sb .wine-dialog__name { color: var(--blue); }
.wine-dialog__name { font-size: 56px; line-height: 0.95; }
.wine-dialog__tagline { font-size: 20px; font-style: italic; color: #3A3F4B; }
.wine-dialog__notes { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.55; color: var(--ink); border-top: 2px solid var(--onyx); padding-top: 18px; }
.wine-dialog__notes b { font-family: var(--display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--onyx); }
.wine-dialog__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; background: var(--onyx); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Trade page */
.trade-hero { background: var(--onyx); color: #FFFFFF; padding: 88px 48px; display: flex; justify-content: center; }
.trade-hero__inner { max-width: 1240px; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.trade-hero__intro { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.trade-hero__intro .label { color: var(--red-on-dark); }
.trade-hero__intro h1 { font-size: 96px; }
.trade-hero__intro p { margin: 0; font-size: 19px; line-height: 1.5; color: #D6D6D6; max-width: 520px; }
.contact-card { flex: 0 1 380px; border: 2px solid #FFFFFF; padding: 28px; display: flex; flex-direction: column; gap: 6px; font-size: 18px; line-height: 1.5; font-style: normal; }
.contact-card__label { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: #BDBDBD; }
.contact-card__name { font-size: 24px; font-weight: 700; }
.contact-card__role { color: #D6D6D6; }
.contact-card a { text-decoration: underline; text-underline-offset: 3px; }

.trade-section { max-width: 1240px; margin: 0 auto; padding: 96px 48px 48px; display: flex; flex-direction: column; gap: 32px; }
.trade-section + .trade-section { padding-top: 48px; padding-bottom: 112px; }
.trade-section h2 { font-size: 48px; line-height: 1; }
.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card { flex: 1 1 440px; border: 1px solid #D9D9D9; display: flex; flex-direction: column; }
.card__preview { background: var(--paper); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; flex: 1; }
.card__preview .logo-sample { width: 300px; height: auto; }
.card__preview .guide-sample { width: 100%; max-width: 480px; height: auto; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.card__body { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.card__title { margin: 0; font-size: 24px; font-weight: 700; }
.card__sub { margin: 0; font-size: 15px; color: var(--slate); }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-row__label { width: 120px; font-size: 15px; color: var(--slate); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid currentColor; font-size: 15px; transition: background-color .15s, color .15s; }
.chip svg { width: 12px; height: 12px; flex: none; }
.card--guide .card__body { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }

.wine-panel { flex: 1 1 440px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.wine-panel--cab { background: var(--onyx); color: #FFFFFF; }
.wine-panel--sb { background: var(--paper); }
.wine-panel__head { display: flex; align-items: flex-end; gap: 24px; }
.wine-panel__head img { height: 220px; width: auto; }
.wine-panel__head div { display: flex; flex-direction: column; gap: 6px; }
.wine-panel__head .label { font-size: 16px; letter-spacing: 0.18em; }
.wine-panel--cab .label { color: var(--red-on-dark); }
.wine-panel--sb .label, .wine-panel--sb .wine-panel__name { color: var(--blue); }
.wine-panel__name { font-size: 44px; line-height: 0.95; }
.wine-panel ul { list-style: none; margin: 0; padding: 0; }
.wine-panel li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid #D4D4CF; font-size: 17px; }
.wine-panel--cab li { border-top-color: #333333; }
.wine-panel li > span:last-child { display: flex; flex-wrap: wrap; gap: 8px; }

/* Smaller screens */
@media (max-width: 1100px) {
  .wine__name { font-size: 72px; }
  .band p { font-size: 56px; }
}
@media (max-width: 760px) {
  .site-header { padding: 12px 20px; }
  .site-header .logo img { height: 18px; }
  .site-header .btn { font-size: 14px; padding: 0 14px; letter-spacing: 0.1em; }

  .wine { flex-basis: 100%; min-height: 0; padding: 40px 24px 0; }
  .wine__text { gap: 10px; }
  .wine .label { font-size: 15px; }
  .wine__name { font-size: 54px; }
  .wine__desc { font-size: 17px; }
  .wine__bottle { height: 380px; margin-top: 20px; }

  .band { padding: 36px 24px; flex-direction: column; gap: 14px; }
  .band img { width: 40px; height: 40px; }
  .band p { font-size: 42px; line-height: 0.95; }

  .story__photo { flex-basis: 100%; aspect-ratio: 3 / 2; min-height: 0; }
  .story__text { flex-basis: 100%; padding: 40px 24px 48px; gap: 16px; }
  .story__text h2 { font-size: 54px; }
  .story__lead { font-size: 21px; }
  .story__body { font-size: 17px; }
  .story__signoff { font-size: 30px; }

  .mvp { padding: 48px 24px 80px; gap: 20px; }
  .mvp__error { font-size: 15px; margin-top: 8px; }
  .mvp__intro h2 { font-size: 42px; }
  .mvp__intro p { font-size: 17px; }
  .mvp__form { flex-direction: column; }
  .mvp__form input[type="email"], .mvp__form button { flex: 0 0 auto; min-height: 52px; }
  .mvp__thanks [data-title] { font-size: 28px; }

  .site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; padding: 4px 20px 18px; font-size: 13px; }
  .site-footer__left { display: contents; }
  .site-footer__left img { grid-column: 1; grid-row: 1; height: 14px; }
  .site-footer nav { grid-column: 2; grid-row: 1; margin-left: 0; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }

  /* the wine details open as a bottom sheet on phones */
  .wine-dialog { width: 100%; max-width: 100%; max-height: 88%; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .wine-dialog__panel { flex-basis: 100%; min-height: 0; height: 230px; padding-top: 24px; }
  .wine-dialog__panel img { height: 200px; }
  .wine-dialog__body { flex-basis: 100%; padding: 24px 24px 36px; gap: 12px; }
  .wine-dialog__name { font-size: 40px; }
  .wine-dialog__tagline { font-size: 18px; }
  .wine-dialog__notes { font-size: 15px; gap: 12px; }
  .wine-dialog__close { background: #FFFFFF; color: var(--onyx); border-radius: 50%; width: 44px; height: 44px; }

  .trade-hero { padding: 48px 24px; }
  .trade-hero__intro h1 { font-size: 64px; }
  .trade-section { padding: 56px 24px 24px; }
  .trade-section + .trade-section { padding-top: 24px; padding-bottom: 64px; }
  .trade-section h2 { font-size: 40px; }
  .card { flex-basis: 100%; }
  .card__preview { padding: 28px; }
  .card__preview .logo-sample { width: 220px; }
  .dl-row__label { width: 100%; }
  .wine-panel { flex-basis: 100%; padding: 28px 20px; }
  .wine-panel__head img { height: 160px; }
  .wine-panel__name { font-size: 36px; }
}

/* 404 */
.not-found { min-height: calc(100vh - 150px); align-items: center; }
.not-found .btn { align-self: flex-start; }

/* Hover styles only where a mouse or trackpad can hover (no stuck states after a tap on phones) */
@media (hover: hover) {
  .btn--light:hover { background: #FFFFFF; color: var(--onyx); }
  .btn--blue:hover { background: var(--blue); color: #FFFFFF; }
  .btn--solid:hover { background: #333333; border-color: #333333; }
  .mvp__form button:hover:not(:disabled) { background: #333333; }
  .site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .chip:hover { background: var(--onyx); color: #FFFFFF; border-color: var(--onyx); }
  .wine-panel--cab .chip:hover { background: #FFFFFF; color: var(--onyx); border-color: #FFFFFF; }
}
