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

:root {
  --gold: #C9973A;
  --gold-light: #e0b96a;
  --gold-faint: rgba(201, 151, 58, 0.12);
  --ink: #2e2a25;
  --muted: #7a7368;
  --bg: #fdfaf6;
  --rule: rgba(201, 151, 58, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  height: min(640px, 92vw);
  background-image: url('/solsidetransparent.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─────────────────────────────────────────── */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 5rem 0;
}

/* ─── Separator ───────────────────────────────────────── */

.rule {
  width: 60px;
  height: 1px;
  background: var(--rule);
  margin: 2.5rem auto;
}

.rule--wide {
  width: 120px;
}

/* ─── Navbar ──────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 2rem;
}

.navbar__logo-link { display: block; line-height: 0; }

.navbar__logo {
  height: 44px;
  width: auto;
  display: block;
  animation: fadeUp 1.2s ease both;
}

/* ─── Hero ────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 1.5rem;
}

.hero__soft {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.6rem;
  animation: fadeUp 1.2s ease 0.15s both;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: fadeUp 1.2s ease 0.25s both;
}

.hero__date {
  display: block;
  margin-top: 1.2rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeUp 1.2s ease 0.35s both;
}

.hero__about {
  margin-top: 2.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
  animation: fadeUp 1.2s ease 0.45s both;
}

/* ─── Hero slim variant (schedule page) ──────────────── */

.hero--slim {
  padding-bottom: 0.5rem;
}

.hero--slim .hero__title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hero__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.hero__row .print-controls-wrapper {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

.hero__row-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.qr-code {
  display: block;
  width: 64px;
  height: 64px;
  image-rendering: crisp-edges;
}

.hero__row .print-controls {
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  gap: 0.4rem;
}

.print-placeholder {
  display: none;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ─── Weekly Schedule ────────────────────────────────── */

.schedule-weekly {
  position: relative;
  z-index: 1;
}

.schedule__day-group {
  margin-bottom: 0.5rem;
}

.schedule__day {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1.4rem 0 0;
}

.schedule__day-group:first-child .schedule__day {
  padding-top: 0;
}

/* ─── Schedule ────────────────────────────────────────── */

.schedule {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.schedule__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 90vw;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

.schedule__intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.schedule__heading {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 3.5rem;
}

.events {
  list-style: none;
  position: relative;
  z-index: 1;
}

.event {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0 1.2rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.event:first-child {
  border-top: 1px solid var(--rule);
}

.event__time {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  padding-top: 0.1rem;
}

.event__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
}

.event__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.event__link:hover {
  text-decoration-color: var(--ink);
}

/* Tooltip on event name */
.event__name[data-tooltip] {
  position: relative;
  cursor: default;
}
.event__name[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: 280px;
  max-width: 90vw;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  white-space: normal;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}
.event__name[data-tooltip]:hover::after,
.event__name[data-tooltip]:focus-within::after {
  opacity: 1;
}

.event__info {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
  margin-left: 0.3em;
  vertical-align: middle;
  cursor: default;
  user-select: none;
}

.event__icon-cal {
  color: var(--gold);
  margin-left: 0.3em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.event__tagline {
  display: none;
}

@media print {
  .event__name[data-tooltip]::after { display: none; }
  .event__info { display: none; }
  .event__icon-cal { display: none; }
  .event__link { text-decoration: none; color: inherit; }

  .event__body {
    display: flex;
    align-items: baseline;
  }
  .event__tagline {
    display: inline;
    margin-left: auto;
    padding-left: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #4a4642;
    white-space: nowrap;
  }
}


.event__with {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
}

.event__with::before {
  content: ' · ';
  font-style: normal;
  color: var(--rule);
}

.schedule__note {
  margin-top: 2.2rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* ─── Schedule (home page) ───────────────────────────── */

.upcoming__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.upcoming__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0;
}

.upcoming {
  padding-top: 0;
  padding-bottom: 3rem;
}

.upcoming__footer {
  margin-top: 2rem;
  text-align: center;
}

.upcoming__more {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.upcoming__more:hover {
  border-color: var(--gold);
}

.upcoming__empty {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
}

/* ─── Info / Flyer Card ──────────────────────────────── */

.info {
  padding-top: 0;
  padding-bottom: 5rem;
  display: flex;
  justify-content: center;
}

.flyer-card {
  position: relative;
  border: 1px solid var(--rule);
  padding: 3rem 2.5rem;
  text-align: center;
  width: 100%;
  max-width: 480px;
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
}

.corner--tl { top: -1px;    left: -1px;   border-width: 2px 0 0 2px; }
.corner--tr { top: -1px;    right: -1px;  border-width: 2px 2px 0 0; }
.corner--bl { bottom: -1px; left: -1px;   border-width: 0 0 2px 2px; }
.corner--br { bottom: -1px; right: -1px;  border-width: 0 2px 2px 0; }

.flyer-card__label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.flyer-card__address {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.flyer-card__address:hover {
  color: var(--gold);
  border-color: var(--gold-light);
}

.flyer-card__landmark {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}

.flyer-card__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.flyer-card__link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.flyer-card__link:hover {
  color: var(--gold);
  border-color: var(--gold-light);
}

/* ─── Footer ──────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--rule);
}

.footer__tagline {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Animations ──────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Week Nav ────────────────────────────────────────── */

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.week-nav__btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.week-nav__btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.week-nav__range {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ─── Workshop events ─────────────────────────────────── */

.event__badge {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.15rem 0.5rem;
  margin-right: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}

.event__badge--time {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border-color: var(--rule);
  display: inline-block;
  min-width: 4.8rem;
  text-align: center;
}

.event__time:empty { display: none; }
.event__time:empty + .event__body { grid-column: 1 / -1; }
.event__with:empty { display: none; }

.event__desc {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.35rem;
}

/* ─── Print controls ──────────────────────────────────── */

.print-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.print-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.2s, color 0.2s;
}

.print-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Monthly view ───────────────────────────────────── */

.schedule-monthly-print__label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
}

/* ─── Print ───────────────────────────────────────────── */

@media print {
  @page {
    size: letter portrait;
    margin: 0.15in 0.35in;
  }

  body::before {
    opacity: 0.07 !important;
    transform: translateY(-50%) !important;
    left: 0 !important;
    width: 100% !important;
  }

  .navbar {
    position: static;
    background: none;
    border: none;
    padding: 0.1rem 0 0.1rem;
    justify-content: center;
  }

  .navbar__logo { height: 28px; }

  body {
    background: white;
    color: var(--ink);
    font-size: 8pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page {
    max-width: 100%;
    padding: 0;
  }

  /* Keep navbar and first section together */
  .navbar { break-after: avoid; page-break-after: avoid; }
  .page   { break-before: avoid; page-break-before: avoid; }

  /* Kill animations */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  footer { display: none; }

  section { padding: 0.1rem 0; }

  .hero {
    padding-top: 0;
    padding-bottom: 0.1rem;
  }

  .hero__title {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .hero__soft { font-size: 0.58rem; margin-bottom: 0.15rem; }
  .hero__about { font-size: 0.58rem; margin-top: 0.3rem; }

  .rule { margin: 0.25rem auto; width: 36px; }
  .rule--wide { width: 60px; }
  .hero .rule--wide { display: none; }

  .schedule__day {
    font-size: 0.54rem;
    padding: 0.1rem 0 0;
    letter-spacing: 0.2em;
    font-weight: 700;
  }

  .schedule__day-group:first-child .schedule__day { padding-top: 0; }
  .schedule__day-group { margin-bottom: 0.1rem; }

  .event {
    grid-template-columns: auto 1fr;
    gap: 0 0.6rem;
    padding: 0.08rem 0;
    align-items: start;
  }

  .event__time { font-size: 0.70rem; }
  .event__badge { font-size: 0.58rem; width: 3rem; text-align: center; display: inline-block; box-sizing: border-box; }
  .event__badge--time { min-width: unset; width: 3rem; }
  .event__name { font-size: 0.88rem; font-weight: 500; color: #1e1b18; }
  .event__with { font-size: 0.77rem; color: #4a4642; }
  .event__desc { font-size: 0.64rem; margin-top: 0.1rem; }
  .event__badge { font-size: 0.46rem; padding: 0.04rem 0.25rem; }

  .info { padding: 0; }
  .schedule { padding-bottom: 1rem !important; }

  .corner { border-color: var(--gold); }

  .flyer-card {
    border-color: rgba(201, 151, 58, 0.45);
    page-break-inside: avoid;
    margin-top: 0;
    padding: 0.45rem 0.9rem;
  }

  .flyer-card__label { font-size: 0.48rem; margin-bottom: 0.3rem; }
  .flyer-card__address { font-size: 0.82rem; }
  .flyer-card__landmark { font-size: 0.58rem; margin-top: 0.25rem; }
  .flyer-card__link { font-size: 0.75rem; }

  /* Show thesolside.com instead of emily-smith.com */
  .flyer-card__link--site { font-size: 0; }
  .flyer-card__link--site::before {
    content: "thesolside.com";
    font-size: 0.75rem;
    font-style: normal;
    color: var(--ink);
  }

  a::after { content: none !important; }
  a { color: inherit; text-decoration: none; }

  /* Hide nav controls always */
  .week-nav,
  .schedule__empty { display: none !important; }

  /* Swap print controls for placeholder box */
  .print-controls { display: none !important; }
  .print-btn { display: none !important; }

  /* QR code — keep full size, no link decoration */
  .qr-code { width: 64px; height: 64px; }
  .hero__row-end a { border: none; }
  .hero__row-end a::after { content: none !important; }
  .print-placeholder {
    display: flex;
    align-items: center;
    border: none;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink);
  }

  #schedule-output { display: block; }
}

/* ─── Mobile ──────────────────────────────────────────── */

@media (max-width: 520px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .event__time {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }

  .event__name {
    font-size: 1.15rem;
  }

  .schedule__watermark {
    display: none;
  }

  .flyer-card {
    padding: 2.5rem 1.5rem;
  }
}
