@import url("https://use.typekit.net/oyo6lbo.css");
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap");

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

:root {
  color-scheme: light;
  --ink: #20272b;
  --ink-soft: rgba(32, 39, 43, .68);
  --muted: rgba(32, 39, 43, .48);
  --paper: #f8f7f1;
  --surface: rgba(255, 255, 255, .72);
  --radius: 8px;
  --gutter: clamp(18px, 4vw, 48px);
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--paper);
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  color: var(--ink);
  font-family: mundial, "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(117, 205, 188, .34), transparent 31%),
    radial-gradient(circle at 78% 24%, rgba(240, 160, 127, .28), transparent 29%),
    radial-gradient(circle at 52% 86%, rgba(154, 159, 222, .22), transparent 34%),
    linear-gradient(145deg, #fffdf7 0%, #eef7f3 42%, #f7f1ea 100%);
  background-color: var(--paper);
}

body.error-page {
  background:
    radial-gradient(circle at 18% 20%, rgba(135, 34, 55, .28), transparent 31%),
    radial-gradient(circle at 78% 24%, rgba(172, 72, 62, .26), transparent 29%),
    radial-gradient(circle at 52% 86%, rgba(92, 33, 59, .2), transparent 34%),
    linear-gradient(145deg, #fff8f4 0%, #f7e8e6 42%, #f1ddd8 100%);
}

body.notice-page {
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(117, 205, 188, .22), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(240, 160, 127, .18), transparent 30%),
    linear-gradient(145deg, #fffdf7 0%, #eef7f3 48%, #f7f1ea 100%);
}

body.notice-page,
body.notice-page * {
  -webkit-user-select: none;
  user-select: none;
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: var(--gutter);
  perspective: 1200px;
  background: transparent;
}

.hero {
  align-self: center;
  justify-self: center;
  width: min(100%, 980px);
  text-align: center;
}

.hero-copy {
  position: relative;
  display: grid;
  justify-items: center;
}

h1 {
  position: relative;
  z-index: 2;
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.25rem, 12vw, 10.25rem);
  line-height: .88;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 18px 54px rgba(109, 123, 119, .18);
}

.title-lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: clamp(140px, 15vw, 210px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate3d(-50%, -50%, 0) scale(.96);
  transition: opacity 160ms ease, transform 160ms ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: radial-gradient(circle, black 0 24%, rgba(0, 0, 0, .86) 34%, rgba(0, 0, 0, .52) 48%, rgba(0, 0, 0, .18) 62%, transparent 78%);
  mask-image: radial-gradient(circle, black 0 24%, rgba(0, 0, 0, .86) 34%, rgba(0, 0, 0, .52) 48%, rgba(0, 0, 0, .18) 62%, transparent 78%);
}

.title-lens.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.error-title span {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 400;
  font-style: normal;
}

.error-title {
  max-width: none;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(.08em, 1vw, .16em);
  white-space: nowrap;
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: .82;
}

.error-title strong {
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 900;
}

.subtitle {
  max-width: 42ch;
  margin: clamp(28px, 5vh, 48px) 0 0;
  color: var(--ink-soft);
  font-family: "DM Serif Text", serif;
  font-size: clamp(1.18rem, 2.7vw, 1.72rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
}

.contact-reveal {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin-top: clamp(30px, 5vh, 48px);
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font: inherit;
  font-size: clamp(.96rem, 2vw, 1.05rem);
  line-height: 1.35;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: rgba(32, 39, 43, .28);
  text-underline-offset: 5px;
  background: transparent;
  cursor: pointer;
}

.page-return {
  text-decoration-thickness: 1px;
}

.contact-reveal:hover,
.contact-reveal:focus-visible {
  outline: 0;
  color: var(--ink);
  text-decoration-color: rgba(32, 39, 43, .62);
}

.footer {
  justify-self: center;
  align-self: end;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 6px;
}

.notice-stage {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  row-gap: clamp(34px, 6vw, 58px);
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px) var(--gutter);
}

.notice-sheet {
  width: min(100%, 820px);
  min-height: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .58)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 28px 90px rgba(61, 75, 79, .18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
}

.notice-sheet h1 {
  max-width: 15ch;
  margin: 0 0 clamp(34px, 5vw, 58px);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: .98;
  font-weight: 900;
}

.notice-sheet h2 {
  margin: clamp(34px, 5vw, 54px) 0 14px;
  color: rgba(32, 39, 43, .9);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.22;
  font-weight: 900;
}

.notice-sheet p {
  margin: 0;
  color: rgba(32, 39, 43, .76);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.72;
}

.notice-sheet p + p {
  margin-top: 1.45em;
}

.notice-sheet ul {
  margin: 1.1em 0 0;
  padding-left: 1.2em;
  color: rgba(32, 39, 43, .76);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.68;
}

.notice-sheet li + li {
  margin-top: .72em;
}

.notice-meta {
  color: var(--muted) !important;
  font-size: clamp(.86rem, 1.4vw, .98rem) !important;
  line-height: 1.55 !important;
}

.silent-link,
.silent-link:hover,
.silent-link:focus-visible,
.silent-link:visited {
  color: inherit;
  text-decoration: none;
  outline: 0;
}

.notice-return {
  margin-top: 0;
}

.notice-footer {
  margin-top: 0;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    overflow-x: hidden;
    background-attachment: scroll;
    background-color: var(--paper);
  }

  .stage {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100dvh;
    padding: 26px 18px 132px;
  }

  .hero {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.35rem, 11.35vw, 3.32rem);
    line-height: .96;
  }

  .title-lens {
    width: 112px;
  }

  .subtitle {
    margin-top: 24px;
    font-size: clamp(1.08rem, 4.8vw, 1.28rem);
  }

  .contact-reveal {
    margin-top: 26px;
  }

  body:not(.notice-page) .footer {
    position: fixed;
    right: 18px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 18px;
    z-index: 5;
    font-size: .72rem;
    max-width: 34ch;
    margin: 0 auto;
  }

  .notice-footer {
    position: static;
    max-width: 34ch;
  }

  .notice-stage {
    padding: 18px;
  }

  .notice-sheet {
    min-height: auto;
    padding: 30px 24px;
  }

  .notice-sheet h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 760px) {
    html,
    body {
      min-height: -webkit-fill-available;
    }

    .stage {
      height: 100dvh;
      min-height: 100dvh;
      padding-top: 26px;
      padding-bottom: 132px;
    }

    h1 {
      font-size: clamp(2.2rem, 10.7vw, 3.08rem);
      line-height: .98;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-lens {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
