:root {
  --bg: #151719;
  --surface: #212426;
  --surface-dark: #101214;
  --text: #fff2df;
  --muted: #b9b9b6;
  --orange: #ff531f;
  --line: #3a3d3e;
  --green: #42d883;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: radial-gradient(circle at top, #282a2b, var(--bg) 650px); color: var(--text); font: 16px/1.55 Inter, Arial, sans-serif; }
a { color: inherit; }
.site-header, .page-shell, footer { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .9rem; font-weight: 900; letter-spacing: .1em; }
.brand b { color: var(--orange); }
.brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; background: var(--orange); color: #111; font: 900 1.25rem Georgia, serif; clip-path: polygon(50% 0, 100% 22%, 90% 82%, 50% 100%, 10% 82%, 0 22%); }
nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
nav a, .link-button { border: 0; padding: 0; background: none; color: var(--muted); text-decoration: none; font: inherit; cursor: pointer; }
nav a:hover, .link-button:hover { color: var(--orange); }
nav form { margin: 0; }
nav .nav-cta { padding: 9px 13px; border: 1px solid var(--orange); color: var(--text); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; border-radius: 20px; background: var(--orange); color: #111; font-size: .68rem; font-weight: 900; }
.page-shell { min-height: calc(100vh - 180px); padding: 70px 0 90px; }
.hero { max-width: 850px; padding: 45px 0 90px; }
.eyebrow { margin: 0 0 8px; color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { margin: 0; font-size: 1.35rem; }
.lead { max-width: 720px; margin: 20px 0 0; color: #d0d0cd; font-size: 1.12rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-block; border: 1px solid #75402d; padding: 11px 16px; background: transparent; color: var(--text); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover, .button.primary { border-color: var(--orange); background: var(--orange); color: #111; }
.button.danger:hover { border-color: #ff4b4b; background: #ff4b4b; }
.actions form { margin: 0; }
.section-heading { margin-bottom: 25px; }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 35px; }
.event-list { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 100px 1fr; min-height: 132px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s, border-color .15s; }
.event-card:hover { transform: translateY(-2px); border-color: #77412e; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 3px solid var(--orange); background: var(--surface-dark); text-align: center; text-transform: uppercase; }
.event-date .month { color: var(--orange); font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.event-date .day { font-size: 2.2rem; line-height: 1; }
.event-date .time { margin-top: 7px; color: var(--muted); font-size: .75rem; }
.event-copy { padding: 22px 25px; }
.event-copy h3 a { text-decoration: none; }
.event-copy h3 a:hover { color: var(--orange); }
.game { margin: 5px 0 0; color: var(--orange); font-weight: 800; }
.muted { margin: 5px 0 0; color: var(--muted); }
.attendance { margin: 8px 0 0; color: #dededb; font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.chips span { border: 1px solid #4b4e50; padding: 2px 7px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.empty { border: 1px dashed #4a4d4e; padding: 45px; color: var(--muted); text-align: center; }
.empty p { margin-bottom: 0; }
.share-box, .rsvp-box { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 30px; padding: 22px 25px; border-left: 3px solid var(--orange); background: var(--surface-dark); }
.share-box p { margin: 3px 0 0; color: var(--muted); }
.page-title { max-width: 760px; margin-bottom: 38px; }
.form-card { border: 1px solid var(--line); padding: 32px; background: var(--surface); }
.form-card.narrow { display: grid; max-width: 650px; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: grid; align-content: start; gap: 7px; font-size: .85rem; font-weight: 800; }
label.wide { grid-column: 1 / -1; }
label.check { display: flex; align-items: center; margin-top: 28px; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #4a4d4e; border-radius: 0; padding: 11px 12px; background: #151719; color: var(--text); font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
input[type="checkbox"] { width: auto; accent-color: var(--orange); }
small { color: var(--muted); font-weight: 400; }
.notice { padding: 14px 16px; border-left: 3px solid; background: var(--surface); }
.notice.error { border-color: #ff4b4b; }.notice.success { border-color: var(--green); }
.event-detail { max-width: 930px; }
.event-detail > .eyebrow { margin-top: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 45px 0; border: 1px solid var(--line); background: var(--line); }
.detail-grid section { min-height: 160px; padding: 25px; background: var(--surface); }
.detail-grid p { white-space: pre-line; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.stack a, .detail-grid a { color: var(--orange); }
.accent { color: var(--orange); font-weight: 800; }
.private-box { margin: 30px 0; padding: 24px; border: 1px solid #76522a; background: #211c14; }
.private-box p:last-child { white-space: pre-line; }
.rsvp-box { margin: 30px 0 12px; }
.rsvp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.attendees { display: flex; gap: 8px; flex-wrap: wrap; }
.attendees span { padding: 6px 10px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.creator-heading { display: flex; align-items: center; gap: 28px; margin-bottom: 50px; }
.creator-heading img { width: 112px; height: 112px; border: 2px solid var(--orange); object-fit: cover; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.team-card { min-height: 220px; padding: 27px; border: 1px solid var(--line); background: var(--surface); }
.team-card h2 a { text-decoration: none; }
.team-card h2 a:hover, .text-link { color: var(--orange); }
.team-card p { color: var(--muted); }
.team-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.subnav { justify-content: flex-start; gap: 0; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 12px 17px; border-bottom: 2px solid transparent; }
.subnav a.active { border-color: var(--orange); color: var(--orange); }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 28px; }
.event-list.compact .event-card { grid-template-columns: 82px 1fr; }
.member-preview { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.member-preview > a { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.member-preview > a span { color: var(--muted); font-size: .76rem; text-transform: uppercase; }
.chat-panel { border: 1px solid var(--line); background: var(--surface-dark); }
.messages { max-height: 590px; overflow-y: auto; padding: 24px; }
.message { padding: 14px 0; border-bottom: 1px solid var(--line); }
.message > div { display: flex; justify-content: space-between; gap: 20px; }
.message time { color: var(--muted); font-size: .74rem; }
.message p { margin: 6px 0 0; color: #dededb; white-space: pre-wrap; }
.chat-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding: 20px; border-top: 1px solid var(--line); background: var(--surface); }
.member-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.member-list article { border: 1px solid var(--line); background: var(--surface); }
.member-list a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 14px; text-decoration: none; }
.member-list form { display: flex; gap: 8px; padding: 0 14px 14px; }
.member-list img { width: 48px; height: 48px; object-fit: cover; }
.member-list span { color: var(--orange); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.settings-stack { display: grid; gap: 20px; margin-top: 25px; }
.official-check { padding: 15px; border: 1px solid #76522a; background: #211c14; }
.notification-list { display: grid; gap: 10px; }
.notification { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.notification.unread { border-left: 3px solid var(--orange); }
.notification time { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
.attendees a { padding: 6px 10px; background: var(--surface); color: var(--muted); font-size: .8rem; text-decoration: none; }
.archive-heading { margin-top: 65px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 30px 0 45px; color: var(--muted); font-size: .82rem; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  nav { justify-content: flex-start; gap: 13px 17px; }
  .page-shell { padding-top: 50px; }
  .section-heading.split, .share-box, .rsvp-box { align-items: stretch; flex-direction: column; }
  .form-grid, .detail-grid, .team-grid, .content-grid, .member-list { grid-template-columns: 1fr; }
  .team-heading { align-items: stretch; flex-direction: column; }
  .chat-form { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 82px 1fr; }
  .event-copy { padding: 18px; }
  .creator-heading { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}
