/* Pen & Pentacle holding page. System fonts only: no external requests. */

:root {
  /* Light: ink on paper. Text 16.0:1, muted 7.3:1, link 9.7:1 on --bg (WCAG AA needs 4.5:1). */
  --bg: #faf6ee;
  --text: #1f1a17;
  --muted: #5a5048;
  --link: #5b2a6e;
  --rule: #d9cfbf;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: text 15.6:1, muted 8.7:1, link 10.7:1 on --bg. */
    --bg: #17141b;
    --text: #f3ede2;
    --muted: #bcb2a6;
    --link: #d9bce8;
    --rule: #3a3340;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

main {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1rem 3rem;
  text-align: center;
}

.mark {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--link);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.tm {
  font-size: 0.4em;
  vertical-align: super;
  margin-left: 0.1em;
}

.tagline {
  margin: 0 0 2rem;
  font-size: 1.3rem;
  font-style: italic;
}

p {
  margin: 0 0 1rem;
}

.note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}

.contact {
  font-size: 1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
}

footer p {
  max-width: 36rem;
  margin: 0 auto;
}
