/* ── Full Moon Forum — shared design system ── */

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

:root {
  --aubergine-deep: oklch(22% .055 340);
  --aubergine:      oklch(28% .06 340);
  --cream-warm:     oklch(94.5% .018 78);
  --cream:          oklch(96.5% .012 80);
  --gold-soft:      oklch(86% .055 85);
  --gold:           oklch(78% .09 82);
  --ink-soft:       oklch(42% .02 340);
  --ink:            oklch(24% .02 340);
  --font-serif: 'Instrument Serif', 'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-sans:  'Inter Tight', ui-sans-serif, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

/* ── Layout ── */
.wrap { margin-inline: auto; padding-inline: 24px; }
.w-1400 { max-width: 1400px; }
.w-1200 { max-width: 1200px; }
.w-1100 { max-width: 1100px; }
.w-1000 { max-width: 1000px; }
.w-900  { max-width: 900px; }
.w-860  { max-width: 860px; }

@media (min-width: 768px) {
  .wrap { padding-inline: 48px; }
}

.text-center { text-align: center; }

.bg-aubergine      { background: var(--aubergine); color: var(--cream); }
.bg-aubergine-deep { background: var(--aubergine-deep); color: var(--cream); }
.bg-cream           { background: var(--cream); color: var(--ink); }
.bg-cream-warm       { background: var(--cream-warm); color: var(--ink); }

/* ── Type ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 500;
}

.italic { font-style: italic; }

.c-gold      { color: var(--gold); }
.c-gold-soft { color: var(--gold-soft); }
.c-aubergine { color: var(--aubergine); }
.c-cream     { color: var(--cream); }

.c-cream-90  { color: color-mix(in oklab, var(--cream) 90%, transparent); }
.c-cream-85  { color: color-mix(in oklab, var(--cream) 85%, transparent); }
.c-cream-80  { color: color-mix(in oklab, var(--cream) 80%, transparent); }
.c-cream-75  { color: color-mix(in oklab, var(--cream) 75%, transparent); }
.c-cream-70  { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.c-cream-55  { color: color-mix(in oklab, var(--cream) 55%, transparent); }
.c-aubergine-70 { color: color-mix(in oklab, var(--aubergine) 70%, transparent); }
.c-aubergine-75 { color: color-mix(in oklab, var(--aubergine) 75%, transparent); }
.c-ink-soft  { color: var(--ink-soft); }

/* ── Links ── */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 2px;
  text-decoration: none;
  transition: background-size .3s;
}
.link-underline:hover,
.link-underline:focus-visible { background-size: 100% 2px; }

/* ── Hairlines ── */
.hairline {
  height: 1px;
  border: none;
  background: color-mix(in oklab, var(--aubergine) 18%, transparent);
}
.hairline-on-dark {
  height: 1px;
  border: none;
  background: color-mix(in oklab, var(--gold) 35%, transparent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-on-dark {
  border-color: color-mix(in oklab, var(--gold) 70%, transparent);
  color: var(--cream);
}
.btn-on-dark:hover { background: var(--gold); color: var(--aubergine-deep); }

.btn-on-light {
  border-color: var(--aubergine);
  color: var(--aubergine);
}
.btn-on-light:hover { background: var(--aubergine); color: var(--cream); }

.btn:disabled { cursor: wait; opacity: .7; }

/* ── Numbered section label ── */
.section {
  padding-block: 64px;
}
@media (min-width: 768px) {
  .section { padding-block: 112px; }
}

.section-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .section-grid { grid-template-columns: 220px 1fr; gap: 64px; }
}

.section-label .num {
  font-family: var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--aubergine) 70%, transparent);
}
.section-label .name {
  margin-top: 12px;
  font-family: var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

h1, h2, h3, blockquote, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ── Photo figures ── */
.figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.figure figcaption {
  margin-top: 12px;
  font-size: .75rem;
  color: var(--ink-soft);
}
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-5   { aspect-ratio: 4 / 5; }
.ratio-16-9  { aspect-ratio: 16 / 9; }

/* ── Triptych (three-up feature row) ── */
.triptych {
  display: grid;
  gap: 40px;
  margin-top: 64px;
}
@media (min-width: 768px) {
  .triptych { grid-template-columns: repeat(3, 1fr); }
}
.triptych > div {
  border-top: 1px solid color-mix(in oklab, var(--aubergine) 20%, transparent);
  padding-top: 20px;
}
.triptych .n {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
}
.triptych .t {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--aubergine);
}
.triptych .d {
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Schedule list ── */
.schedule { list-style: none; }
.schedule li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 20%, transparent);
}
@media (min-width: 768px) {
  .schedule li { grid-template-columns: 90px 1fr; gap: 24px; }
}
.schedule li:last-child { border-bottom: none; }
.schedule .time {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold);
  white-space: nowrap;
}
.schedule .activity {
  font-size: .9375rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--cream) 85%, transparent);
}

/* ── Forms: underline style ── */
.form-grid {
  display: grid;
  gap: 32px;
  margin-top: 64px;
  max-width: 672px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-grid .full { grid-column: 1 / -1; }

.field label { display: block; }
.field .eyebrow { color: var(--ink-soft); }
.field input {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-bottom: 1px solid color-mix(in oklab, var(--aubergine) 25%, transparent);
  background: transparent;
  padding-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--aubergine);
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
}
.field input::placeholder { color: color-mix(in oklab, var(--ink-soft) 50%, transparent); }
.field input:focus { border-color: var(--gold); }

.inline-form {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid color-mix(in oklab, var(--aubergine) 25%, transparent);
  padding-bottom: 12px;
  transition: border-color .2s;
}
.inline-form:focus-within { border-color: var(--gold); }
.inline-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--aubergine);
  outline: none;
}
.inline-form input::placeholder { color: color-mix(in oklab, var(--ink-soft) 40%, transparent); }
.inline-form button {
  font-family: var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--aubergine);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.form-status { margin-top: 16px; text-align: center; font-size: .8125rem; }
.form-status[hidden] { display: none; }
.form-success p {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--cream);
}

/* ── Nav / header ── */
.site-header { position: relative; z-index: 20; }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
@media (min-width: 768px) {
  .nav-row { padding-block: 32px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold);
}
.brand img { height: 28px; width: 28px; display: block; }
@media (min-width: 768px) {
  .brand img { height: 32px; width: 32px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a { color: color-mix(in oklab, var(--cream) 85%, transparent); text-decoration: none; }
.nav-links a:hover { color: var(--cream); }

.nav-mobile { color: var(--gold-soft); text-decoration: none; }
@media (min-width: 768px) {
  .nav-mobile { display: none; }
}

/* ── Footer ── */
.site-footer-grid {
  display: grid;
  gap: 64px;
}
@media (min-width: 768px) {
  .site-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .875rem;
  color: color-mix(in oklab, var(--cream) 80%, transparent);
}
.footer-list a { text-decoration: none; }
.footer-bottom {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: .75rem;
  color: color-mix(in oklab, var(--cream) 55%, transparent);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── Focus ── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Motion ── */
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.rise-in { animation: .9s cubic-bezier(.2,.7,.2,1) both rise-in; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise-in { animation: none; }
}
