/* ==========================================================================
   Booked for the Holidays — bookedfortheholidaystc.com

   Palette and type follow assets/Booked.png (the printed flyer).
   The flyer's scripts look like Canva faces; these are the closest
   free Google Fonts equivalents — see README.
   ========================================================================== */

:root {
  /* Sampled from the flyer */
  --forest:     #4B6E40;   /* title shadow, all script text */
  --coral:      #FE9E9E;   /* the date */
  --outline:    #71492E;   /* title outline */

  /* Sampled from the pattern artwork */
  /* The flyer's pink is only 1.95:1 on white — fine on a printed poster,
     unreadable on screen. This deeper cranberry rose keeps the warmth and
     clears AA for normal text (4.53:1). Used wherever coral becomes TEXT;
     the flyer pink above is kept for fills. */
  --coral-deep: #C44E52;
  --sage:       #A3BF86;
  --blush:      #FFC2D2;
  --ice:        #D6EDF0;
  --gold:       #FFCC7B;
  --cream:      #FFF3DE;
  --ink:        #5E351A;   /* line-art brown — body copy */

  --paper:      #FFFDF9;
  --ink-soft:   #7A5A40;

  --radius:     22px;
  --border:     3px solid var(--ink);
  --shadow:     0 6px 0 rgba(94, 53, 26, 0.16);
  --shadow-lg:  0 10px 0 rgba(94, 53, 26, 0.16);

  --measure:    68ch;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);

  --font-script: Pacifico, "Brush Script MT", cursive;
  --font-hand:   Sacramento, "Snell Roundhand", cursive;
  --font-body:   Nunito, ui-rounded, "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
}

/* --- The pattern wash ---------------------------------------------------
   assets/pattern.jpg is the source art mirrored horizontally so that it
   repeats seamlessly in both directions. Fixed, behind everything, low
   opacity so text stays readable over it.
   ------------------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("assets/pattern.jpg");
  background-repeat: repeat;
  background-size: 620px auto;
  opacity: 0.4;
  pointer-events: none;
}

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

h2, h3 { margin: 0 0 0.4em; text-wrap: balance; }

h2 {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.25;
}

p { text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); border: var(--border);
  border-radius: 0 0 var(--radius) 0;
  padding: 0.75rem 1.25rem; font-weight: 800; z-index: 50;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - (var(--gutter) * 2), 1080px); margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 800;
  text-decoration: none; color: var(--ink);
  padding: 0.85rem 1.6rem;
  border: var(--border); border-radius: 999px;
  background: var(--coral); box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(94, 53, 26, 0.16); }
.btn--sage  { background: var(--sage); }
.btn--paper { background: var(--paper); }

/* --- Card ---------------------------------------------------------------
   The double rule echoes the flyer's sage-outlined badge.
   ------------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--sage);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

/* --- Header ------------------------------------------------------------- */
.site-header { padding: 1.25rem 0; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--font-script);
  color: var(--forest);
  font-size: 1.3rem;
  text-decoration: none;
  line-height: 1.2;
}
.site-nav {
  display: flex; flex-wrap: wrap;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-weight: 700;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* --- Hero ---------------------------------------------------------------
   Rebuilds the flyer's lockup: "Booked" / "for the" / "holidays".
   ------------------------------------------------------------------------ */
.hero { padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.hero__card { text-align: center; }

.hero .eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  line-height: 1.15;
  color: var(--forest);
  max-width: 24ch;
  /* Clears the deep descender on "holidays". The h1 uses line-height < 1,
     so the glyph overflows its box and the gap has to be absolute, not em
     (em here would resolve against this element's own font-size). */
  margin: clamp(1.1rem, 3.5vw, 2.6rem) auto 0.7rem;
}

.hero h1 { margin: 0; }
.hero__title img {
  width: min(100%, 620px);
  height: auto;
  margin-inline: auto;
}

.hero__meta {
  font-family: var(--font-script);
  color: var(--coral-deep);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hero__meta span { display: block; }

.hero__blurb { max-width: 54ch; margin: 0 auto 2rem; color: var(--ink); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* --- Sections ----------------------------------------------------------- */
.section { padding-block: clamp(2rem, 6vw, 3.5rem); }
.section h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
.section__lead { max-width: var(--measure); color: var(--ink); }

.section__note {
  /* Sits directly on the pattern, so it needs its own backing to stay legible. */
  max-width: var(--measure);
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--paper);
  border: 2px dashed var(--forest);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9375rem;
}

/* Detail cards */
.details {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 1.75rem; padding: 0; list-style: none;
}
.detail {
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.detail:nth-child(4n+1) { background: var(--blush); }
.detail:nth-child(4n+2) { background: var(--ice); }
.detail:nth-child(4n+3) { background: var(--sage); }
.detail:nth-child(4n+4) { background: var(--gold); }
.detail h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 0.35rem; color: var(--ink);
}
.detail p { margin: 0; font-size: 1.125rem; font-weight: 700; }

/* Feature list */
.features {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.75rem; padding: 0; list-style: none;
}
.feature h3 {
  font-family: var(--font-script);
  font-weight: 400; font-size: 1.4rem;
  color: var(--forest); margin-bottom: 0.25em;
}
.feature p { margin: 0; color: var(--ink); }

/* Vendor CTA */
.vendor-cta { text-align: center; background: var(--cream); }
.vendor-cta h2 { margin-bottom: 0.3em; }
.vendor-cta p { max-width: 52ch; margin-inline: auto; }
.vendor-cta .btn { margin-top: 1.5rem; }
.vendor-cta .fineprint { margin-top: 1.25rem; font-size: 0.9375rem; }

/* FAQ */
.faq { margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.faq details {
  background: var(--paper); border: var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
}
.faq summary {
  font-family: var(--font-body);
  font-weight: 800; font-size: 1.0625rem;
  color: var(--forest);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; line-height: 1;
  color: var(--coral-deep); flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0.75rem 0 0; color: var(--ink); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: var(--border); background: var(--paper);
  padding-block: clamp(2rem, 5vw, 3rem); text-align: center;
}
.site-footer h2 { font-size: 2rem; }
.footer__meta {
  font-family: var(--font-hand);
  font-size: 1.5rem; color: var(--forest);
  margin: 0.25rem 0 0;
}
.site-footer .socials {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: center; font-weight: 800;
  margin: 1rem 0 1.5rem;
}
.site-footer small { color: var(--ink-soft); display: block; }

/* --- Placeholder marker -------------------------------------------------
   Copy still to be written. Delete this rule and unwrap the spans
   once the content is final.
   ------------------------------------------------------------------------ */
.tbd {
  background: var(--gold);
  border-bottom: 2px dashed var(--ink);
  padding: 0 0.25em; border-radius: 4px;
}

/* --- Narrow screens ----------------------------------------------------- */
@media (max-width: 30rem) {
  .site-header .wrap { justify-content: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .card::after { inset: 6px; }
}

/* Hours line under the hero date */
.hero__hours {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
