:root {
  --ink: #1b1624;
  --muted: #655f6b;
  --paper: #ffffff;
  --cream: #f9f6f3;
  --line: #e8e2dc;
  --brand-green: #238343;
  --green-soft: #dff3df;
  --green-mist: #eaf3ec;
  --coral: #fd976d;
  --shadow: 0 24px 70px rgba(27, 22, 36, 0.09);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  min-height: 100%;
  background: var(--paper);
  color-scheme: light;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  padding: 18px 0 38px;
}

.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.header-context {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(35, 131, 67, 0.14);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--green-mist);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.invite-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.invite-content {
  padding: 64px 70px 54px;
}

.invite-copy {
  max-width: 850px;
  margin-inline: auto;
}

.guest-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 30px;
}

.guest-portrait {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--green-mist);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(27, 22, 36, 0.1);
  object-fit: cover;
}

.guest-role,
.guest-name,
.experience-label,
.experience-card h2 {
  margin: 0;
}

.guest-role {
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.guest-name {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 730;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 830px;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(46px, 5.8vw, 66px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.11;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.headline-first,
.headline-second {
  display: block;
}

.headline-highlight {
  position: relative;
  z-index: 0;
  color: var(--brand-green);
  font-weight: inherit;
  box-shadow: inset 0 -0.2em 0 var(--green-soft);
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #4d4753;
  font-size: 18px;
  line-height: 1.72;
}

.lead + .lead {
  margin-top: 10px;
}

.lead strong {
  color: var(--ink);
  font-weight: 750;
}

.event-time {
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.event-time strong {
  color: var(--ink);
  font-weight: 740;
}

.event-time span::before {
  margin-right: 14px;
  color: #aaa3ad;
  content: "·";
}

.experience-card {
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 30px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 30px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(27, 22, 36, 0.05);
}

.experience-heading {
  align-self: center;
}

.experience-label {
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.experience-card h2 {
  margin-top: 5px;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 670;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.experience-points {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #514b55;
  font-size: 14px;
  line-height: 1.7;
  list-style: none;
}

.experience-points li {
  position: relative;
  padding: 11px 0 11px 23px;
  border-top: 1px solid var(--line);
}

.experience-points li::before {
  position: absolute;
  top: 21px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  content: "";
  transform: translateY(-50%);
}

.experience-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 9px;
  border-bottom: 1px solid rgba(35, 131, 67, 0.3);
  color: var(--brand-green);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.experience-link:hover {
  border-color: var(--brand-green);
}

.experience-link span {
  font-size: 18px;
  font-weight: 450;
}

.claim-guide {
  max-width: 760px;
  margin: 22px 0 0;
  border-radius: 14px;
  padding: 15px 17px;
  background: #f3f7f2;
  color: #514b55;
  font-size: 14px;
  line-height: 1.65;
}

.claim-guide p {
  margin: 0;
}

.claim-guide .claim-guide-title {
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 760;
}

.claim-guide .claim-guide-help {
  margin-top: 3px;
  color: var(--brand-green);
  font-weight: 650;
}

.status-notice {
  max-width: 760px;
  margin: 22px 0 0;
  border: 1px solid rgba(35, 131, 67, 0.18);
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--green-mist);
  color: var(--brand-green);
  font-size: 14px;
  line-height: 1.6;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.primary-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  border-radius: 999px;
  padding: 0 24px 0 29px;
  background: var(--brand-green);
  box-shadow: 0 10px 24px rgba(35, 131, 67, 0.22);
  color: var(--paper);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  background: #1b6c36;
  box-shadow: 0 13px 28px rgba(35, 131, 67, 0.26);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button span {
  font-size: 22px;
  font-weight: 420;
}

.primary-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

.member-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(101, 95, 107, 0.34);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.member-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.next-step {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.event-inline-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block: -14px;
  margin-inline: -8px;
  padding-inline: 2px;
  color: inherit;
  font-weight: 720;
  text-decoration-color: rgba(35, 131, 67, 0.42);
  text-underline-offset: 3px;
}

.event-inline-link:hover {
  color: var(--brand-green);
}

.cover-wrap {
  padding: 0 16px 16px;
}

.cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  color: var(--paper);
  text-decoration: none;
}

.event-cover {
  width: 100%;
  height: auto;
  transition: filter 180ms ease, transform 180ms ease;
}

.cover-link:hover .event-cover {
  filter: brightness(0.97);
  transform: scale(1.002);
}

.cover-link-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(27, 22, 36, 0.88);
  color: var(--paper);
  font-size: 13px;
  font-weight: 720;
}

.cover-link-label > span {
  font-size: 18px;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(680px, calc(100% - 24px));
    padding-top: 10px;
  }

  .site-header {
    min-height: 58px;
    padding-inline: 4px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .header-context {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .invite-card {
    border-radius: 24px;
  }

  .invite-content {
    padding: 38px 30px 32px;
  }

  .guest-identity {
    margin-bottom: 24px;
  }

  .guest-portrait {
    width: 76px;
    height: 76px;
  }

  h1 {
    font-size: clamp(36px, 9.2vw, 48px);
    line-height: 1.15;
    text-wrap: pretty;
  }

  .lead {
    font-size: 16px;
  }

  .event-time span::before {
    display: none;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 28px;
    padding: 24px 22px;
  }

  .experience-points {
    grid-column: 1;
  }

  .experience-link {
    width: fit-content;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .primary-button {
    width: 100%;
  }

  .member-link {
    align-self: center;
    text-align: center;
  }

  .next-step {
    margin-top: 10px;
    text-align: center;
  }

  .cover-wrap {
    padding: 0 8px 8px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 20px);
    padding-bottom: 24px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .header-context {
    font-size: 10px;
  }

  .invite-content {
    padding: 30px 20px 24px;
  }

  .guest-identity {
    gap: 13px;
    margin-bottom: 22px;
  }

  .guest-portrait {
    width: 68px;
    height: 68px;
  }

  .guest-role {
    font-size: 11px;
  }

  .guest-name {
    font-size: 22px;
  }

  h1 {
    font-size: clamp(33px, 9.5vw, 40px);
    letter-spacing: -0.045em;
    line-height: 1.17;
  }

  .lead {
    margin-top: 20px;
    line-height: 1.68;
  }

  .experience-card {
    border-radius: 18px;
    padding: 21px 18px;
  }

  .experience-card h2 {
    font-size: 24px;
  }

  .experience-points {
    font-size: 13px;
  }

  .primary-button {
    min-height: 56px;
  }

  .cover-link {
    border-radius: 18px;
  }

  .cover-link-label {
    right: 8px;
    bottom: 8px;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
