:root {
  --bg: #111111;
  --paper: #f4f2ed;
  --ink: #111111;
  --muted: #77746e;
  --accent: #c7ff38;
  --line: rgba(17,17,17,.14);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.cover {
  min-height: 100dvh;
  min-height: 100svh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--safe-top) 18px var(--safe-bottom);
  background: var(--bg);
  color: #fff;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cover-top,
.cover-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
}

.orb {
  position: absolute;
  width: min(88vw, 430px);
  height: min(88vw, 430px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 100px rgba(199,255,56,.09);
}

.orb-content {
  width: 100%;
  height: 100%;
  padding: 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  pointer-events: none;
}

.ring-a {
  width: 118%;
  height: 118%;
  animation: spin 22s linear infinite;
}

.ring-b {
  width: 145%;
  height: 145%;
  border-style: dashed;
  opacity: .5;
  animation: spinReverse 30s linear infinite;
}

.orb-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .82;
}

.orb-date strong {
  font-size: clamp(78px, 24vw, 125px);
  font-weight: 700;
  letter-spacing: -.09em;
}

.orb-date span {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.cover-name {
  margin: 23px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.open-button {
  margin-top: 24px;
  min-height: 43px;
  padding: 0 17px 0 19px;
  border: 1px solid rgba(17,17,17,.35);
  border-radius: 999px;
  background: rgba(244,242,237,.12);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.open-button:active {
  transform: scale(.96);
}

.open-button:hover {
  background: rgba(244,242,237,.3);
}

.button-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.invite {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--paper);
  padding: 38px 20px max(34px, env(safe-area-inset-bottom));
}

.invite-wrap {
  width: min(680px, 100%);
  margin: auto;
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
}

.hello {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}

.hello b {
  color: var(--ink);
  font-weight: 700;
}

.hello-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.intro {
  margin: 25px 0 42px;
}

.intro p {
  margin: 0;
  font-size: clamp(31px, 8.5vw, 58px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 500;
}

.intro strong {
  font-weight: 700;
}

.event-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 27px;
}

.event-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--muted);
}

.event-date {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 27px 0 39px;
}

.event-day {
  font-size: clamp(105px, 31vw, 180px);
  line-height: .68;
  letter-spacing: -.1em;
  font-weight: 700;
}

.event-date > div {
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}

.event-month {
  font-size: clamp(29px, 8vw, 50px);
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 700;
}

.event-weekday {
  margin-top: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-place {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 14px;
}

.event-label {
  padding-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--muted);
}

.event-place h1 {
  margin: 0;
  font-size: clamp(55px, 16vw, 84px);
  line-height: .84;
  letter-spacing: -.09em;
  font-weight: 700;
}

.event-place p {
  margin: 13px 0 0;
  max-width: 350px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.map-link {
  margin: 25px 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}

.map-arrow {
  font-size: 15px;
  line-height: .8;
}

.closing {
  margin: auto 0 10px 57px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.end-mark {
  margin-top: auto;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--muted);
  text-transform: uppercase;
}

.end-shape {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@media (max-width: 600px) {
  .cover {
    padding-left: 16px;
    padding-right: 16px;
  }

  .orb {
    width: min(88vw, 390px);
    height: min(88vw, 390px);
  }

  .invite {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro {
    margin-top: 23px;
  }
}

@media (max-height: 700px) {
  .orb {
    width: min(74vh, 370px);
    height: min(74vh, 370px);
  }

  .intro {
    margin-top: 18px;
    margin-bottom: 28px;
  }

  .event-date {
    margin-top: 21px;
    margin-bottom: 27px;
  }

  .end-mark {
    margin-top: 7vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-a, .ring-b { animation: none; }
}

@media (hover: none) {
  .open-button:hover {
    background: rgba(244,242,237,.12);
  }
}
