/* Baird's Homestead Store — one-page flyer
   Palette, lockup, banners, ribbons, and decorations from the family flyer. */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-var.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic-var.woff") format("woff"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Satisfy"; src: url("../fonts/satisfy.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --parchment: #f4ead6;
  --parchment-deep: #efe3cc;
  --cream: #fbf6ea;
  --brown: #2c1c10;
  --brown-soft: #5a3d2a;
  --ink: #24160c;
  --red: #9e2a22;
  --red-deep: #7a1c16;
  --ribbon: #b42318;
  --kraft: #c4a574;
  --tree: #8a6a4a;
  --font-display: "Playfair Display", "Times New Roman", Times, serif;
  --font-serif: "Libre Baskerville", Palatino, Georgia, serif;
  --font-script: "Satisfy", "Brush Script MT", cursive;
}

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

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 0%, #efe0c6 0%, #d9c4a4 70%, #c9ae88 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0.7rem 1.6rem;
}

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

a {
  color: var(--red-deep);
  text-underline-offset: 0.16em;
}
a:hover { color: var(--red); }
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  background: var(--brown);
  color: var(--cream);
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; color: var(--cream); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Poster frame -------------------------------------------------- */
.poster {
  position: relative;
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: 1.05rem 1.7rem 8.2rem;
  overflow: hidden;
  background-color: var(--parchment);
  background-image:
    linear-gradient(color-mix(in srgb, var(--parchment) 72%, transparent),
                    color-mix(in srgb, var(--parchment) 72%, transparent)),
    url("../img/flour-sack.jpg");
  background-size: auto, 520px;
  border: 8px solid var(--brown);
  box-shadow:
    inset 0 0 0 2.5px var(--brown),
    0 0 0 10px var(--cream),
    0 18px 42px rgba(36, 22, 12, 0.28);
  isolation: isolate;
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}
.deco img { width: 100%; height: auto; }

.pine-tl { top: -0.15rem; left: -0.15rem; width: 38.5%; z-index: 4; }
.pine-tr { top: -0.2rem; right: -0.15rem; width: 35.5%; z-index: 4; }

.gift-bl { bottom: -0.15rem; left: -0.15rem; width: 31.5%; z-index: 5; }
.gift-br { bottom: -0.15rem; right: -0.15rem; width: 32.5%; z-index: 5; }

.bow {
  bottom: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  z-index: 6;
}

.tree {
  position: absolute;
  z-index: 0;
  width: 5.4rem;
  opacity: 0.9;
  pointer-events: none;
}
.tree-l { left: 0.2rem; bottom: 11.2rem; }
.tree-r { right: 0.2rem; bottom: 11.4rem; transform: scaleX(-1); }

/* Lockup -------------------------------------------------------- */
.lockup {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.15rem 5.5rem 0.15rem;
}

.arrowhead {
  width: 5.6rem;
  height: auto;
  margin: 0.15rem auto 0.15rem;
  filter: drop-shadow(0 1px 1px rgba(36, 22, 12, 0.18));
}

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.55rem, 8.6vw, 4.35rem);
  letter-spacing: 0.055em;
  line-height: 0.88;
  font-variant-ligatures: none;
}
.wordmark .rule {
  display: block;
  width: 2.85rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  flex: none;
}
.wordmark .rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.wordmark .rule-l::after { right: -2px; }
.wordmark .rule-r::after { left: -2px; }

.store-name {
  margin: 0.28rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.72rem, 2.15vw, 1.02rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Banners / ribbons ---------------------------------------------
   Solid, crisp shapes that grow with their text. Pointed or notched
   ends sit *outside* the padding box so letters never spill onto
   the parchment. */
.banner-stack {
  position: relative;
  z-index: 2;
  margin: 0.7rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brush,
.ribbon,
.cta {
  position: relative;
  display: block;
  width: fit-content;
  max-width: calc(100% - 2.8rem);
  box-sizing: border-box;
  filter: drop-shadow(0 3px 3px rgba(36, 22, 12, 0.22));
}
.brush::before,
.brush::after,
.ribbon::before,
.ribbon::after,
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 1.2rem;
  pointer-events: none;
  z-index: 0;
}
.brush::before,
.cta::before {
  left: -1.15rem;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.brush::after,
.cta::after {
  right: -1.15rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Brown tagline banner — solid brown, pointed ends */
.brush {
  background: var(--brown);
  color: var(--cream);
  z-index: 1;
}
.brush::before,
.brush::after { background: var(--brown); }
.brush p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.7rem 1.55rem 0.75rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 4.4vw, 2.05rem);
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 1px 0 rgba(36, 22, 12, 0.25);
}
.brush .brush-line { white-space: nowrap; }

/* Red wrap-ribbon — solid body, swallow-tail folds outside the type */
.ribbon {
  z-index: 2;
  margin: -0.85rem auto 0;
  background: var(--ribbon);
  color: var(--cream);
}
.ribbon::before,
.ribbon::after {
  width: 1.35rem;
  background: var(--red-deep);
}
.ribbon::before {
  left: -1.25rem;
  clip-path: polygon(100% 0, 100% 36%, 78% 50%, 100% 64%, 100% 100%, 0 50%);
}
.ribbon::after {
  right: -1.25rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 0 64%, 22% 50%, 0 36%);
}
.ribbon p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.58rem 1.25rem 0.52rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.72rem, 2.15vw, 1.02rem);
  letter-spacing: 0.14em;
  text-indent: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

.place-line {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
}
.place-line::before,
.place-line::after {
  content: "";
  width: 3.4rem;
  height: 1px;
  background: var(--ink);
  opacity: 0.85;
}

/* Who we are ---------------------------------------------------- */
.who {
  position: relative;
  z-index: 2;
  max-width: 36.5rem;
  margin: 0.55rem auto 0;
  padding: 0 0.4rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
}
.who p { margin: 0 0 0.45rem; }
.who p:last-child { margin-bottom: 0; }

/* Three offerings ----------------------------------------------- */
.trio {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0.95rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 0;
  max-width: 38.5rem;
}
.trio li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.15rem 0.85rem;
  gap: 0.35rem;
  min-height: 100%;
}
.trio li + li {
  border-left: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
}
.trio .icon {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.trio h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  min-height: 2.3em;
}
.trio p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--brown-soft);
  max-width: 11.5rem;
}

.heart {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 0.7rem 0 0.15rem;
  color: var(--ink);
  opacity: 0.85;
}
.heart svg { width: 0.85rem; height: 0.85rem; }

/* Check list ---------------------------------------------------- */
.checks {
  position: relative;
  z-index: 2;
  list-style: none;
  width: max-content;
  max-width: calc(100% - 6.5rem);
  margin: 0.2rem auto 0;
  padding: 0;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.32rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.88rem, 2.1vw, 1.05rem);
  line-height: 1.25;
  color: var(--ink);
}
.checks li::before {
  content: "";
  flex: none;
  width: 1.12rem;
  height: 1.12rem;
  margin-top: 0.08rem;
  border: 2px solid var(--red);
  border-radius: 2px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%239e2a22' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2 6.4 11.4 12.6 4.4'/></svg>");
  background-repeat: no-repeat;
  background-position: center 1px;
  background-size: 86%;
}

/* Hours + visit ------------------------------------------------- */
.visit {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.4rem;
  max-width: 34rem;
  margin: 0.7rem auto 0;
  padding: 0 0.2rem;
  align-items: start;
}
.visit h2 {
  margin: 0 0 0.28rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.hours-table th,
.hours-table td {
  padding: 0.12rem 0.2rem;
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}
.hours-table th {
  font-weight: 700;
  padding-right: 0.7rem;
  white-space: nowrap;
}
.hours-table td { text-align: left; padding-left: 0.9rem; white-space: nowrap; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}
.contact-list li { margin: 0.12rem 0; }
.contact-list a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--red) 50%, transparent); }
.contact-list a:hover { color: var(--red-deep); }
.phone-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink) !important;
}
.phone-link:hover { color: var(--red-deep) !important; text-decoration: underline; }

/* Bottom red script banner — solid, sizes to the words ---------- */
.cta {
  z-index: 4;
  margin: 0.85rem auto 0.35rem;
  background: var(--ribbon);
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  max-width: min(30rem, calc(100% - 3.4rem));
}
.cta::before,
.cta::after { background: var(--ribbon); }
.cta .cta-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.7rem 0.82rem;
  max-width: 100%;
}
.cta .script {
  display: block;
  margin: 0;
  padding: 0.05em 0.15em 0.12em;
  max-width: 100%;
  font-family: var(--font-script);
  font-size: clamp(1.45rem, 4.4vw, 2.05rem);
  line-height: 1.2;
  color: var(--cream);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 1px 0 rgba(36, 22, 12, 0.25);
}
.cta .caps {
  display: block;
  margin: 0.18rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.62rem, 1.7vw, 0.78rem);
  letter-spacing: 0.16em;
  text-indent: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
}
.cta:hover { color: var(--cream); }
.cta:hover .script,
.cta:hover .caps { text-decoration: underline; text-underline-offset: 0.12em; }
.cta:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 5px;
}


/* Facebook button ------------------------------------------------ */
.fb-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 0.55rem 0 0;
}
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.95rem 0.4rem;
  background: var(--red);
  color: var(--cream) !important;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(36, 22, 12, 0.2);
}
.fb-btn:hover { background: var(--red-deep); color: var(--cream) !important; }
.fb-btn .fb-icon,
.fb-inline .fb-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  flex: none;
}
.fb-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-weight: 700;
}

/* Gallery ------------------------------------------------------- */
.gallery {
  position: relative;
  z-index: 2;
  margin: 1rem auto 0;
  padding: 0 0.6rem;
  max-width: 38.5rem;
}
.gallery-heading {
  margin: 0 0 0.7rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--ink);
}
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem 0.55rem;
}
.gallery-grid li { margin: 0; }
.gallery-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--cream) 70%, var(--parchment));
  border: 3px solid var(--brown);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brown) 35%, transparent);
  padding: 0.28rem 0.28rem 0.35rem;
}
.gallery-card:hover { color: var(--ink); }
.gallery-card figure { margin: 0; }
.gallery-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--parchment-deep);
  min-height: 0;
}
.gallery-card .thumb img,
.gallery-card .thumb picture {
  width: 100%;
  height: 100%;
  display: block;
}
.gallery-card .thumb img {
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.gallery-card figcaption {
  margin: 0.35rem 0.1rem 0.1rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
}

/* Lightbox ------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(36, 22, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem 2rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-figure {
  margin: 0;
  max-width: min(52rem, 100%);
  max-height: 100%;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 6px solid var(--cream);
  box-shadow: 0 0 0 2px var(--brown), 0 12px 40px rgba(0,0,0,0.4);
  object-fit: contain;
  background: var(--parchment);
}
.lightbox-figure figcaption {
  margin: 0.7rem 0 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-display);
  line-height: 1;
}
.lightbox-close {
  top: 0.4rem;
  right: 0.6rem;
  font-size: 2.4rem;
  padding: 0.2rem 0.5rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.2rem 0.45rem;
}
.lightbox-nav.prev { left: 0.2rem; }
.lightbox-nav.next { right: 0.2rem; }
.lightbox-close:hover,
.lightbox-nav:hover { color: #fff; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

/* Mobile -------------------------------------------------------- */
@media (max-width: 640px) {
  body { padding: 0.45rem 0.35rem 0.9rem; }
  .poster {
    width: 100%;
    padding: 0.9rem 0.85rem 7.2rem;
    border-width: 6px;
    box-shadow:
      inset 0 0 0 2px var(--brown),
      0 0 0 6px var(--cream),
      0 10px 24px rgba(36, 22, 12, 0.24);
  }
  .lockup { padding: 0.15rem 5rem 0; }
  .arrowhead { width: 4.2rem; }
  .wordmark { font-size: clamp(2.15rem, 11.5vw, 2.65rem); }
  .wordmark .rule { width: 1.35rem; }
  .pine-tl { width: 37%; top: -0.1rem; left: -0.2rem; }
  .pine-tr { width: 33.5%; top: -0.1rem; right: -0.2rem; }
  .gift-bl { width: 36%; }
  .gift-br { width: 37%; }
  .bow { width: 62%; bottom: -0.15rem; }
  .tree { display: none; }
  .store-name {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    white-space: nowrap;
    margin-left: -2.2rem;
    margin-right: -2.2rem;
    font-size: 0.72rem;
  }
  .wordmark .rule { height: 1.5px; }
  .wordmark .rule::after { width: 4px; height: 4px; }
  .who { font-size: 0.8rem; }
  .trio {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    max-width: 18rem;
  }
  .trio li { padding: 0.15rem 0; }
  .trio li + li { border-left: 0; border-top: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); padding-top: 0.7rem; }
  .checks { max-width: calc(100% - 1.2rem); }
  .checks li { font-size: 0.92rem; }
  .visit {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
  }
  .hours-table { margin: 0 auto; width: auto; }
  .gallery { padding: 0 0.15rem; margin-top: 0.85rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
  .gallery-card figcaption { font-size: 0.68rem; }
  .lightbox { padding: 3rem 0.6rem 1.5rem; }
  .lightbox-nav { font-size: 2.2rem; }
  .banner-stack { margin-top: 0.45rem; }
  .brush,
  .ribbon,
  .cta { max-width: calc(100% - 2.6rem); }
  .brush p { padding: 0.58rem 0.9rem 0.62rem; font-size: 1.22rem; }
  .ribbon { margin-top: -0.7rem; }
  .ribbon p {
    padding: 0.55rem 0.9rem 0.5rem;
    letter-spacing: 0.1em;
    text-indent: 0.05em;
    font-size: clamp(0.68rem, 3.5vw, 0.86rem);
  }
  .cta { margin-top: 0.7rem; margin-bottom: 0.2rem; max-width: calc(100% - 4.6rem); }
  .cta .cta-copy { padding: 0.72rem 1.15rem 0.76rem; }
  .cta .script { font-size: clamp(1.28rem, 7.4vw, 1.65rem); line-height: 1.22; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body { background: white; padding: 0; }
  .poster {
    box-shadow: inset 0 0 0 2.5px var(--brown);
    width: 100%;
  }
}
