@font-face { font-family: "EB Garamond"; src: url("/fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

/* The card back's paper and ink. The page keeps this look in dark mode too: it is the paper the mark is brushed on. */
:root { --paper: #f1ece2; --ink: #141211; --soft: #3b3733; --rule: #cfc7b8; --field: #f8f5ee; --warn: #8a2f1c; color-scheme: light; }

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem 16px 3rem; background: var(--paper); color: var(--ink);
  font: 400 1.1875rem/1.5 "EB Garamond", Georgia, "Times New Roman", serif; text-rendering: optimizeLegibility; }
main { width: 100%; max-width: 30rem; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.1em; }

.mark { display: block; width: min(13rem, 55vw); height: auto; aspect-ratio: 1; margin: 0 auto 1.5rem; }
.caps { font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-weight: 500; }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 500; margin: 0 0 1rem; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.quiet { color: var(--soft); font-size: 1rem; }

/* landing page */
.home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home .mark { width: min(20rem, 70vw); margin-bottom: 2rem; }
.home .caps { font-size: 1.25rem; margin: 0 0 0.5rem; }

/* form */
form { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
label .opt { font-weight: 400; font-style: italic; color: var(--soft); }
input[type="text"], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--rule); border-radius: 3px; padding: 0.55rem 0.7rem; }
textarea { min-height: 7rem; resize: vertical; }
input[type="text"]:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { justify-self: start; font: inherit; font-weight: 500; letter-spacing: 0.02em; color: var(--paper); background: var(--ink);
  border: 0; border-radius: 3px; padding: 0.6rem 1.6rem; cursor: pointer; }
button:hover { background: var(--soft); }
button[disabled] { opacity: 0.55; cursor: default; }
.trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
#challenge:empty { display: none; }
[role="alert"] { color: var(--warn); margin: 0; }
[role="alert"]:empty { display: none; }
[hidden] { display: none !important; }
