:root {
  --tom-accent: #8c6845;
  --tom-accent-soft: #d7c5aa;
  --tom-paper: #f7f2e9;
  --tom-ink: #28343d;
  color-scheme: light only;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/font-cormorant-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body,
button,
input,
textarea,
select {
  font-family: Manrope, Arial, system-ui, sans-serif !important;
}

h1,
h2,
h3,
.font-script,
.font-display,
.font-serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
}

p,
h1,
h2,
h3,
label,
button,
a {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

button,
a[href],
input,
select,
textarea {
  min-height: 44px;
}

button,
a[href] {
  min-width: 44px;
}

:focus-visible {
  outline: 3px solid var(--tom-accent) !important;
  outline-offset: 3px !important;
}

audio,
iframe {
  display: none !important;
}

.tom-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  color: var(--tom-ink);
  background:
    radial-gradient(circle at 20% 16%, color-mix(in srgb, var(--tom-accent-soft) 58%, transparent), transparent 32%),
    radial-gradient(circle at 82% 84%, color-mix(in srgb, var(--tom-accent) 22%, transparent), transparent 30%),
    linear-gradient(145deg, var(--tom-paper), color-mix(in srgb, var(--tom-paper) 78%, var(--tom-accent-soft)));
  transition: opacity 300ms ease;
}

.tom-intro::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid color-mix(in srgb, var(--tom-accent) 52%, transparent);
  pointer-events: none;
}

.tom-intro--closing {
  opacity: 0;
  pointer-events: none;
}

.tom-intro__card {
  position: relative;
  width: min(100%, 520px);
  padding: 56px 28px;
  text-align: center;
}

.tom-intro__eyebrow {
  margin: 0 0 20px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tom-intro h1 {
  margin: 0;
  font-size: clamp(2.65rem, 13vw, 5.25rem);
  font-weight: 400;
  line-height: 0.98;
}

.tom-intro__date {
  margin: 24px 0 34px;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tom-intro__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 290px);
  padding: 13px 24px;
  border: 1px solid var(--tom-accent);
  border-radius: 999px;
  color: var(--tom-paper);
  background: var(--tom-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.tom-toast {
  position: fixed;
  z-index: 2147483001;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 520px;
  margin: auto;
  padding: 16px 18px;
  border: 1px solid var(--tom-accent-soft);
  border-radius: 16px;
  color: var(--tom-ink);
  background: var(--tom-paper);
  box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) {
  .tom-intro::before { inset: 34px; }
  .tom-intro__card { padding: 72px 40px; }
}
