/* Rockabilly Rhythm & Sips — colors pulled from the logo.
   Text colors are darkened versions that meet WCAG AA contrast (4.5:1+) on cream. */
:root {
  --cream: #FFF8EC;
  --cream-2: #FCEBD3;
  --ink: #1C1A1F;          /* body text — 16:1 on cream */
  --pink: #C2185B;         /* text/link pink — 5.9:1 on cream */
  --pink-bright: #F0287A;  /* decorative only */
  --teal: #0B6B72;         /* text teal — 6.1:1 on cream */
  --teal-bright: #2EC4C9;  /* decorative only */
  --white: #FFFFFF;
  --focus: #1C1A1F;
  --radius: 18px;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Lobster", "Brush Script MT", cursive;
  --font-block: "Alfa Slab One", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

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

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

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .75rem 1.25rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 6px solid var(--teal-bright);
  position: relative; z-index: 50;
}
@media (min-width: 700px) { .site-header { position: sticky; top: 0; } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; }
.brand span { font-family: var(--font-display); font-size: 1.5rem; color: var(--pink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  display: inline-block; padding: .5rem .85rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--cream-2); color: var(--pink); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 2.5rem 0 3rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(46,196,201,.18) 0 12%, transparent 13%),
    radial-gradient(circle at 85% 70%, rgba(240,40,122,.14) 0 14%, transparent 15%),
    var(--cream);
}
.hero img { width: min(520px, 90%); }
.hero h1 { font-family: var(--font-display); font-weight: 400; color: var(--pink); font-size: clamp(2rem, 5vw, 3rem); margin: 1rem 0 .25rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; max-width: 40rem; margin: .5rem auto 1.5rem; }

.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--pink); color: var(--white); font-weight: 800; text-decoration: none;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { background: var(--teal); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--ink); }
.btn.secondary:hover { background: var(--cream-2); color: var(--ink); }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
section.alt { background: var(--white); border-block: 4px dashed var(--teal-bright); }
h2 {
  font-family: var(--font-block); font-weight: 400; color: var(--teal);
  font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .5rem; letter-spacing: .5px; line-height: 1.2;
}
h2 .script { font-family: var(--font-display); color: var(--pink); }
h3 { margin: 0 0 .25rem; font-size: 1.3rem; line-height: 1.3; }
.lead { font-size: 1.2rem; max-width: 46rem; }

/* Events */
.event-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.event {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 6px 6px 0 var(--teal-bright);
  display: flex; flex-direction: column; gap: .4rem;
}
.event .date { display: inline-block; align-self: flex-start; background: var(--pink); color: var(--white); font-weight: 800; padding: .2rem .8rem; border-radius: 999px; }
.event p { margin: 0; }
.event .meta { font-weight: 700; color: var(--teal); }

/* Menu / teas */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.card { background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { color: var(--pink); }
.card p { margin: 0; }

.about-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1.3fr 1fr; } }
.about-badge { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 6px 6px 0 var(--pink-bright); }
.about-badge ul { margin: .5rem 0 0; padding-left: 1.25rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.contact-list strong { display: inline-block; min-width: 6.5rem; }

/* Legal pages */
.legal { padding: 2.5rem 0 3.5rem; }
.legal .container { max-width: 52rem; }
.legal h1 { font-family: var(--font-block); font-weight: 400; color: var(--teal); font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.2; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal .updated { font-style: italic; }

.note {
  background: var(--cream-2); border-left: 6px solid var(--pink); padding: 1rem 1.25rem; border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 2.5rem 0 6rem; font-size: 1rem; }
.site-footer a { color: #7FE3E6; }      /* 10:1 on ink */
.site-footer a:hover { color: #FF9CC4; }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-family: var(--font-display); color: #FF9CC4; font-size: 1.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.disclaimer { margin-top: 2rem; border-top: 1px solid #555; padding-top: 1rem; font-size: .95rem; }

/* ---------- Accessibility toolbar (built in, no third party) ---------- */
.a11y-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal); color: var(--white); border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer;
  display: grid; place-items: center;
}
.a11y-toggle svg { width: 34px; height: 34px; }
.a11y-toggle:hover { background: var(--pink); }

.a11y-panel {
  position: fixed; right: 1rem; bottom: 5.5rem; z-index: 901;
  width: min(340px, calc(100vw - 2rem)); max-height: calc(100vh - 7rem); overflow-y: auto;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 1rem;
  font-size: 1rem; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.2rem; color: var(--ink); margin: 0 0 .75rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button, .a11y-row button, .a11y-reset {
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px;
  padding: .6rem .5rem; text-align: center; min-height: 48px;
}
.a11y-grid button[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.a11y-grid button:hover, .a11y-row button:hover, .a11y-reset:hover { background: var(--cream-2); }
.a11y-grid button[aria-pressed="true"]:hover { background: #095a60; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.a11y-row button { width: 48px; }
.a11y-row output { font-weight: 800; min-width: 3.5rem; text-align: center; }
.a11y-reset { width: 100%; margin-top: .75rem; background: var(--ink); color: var(--white); }
.a11y-reset:hover { background: var(--pink); color: var(--white); }
.a11y-close { position: absolute; top: .5rem; right: .5rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); width: 44px; height: 44px; }

/* Toolbar effects */
html.a11y-underline a { text-decoration: underline !important; text-decoration-thickness: 3px !important; }
html.a11y-highlight-links a:not(.a11y-ignore), html.a11y-highlight-links.a11y-contrast a:not(.a11y-ignore), html.a11y-highlight-links.a11y-contrast .site-nav a { background: #FFF200 !important; color: #000 !important; outline: 2px solid #000; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable .script, html.a11y-readable .brand span {
  font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .05em !important; word-spacing: .12em !important;
}
html.a11y-readable p, html.a11y-readable li { line-height: 1.9 !important; }
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .site-header, html.a11y-contrast section, html.a11y-contrast .event, html.a11y-contrast .card,
html.a11y-contrast .about-badge, html.a11y-contrast .note, html.a11y-contrast .hero, html.a11y-contrast .site-footer {
  background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
html.a11y-contrast h1, html.a11y-contrast main h2, html.a11y-contrast .site-footer h2, html.a11y-contrast h3, html.a11y-contrast .script, html.a11y-contrast .meta, html.a11y-contrast .brand span { color: #FFF200 !important; }
html.a11y-contrast a { color: #7FE3E6 !important; }
html.a11y-contrast .btn, html.a11y-contrast .event .date { background: #FFF200 !important; color: #000 !important; }
html.a11y-contrast .site-nav a { color: #fff !important; }
html.a11y-contrast .hero img, html.a11y-contrast .brand img { background: #fff; border-radius: 12px; }
html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7 19 2.5-7.5L20 11z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-pause * { animation: none !important; transition: none !important; }
.a11y-reading-mask { position: fixed; left: 0; right: 0; pointer-events: none; z-index: 899; background: rgba(0,0,0,.55); }
.speaking-now { outline: 4px solid var(--teal-bright) !important; background: #FFFBC7 !important; color: #000 !important; }

/* Our story photo */
.story-photo { margin: 1.5rem 0 2rem; }
.story-photo img {
  display: block; width: 100%; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--pink-bright);
}
.story-photo figcaption { font-family: var(--font-display); color: var(--pink); font-size: 1.4rem; text-align: center; margin-top: .9rem; }
html.a11y-contrast .story-photo figcaption { color: #FFF200 !important; }
section[id] { scroll-margin-top: 90px; }
.story-photo { max-width: 820px; margin-inline: auto; }

/* ---------- Chat / "Message us" widget ---------- */
.chat-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 900;
  display: flex; align-items: center; gap: .5rem; min-height: 56px;
  padding: .6rem 1.2rem .6rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--pink); color: var(--white); font: inherit; font-weight: 800;
  border: 3px solid var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.chat-toggle svg { width: 26px; height: 26px; }
.chat-toggle:hover { background: var(--teal); }

.chat-panel {
  position: fixed; left: 1rem; bottom: 5.25rem; z-index: 901;
  width: min(370px, calc(100vw - 2rem)); max-height: calc(100vh - 6.5rem);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 1rem; line-height: 1.45;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 3rem .7rem .8rem; background: var(--ink); color: var(--white); position: relative; }
.chat-head img { background: var(--white); border-radius: 8px; padding: 2px; }
.chat-head h2 { font-family: var(--font-display); font-weight: 400; color: #FF9CC4; font-size: 1.35rem; margin: 0; line-height: 1.2; letter-spacing: 0; }
.chat-head p { margin: 0; font-size: .9rem; color: #E8E8E8; }
.chat-close { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; }
.chat-log { padding: .9rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.bubble { max-width: 88%; padding: .6rem .85rem; border-radius: 16px; border: 2px solid var(--ink); }
.bubble.them { background: var(--white); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.me { background: var(--teal); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-chip { font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; min-height: 40px; padding: .35rem .8rem; border-radius: 999px; background: var(--white); color: var(--pink); border: 2px solid var(--pink); }
.chat-chip:hover, .chat-chip[aria-pressed="true"] { background: var(--pink); color: var(--white); }
.chat-form { padding: 0 .9rem .9rem; overflow-y: auto; }
.chat-form[hidden] { display: none; }
.chat-fields { display: grid; gap: .2rem; }
.chat-fields label { font-weight: 700; font-size: .92rem; margin-top: .35rem; }
.chat-fields input, .chat-fields textarea {
  font: inherit; width: 100%; padding: .55rem .7rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink);
}
.chat-fields [aria-invalid="true"] { border-color: #B00020; box-shadow: 0 0 0 2px #B00020; }
.chat-error { color: #B00020; font-weight: 700; margin: .5rem 0 0; min-height: 0; }
.chat-error:empty { display: none; }
.chat-send { margin-top: .7rem; width: 100%; min-height: 48px; font: inherit; font-weight: 800; cursor: pointer; background: var(--pink); color: var(--white); border: 3px solid var(--ink); border-radius: 999px; }
.chat-send:hover { background: var(--teal); }
.chat-send:disabled { opacity: .7; cursor: wait; }
.chat-fine { font-size: .85rem; margin: .6rem 0 0; }
.chat-hp { position: absolute; left: -9999px; }
@media (max-width: 420px) { .chat-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .chat-toggle { padding: .6rem; width: 60px; justify-content: center; } }

html.a11y-contrast .chat-panel, html.a11y-contrast .bubble.them, html.a11y-contrast .chat-fields input, html.a11y-contrast .chat-fields textarea { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .chat-send, html.a11y-contrast .chat-toggle { background: #FFF200 !important; color: #000 !important; }
html.a11y-contrast .chat-chip { background: #000 !important; color: #FFF200 !important; border-color: #FFF200 !important; }

/* Contact section button */
.btn-chat { font: inherit; font-weight: 800; cursor: pointer; }
.hidden-form { display: none; }
/* chat: scroll the whole panel as one area */
.chat-panel { overflow-y: auto; display: block; }
.chat-head { position: sticky; top: 0; z-index: 1; }
.chat-log, .chat-form { overflow: visible; }
