/* Fonts are self-hosted (SIL Open Font License, see /fonts). */
@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/JosefinSans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Colors taken from bostonavenue.org */
:root {
  --purple: #432c6b;
  --purple-2: #57437b;
  --plum: #5e3a52;
  --teal: #22656d;
  --teal-2: #27757c;
  --mauve: #c49daf;
  --mauve-2: #b88ba0;
  --lavender: #f7f5f9;
  --ink: #242424;
  --muted: #595959;
  --white: #ffffff;

  --heading: "Josefin Sans", Helvetica, Arial, sans-serif;
  --body: "Open Sans", Helvetica, Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
a { color: var(--teal); }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--mauve-2); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--purple);
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: var(--section) 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--purple); padding: 10px 16px;
  font-family: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--mauve); }

.rule { display: block; width: 72px; height: 3px; background: var(--mauve); margin-top: 1.4rem; }
.rule-center { margin: 0 auto 2rem; }

/* Buttons: square, uppercase, wide letter spacing like the reference site */
.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-align: center;
  padding: 1rem 1.9rem 0.85rem;
  border: 0;
  transition: background-color .2s ease, color .2s ease, filter .2s ease;
}
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--purple); color: var(--white); }
.btn-mauve { background: var(--mauve); color: var(--purple); }
.btn-mauve:hover { background: var(--white); color: var(--purple); }
.btn-gradient { background: linear-gradient(110deg, #7a2d6e 0%, var(--purple) 45%, var(--teal) 100%); color: var(--white); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.btn-gradient:hover { filter: brightness(1.15); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(67, 44, 107, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.wordmark { display: flex; flex-direction: column; text-decoration: none; color: var(--white); line-height: 1.1; margin-right: auto; }
.wordmark-main { font-family: var(--heading); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .14em; }
.wordmark-sub { font-family: var(--heading); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--mauve); margin-top: 4px; }
.wordmark:hover { color: var(--white); }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-family: var(--heading); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .2em; text-decoration: none; color: var(--white);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--mauve); border-bottom-color: var(--mauve); }
.header-cta { padding: .8rem 1.3rem .7rem; font-size: .82rem; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--purple); }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 70% 50%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,22,58,.92) 0%, rgba(54,34,86,.78) 45%, rgba(54,34,86,.25) 100%); }
.hero-content { position: relative; padding-top: 72px; padding-bottom: 72px; max-width: var(--container); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 4.1rem); max-width: 15ch; letter-spacing: .07em; margin-bottom: .45em; }
.h1-sub { display: block; font-weight: 400; font-size: .5em; letter-spacing: .2em; color: var(--mauve); margin-top: .7em; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40rem; line-height: 1.6; }
.hero-lede strong { font-weight: 600; }
.hero-facts { list-style: none; padding: 0; margin: 2rem 0 2.25rem; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero-facts li { font-weight: 600; font-size: 1.02rem; }
.fact-label { display: block; font-family: var(--heading); font-size: .75rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--mauve); margin-bottom: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.hero-free { font-family: var(--heading); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .9rem; }

/* Intro */
.intro { padding: clamp(56px, 7vw, 96px) 0; text-align: center; }
.intro-text { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.65; color: var(--ink); }

/* About */
.about { background: var(--lavender); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-body p { font-size: 1.06rem; }

/* Who should attend */
.attend { display: grid; grid-template-columns: 1fr 1fr; background: var(--plum); color: var(--white); }
.attend-panel { padding: var(--section) var(--gutter); display: flex; justify-content: flex-end; }
.attend-inner { max-width: 540px; }
.attend h2 { color: var(--white); }
.list-intro { margin-top: 1.6em; margin-bottom: .6em; }
.gain-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.gain-list li { position: relative; padding: .55em 0 .55em 1.6em; border-bottom: 1px solid rgba(255,255,255,.16); }
.gain-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 9px; height: 9px; background: var(--mauve); transform: rotate(45deg); }
.attend-close { font-style: italic; }
.attend-image { position: relative; min-height: 420px; }
.attend-image picture, .attend-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.attend-image img { object-fit: cover; }

/* Wolfelt */
.wolfelt { text-align: center; }
.wolfelt p { font-size: 1.08rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 3rem 0 0; }
.stats div { border-top: 3px solid var(--mauve); padding-top: 1.2rem; }
.stats dt { font-family: var(--heading); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--purple); letter-spacing: .04em; line-height: 1.1; }
.stats dd { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* Details */
.details {
  background-color: var(--purple);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.035) 25%, transparent 25%);
  background-size: 64px 64px;
  color: var(--white);
  padding: var(--section) 0;
}
.details h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.details-note { font-size: 1.08rem; margin-bottom: 2rem; }
.details-list { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: 8px 32px; }
.details-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { font-family: var(--heading); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--mauve); padding-top: 4px; }
.details-list dd { margin: 0; font-weight: 600; }
.details-list a { color: var(--white); text-underline-offset: 3px; }
.details-list a:hover { color: var(--mauve); }

/* Welcome */
.welcome h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.welcome p { font-size: 1.15rem; margin-bottom: 2.2rem; }

/* Footer */
.site-footer { background: #241a33; color: rgba(255,255,255,.82); padding: 48px 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-title { font-family: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--white); margin-bottom: .6em; }
.footer-link { font-family: var(--heading); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--mauve); text-decoration: none; }
.footer-link:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { display: none; }
}
@media (max-width: 900px) {
  .about-grid, .details-grid { grid-template-columns: 1fr; }
  .attend { grid-template-columns: 1fr; }
  .attend-panel { justify-content: flex-start; }
  .attend-image { min-height: 0; aspect-ratio: 3 / 2; order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .wordmark-main { font-size: .95rem; letter-spacing: .1em; }
  .wordmark-sub { display: none; }
  .header-cta { padding: .65rem .8rem .55rem; font-size: .7rem; letter-spacing: .12em; }
  .header-inner { gap: 12px; }
  .hero { min-height: 0; }
  .hero-overlay { background: linear-gradient(180deg, rgba(36,22,58,.80) 0%, rgba(54,34,86,.88) 100%); }
  .hero-content { padding-top: 56px; padding-bottom: 56px; }
  .hero-facts { flex-direction: column; gap: 14px; }
  .btn { width: 100%; letter-spacing: .14em; }
  .header-cta { width: auto; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .details-list { padding: 4px 20px; }
  .details-list div { grid-template-columns: 1fr; gap: 4px; }
}
.page-404 { min-height: 100vh; display: flex; align-items: center; }
