:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62605b;
  --line: #ded8cf;
  --paper: #fffaf2;
  --panel: #ffffff;
  --accent: #d7461f;
  --accent-dark: #9f2e17;
  --green: #2d684d;
  --gold: #d99a2b;
  --shadow: 0 18px 45px rgba(36, 24, 12, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 242, .92);
  border-bottom: 1px solid rgba(23, 23, 23, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 14px;
}

.hero {
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(58px, 10vw, 120px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, .78), rgba(23, 23, 23, .36), rgba(23, 23, 23, .1)),
    url("assets/summer-bbq-tiger-birthday.png") center / cover;
  color: white;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .eyebrow {
  color: #ffd36f;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .96;
}

.hero-copy {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.events-section,
.detail-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.sort-note,
.meta,
.muted {
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  min-height: 184px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-card img {
  width: 100%;
  height: 100%;
  min-height: 184px;
  object-fit: cover;
}

.event-card-body {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 22px 22px 22px 0;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.status {
  width: fit-content;
  padding: 6px 10px;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.event-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 28px;
  align-items: center;
}

.detail-copy h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 68px);
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.info-item,
.content-block,
.registration-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-item {
  padding: 16px;
}

.label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.value {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.content-block,
.registration-panel {
  padding: 22px;
}

.content-block + .content-block {
  margin-top: 16px;
}

.content-block h2,
.registration-panel h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.contribution-list {
  padding-left: 0;
  list-style: none;
}

.contribution-list li {
  padding: 11px 12px;
  background: #f7efe2;
  border-radius: 6px;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-message {
  min-height: 22px;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid rgba(23, 23, 23, .08);
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    min-height: 52vh;
    background-position: 58% center;
  }

  .section-head,
  .detail-hero,
  .content-layout {
    display: block;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card-body {
    padding: 0 18px 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .registration-panel {
    margin-top: 16px;
  }
}
