:root {
  --bg: #fbf8f3;
  --fg: #1f1b17;
  --muted: #6f665c;
  --accent: #7a2230;
  --border: #e6ded2;
  --surface: #f3ece1;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --fg: #ece6dd;
    --muted: #978d83;
    --accent: #d4af37;
    --border: #2a2420;
    --surface: #1d1916;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 { font-size: 1.95rem; line-height: 1.2; margin: 0 0 .25em; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2em 0 .5em; }
p, ul, ol { margin: 0 0 1em; }
li { margin: .3em 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: none; }

.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: .9rem; margin-top: 0; }

.backlink { display: inline-block; margin-bottom: 1.6em; font-size: .9rem; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.3em 0;
  font-size: .94rem;
}
th, td {
  border: 1px solid var(--border);
  padding: .6em .7em;
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface); font-weight: 600; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85em 1.05em;
  font-size: .9rem;
  color: var(--muted);
  margin: 1.4em 0;
}

code { background: var(--surface); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

footer.site {
  margin-top: 3.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
}
footer.site a { color: var(--muted); }

/* Support form */
form { margin: 1.5em 0; }
label { display: block; margin: 1.1em 0 .4em; font-weight: 600; font-size: .95rem; }
label .muted { font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6em .7em;
}
textarea { resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8em center;
  background-size: .7em;
  padding-right: 2.2em;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
button[type="submit"] {
  margin-top: 1.4em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: .7em 1.6em;
  cursor: pointer;
}
button[type="submit"]:disabled { opacity: .55; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile-holder:not(:empty) { margin-top: 1.3em; }
.status { margin-top: 1em; font-size: .95rem; min-height: 1.2em; }
.status.ok { color: #2e7d32; }
.status.err { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  button[type="submit"] { color: #14110f; }
  .status.ok { color: #7bc97f; }
  .status.err { color: #e8857a; }
}

/* Home page */
.home { text-align: center; padding-top: 12vh; }
.home h1 { font-size: 2.3rem; }
.home .tagline { color: var(--muted); font-size: 1.1rem; margin: .2em 0 2em; }
.home .links a {
  display: inline-block;
  margin: .4em .6em;
  padding: .6em 1.2em;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.home .links a:hover { background: var(--surface); }
