@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The logo's own background: the page must match it exactly. */
  --lamp-black: #1a0703;
  --ember: #4a1a06;
  --saffron: #e8862a;
  --gold: #f2b544;
  --parchment: #f3ddb8;
  --muted: #b8936a;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--lamp-black);
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--lamp-black);
  color: var(--parchment);
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lang {
  justify-self: end;
  padding: 1.25rem 1.5rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.lang a {
  color: var(--muted);
  font-size: 1.0625rem;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.lang a:hover {
  color: var(--parchment);
  text-decoration-color: currentColor;
}

main {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem 4.5rem;
}

h1 {
  margin: 0;
  position: relative;
  isolation: isolate;
  line-height: 0;
}

/* The lamp: a glow that lights up once behind the logo. */
h1::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 46%,
    color-mix(in oklab, var(--saffron) 38%, var(--lamp-black)) 0%,
    color-mix(in oklab, var(--ember) 70%, var(--lamp-black)) 30%,
    var(--lamp-black) 64%
  );
  animation: kindle 2.8s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

h1 img {
  display: block;
  width: min(23rem, 84vw);
  height: auto;
  /* Lets the glow show through the logo's flat dark background. */
  mix-blend-mode: lighten;
}

main p {
  position: relative;
}

.what {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--parchment);
  letter-spacing: 0.005em;
}

.where {
  margin: 0.375rem 0 0;
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  color: var(--muted);
}

.contact {
  margin: 2.25rem 0 0;
  font-size: 1.375rem;
}

.contact a {
  color: var(--gold);
  text-decoration-color: color-mix(in oklab, var(--gold) 40%, transparent);
  transition: text-decoration-color 0.2s;
}

.contact a:hover {
  text-decoration-color: var(--gold);
}

@keyframes kindle {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1::before {
    animation: none;
  }
}
