:root {
  --ink: #221e19;
  --muted: #5e5a51;
  --line: rgba(34, 30, 25, 0.18);
  --paper: #d9cdb7;
  --paper-light: #f0e6d6;
  --paper-warm: #cbbda5;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
}

.preview-shell {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100svh;
  min-height: 100vh;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(54rem 33rem at 8% 49%, rgba(252, 244, 226, 0.78), transparent 66%),
    radial-gradient(61rem 35rem at 53% 49%, rgba(246, 235, 212, 0.86), transparent 68%),
    radial-gradient(40rem 25rem at 84% 56%, rgba(232, 217, 192, 0.46), transparent 70%),
    linear-gradient(180deg, #d8ccb6 0%, #e3d8c5 49%, #d3c5ad 100%);
}

.preview-shell::before,
.preview-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.preview-shell::before {
  opacity: 0.27;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0, transparent 108px, rgba(80, 69, 55, 0.035) 109px, transparent 111px);
  mix-blend-mode: multiply;
}

.preview-shell::after {
  background:
    linear-gradient(180deg, transparent 0 72%, rgba(83, 70, 52, 0.1) 91%, rgba(62, 51, 39, 0.16) 100%),
    radial-gradient(70rem 16rem at 56% 93%, rgba(65, 51, 36, 0.22), transparent 72%);
}

.announcement {
  position: relative;
  display: grid;
  align-content: center;
  width: min(100% - clamp(40px, 8vw, 176px), 1180px);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 84px) 0;
}

.announcement::before {
  width: min(100%, 780px);
  height: 1px;
  margin-bottom: clamp(26px, 4vw, 46px);
  content: "";
  background: var(--line);
}

.kicker {
  margin: 0 0 clamp(8px, 1.5vw, 16px);
  color: var(--muted);
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  max-width: 8ch;
  font-size: clamp(4.6rem, 15vw, 18rem);
  font-weight: 700;
  letter-spacing: 0.095em;
  line-height: 0.78;
  text-rendering: geometricPrecision;
  text-transform: uppercase;
}

.byline {
  max-width: 26rem;
  margin: clamp(26px, 5vw, 58px) 0 0;
  color: #4f4b43;
  font-size: clamp(1rem, 1.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.site-footer {
  width: calc(100% - clamp(40px, 8vw, 176px));
  margin: 0 auto;
  padding: clamp(18px, 3.4vh, 42px) 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: #5a554c;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (max-width: 960px) {
  .announcement,
  .site-footer {
    width: calc(100% - 48px);
  }

  h1 {
    font-size: clamp(4.3rem, 17vw, 10rem);
    letter-spacing: 0.075em;
  }
}

@media (max-width: 720px) {
  .announcement {
    width: calc(100% - 48px);
    padding: clamp(24px, 5vh, 44px) 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.55rem, 19vw, 6.8rem);
    letter-spacing: 0.055em;
  }

  .byline {
    max-width: 16rem;
    margin-top: 22px;
    font-size: clamp(0.98rem, 4vw, 1.18rem);
  }

  .site-footer {
    width: calc(100% - 48px);
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0));
  }

  .site-footer p {
    max-width: 15rem;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .announcement,
  .site-footer {
    width: calc(100% - 32px);
  }

  .announcement::before {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.1rem);
    letter-spacing: 0.04em;
  }
}

@media (max-height: 760px) {
  .announcement {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .announcement::before {
    margin-bottom: 18px;
  }

  .kicker {
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(3.8rem, 12vw, 7rem);
  }

  .byline {
    margin-top: 18px;
    font-size: clamp(0.98rem, 1.8vw, 1.18rem);
  }

  .site-footer {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-height: 600px) {
  .announcement,
  .site-footer {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(2.8rem, 11vw, 5rem);
    line-height: 0.84;
  }

  .byline {
    max-width: 100%;
    margin-top: 14px;
    font-size: 0.95rem;
  }
}
