@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --green: #78be20;
  --green-deep: #188803;
  --green-dark: #136b02;
  --green-soft: #f1f8e9;
  --ink: #1e1e1e;
  --text: #3c3c3c;
  --muted: #6e6e6e;
  --line: #d9d9d9;
  --surface: #f6f6f6;
  --error: #c61112;
  --error-soft: #fdeaea;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { color: var(--ink); line-height: 1.2; }
a { color: var(--green-deep); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container { width: min(960px, 100%); margin: 0 auto; padding: 0 16px; }
.container-narrow { width: min(640px, 100%); }
main.container { flex: 1; padding-top: 40px; padding-bottom: 56px; }

/* header / footer */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 4px; background: var(--green); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.header-logo { display: block; width: 80px; height: auto; }
.header-event { padding-left: 20px; border-left: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; }
.site-footer { padding: 22px 0; color: #fff; background: #2a2a2a; font-size: 13px; }

/* landing */
.landing { background: #fff; }
.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 16px;
  border-top: 6px solid var(--green);
}
.landing-logo { width: min(420px, 72vw); height: auto; }
.landing-event { margin: 0; color: var(--ink); font-size: clamp(15px, 2.4vw, 20px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* intro */
.intro { margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--green-deep); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.intro h1 { margin: 0 0 10px; font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 17px; color: var(--text); }

/* form panel */
.panel { padding: 32px; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.registration { display: grid; gap: 28px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 16px; color: var(--ink); font-size: 20px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.grid legend { grid-column: 1 / -1; float: left; width: 100%; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 14px; font-weight: 700; }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8c8c8c;
  border-radius: var(--radius);
}
.field input:hover { border-color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 2px var(--green-deep) inset; }
.req { color: var(--error); }
.field-error input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error) inset; }
.field-message { margin: 0; color: var(--error); font-size: 13px; font-weight: 600; }

.checks { display: grid; gap: 14px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-deep); cursor: pointer; }
.check label { color: var(--ink); font-size: 15px; cursor: pointer; }
.check .field-message { grid-column: 2; }

.privacy { padding: 14px 16px; background: var(--surface); border-radius: var(--radius); font-size: 14px; }
.privacy summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.privacy-body p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.alert { padding: 14px 16px; color: var(--error); background: var(--error-soft); border-left: 4px solid var(--error); border-radius: var(--radius); font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.button-primary { color: #fff; background: var(--green-deep); }
.button-primary:hover { color: #fff; background: var(--green-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--ink); }
.button-secondary:hover { color: #fff; background: var(--ink); }
.button-link { color: var(--green-deep); background: none; text-decoration: underline; }

.decline-link { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* messages */
.message { padding: 40px 32px; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.message h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.message .lead { max-width: 52ch; margin: 0 auto; }
.message-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; color: var(--ink); background: var(--surface); }
.message-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.message-success .message-icon { color: #fff; background: var(--green-deep); }
.decline-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.summary { margin: 28px 0 0; text-align: left; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

@media (max-width: 640px) {
  .header-inner { min-height: 64px; gap: 14px; }
  .header-logo { width: 64px; }
  .header-event { padding-left: 14px; font-size: 13px; }
  main.container { padding-top: 28px; }
  .panel, .message { padding: 24px 18px; }
  .grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
}
