/* ===== UNBOXED — brand system ===== */
:root {
  --cream: #f5f0e8;
  --cream-deep: #efe8db;
  --charcoal: #2c2c2c;
  --olive: #6b7c5e;
  --brown: #5c4033;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --maxw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* faint warm paper grain */
  background-image: radial-gradient(rgba(92, 64, 51, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

em { font-style: italic; color: var(--brown); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 64px);
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44, 44, 44, 0.06);
}
.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--charcoal);
}
.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; }
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--charcoal);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid var(--olive);
  color: var(--olive) !important;
  opacity: 1 !important;
  padding: 7px 18px;
  border-radius: 100px;
}
.nav-cta:hover { background: var(--olive); color: var(--cream) !important; }

@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px clamp(22px, 6vw, 64px) 90px;
}
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-sub {
  margin: 34px auto 44px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(44, 44, 44, 0.78);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 15px 34px;
  border-radius: 100px;
  transition: all 0.28s ease;
}
.btn:hover { background: var(--charcoal); color: var(--cream); }
.btn-solid { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.btn-solid:hover { background: #4a3328; border-color: #4a3328; }

/* ===== SECTIONS ===== */
.section { padding: clamp(70px, 11vw, 130px) clamp(22px, 6vw, 64px); max-width: var(--maxw); margin: 0 auto; }
.section.narrow { max-width: 620px; }
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 26px;
}
.section-label.center { text-align: center; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 30px;
  font-weight: 400;
}
.body { font-size: 1.05rem; color: rgba(44, 44, 44, 0.82); margin-bottom: 22px; }
.body.center { text-align: center; max-width: 48ch; margin-left: auto; margin-right: auto; }

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  margin-top: 14px;
}
.card {
  background: var(--cream-deep);
  border: 1px solid rgba(92, 64, 51, 0.1);
  border-radius: 14px;
  padding: 32px 28px;
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 12px; }
.card p { font-size: 0.97rem; color: rgba(44, 44, 44, 0.78); }

/* ===== NEXT / UNBORROWED ===== */
.next { text-align: center; }
.event-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: 0.04em;
  margin: 6px 0 26px;
}
.event-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.5;
  color: var(--brown);
  margin-bottom: 30px;
}
.event-meta {
  margin: 30px 0 36px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

/* ===== APPLY ===== */
.apply { text-align: center; background: var(--cream-deep); max-width: none; }
.apply h2, .next ~ .apply h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 22px; }
.apply .btn-solid { margin-top: 14px; }
.apply-note {
  margin-top: 34px;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(44, 44, 44, 0.6);
}
.section.apply { padding-left: clamp(22px, 6vw, 64px); padding-right: clamp(22px, 6vw, 64px); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 70px 24px 60px;
  border-top: 1px solid rgba(44, 44, 44, 0.08);
}
.footer-mark { font-family: var(--sans); font-weight: 500; letter-spacing: 0.34em; font-size: 1rem; }
.footer-tag { font-style: italic; font-family: var(--serif); color: rgba(44,44,44,0.6); margin-top: 8px; }
.footer-links { display: flex; gap: 28px; justify-content: center; margin: 26px 0 22px; }
.footer-links a { color: var(--charcoal); opacity: 0.75; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-fine { font-size: 0.78rem; color: rgba(44, 44, 44, 0.45); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
