@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cinzel-latin-400-normal.63126eeda831.woff2") format("woff2");
}

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cinzel-latin-600-normal.bd1fede05376.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.45095953546c.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.b43512f91459.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.27ab01c4cb50.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.9a35cba76eda.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #090807;
  --bg-raised: rgba(18, 15, 12, 0.72);
  --bone: #f3eadc;
  --bone-soft: #ddd0bc;
  --muted: #cfc3b0;
  --gold: #c6a56a;
  --gold-line: rgba(198, 165, 106, 0.42);
  --danger: #f0c7bb;
  --display: "Cinzel", Palatino, "Palatino Linotype", Georgia, serif;
  --editorial: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --measure: 40rem;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--bone);
  background:
    radial-gradient(ellipse at 50% 18%, #1a1612 0%, rgba(26, 22, 18, 0) 46%),
    var(--bg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(198, 165, 106, 0.35);
  color: var(--bone);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--bg);
  color: var(--bone);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.22;
  background-image: url("../img/noise.3cf98bc24e1b.png");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

a {
  color: var(--bone-soft);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--bone);
}

.veil,
.sheet {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.landing,
.prose,
.specimen {
  position: relative;
  z-index: 1;
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 2.75rem 1.35rem 1.5rem;
}

.seal {
  position: relative;
  width: min(46vw, 188px);
  margin-bottom: 0.4rem;
}

.seal img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 165, 106, 0.55), rgba(198, 165, 106, 0) 70%);
  filter: blur(7px);
  animation: candle 8s ease-in-out infinite;
}

@keyframes candle {
  0%,
  100% { opacity: 0.32; }
  18% { opacity: 0.9; }
  27% { opacity: 0.28; }
  47% { opacity: 0.72; }
  68% { opacity: 0.34; }
  82% { opacity: 0.78; }
}

.kicker {
  margin: 1.1rem 0 0.35rem;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.invitation {
  margin: 0.35rem 0 1.6rem;
  max-width: 16ch;
  font-family: var(--editorial);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.85rem, 7vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--bone);
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 4.4vw, 2.15rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
}

.notice,
.success p,
.message {
  margin: 0 0 1.1rem;
  color: var(--bone-soft);
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
}

.messages {
  width: min(100%, 24rem);
}

.petition {
  width: min(100%, 24rem);
  text-align: left;
}

.petition label,
.name-form label,
.seal-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--bone-soft);
  font-size: 1rem;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.7rem 0.05rem;
  border: none;
  border-bottom: 1px solid rgba(198, 165, 106, 0.8);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 1rem;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1rem 0 1.15rem;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex: none;
}

.check label {
  margin: 0;
}

button,
.quiet-button {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--gold-line);
  padding: 0.9rem 1rem;
  width: 100%;
  cursor: pointer;
}

button:hover {
  border-color: var(--gold);
  background: rgba(198, 165, 106, 0.08);
}

.err,
.message.error {
  color: var(--danger);
  font-family: var(--body);
  font-style: normal;
  font-size: 0.95rem;
}

.text-link {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.15rem;
}

.return {
  margin: 0.4rem 0 0;
}

.colophon {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.5rem 1.25rem 1.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.colophon nav {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
}

.colophon p {
  margin: 0.45rem 0 0;
}

.sheet {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 2.4rem 1.3rem 1rem;
}

.archive-head {
  text-align: center;
  margin-bottom: 2rem;
}

.archive-head h1 {
  margin: 0.2rem 0 0.35rem;
}

.mark {
  width: 52px;
  height: auto;
}

.designation {
  margin: 0.15rem 0;
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--bone);
}

.chosen {
  margin: 0.15rem 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sign {
  margin: 0 0 1.5rem;
  padding: 1.35rem 1.15rem 1.3rem;
  border: 1px solid var(--gold-line);
  background: var(--bg-raised);
  text-align: left;
}

.sign h2 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sign img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1rem;
}

.lore p {
  margin: 0 0 0.9rem;
}

.lore p:last-child {
  margin-bottom: 0;
}

.lore em {
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1.08em;
}

.lore a {
  color: var(--bone);
}

.seal-form,
.name-form {
  margin-top: 1.25rem;
  text-align: left;
}

.opened {
  margin: 1.1rem 0 0;
  color: var(--gold);
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1.2rem;
}

.more {
  margin: 2.2rem 0 0.4rem;
  text-align: center;
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--bone-soft);
}

.name-form {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(198, 165, 106, 0.22);
}

.farewell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.6rem;
}

.quiet-button {
  width: auto;
  border: none;
  padding: 0.35rem 0;
  color: var(--muted);
}

.quiet-button:hover {
  background: transparent;
  color: var(--bone);
}

.quiet-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: 2.8rem 1.35rem 1rem;
}

.prose h1 {
  margin: 0.2rem 0 1.2rem;
}

.prose p,
.prose li {
  color: var(--bone-soft);
}

.plain-statement {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-line);
}

.plain-statement h2 {
  margin: 0 0 0.6rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.narrow {
  width: min(100%, 28rem);
}

.specimen {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 2.8rem 1.35rem 3rem;
  text-align: center;
}

.lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: var(--bone-soft);
}

.variants {
  display: grid;
  gap: 1.5rem;
}

.variants figure {
  margin: 0;
  padding: 1.5rem 1rem 1.1rem;
  border: 1px solid var(--gold-line);
  background: rgba(9, 8, 7, 0.55);
}

.variants img {
  display: block;
  margin: 0 auto;
}

.variants .tiny {
  width: 32px;
  height: 32px;
  margin-top: 1rem;
}

.variants figcaption {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (min-width: 800px) {
  .variants {
    grid-template-columns: 1fr 1fr 1.3fr;
    align-items: stretch;
  }

  .landing {
    padding-top: 3.5rem;
  }
}

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

  .seal::before {
    opacity: 0.4;
    filter: none;
  }
}
