/* Kats Wine & Spirits — colors and type taken from the original Squarespace site. */
:root {
  --bg: #cdd7db;          /* slate-blue gray page background */
  --text: #222;
  --text-soft: #3e3e3e;
  --nav: #3e3e3e;         /* menu gray, 7.3:1 on the background; hover and the current page go black */
  --link: #a82a00;        /* burnt orange-red links, dark enough to read on the gray background (4.8:1) */
  --kats-red: #b4282e;    /* logo red */
  --teal: #719ba9;        /* Tasting Team / Score-Board blue */
  --slate: #465f66;
  --gold: #9d9250;        /* Party Snap gold */
  --card: #dfe6e9;
  --line: #aebcc2;
  --heading: "Roboto Slab", Georgia, serif;
  --body: "Merriweather", Georgia, serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.8 var(--body);   /* matches the Squarespace site on computers and phones */
}

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

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--kats-red); }
a[href^="tel:"] { white-space: nowrap; }  /* its spaces and hyphen split "(601) / 983-KATS (5287)" across lines on phones */
:focus-visible { outline: 3px solid var(--kats-red); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--heading); color: var(--text); line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 400; margin: 0 0 .6em; }
h2 { font-size: 1.5rem; font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: .03em; color: #333; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { text-align: center; padding: 72px 16px 8px; }
.site-header:focus { outline: none; }  /* "Back to top" moves focus here (to-top.js); no ring, it isn't clickable */
.logo { display: inline-block; }
/* Vector logo (logo.svg), trimmed to the artwork, so it stays sharp at any size */
.logo img { width: 440px; max-width: 80vw; margin: 0 auto 30px; }

.site-nav ul {
  list-style: none; margin: 34px 0 34px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 46px;
}
.site-nav a {
  font: 600 1.32rem/1.5 var(--heading);
  color: var(--nav); text-decoration: none;
  text-underline-offset: 9px; text-decoration-thickness: 3px;
}
.site-nav a:hover { color: #000; }
/* The page you're on: black, with a short Kats-red underline */
.site-nav a[aria-current="page"] { color: #000; text-decoration: underline; text-decoration-color: var(--kats-red); }

/* Home */
/* Store notice: centered in a soft panel so it stands out without overpowering the logo and menu */
.announcement {
  max-width: 920px; margin: 0 auto 40px; padding: 16px 28px;
  font: 400 1.25rem/1.6 var(--heading); letter-spacing: .01em; text-align: center; text-wrap: balance;
  background: #dfe7ea; border-top: 3px solid var(--kats-red); border-radius: 0 0 6px 6px;
}
.announcement a { font-weight: 600; white-space: nowrap; }
.announcement p { margin: 0; }

/* Store bar: hours, call, directions and Order for Pickup, at the top of the Home page (partials/store-bar.njk).
   Same place and look as the old notice: a soft panel with a Kats-red line on top. Centered, so when a
   longer status ("Closed now Opens Wednesday at 10 am") or a tablet screen puts the actions on a
   second line, both lines stay centered. */
.storebar {
  max-width: 1060px; margin: 0 auto 40px; padding: 14px 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px 40px; flex-wrap: wrap;
  background: #dfe7ea; border-top: 3px solid var(--kats-red); border-radius: 0 0 6px 6px;
  font: 400 1.1rem/1.4 var(--heading);
}
.storebar .ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sb-status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; }
.sb-label { font-weight: 600; }
/* The dot shows only once open-today.js knows whether the store is open (data-state): green open, gray closed */
.open-dot { display: none; width: 10px; height: 10px; margin-right: 2px; border-radius: 50%; flex: none; }
[data-state] > .open-dot { display: inline-block; }
[data-state="open"] > .open-dot { background: #2f7d4a; box-shadow: 0 0 0 3px rgba(47, 125, 74, .2); }
[data-state="closed"] > .open-dot { background: #7c8b90; box-shadow: 0 0 0 3px rgba(124, 139, 144, .25); }
.sb-actions { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px 26px; }
.sb-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px; color: var(--text); text-decoration: none; font-weight: 500; }  /* padding: a 45px-tall tap target on iPads */
.sb-link .ico { color: var(--kats-red); }
.sb-link:hover { color: var(--kats-red); }
.sb-detail { font-weight: 400; color: var(--text-soft); }
/* .storebar in front: the site's .button rules come later in this file and would otherwise win */
.storebar .sb-order { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; font-size: 1.05rem; }
/* Store bar on phones: big buttons for thumbs (Call and Directions side by side, Order for Pickup full width) */
@media (max-width: 700px) {
  .storebar { padding: 14px 14px 16px; margin-bottom: 28px; }
  .sb-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sb-link { width: 100%; justify-content: center; padding: 11px 8px; background: #eef3f5; border: 1px solid var(--line); border-radius: 4px; }
  .sb-detail { display: none; }
  .sb-order-li { grid-column: 1 / -1; }
  .storebar .sb-order { width: 100%; justify-content: center; padding: 13px 16px; font-size: 1.1rem; }
}

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-bottom: 48px; }
.tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd last graphic runs full width */
.tile { display: block; transition: transform .15s ease; }
.tile:hover { transform: translateY(-2px); }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; margin-bottom: 56px; }
.videos figure { margin: 0; }
.videos figcaption { font-size: .95rem; margin-top: 8px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.blog-title { margin: 8px 0 32px; }
.blog-title img { width: 420px; max-width: 80%; margin: 0 auto; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.post-card:first-child { border-top: 0; padding-top: 0; }
.post-card-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.post-card h2 { font-size: 1.45rem; margin: 0 0 8px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--kats-red); }
.post-card p { margin: 0 0 10px; }
.post-meta { font: 500 .85rem/1.5 var(--heading); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.read-more { font: 600 1rem var(--heading); }

.tag {
  display: inline-block; margin: 0 4px 6px 0; padding: 1px 10px;
  font: 500 .8rem/1.8 var(--heading);
  background: var(--card); color: var(--slate); border-radius: 999px; text-decoration: none;
}
.tag:hover { background: var(--teal); color: #fff; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 32px 0; font-family: var(--heading); }
.pager > :last-child { justify-self: end; text-align: right; } /* equal side columns keep "Page 1 of 4" centered */
.tag-cloud { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-cloud h2 { font-size: 1.1rem; }
.tag-heading { font-family: var(--heading); margin-bottom: 28px; }

/* Single post */
.post { max-width: 860px; margin: 0 auto; }
.post-header { margin-bottom: 20px; }
.post-body::after { content: ""; display: block; clear: both; }
.post-image { float: right; width: 42%; margin: 6px 0 18px 32px; }
.post-image img { width: 100%; border-radius: 3px; }
.post-footer { clear: both; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-footer .label { font: 600 .85rem var(--heading); text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }

/* Content pages */
.page-banner { margin: 0 auto 36px; max-width: 710px; width: 100%; }
.page-banner-party-snap { max-width: 920px; }   /* drawn 920 wide (wider than the menu) so its text can be bigger than the page text; design/party-snap-banner */
.page-body.has-side { display: grid; grid-template-columns: 1fr 274px; gap: 40px; align-items: start; }
.page-body.has-side .side-image { order: 2; }
.side-image { margin: 0; }
.side-image figcaption { font: 700 .7rem/1.5 var(--body); text-transform: uppercase; margin-top: 12px; }
.prose p { margin: 0 0 1.4em; }
.prose img { margin: 1em 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .8em; }
.prose h2 { margin: 1em 0; font-size: 1.35rem; font-weight: 600; letter-spacing: .03em; color: #333; }  /* "## " in page text: first level under the page heading, h3's look */
.prose.large { font: 400 1.38rem/1.6 var(--heading); letter-spacing: .02em; }   /* 22px, as on Squarespace */
.bottom-image { display: block; width: 100%; max-width: 1200px; margin: 12px 0 0; }
.bottom-image img { width: 100%; }

/* Click-to-enlarge images */
.zoom { display: block; cursor: zoom-in; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(20, 28, 31, .88); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; cursor: zoom-out; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close {
  position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #222; font: 400 28px/44px var(--heading); cursor: pointer;
}

.store-info { margin-top: 36px; font: 400 1.35rem/1.55 var(--heading); letter-spacing: .05em; color: var(--text-soft); }
.store-info address { font-style: normal; }
.store-info strong { font-weight: 600; color: var(--text); }
.store-info a { color: inherit; text-decoration: none; }
.store-info a:hover { color: var(--kats-red); }

.map { margin: 36px 0 0; aspect-ratio: 16 / 7; }  /* no min-height: with aspect-ratio it widened the map past the screen on phones */
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Forms */
.site-form { max-width: 760px; margin: 32px 0; }
.field { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.field > label:not(.choice):not(.sub), .field legend { display: block; font: 600 1.05rem/1.4 var(--heading); color: var(--text); margin-bottom: 6px; padding: 0; }
.field .help { font-size: .88rem; color: var(--text-soft); margin: 0 0 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { grid-template-columns: 2fr 1fr 1fr; }
.row label, label.sub { display: block; font: 400 .85rem var(--heading); margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=url], textarea {
  width: 100%; margin-top: 4px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--body); color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
}
textarea { resize: vertical; }
/* iPhone/iPad Safari gives a date field with the native look a minimum width and forces content-box,
   so width: 100% plus the padding ran 26px off a phone screen. Without the native look it sizes like
   the other boxes; min-height stands in for the line of text an empty one doesn't have. */
input[type=date] { -webkit-appearance: none; appearance: none; min-height: calc(1.4em + 22px); }
input[type=date]::-webkit-date-and-time-value { text-align: start; }  /* Safari's own stylesheet centers the chosen date; the other boxes start at the left */
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font: 400 .95rem var(--body); line-height: 1.5; cursor: pointer; }
.choice input { margin-top: 5px; flex: none; accent-color: var(--kats-red); }
.req { color: var(--kats-red); }
.form-section { margin: 36px 0 20px; padding: 18px 20px; background: var(--card); border-left: 4px solid var(--teal); }
.form-section h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; letter-spacing: .03em; color: #333; }  /* h2 for the page outline, h3's look */
.form-section p { margin: 0; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-family: var(--heading); }
.site-form > .button { margin-top: 8px; }
.site-form > .form-status { margin: 12px 0 0; }
.form-status.ok { color: #2e6b3a; font-weight: 600; }
.form-status.error { color: var(--kats-red); font-weight: 600; }
.form-unavailable, .archive-note { padding: 16px 20px; background: var(--card); border-left: 4px solid var(--gold); }
.archive-note { margin: 0 0 28px; }

.button {
  display: inline-block; padding: 12px 28px; border: 0; border-radius: 3px; cursor: pointer;
  font: 600 1rem var(--heading); letter-spacing: .04em;
  background: var(--kats-red); color: #fff; text-decoration: none;
}
.button:hover { background: #8f1f24; color: #fff; }
.button:disabled { opacity: .55; cursor: not-allowed; }

/* Footer */
.site-footer { margin-top: 72px; padding: 32px 0 84px; border-top: 1px solid var(--line); text-align: center; }  /* bottom: room for "Back to top" */
/* Top of the footer, on every page: newsletter sign-up, then "Follow us" */
.site-footer .footer-top { max-width: 640px; margin: 0 auto 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }  /* beats .wrap's padding on phones */
.newsletter h2 { margin: 0 0 4px; font-size: 1.5rem; color: var(--kats-red); }
.newsletter > p { margin: 0 0 16px; font: 400 1.05rem/1.5 var(--heading); color: var(--text-soft); text-wrap: balance; }
.newsletter-row { display: flex; gap: 10px; justify-content: center; }
.newsletter-row input {
  flex: 1; min-width: 0; max-width: 360px; margin: 0; padding: 10px 12px; /* not the form fields' 4px top margin: the box must line up with Sign Up */
  font: 400 1rem/1.4 var(--body); color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
}
.newsletter .form-status { margin: 10px 0 0; }
.follow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; margin-top: 18px; font: 500 1.05rem/1.4 var(--heading); }
.follow span { color: var(--text-soft); }
.follow a { display: inline-flex; align-items: center; gap: 8px; color: var(--slate); text-decoration: none; }
.follow a:hover { color: var(--kats-red); }
.follow svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 460px) { .follow span { flex-basis: 100%; } }   /* phones: "Follow us" above the two links */
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 0 auto; font: 400 1rem/1.6 var(--heading); letter-spacing: .04em; color: var(--text-soft); }
.footer-line strong { color: var(--text); font-weight: 600; }
.footer-line a { color: inherit; text-decoration: none; }
.footer-line a:hover { color: var(--kats-red); }
.copyright { font-size: .8rem; color: var(--text-soft); margin: 16px 0 0; padding: 0 16px; }

/* "Back to top": appears after scrolling down a long page (to-top.js) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 5;
  padding: 10px 16px; border-radius: 999px;
  background: var(--kats-red); color: #fff; text-decoration: none;
  font: 600 .95rem/1 var(--heading); letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: #8f1f24; color: #fff; }
@media print { .to-top, .newsletter { display: none; } }

/* Phones */
@media (max-width: 700px) {
  .prose.large { font-size: 1.25rem; }
  .wrap { padding: 0 16px; }
  .site-header { padding-top: 28px; }
  .site-nav ul { gap: 6px 22px; margin: 22px 0 24px; }
  .site-nav a { font-size: 1.12rem; text-underline-offset: 7px; }
  .announcement { font-size: 1.05rem; padding: 14px 16px; margin-bottom: 28px; }
  .tiles, .videos { gap: 20px; grid-template-columns: 1fr; }
  .post-card { display: flow-root; }   /* phones: text wraps around the picture, then uses the full width */
  .post-card-image { float: left; width: 96px; margin: 4px 16px 8px 0; }
  .post-card h2 { font-size: 1.15rem; }
  .post-image { float: none; width: 100%; max-width: 360px; margin: 0 auto 20px; }
  .page-body.has-side { grid-template-columns: 1fr; }
  .page-body.has-side .side-image { order: 0; max-width: 260px; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .store-info { font-size: 1.15rem; }
  .map { aspect-ratio: auto; height: 300px; }
  .to-top { right: 14px; bottom: 14px; }
}
