:root {
  --background: #100e17;
  --panel: #1b1725;
  --purple: #a78bfa;
  --purple-light: #c4b5fd;
  --white: #f8f7fb;
  --muted: #b5afc2;
  --border: #393246;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 7%;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.logo span,
h1 span,
h2 span {
  color: var(--purple);
}

nav {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}

nav a,
footer a {
  color: var(--muted);
}

nav a:hover,
footer a:hover {
  color: var(--purple-light);
}

.hero {
  min-height: 78vh;
  padding: 110px 10% 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    radial-gradient(
      ellipse at 80% 20%,
      #35234f 0,
      transparent 48%
    );
}

.eyebrow {
  color: var(--purple-light);
  font-size: .78rem;
  letter-spacing: .18em;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 1.06;
  margin: 18px 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h3 {
  margin-top: 0;
}

.intro,
.section-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 35px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  background: var(--purple);
  color: #171020;
  font-weight: 800;
  cursor: pointer;
  font-size: .95rem;
}

.button:hover {
  background: var(--purple-light);
}

.button:disabled {
  opacity: .6;
  cursor: wait;
}

.button.small {
  padding: 9px 15px;
}

.button.secondary {
  background: #383044;
  color: white;
}

.button.secondary:hover {
  background: #463c55;
}

.button.danger:hover {
  background: #5a2a3a;
}

.text-link {
  color: var(--purple-light);
}

.section {
  padding: 85px 10%;
}

.dark-section {
  background: #17131f;
}

.cards {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(230px, 1fr)
  );
  gap: 20px;
  margin-top: 35px;
}

.card,
.panel {
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.card p,
.muted {
  color: var(--muted);
}

.card a {
  color: var(--purple-light);
  overflow-wrap: anywhere;
}

.card a:hover {
  text-decoration: underline;
}

.card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin: 10px 0;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-form,
.admin-wrap form {
  max-width: 650px;
}

label {
  display: block;
  margin: 17px 0;
  color: var(--muted);
}

input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #17131f;
  color: var(--white);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--purple);
  border-color: var(--purple);
}

.inline-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-label input {
  width: auto;
  margin-top: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 7%;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
}

.admin-wrap {
  max-width: 1000px;
  margin: auto;
  padding: 35px 22px 80px;
}

.admin-wrap h1 {
  font-size: 2.8rem;
}

.panel {
  margin: 25px 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.admin-item {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.admin-item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-item-actions button {
  margin: 4px 0;
}

.admin-item select {
  max-width: 220px;
}

.admin-item a {
  color: var(--purple-light);
  overflow-wrap: anywhere;
}

.admin-item .message {
  white-space: pre-wrap;
}

.edit-form {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px 18px;
  margin: 10px 0;
  background: #17131f;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
  background: var(--background);
}

.status {
  color: var(--purple-light);
  font-size: .85rem;
}

.status .new {
  color: #fde68a;
}

.notice {
  padding: 13px 18px;
  border: 1px solid var(--purple);
  border-radius: 9px;
  background: #241c35;
  color: var(--purple-light);
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--purple-light);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    gap: 15px;
    font-size: .9rem;
  }

  .hero {
    min-height: 65vh;
    padding: 80px 7%;
  }

  .section {
    padding: 65px 7%;
  }

  footer {
    flex-wrap: wrap;
  }

}
