/* Get In — getinevents.com
   Dark editorial by default, with a light variant for readers who prefer it.
   Every colour is a token so the two themes stay in step. */

:root {
  color-scheme: dark;
  --bg: #0c0d11;
  --surface: #15171d;
  --surface-2: #1c1f27;
  --line: #262a34;
  --line-2: #333846;
  --ink: #f3f4f7;
  --ink-2: #a6adba;
  --ink-3: #838a99;
  --accent: #d3fb5b;
  --accent-ink: #12160a;
  --accent-dim: #8fae2f;
  --warm: #ffb26b;
  --alert: #ff8f7a;

  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1120px;

  --sans: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fbfbfa;
    --surface: #ffffff;
    --surface-2: #f4f5f3;
    --line: #e5e6e2;
    --line-2: #d5d7d1;
    --ink: #15171b;
    --ink-2: #565d68;
    --ink-3: #676e7c;
    --accent: #2f3a12;
    --accent-ink: #eaffab;
    --accent-dim: #5c7020;
    --warm: #8a5320;
    --alert: #a33520;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.masthead nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.masthead nav a:hover { color: var(--ink); background: var(--surface-2); }
.masthead nav a.cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
.masthead nav a.cta:hover { filter: brightness(1.08); }

/* -------------------------------------------------------------------- hero */

.hero { padding: 68px 0 40px; }

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(44px, 8.5vw, 92px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

.page-head { padding: 56px 0 8px; }
.page-head h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.page-head p {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 17px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ----------------------------------------------------------------- filters */

.finder { padding: 8px 0 0; }

.control.search { position: relative; }

#search {
  width: 100%;
  height: 62px;
  padding: 0 20px 0 54px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color .15s ease, background .15s ease;
}
#search::placeholder { color: var(--ink-3); }
#search:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}

/* Magnifier drawn in CSS so the input needs no icon asset. */
.control.search::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -8px;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
  pointer-events: none;
}
.control.search::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 50%;
  width: 7px;
  height: 2px;
  margin-top: 5px;
  background: var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.filters .control.search { flex: 1 0 100%; }

.control:not(.search) { position: relative; display: inline-flex; }
.control:not(.search) label {
  position: absolute;
  left: 15px;
  top: 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
}

.control:not(.search) select,
.control:not(.search) input {
  appearance: none;
  -webkit-appearance: none;
  min-width: 150px;
  height: 56px;
  padding: 22px 34px 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.control:not(.search) select:hover,
.control:not(.search) input:hover { border-color: var(--line-2); }
.control:not(.search) select:focus,
.control:not(.search) input:focus { outline: none; border-color: var(--accent); }

/* Chevron for the selects. */
.control.pick::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -1px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}
@media (prefers-color-scheme: light) {
  input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
}

.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

#result-count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: color .15s ease;
}
.text-button:hover { color: var(--accent); }
.text-button:disabled {
  color: var(--ink-3);
  cursor: default;
  text-decoration-color: transparent;
  opacity: .6;
}

/* ------------------------------------------------------------ event cards */

main { padding-bottom: 96px; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.event-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.event-body { flex: 1; padding: 22px 22px 18px; }

.event-when {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.event-when .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-dim);
}
.event-when .time { color: var(--ink-2); font-weight: 500; }

.event-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { color: var(--accent); }

.where {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.description {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill.status { border-color: var(--alert); color: var(--alert); }

.card-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.card-footer a {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.card-footer a:hover { color: var(--accent); }

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.like-button:hover { color: var(--accent); border-color: var(--accent-dim); }
.like-button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.like-button:disabled { cursor: wait; opacity: .55; }
.like-heart { font-size: 14px; line-height: 1; }
.like-button[aria-pressed="true"] .like-heart { font-size: 0; }
.like-button[aria-pressed="true"] .like-heart:after { content: "\2665"; font-size: 14px; }

/* Skeletons hold the card height so the first paint does not reflow. */
.skeleton-card {
  height: 204px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 240% 100%;
  animation: sweep 1.5s ease-in-out infinite;
}
@keyframes sweep {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card { animation: none; }
  .event-card, .masthead nav a, .text-button, .like-button { transition: none; }
  .event-card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

.load-more { display: flex; justify-content: center; margin-top: 34px; }
.load-more button {
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.load-more button:hover { border-color: var(--accent); color: var(--accent); }
.load-more button:disabled { opacity: .5; cursor: wait; }

.notice { padding: 76px 20px; text-align: center; }
.notice h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.notice p { margin: 0; color: var(--ink-3); }
.notice.error h2 { color: var(--alert); }

/* ------------------------------------------------------------ event detail */

.detail { max-width: 760px; padding: 8px 0 0; }

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.detail h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
}
.detail .when {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.detail .description {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.detail dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px 32px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.detail dt {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.detail dd { margin: 0; font-size: 15px; line-height: 1.5; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: filter .15s ease;
}
.button-link:hover { filter: brightness(1.08); }
.button-link.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.button-link.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ----------------------------------------------------------- content pages */

.page { max-width: 680px; padding: 8px 0 0; }
.page h3 {
  margin: 44px 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.page p, .page li { color: var(--ink-2); line-height: 1.7; font-size: 17px; }
.page > p:first-child { font-size: 19px; color: var(--ink); }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 8px; }
.page a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.page a:hover { border-bottom-color: var(--accent); }

.legal-page { max-width: 820px; }
.legal-page h2 {
  margin: 48px 0 12px;
  font-size: clamp(23px, 3.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  scroll-margin-top: 86px;
}
.legal-page h3 { margin-top: 30px; }
.legal-summary,
.legal-toc {
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-summary { border-left: 4px solid var(--accent); }
.legal-summary h2,
.legal-toc h2 { margin: 0 0 10px; font-size: 20px; scroll-margin-top: 86px; }
.legal-summary p { margin-bottom: 0; }
.legal-toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 22px; }
.legal-toc li { break-inside: avoid; margin-bottom: 5px; font-size: 15px; }

.hint {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.field label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field textarea, .field input {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease;
}
.field textarea {
  min-height: 190px;
  line-height: 1.6;
  resize: vertical;
}
.field textarea::placeholder, .field input::placeholder { color: var(--ink-3); }
.field textarea:focus, .field input:focus { outline: none; border-color: var(--accent); }

.submit-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 26px; }
.submit-row button {
  min-height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 650 15px/1 var(--sans);
  cursor: pointer;
  transition: filter .15s ease;
}
.submit-row button:hover { filter: brightness(1.08); }
.submit-row button:disabled { opacity: .45; cursor: not-allowed; }

.form-status { margin-top: 20px; font-size: 15px; line-height: 1.55; }
.form-status.error { color: var(--alert); }
.form-status.ok { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--ink-3);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--ink-3); text-decoration: none; }
footer nav a:hover { color: var(--accent); }

/* ------------------------------------------------------------ small screens */

@media (max-width: 760px) {
  .shell { padding: 0 18px; }
  .hero { padding: 44px 0 30px; }
  .hero h1 { max-width: none; }
  .page-head { padding: 38px 0 4px; }
  .masthead nav a:not(.cta) { display: none; }
  .filters .control:not(.search) { flex: 1 1 calc(50% - 5px); }
  .control:not(.search) select,
  .control:not(.search) input { min-width: 0; width: 100%; }
  .event-grid { grid-template-columns: 1fr; }
  .card-footer { flex-wrap: wrap; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 420px) {
  .filters .control:not(.search) { flex: 1 1 100%; }
}
