/* ==========================================================================
   The Wandering Dude — shared styles
   Palette pulled from Tradescantia zebrina (the wandering dude plant):
   plum undersides, striped silver-green leaves, plus a bingo-dauber magenta.
   ========================================================================== */

:root {
  --ink: #2e1f33;        /* deep plum — text */
  --paper: #f4f3eb;      /* pale leaf-tinted paper — background */
  --leaf: #4e6b4d;       /* deep leaf green */
  --stripe: #cbd6c4;     /* silvery stripe green */
  --zebrina: #7d4a78;    /* leaf-underside purple */
  --dauber: #c94f92;     /* bingo dauber magenta — accent */
  --card: #ffffff;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;

  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

a { color: var(--zebrina); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--dauber);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Eyebrow label — small caps line above headings */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  display: block;
  margin-bottom: 0.6rem;
}

/* == Header / nav ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.wordmark .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dauber);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--dauber); }

.nav-links a[aria-current="page"] {
  color: var(--zebrina);
  border-bottom: 3px solid var(--dauber);
  padding-bottom: 2px;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 1rem;
  border-left: 2px solid var(--stripe);
}

.nav-socials a, .footer-socials a {
  color: var(--ink);
  display: inline-flex;
}

.nav-socials a:hover, .footer-socials a:hover { color: var(--dauber); }

.nav-socials svg, .footer-socials svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

/* == Buttons ============================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--paper);
  background: var(--leaf);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-dauber { background: var(--dauber); }

/* == Hero ================================================================= */

/* Hero background photo: houseplant leaves + light on a wall (Unsplash, Pawel Czerwinski) */
.hero-bg {
  background-image: linear-gradient(100deg, var(--paper) 30%, rgba(244, 243, 235, 0.75) 60%, rgba(244, 243, 235, 0.35) 100%), url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

.hero h1 .accent { color: var(--zebrina); }

.hero p.lede {
  font-size: 1.25rem;
  max-width: 34ch;
}

/* Decorative bingo card — the signature element */
.bingo-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--stripe);
  padding: 1.1rem;
  transform: rotate(2.5deg);
  max-width: 340px;
  margin-left: auto;
}

.bingo-card .letters,
.bingo-card .cells {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.bingo-card .letters span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-align: center;
  color: var(--zebrina);
  padding-bottom: 4px;
}

.bingo-card .cells span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--stripe);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  position: relative;
}

.bingo-card .cells span.daubed::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--dauber);
  opacity: 0.85;
}

.bingo-card .cells span.free {
  background: var(--leaf);
  color: var(--paper);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bingo-card figcaption {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: var(--leaf);
  font-weight: 700;
}

/* == Sections ============================================================= */

.section { padding: 3.5rem 0; }

/* Section background photo: succulent rosettes (Unsplash, Annie Spratt) */
.section-alt {
  background-image: linear-gradient(rgba(78, 107, 77, 0.82), rgba(78, 107, 77, 0.82)), url("images/section-bg.jpg");
  background-size: cover;
  background-position: center;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--paper);
}

.section-alt .eyebrow { color: var(--paper); }
.section-alt h2 { color: var(--paper); }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.tile {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink);
}

.tile .tile-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
}

.dot-green { background: var(--leaf); }
.dot-purple { background: var(--zebrina); }
.dot-magenta { background: var(--dauber); }

/* == Events =============================================================== */

.event-list {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.event-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 6px 6px 0 var(--stripe);
}

.event-card h3 { color: var(--zebrina); }

.event-meta {
  font-weight: 700;
  color: var(--leaf);
  margin: 0 0 0.75rem;
}

.tt-embed {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stripe);
}

/* Until a real Ticket Tailor embed is pasted in, this placeholder text
   still needs to read as "unfinished" rather than as widget content. */
.tt-embed:not(:has(.tt-widget)) {
  text-align: center;
  color: var(--leaf);
  font-weight: 700;
  border: 2px dashed var(--stripe);
  border-top: 2px dashed var(--stripe);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--paper);
}

/* == About ================================================================ */

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.person {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.person .photo,
.photo-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--stripe),
    var(--stripe) 14px,
    #dde5d8 14px,
    #dde5d8 28px
  );
  display: grid;
  place-items: center;
  color: var(--leaf);
  font-weight: 700;
  min-height: 260px;
  border-bottom: 2px solid var(--ink);
}

.photo-placeholder {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  min-height: 100%;
}

.person .bio { padding: 1.5rem; }

/* == Contact ============================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-form {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 6px 6px 0 var(--stripe);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.field textarea { resize: vertical; min-height: 130px; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.field-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--dauber);
  margin-top: 2px;
}

.field-check label { font-size: 0.95rem; }

.required-note {
  font-size: 0.85rem;
  color: var(--leaf);
  margin-top: 0.75rem;
}

.contact-aside h3 { color: var(--zebrina); }

/* == Footer =============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 4rem;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer a { color: var(--paper); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--dauber); }

.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-socials { display: flex; gap: 0.9rem; }

.footer-note { font-size: 0.85rem; opacity: 0.75; width: 100%; margin: 0; }

/* == Responsive =========================================================== */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .bingo-card { margin: 0 auto; }
  .cols-3 { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-socials {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--stripe);
    padding-top: 1rem;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
