@font-face {
  font-family: Lexend;
  src: url("/static/fonts/Lexend-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lexend;
  src: url("/static/fonts/Lexend-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lexend;
  src: url("/static/fonts/Lexend-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #f7f4ee;
  --rule: #141414;
  --muted: #5a574f;
  --err: #8a1f1f;
  --max: 44rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Lexend, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.7rem;
}
.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.brand {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
}
.brand span { font-weight: 400; }

nav { display: flex; gap: 1rem; align-items: center; }
nav a, .site-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav a:hover, .site-footer a:hover { border-bottom-color: var(--ink); }

.inline { display: inline; }
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
nav button:hover { border-bottom-color: var(--ink); }

h1 { font-size: 1.85rem; font-weight: 600; line-height: 1.2; margin: 0 0 0.8rem; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.05rem; max-width: 40rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.6rem; }
.fine { color: var(--muted); font-size: 0.9rem; }
.note, .error { color: var(--err); }
.mono { font-family: ui-monospace, monospace; font-size: 0.92em; }

.hero { padding: 2rem 0 1rem; }
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 1.5rem;
  margin: 1.4rem 0 0.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.price strong { font-size: 2rem; font-weight: 600; margin-right: 0.35rem; }
.price span { color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.55rem 1rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
}
.btn:hover { opacity: 0.92; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.preview {
  margin: 2.2rem 0;
  padding: 0;
}
.preview img {
  width: 100%;
  max-width: 28rem;
  height: auto;
  border: 1px solid var(--ink);
  background: #fff;
  display: block;
}
.preview figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.drills ul { padding-left: 1.1rem; }
.drills li { margin-bottom: 0.45rem; }

.narrow { max-width: 32rem; padding: 2rem 0; }
.stack { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.92rem; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 24rem;
}
.login-url { max-width: 100%; min-height: 6rem; }

.dash { padding: 1.5rem 0; }
.dash-head { margin-bottom: 1.2rem; }
.licensed { color: var(--muted); }

.generate {
  display: grid;
  gap: 1.2rem;
  max-width: 28rem;
}
fieldset {
  border: 1px solid var(--ink);
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.7rem;
}
legend { padding: 0 0.3rem; font-weight: 600; }
.account-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.prose { max-width: var(--max); padding: 1.5rem 0; }
.prose ul { padding-left: 1.15rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  .page { padding: 1rem 1rem 2rem; }
  .buy { flex-direction: column; align-items: stretch; }
}
