@import url("/fonts/fonts.css");

:root {
  --ink: #07090a;
  --ink-2: #111410;
  --bone: #e9e2d0;
  --bone-dim: #b9b2a2;
  --gold: #d8c08a;
  --gold-hi: #f1e2b6;
  --line: rgba(233, 226, 208, .22);
  --error: #e7a08a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(159, 140, 90, .16), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--ink-2), var(--ink) 70%);
  background-color: var(--ink);
  color: var(--bone);
  font: 400 1.2rem/1.6 "Crimson Pro", Georgia, serif;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold-hi); text-underline-offset: .18em; }
a:hover { color: #fff; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header.site { padding: 28px 0 0; text-align: center; }
header.site { position: relative; }
.back { position: absolute; left: max(16px, calc((100% - 720px) / 2)); top: 28px; color: var(--bone-dim); text-decoration: none; font-size: 1rem; line-height: 1.2; }
.back:hover { color: var(--gold-hi); }
.author {
  font-family: Cinzel, Georgia, serif; font-weight: 600;
  letter-spacing: .32em; font-size: .9rem; color: var(--gold);
  text-decoration: none; text-transform: uppercase;
}

.rule { position: relative; height: 1px; width: 220px; margin: 22px auto; background: var(--line); }
.rule::after {
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -5px;
  transform: rotate(45deg); border: 1px solid rgba(233, 226, 208, .5); background: var(--ink);
}

main { flex: 1; }

.hero {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 56px; align-items: center; padding: 40px 0 64px;
}
.cover img {
  display: block; width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(233, 226, 208, .08), 0 30px 80px rgba(0, 0, 0, .7), 0 0 120px rgba(216, 192, 138, .08);
}

h1 {
  font-family: Cinzel, Georgia, serif; font-weight: 600; line-height: 1.15;
  font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 20px; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #b8975a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.law { font-style: italic; font-size: 1.32rem; line-height: 1.45; margin: 0 0 16px; }
.copy p { margin: 0 0 14px; text-wrap: pretty; }

form.signup { margin-top: 26px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
label.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type=email] {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px;
  background: rgba(233, 226, 208, .06); color: var(--bone);
  border: 1px solid rgba(233, 226, 208, .35); border-radius: 3px;
  font: 400 1.15rem "Crimson Pro", Georgia, serif;
}
input[type=email]::placeholder { color: rgba(233, 226, 208, .45); }
input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
button {
  flex: 0 0 auto; height: 52px; padding: 0 24px; cursor: pointer;
  font-family: Cinzel, Georgia, serif; font-weight: 600; letter-spacing: .12em; font-size: .85rem;
  text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 0; border-radius: 3px;
}
button:hover { filter: brightness(1.07); }
button:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
button[disabled] { opacity: .6; cursor: progress; }
.consent { font-size: 1rem; text-wrap: pretty; color: var(--bone-dim); margin: 12px 0 0; }
.status { margin: 14px 0 0; min-height: 1.5em; }
.status.error { color: var(--error); }
.done {
  margin-top: 26px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 3px;
  background: rgba(233, 226, 208, .04);
}
.done h2 { font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; color: var(--gold); margin: 0 0 8px; }
.done p { margin: 0; }
[hidden] { display: none !important; }

footer.site { padding: 28px 0 36px; text-align: center; color: var(--bone-dim); font-size: 1rem; }
footer.site a { color: var(--bone-dim); }
footer.site p { margin: 4px 0; }

.prose { max-width: 720px; margin: 0 auto; padding: 24px 0 56px; }
.prose.centered { text-align: center; padding-top: 8vh; }
.prose .law { font-style: italic; font-size: 1.32rem; line-height: 1.45; }
.prose p { text-wrap: pretty; }
.prose h2 { font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; color: var(--gold); margin: 30px 0 8px; }
.prose p, .prose li { color: var(--bone); }
.prose ul { padding-left: 1.2em; }

@media (max-width: 760px) {
  body { font-size: 1.12rem; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 20px 0 48px; text-align: center; }
  .cover { width: 62%; max-width: 260px; margin: 0 auto; }
  form.signup, .done { max-width: 460px; margin-left: auto; margin-right: auto; }
  .field { flex-direction: column; }
  input[type=email], button { width: 100%; flex-basis: auto; height: 48px; }
  .consent { text-align: center; }
  .copy { text-align: left; max-width: 560px; margin: 0 auto; }
  .copy h1 { text-align: center; }
}
