:root {
  --ink: #24302f;
  --muted: #6f7774;
  --paper: #f8f1e7;
  --white: #fffaf2;
  --green: #245a4d;
  --red: #9b3f38;
  --gold: #b98336;
  --line: rgba(36, 48, 47, 0.16);
  --shadow: 0 20px 60px rgba(47, 38, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--paper);
}

a {
  color: inherit;
}

.section {
  padding: 64px 20px;
}

.section__inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: 36px 20px 58px;
  background: #283933;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 30, 0.2), rgba(20, 32, 30, 0.72)),
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #244d47 0%, #c2a36f 58%, #ece0ca 100%);
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(transparent, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 108px);
  opacity: 0.55;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(860px, 100%);
  margin: 0 auto;
  color: #fffaf2;
}

.hero__year {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 250, 242, 0.56);
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 250, 242, 0.92);
  background: rgba(36, 48, 47, 0.28);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero__year i {
  width: 34px;
  height: 1px;
  background: rgba(255, 250, 242, 0.72);
}

.hero__copy {
  padding-top: 0;
}

.hero__lines {
  margin: 0 0 18px;
  color: #fffaf2;
  font-size: clamp(18px, 3vw, 25px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.hero__lines p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.details h2,
.timeline h2,
.memories h2,
.rsvp h2,
.admin-header h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 900;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.hero__subtitle {
  max-width: 560px;
  margin: 20px 0 28px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 250, 242, 0.86);
}

.primary-link,
button,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #fffaf2;
  background: var(--red);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary-link {
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line);
}

.details,
.rsvp {
  background: var(--white);
}

.details h2,
.timeline h2,
.memories h2,
.rsvp h2,
.admin-header h1 {
  font-size: clamp(28px, 5vw, 48px);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.detail-grid article,
.campus-grid figure,
.rsvp-form,
.admin-login,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
}

.detail-grid article {
  padding: 24px;
}

.detail-grid span,
.detail-grid strong,
label {
  display: block;
}

.detail-grid span,
.form-note {
  color: var(--muted);
}

.detail-grid strong {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.45;
}

.timeline {
  background: #eef3ed;
}

.timeline__list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.timeline__list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__list time {
  color: var(--green);
  font-weight: 800;
}

.timeline__list span {
  font-size: 20px;
}

.memories {
  background: #f5eadb;
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}

.campus-grid figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #e6dccd;
}

.campus-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.campus-grid figure:nth-child(3) img {
  object-position: center top;
}

.campus-grid figure:nth-child(4) img {
  object-position: center center;
}

.campus-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: calc(100% - 28px);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fffaf2;
  background: rgba(36, 48, 47, 0.78);
  font-weight: 800;
}

.photo-credit {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.form-note {
  margin: 18px 0 0;
  line-height: 1.75;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: #fff;
}

.rsvp-form .full,
.rsvp-form button,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
}

textarea {
  resize: vertical;
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-status.is-success {
  color: var(--green);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--red);
  font-weight: 800;
}

.admin-page {
  background: #f3f5f1;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
  background: #fff;
}

.admin-login .form-note {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.admin-summary strong,
.admin-summary span {
  display: block;
}

.admin-summary strong {
  font-size: 32px;
  color: var(--green);
}

.admin-summary span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green);
  background: #f8f1e7;
}

@media (max-width: 760px) {
  .section {
    padding: 48px 16px;
  }

  .hero {
    min-height: 86vh;
    padding: 24px 18px 44px;
  }

  .hero__year {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero__year i {
    width: 24px;
  }

  .hero__copy {
    padding-top: 0;
  }

  .hero__lines {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.58;
  }

  .hero h1 {
    font-size: 50px;
    line-height: 1.08;
  }

  .hero__subtitle {
    max-width: 330px;
    margin: 18px 0 24px;
    font-size: 15px;
    line-height: 1.78;
  }

  .detail-grid,
  .form-layout,
  .rsvp-form,
  .admin-login,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .timeline__list div {
    grid-template-columns: 88px 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .campus-grid {
    display: flex;
    gap: 12px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .campus-grid figure {
    flex: 0 0 82%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
  }

  .campus-grid figcaption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    min-height: 34px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .photo-credit {
    font-size: 12px;
    line-height: 1.6;
  }
}
