:root {
  --ink: #172018;
  --muted: #667067;
  --paper: #f7f5ef;
  --card: #ffffff;
  --accent: #cbea75;
  --line: #d9ddd5;
  --nav-height: 114px;
  --nav-row-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  padding-top: var(--nav-height);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(247,245,239,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  width: min(1120px, calc(100% - 28px));
  min-height: var(--nav-row-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.nav-contact {
  margin: 0;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.5;
  text-align: center;
}

.nav-contact a {
  display: inline-block;
  font-weight: 700;
  text-underline-offset: 3px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.hero p {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
}

.section {
  padding: 48px 0 80px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -.04em;
}

.section p { max-width: 760px; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 30px;
}

.home-card,
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.home-card h3 { margin: 0 0 8px; }
.home-card p { color: var(--muted); }
.home-card a { font-weight: 800; }

.events-list {
  display: grid;
  gap: 22px;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

.event-row {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 24px;
}

.event-poster {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.event-details { min-width: 0; padding: 8px 0; }
.section .event-title { margin: 0 0 16px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1; }
.event-description { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.timezone-picker { margin-top: 28px; }
.timezone-picker h3 { margin: 0 0 14px; font-size: 1rem; }

.register-button,
.secondary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.register-button {
  background: var(--ink);
  color: white;
}

.register-button:hover { opacity: .88; }
.register-button[aria-expanded="true"] { background: #4e574f; }

.registration-panel {
  scroll-margin-top: calc(var(--nav-height) + 18px);
  border-top: 1px solid var(--line);
  background: #fbfaf6;
  padding: 22px;
}

[hidden] { display: none !important; }
.registration-panel h3 { margin: 0 0 5px; }
.registration-panel p { margin: 0 0 16px; color: var(--muted); }

.timezone-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}

.timezone-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px;
  border: 2px solid #9ca99e;
  border-radius: 12px;
  background: #e4ebe5;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.timezone-option:hover {
  border-color: var(--ink);
  background: #d5dfd7;
}
.timezone-option[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--accent);
}

.timezone-option:focus-visible,
.register-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.google-form-frame {
  width: 100%;
  height: 980px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.notice + .notice { margin-top: 16px; }
.notice time { color: var(--muted); font-size: .9rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 48px;
  color: var(--muted);
}

@media (max-width: 760px) {
  :root { --nav-height: 130px; --nav-row-height: 66px; }

  .nav-inner { width: min(100% - 20px, 1120px); }
  .brand span { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .86rem; }
  .hero { padding-top: 48px; }
  .home-grid { grid-template-columns: 1fr; }

  .event-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .event-row { padding: 18px; }
  .event-poster { width: min(100%, 420px); justify-self: center; }
  .register-button {
    width: 100%;
  }

  .google-form-frame { height: 1100px; }
}

@media (max-width: 430px) {
  .nav-inner { gap: 12px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: .79rem; }
}
