:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --dim: rgba(245, 241, 232, 0.52);
  --line: rgba(245, 241, 232, 0.18);
  --field: rgba(255, 255, 255, 0.08);
  --panel: rgba(5, 13, 20, 0.32);
  --accent: #d7b46a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #071118;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
}

body::before {
  z-index: -2;
  background-image: url("docs/there-be-dragons-1-luma-cover.png");
  background-position: 58% center;
  background-size: cover;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 13, 20, 0.91), rgba(5, 13, 20, 0.52)),
    linear-gradient(180deg, rgba(5, 13, 20, 0.22), rgba(5, 13, 20, 0.72));
}

.page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(28px, 5vw, 54px);
  width: min(100% - 40px, 980px);
  margin-inline: auto;
  padding-block: clamp(38px, 8vw, 76px);
}

.intro {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.copy {
  max-width: 620px;
}

.lead,
.note,
.privacy,
.form-status,
.site-footer {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

h1 {
  margin: 0;
  color: rgba(245, 241, 232, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.lead {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.42;
}

.note {
  max-width: 560px;
  margin-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: rgba(245, 241, 232, 0.5);
  font-size: 0.9rem;
  line-height: 1.65;
}

.note a {
  color: rgba(245, 241, 232, 0.7);
  text-decoration-color: rgba(215, 180, 106, 0.48);
  text-underline-offset: 3px;
}

.contact-form {
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

label em {
  color: var(--dim);
  font-style: normal;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: rgba(215, 180, 106, 0.72);
}

button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  margin-top: 4px;
  background: var(--ink);
  color: #08141d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.privacy,
.form-status {
  margin-top: 11px;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.2em;
}

.contact-form[data-state="success"] .form-status {
  color: #b7e2c0;
}

.contact-form[data-state="error"] .form-status {
  color: #efad9d;
}

.site-footer {
  color: rgba(245, 241, 232, 0.42);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(245, 241, 232, 0.56);
  text-decoration-color: rgba(215, 180, 106, 0.42);
  text-underline-offset: 3px;
}

@media (min-width: 820px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 640px) {
  body::before {
    background-position: 64% center;
  }

  body::after {
    background:
      linear-gradient(90deg, rgba(5, 13, 20, 0.94), rgba(5, 13, 20, 0.7)),
      linear-gradient(180deg, rgba(5, 13, 20, 0.08), rgba(5, 13, 20, 0.72));
  }

  .page {
    width: min(100% - 32px, 1040px);
  }
}
