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

:root {
  --midnight: #06151e;
  --panel: #0b222d;
  --teal: #153d46;
  --gold: #d6ab64;
  --ivory: #f5efe3;
  --parchment: #c9ad7c;
}

* { box-sizing: border-box; }

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

body {
  background: var(--midnight);
  color: var(--ivory);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}

a { color: var(--gold); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.top, .foot, .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 72px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.nav a, .foot a, .text-link, button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
}

.nav a, .foot a, .text-link { text-decoration: none; }

.account-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0; }

.nav a.account-create, .nav a.account-login, .account-actions a {
  justify-content: center;
  min-width: 168px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: Cinzel, Georgia, serif;
}

.account-create { background: var(--gold); color: var(--midnight); }

.account-login { border: 1px solid var(--gold); color: var(--gold); background: transparent; }

h1, h2 { font-family: Cinzel, Georgia, serif; color: var(--gold); font-weight: 700; }

h1 { margin: 28px 0 8px; text-align: center; font-size: clamp(1.8rem, 4vw, 2.4rem); }

.lede { margin: 0 0 28px; text-align: center; color: var(--parchment); }

.card {
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 28px 24px 32px;
}

.card h2 { margin-top: 0; }

.warning { color: var(--parchment); }

.download, .nav a.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 220px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--midnight);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.15rem;
  text-decoration: none;
}

.meta { margin: 8px 0; }

.meta span { color: var(--parchment); }

form { margin-top: 18px; }

label { display: block; margin: 14px 0 6px; }

input {
  width: min(100%, 420px);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--midnight);
  color: var(--ivory);
  font: inherit;
}

button {
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--midnight);
  font: inherit;
  cursor: pointer;
}

.error { color: #f0c9c0; }

.foot { padding: 28px 0 40px; text-align: center; }

.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }

@media (max-width: 640px) {
  .top { align-items: flex-start; }
  .card { padding: 22px 16px 26px; }
}
