* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-base: #c9c4ba;
  --paper: #f6f2ea;
  --paper-edge: #ebe5da;
  --paper-shadow: rgba(58, 49, 39, 0.14);
  --ink-main: #303030;
  --ink-muted: #565656;
  --olive-dark: #3f4f36;
  --olive: #607355;
}

body {
  min-height: 100vh;
  padding: 28px 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink-main);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.32) 0, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #b8b3a8 0%, #cec9be 55%, #c5c0b5 100%);
}

.page {
  width: min(100%, 460px);
  margin: 0 auto;
  overflow-x: hidden;
}

.single-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #f9f7f2 100%);
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 12px 34px var(--paper-shadow),
    0 2px 10px rgba(64, 54, 43, 0.08);
  position: relative;
}

.single-column::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 85% 80%, rgba(244, 237, 225, 0.35) 0, rgba(244, 237, 225, 0) 30%);
}

.img-block {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: var(--paper);
}

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

.img-main img {
  object-position: center 44%;
}

.img-panoramic img {
  object-position: center 72%;
}

.img-venue img {
  object-position: center 57%;
}

.img-closing img {
  object-position: center 62%;
}

.img-block::before,
.img-block::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 2;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.img-block::before {
  top: -16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 28' preserveAspectRatio='none'%3E%3Cpolygon fill='%23f6f2ea' points='0,0 100,0 100,13.8 89,18 77,12 64,16.7 50,11.5 37,16.4 24,11.5 12,17 0,13.8'/%3E%3C/svg%3E");
}

.img-block::after {
  bottom: -16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 28' preserveAspectRatio='none'%3E%3Cpolygon fill='%23f6f2ea' points='0,28 100,28 100,14.2 89,10 77,16 64,9.3 50,14.5 37,9.6 24,14.5 12,9 0,14.2'/%3E%3C/svg%3E");
}

.img-main {
  aspect-ratio: 4 / 6;
}

.img-main::before {
  display: none;
}

.motto {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #f3eee6;
  text-shadow: 0 1px 3px rgba(42, 36, 29, 0.35);
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 3.8vw, 2rem);
  white-space: nowrap;
}

.names {
  margin: 28px 16px 10px;
  text-align: center;
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--olive-dark);
  position: relative;
  line-height: 1.1;
}

.names::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, rgba(96, 115, 85, 0), rgba(96, 115, 85, 0.55), rgba(96, 115, 85, 0));
}

.block {
  padding: 10px 34px 0;
  text-align: center;
}

.block p {
  font-size: 1.14rem;
  line-height: 1.38;
  color: var(--ink-muted);
}

.heading-caps {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-main);
}

.date-large {
  margin: 18px 0 20px;
  text-align: center;
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  line-height: 1;
  color: var(--olive-dark);
  letter-spacing: 0.06em;
}

.img-panoramic {
  aspect-ratio: 16 / 11.2;
  margin: 18px 0 12px;
}

.block-location {
  padding-top: 16px;
}

.venue-name {
  font-size: 1.62rem;
  color: var(--ink-main);
  margin-bottom: 5px;
  line-height: 1.05;
}

.venue-address {
  font-size: 1.04rem;
}

.block-program {
  padding-top: 16px;
}

.program-time {
  margin-top: 13px;
  font-size: 1.9rem;
  color: var(--ink-main);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.program-note,
.program-detail {
  margin-top: 3px;
  font-size: 1rem;
}

.img-venue {
  aspect-ratio: 16 / 9.1;
  margin: 20px 0 14px;
}

.block-dresscode p {
  font-size: 1.05rem;
}

.palette {
  margin: 16px auto 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.palette--photos {
  flex-wrap: wrap;
  max-width: 100%;
  row-gap: 12px;
}

.palette-thumb {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(65, 56, 44, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(58, 49, 39, 0.1);
}

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

.block-organizer {
  padding-top: 18px;
  padding-bottom: 18px;
}

.organizer-intro {
  margin-bottom: 14px;
  font-size: 1.06rem;
  line-height: 1.42;
}

.organizer-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-main);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.organizer-phone {
  font-size: 1.28rem;
}

.organizer-phone a {
  color: var(--olive-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 79, 54, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.organizer-phone a:hover {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.img-closing {
  aspect-ratio: 16 / 24.5;
  margin-top: 14px;
  display: grid;
  place-items: center;
  text-align: center;
}

.img-closing::after {
  display: none;
}

.closing-date,
.closing-text {
  position: absolute;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.closing-date {
  top: 25%;
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
}

.closing-text {
  top: 79%;
  width: 68%;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

@media (max-width: 420px) {
  body {
    padding: 12px 10px;
  }

  .img-main {
    aspect-ratio: 4 / 5.75;
  }

  .img-panoramic {
    aspect-ratio: 16 / 10;
  }

  .img-venue {
    aspect-ratio: 16 / 8.4;
  }

  .img-closing {
    aspect-ratio: 16 / 23.5;
  }

  .block {
    padding: 8px 22px 0;
  }

  .program-time {
    font-size: 1.64rem;
  }

  .venue-name {
    font-size: 1.46rem;
  }

  .closing-text {
    font-size: 1rem;
  }

  .palette-thumb {
    width: 56px;
    height: 56px;
  }
}
