/*
Theme Name: MCW Events
Theme URI: https://mcwcharity.events
Author: Mondo Community Warriors
Author URI: https://mcw.org.au
Description: Purpose-built lightweight theme for Mondo Community Warriors event pages. Single-page events, no blog furniture, no page builder. Managed in Git.
Version: 0.1.0
Requires at least: 6.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcw-events
*/

:root {
  --mcw-ink: #1c1a18;
  --mcw-paper: #fdfbf7;
  --mcw-ember: #b5451c;
  --mcw-blossom: #e8a0a8;
  --mcw-measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--mcw-paper);
  color: var(--mcw-ink);
  font: 400 1.05rem/1.65 Georgia, "Iowan Old Style", serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--mcw-measure); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

h1, h2, h3 { font-family: "Helvetica Neue", Arial, sans-serif; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 2.5rem 0 0.75rem; }

a { color: var(--mcw-ember); }
img { max-width: 100%; height: auto; display: block; }
.lede { font-size: 1.2rem; }

.cta {
  display: inline-block;
  background: var(--mcw-ember);
  color: #fff;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
}
.cta:hover { background: #94360f; }

/* Visible, high-contrast focus ring for keyboard users on links and the button. */
a:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--mcw-ink);
  outline-offset: 3px;
}

.meta { border-left: 3px solid var(--mcw-blossom); padding-left: 1rem; margin: 2rem 0; }
footer.site { border-top: 1px solid #e2dbd0; margin-top: 3rem; padding-top: 1.5rem; font-size: 0.9rem; }

/* Skip link: off screen until it receives focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mcw-ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* Mobile first. Most of this traffic arrives on a phone from a social post. */
.hero {
  margin: 0 0 1.75rem;
}
.hero img {
  width: 100%;
  border-radius: 4px;
}

.event-intro h1 { margin-top: 0.5rem; }

/* Event detail as label/value rows. */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  padding: 0.35rem 0;
}
.meta-row dt {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  min-width: 4.5rem;
}
.meta-row dd { margin: 0; }

/* The peach blossom line, set apart as a spoken aside. */
.selfie {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--mcw-ember);
  border-top: 1px solid #e2dbd0;
  border-bottom: 1px solid #e2dbd0;
  padding: 1.25rem 0;
  margin: 2.5rem 0;
}

/* Ticket block: the one place the eye should land. */
.tickets {
  background: #fff;
  border: 1px solid #e2dbd0;
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}
.tickets h2 { margin-top: 0; }
.price {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 700;
  margin: 0.25rem 0 0;
  line-height: 1.1;
}
.price-unit {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #57514a;
}
.ticket-note { margin: 0.75rem 0 1.5rem; }
.tickets .cta { width: 100%; max-width: 22rem; }

/* Small print beneath the ticket call to action. */
.fine-print {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #57514a;
  margin: 1.25rem auto 0;
  max-width: 44ch;
}

/* Checkout quantity hint: sits tight under the button and reads as a nudge,
   not legal copy. Kept visually distinct from the receipting wording below. */
.quantity-note {
  margin-top: 0.75rem;
  font-style: italic;
}

/* Receipting wording: separated from the quantity hint by a rule so the two
   never read as one block. */
.receipting {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2dbd0;
}

footer.site .contact { margin-bottom: 0.75rem; }

/* From tablet up, give the ticket call to action a natural width. */
@media (min-width: 40rem) {
  .tickets { padding: 2.25rem; }
  .tickets .cta { width: auto; }
}
