:root {
  --ink: #111214;
  --paper: #f8f4ed;
  --orange: #f56600;
  --orange-light: #ff7a1a;
  --muted: #6f6961;
  --line: #c9c1b6;
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: #fff; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr);
}

.event-panel {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(300px, 44svh) 1fr;
  border-right: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.photo-frame { position: relative; overflow: hidden; background: #181a1c; }
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 62%;
  transform: scale(1.02);
}
.photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--ink) 100%); }
.free-stamp {
  position: absolute;
  top: 24px;
  left: 28px;
  padding: 9px 15px 8px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .14em;
  transform: rotate(-3deg);
  box-shadow: 5px 5px 0 var(--ink);
}

.event-copy {
  position: relative;
  z-index: 1;
  margin-top: -54px;
  padding: 22px clamp(28px, 5vw, 72px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow { margin: 0; color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .17em; }
.event-copy h1 {
  margin: 8px 0 4px;
  font-size: clamp(3.55rem, 7vw, 7rem);
  line-height: .82;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.tagline { margin: 16px 0 0; color: #ddd8cf; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; }
.event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.event-details > div { display: flex; align-items: flex-start; gap: 11px; }
.detail-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 5px;
  color: var(--orange);
  font-size: .67rem;
  font-weight: 900;
}
.detail-icon.pin { border-radius: 50%; font-size: .6rem; }
.event-details span:last-child { color: #aaa79f; font-size: .9rem; line-height: 1.45; }
.event-details strong { display: block; color: #fff; font-size: .95rem; }
.learn-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.learn-list span { padding: 7px 10px; border: 1px solid #3d3e40; border-radius: 999px; color: #d4d0c8; font-size: .8rem; }

.form-panel {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 76px);
  background: radial-gradient(circle at 100% 0%, rgba(245,102,0,.12), transparent 36%), var(--paper);
  color: #171717;
}
.registration-form, .success-panel { width: min(100%, 620px); }
.form-heading { margin-bottom: 31px; }
.form-heading h2, .success-panel h2, .admin-card h1 {
  margin: 7px 0 8px;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.form-heading > p:last-child, .success-panel > p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.field-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.field-stack label { color: #282521; font-size: .88rem; font-weight: 800; }
.field-stack label span { color: #7d766d; font-weight: 500; }
.field-stack input, .field-stack textarea, .field-stack select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.75);
  color: #171717;
  outline: none;
}
.field-stack textarea { min-height: 92px; resize: vertical; }
.field-stack input:focus, .field-stack textarea:focus, .field-stack select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,102,0,.18); }
.contact-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-note { margin: -10px 0 19px; color: #777067; font-size: .78rem; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }
.form-error { margin: -2px 0 14px; padding: 10px 12px; border-left: 4px solid #b42318; background: #fde8e6; color: #86190f; font-size: .9rem; }
.submit-button, .secondary-button, .admin-button {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 900;
}
.submit-button { width: 100%; background: var(--orange); color: var(--ink); font-size: 1rem; box-shadow: 5px 5px 0 #171717; transition: .15s ease; }
.submit-button:hover { background: var(--orange-light); transform: translate(2px,2px); box-shadow: 3px 3px 0 #171717; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.success-panel { text-align: center; padding: 40px 0; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 2.2rem; font-weight: 900; box-shadow: 5px 5px 0 #171717; }
.success-panel > p { max-width: 480px; margin: 15px auto 26px; }
.secondary-button { background: #171717; color: #fff; }

.admin-shell { min-height: 100svh; padding: 40px 20px; background: #f2eee7; color: #171717; }
.admin-card { width: min(100%, 1120px); margin: 0 auto; padding: clamp(24px, 4vw, 48px); border: 1px solid #d4cec4; border-radius: 18px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.08); }
.admin-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.admin-copy { color: #6d665e; line-height: 1.6; }
.admin-login { width: min(100%, 430px); margin-top: 18vh; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--orange); color: #111; text-decoration: none; }
.admin-button.secondary { background: #292a2c; color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid #ddd7ce; border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e7e1d8; vertical-align: top; }
.admin-table th { background: #f5f1eb; color: #554f48; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.empty-list { padding: 35px; text-align: center; color: #777067; }
.admin-error { margin-top: 14px; color: #9a2017; }

@media (max-width: 900px) {
  .site-shell { display: block; }
  .event-panel { min-height: auto; grid-template-rows: 310px auto; border-right: 0; }
  .event-copy { margin-top: -42px; padding: 18px 24px 38px; }
  .event-copy h1 { font-size: clamp(3.3rem, 15vw, 5.6rem); }
  .form-panel { min-height: auto; padding: 42px 24px 55px; }
}
@media (max-width: 540px) {
  .event-panel { grid-template-rows: 270px auto; }
  .photo-frame img { object-position: 43% 60%; }
  .free-stamp { top: 18px; left: 20px; }
  .event-details, .contact-grid, .form-grid { grid-template-columns: 1fr; gap: 0; }
  .event-details { gap: 15px; }
  .learn-list { display: grid; }
  .form-panel { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; } }
