:root {
  --bg: #070508;
  --panel: rgba(10, 8, 12, 0.78);
  --fg: #f2ebe3;
  --muted: #b5a99a;
  --magenta: #e91e8c;
  --gilt: #c9a227;
  --gilt-soft: rgba(201, 162, 39, 0.45);
  --rule: rgba(201, 162, 39, 0.28);
  --max: 42rem;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--bg);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(233, 30, 140, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 0, 0, 0.75), transparent 60%),
    radial-gradient(circle at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    url("assets/floral-wallpaper.svg"),
    linear-gradient(180deg, #120c14 0%, #070508 55%, #050306 100%);
  background-size: auto, auto, auto, 240px 240px, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  opacity: 1;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 8, 0.62);
}

.frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--max);
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 80px rgba(201, 162, 39, 0.04);
}

.ornament {
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  background: url("assets/thorn-ornament.svg") no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}

.ornament-tl { top: 0.35rem; left: 0.35rem; }
.ornament-tr { top: 0.35rem; right: 0.35rem; transform: scaleX(-1); }
.ornament-bl { bottom: 0.35rem; left: 0.35rem; transform: scaleY(-1); }
.ornament-br { bottom: 0.35rem; right: 0.35rem; transform: scale(-1); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem 0;
}

.masthead-mark {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px var(--gilt-soft);
}

.masthead-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gilt);
}

main {
  flex: 1;
  padding: 1.75rem 0.5rem 1rem;
}

.hero {
  text-align: center;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.hero-body {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

.status {
  margin: 0 0 0.5rem;
  color: var(--magenta);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

.from {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: italic;
}

.slot {
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  min-height: 10rem;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 40px rgba(201, 162, 39, 0.05);
}

.slot-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}




.footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 0.65rem 0.5rem 0.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--magenta);
  background: rgba(233, 30, 140, 0.1);
  outline: none;
}

.social-link.is-soon {
  opacity: 0.4;
  cursor: default;
}

.social-link.is-soon:hover,
.social-link.is-soon:focus-visible {
  color: var(--muted);
  background: transparent;
}

.social-icon {
  width: 0.8125rem;
  height: 0.8125rem;
  display: block;
}

.social-link[title]:not(summary)::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(0.1rem);
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  background: rgba(10, 8, 12, 0.95);
  border: 1px solid var(--rule);
  color: var(--fg);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.social-link[title]:not(summary):hover::after,
.social-link[title]:not(summary):focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .social-link,
  .social-link[title]:not(summary)::after {
    transition: none;
  }
}


.email-menu {
  position: relative;
}

.email-menu > summary {
  list-style: none;
  cursor: pointer;
}

.email-menu > summary::-webkit-details-marker {
  display: none;
}

.email-list {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.35rem 0.4rem;
  list-style: none;
  min-width: 13.5rem;
  background: rgba(10, 8, 12, 0.96);
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.email-list a {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.22rem 0.3rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  border-radius: 0.2rem;
}

.email-list a:hover,
.email-list a:focus-visible {
  color: var(--magenta);
  background: rgba(233, 30, 140, 0.1);
  outline: none;
}

.email-role {
  flex: 0 0 3.4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.5625rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  text-align: center;
  letter-spacing: 0.04em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}


@media (min-width: 48rem) {
  .frame {
    width: calc(100% - 3rem);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: calc(100vh - 3rem);
    border-radius: 0.15rem;
  }

  .hero-body {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere {
    background-attachment: scroll;
  }
}

.masthead-home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.frame-legal {
  max-width: 44rem;
}

.legal {
  padding: 1rem 0.5rem 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal-back {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.legal-back a {
  color: var(--muted);
  text-decoration: none;
}

.legal-back a:hover,
.legal-back a:focus-visible {
  color: var(--magenta);
  outline: none;
}

.legal h1 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", Palatino, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gilt);
}

.legal h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.legal h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.legal p {
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.legal ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--fg);
}

.legal li {
  margin: 0.2rem 0;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.8125rem;
}

.legal-draft {
  padding: 0.65rem 0.75rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  background: rgba(233, 30, 140, 0.08);
  color: var(--fg);
  font-size: 0.8125rem;
}

.footer-legal {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--magenta);
  outline: none;
}

.footer-legal span {
  color: var(--rule);
}
