:root {
  --ink: #111214;
  --paper: #f8f4ed;
  --orange: #f56600;
  --orange-light: #ff7a1a;
  --muted: #6f6961;
  --line: #c9c1b6;
  --green: #18794e;
  --red: #b42318;
  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; }
a { color: 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; text-transform: uppercase; }
.event-copy h1 { margin: 8px 0 4px; font-size: clamp(3.25rem, 7vw, 6.7rem); line-height: .84; letter-spacing: -.07em; text-transform: uppercase; overflow-wrap: anywhere; }
.tagline { margin: 16px 0 0; color: #ddd8cf; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; }
.event-description { max-width: 680px; margin: 15px 0 0; color: #bdb9b1; line-height: 1.6; }
.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: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 5px; color: var(--orange); font-size: .68rem; 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; }
.back-link { display: inline-flex; margin-bottom: 22px; color: #655f58; font-size: .86rem; font-weight: 800; text-decoration: none; }

.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, .field-stack small { color: #7d766d; font-weight: 500; font-size: .76rem; line-height: 1.4; }
.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,.82); 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, .admin-error { margin: 0 0 18px; padding: 11px 13px; border-left: 4px solid var(--red); background: #fde8e6; color: #86190f; font-size: .9rem; }
.submit-button, .secondary-button, .admin-button { min-height: 48px; 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; outline: none; }
.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; }
.closed-box { width: min(100%, 540px); padding: 30px; border: 1px solid #d5cec4; border-radius: 15px; background: #fff; text-align: center; }

.directory-body { background: #f4f0e9; color: #171717; }
.directory-hero { min-height: 370px; padding: 70px max(24px, calc((100vw - 1160px)/2)); display: grid; align-content: end; background: linear-gradient(90deg, rgba(17,18,20,.96), rgba(17,18,20,.48)), url('/workshop-wheel.webp') center 57%/cover; color: white; }
.directory-hero h1 { max-width: 820px; margin: 10px 0 12px; font-size: clamp(3.3rem, 8vw, 7rem); line-height: .84; letter-spacing: -.07em; text-transform: uppercase; }
.directory-hero p:last-child { max-width: 650px; color: #d7d2c9; font-size: 1.1rem; line-height: 1.55; }
.directory-hero.compact-hero { min-height: 300px; }
.event-directory { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.directory-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.event-card { display: grid; min-height: 260px; padding: 25px; border: 1px solid #d9d2c8; border-radius: 16px; background: #fff; color: #171717; text-decoration: none; box-shadow: 0 12px 32px rgba(0,0,0,.05); transition: .16s ease; }
.event-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 16px 38px rgba(0,0,0,.09); }
.event-card time { color: var(--orange); font-size: .79rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.event-card h3 { margin: 18px 0 10px; font-size: 2rem; line-height: 1; letter-spacing: -.045em; }
.event-card p { margin: 0; color: #6f6961; line-height: 1.5; }
.event-card .card-arrow { align-self: end; margin-top: 28px; font-weight: 900; }
.store-card { position: relative; }
.store-state { position: absolute; top: 22px; right: 22px; color: #aaa39a; font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.directory-empty { padding: 55px 25px; border: 1px dashed #c8c0b6; border-radius: 15px; text-align: center; color: #706960; }
.site-footer { padding: 22px; background: #111214; color: #8f8d88; text-align: center; font-size: .75rem; }

.admin-body { background: #f2eee7; color: #171717; }
.admin-shell { min-height: 100svh; padding: 30px 20px 60px; }
.admin-topbar { width: min(1180px, 100%); margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-brand { color: #171717; font-size: .77rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.admin-topbar nav { display: flex; align-items: center; gap: 16px; color: #575149; font-size: .83rem; font-weight: 800; }
.admin-topbar nav a { text-decoration: none; }
.admin-topbar form { margin: 0; }
.link-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 800; }
.admin-card { width: min(100%, 1180px); 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: 16vh; }
.admin-login.wide-login { width: min(100%, 620px); margin-top: 8vh; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.admin-actions form { margin: 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; }
.admin-button.ghost { border: 1px solid #cfc7bc; background: #fff; color: #282521; }
.admin-button.small { min-height: 38px; padding: 0 14px; font-size: .8rem; }
.event-admin-grid { display: grid; gap: 14px; margin-top: 30px; }
.admin-event-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 20px; border: 1px solid #ded8cf; border-radius: 13px; }
.admin-event-card h2 { margin: 5px 0 8px; font-size: 1.45rem; }
.admin-event-card p { margin: 0; color: #706960; line-height: 1.45; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #f4eee5; color: #655f58; font-size: .67rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.admin-event-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status.active { background: #daf4e6; color: #11613e; }
.status.draft { background: #eeeae4; color: #655f58; }
.status.closed { background: #fde2df; color: #912018; }
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin: 28px 0 8px; }
.span-2 { grid-column: span 2; }
.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; }
.metric-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.metric { min-width: 130px; padding: 14px 16px; border-radius: 10px; background: #f5f1eb; }
.metric strong { display: block; font-size: 1.5rem; }
.metric span { color: #706960; font-size: .75rem; }
.section-rule { margin: 42px 0; border: 0; border-top: 1px solid #ded8cf; }
.admin-success { margin: 0 0 18px; padding: 11px 13px; border-left: 4px solid var(--green); background: #e5f5ec; color: #11613e; font-size: .9rem; }
.team-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 34px; margin-top: 30px; align-items: start; }
.team-layout h2 { margin: 0 0 18px; font-size: 1.45rem; }
.invite-form { padding: 22px; border: 1px solid #ded8cf; border-radius: 13px; background: #faf7f2; }
.team-grid { display: grid; gap: 12px; }
.team-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 17px; border: 1px solid #ded8cf; border-radius: 13px; }
.team-card h3 { margin: 8px 0 5px; }
.team-card p { margin: 0; color: #706960; font-size: .88rem; line-height: 1.45; }
.current-user-label { color: #777067; font-size: .76rem; font-weight: 800; }
.invite-link { margin: 24px 0; padding: 16px; border: 1px solid #d7cfc4; border-radius: 10px; background: #f5f1eb; overflow-wrap: anywhere; }
.invite-link code { color: #413c36; font-size: .82rem; }

@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.1rem, 14vw, 5.4rem); }
  .form-panel { min-height: auto; padding: 42px 24px 55px; }
  .admin-event-card { grid-template-columns: 1fr; }
  .admin-event-actions { justify-content: flex-start; }
  .team-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .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, .editor-grid { grid-template-columns: 1fr; gap: 0; }
  .span-2 { grid-column: auto; }
  .event-details { gap: 15px; }
  .learn-list { display: grid; }
  .form-panel { padding-inline: 20px; }
  .directory-hero { min-height: 330px; padding-bottom: 45px; }
  .event-directory { width: min(100% - 28px, 1160px); padding-top: 38px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar nav { display: grid; justify-items: end; gap: 8px; }
  .team-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; } }
