:root {
  --bg: #ffffff; /* brighter backdrop */
  --ink: #2e3333;
  --muted: #5e6464;
  --accent: #d8a332; /* warmer yellow */
  --card: #fffaf1;
  --line: #efe7da;
}

/* Base */
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--ink); }
h1 { font-weight: 600; letter-spacing: -0.02em; }

.accent { color: var(--accent); font-style: italic; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; }

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: 0.2px; }

/* logo styles removed while no logo in use */

.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: transparent; border: 0; font-size: 22px; padding: 6px 8px; cursor: pointer; }

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--accent), black 8%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn { box-sizing: border-box; }
.btn:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.headline { font-size: clamp(40px, 6vw, 84px); line-height: 1.05; margin: 20px 0 10px; }
.subhead { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); max-width: 820px; margin: 0 auto; }
.cta-row { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 28px 0 8px; }
.highlight { border-top: 1px solid var(--line); padding-top: 18px; }
.highlight h3 { margin: 6px 0; font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: 18px; }
.highlight p { margin: 0; color: var(--muted); }

/* Sections */
.panel { padding: 40px 0; }
.panel-inner { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; padding: 24px 0 8px; }
.list { margin: 8px 0 0 0; padding-left: 18px; }

/* About */
.about { padding: 34px 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 26px; align-items: center; }
.about-photo { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,0.05); }
.about-copy h2 { margin: 0 0 8px 0; }
.about-copy p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

/* Events */
.events { padding: 8px 0 24px; }
.events h2 { margin: 0 0 12px 0; }
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.event-date { color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
.event-title { margin: 6px 0 4px 0; font-family: Inter, system-ui, sans-serif; font-size: 20px; }
.event-desc { margin: 0 0 8px 0; color: var(--muted); }
.event-meta { margin-bottom: 10px; }
.event-cta { display: flex; gap: 10px; }

/* Forms */
.form-row { display: flex; gap: 12px; margin-top: 12px; align-items: center; }
.form-row input { flex: 1 1 auto; min-width: 0; }
.form-row button { flex: 0 0 auto; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
/* If only one input remains in a field-row, let it span full width */
.field-row > *:only-child { grid-column: 1 / -1; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
textarea { resize: vertical; }

.form-hint { display: block; margin-top: 8px; color: var(--muted); }
.form-success { margin-top: 10px; color: #1a7f37; font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); margin-top: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .highlights { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  /* collapse nav by default on tablets/phones */
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 20px; right: 20px; top: 56px; display: none; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 1000; }
  .nav.open { display: flex; }
}

/* Desktop defaults: show nav, hide toggle */
@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
  .nav { position: static; display: flex !important; background: transparent; padding: 0; border: 0; box-shadow: none; }
}

/* Mobile header/menu */
@media (max-width: 768px) {
  .site-header { padding: 14px 0 6px; gap: 10px; }
  .brand-name { font-size: 18px; }
  .nav a { white-space: nowrap; }
  .nav .btn, .nav .btn-ghost { padding: 10px 12px; border-radius: 10px; }
}

/* Small phones */
@media (max-width: 560px) {
  /* smaller layout tweaks */
  .hero { padding: 40px 0 28px; }
  .cta-row { flex-direction: column; align-items: center; gap: 10px; }
  .cta-row .btn { width: 100%; max-width: 520px; text-align: center; }
  .panel-inner { padding: 18px; }
  .about-copy p { font-size: 16px; }
  .event-card { padding: 16px; }
  .event-cta { flex-direction: column; }
  .event-cta .btn { width: 100%; max-width: 520px; margin: 0 auto; }
  /* apply page form spacing */
  #apply-form .field-row { grid-template-columns: 1fr; }
  #apply-form .btn { width: 100%; max-width: 520px; margin: 0 auto; }
}

/* Target large iPhone sizes (Pro Max ~430–460px logical width) */
@media (max-width: 480px) {
  .site-header { gap: 8px; }
  .nav-toggle { display: block; }
  .nav { display: none !important; position: absolute; left: 16px; right: 16px; top: 56px; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav.open { display: flex !important; }
}

/* Mobile sticky join bar */
.mobile-join-bar { position: fixed; left: 0; right: 0; bottom: 12px; display: none; }
.mobile-join-bar .row { margin: 0 auto; width: min(680px, calc(100% - 24px)); background: #101314; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.mobile-join-bar .txt { font-weight: 600; font-size: 14px; flex: 1; }
.mobile-join-close { background: transparent; color: #fff; border: 0; font-size: 22px; line-height: 1; padding: 2px 6px; cursor: pointer; }

@media (max-width: 560px) {
  .mobile-join-bar { display: block; }
}


