/* 5ive9teen: site styles.
   Phone first, system fonts only (nothing loads from outside companies).

   Colors: use ONLY the named roles from /theme.css (var(--color-...)),
   never a color value. The values are edited in the admin area.
   Where each role may go (see core/theme.py):
     --color-text            on --color-background or --color-surface only
     --color-text-on-accent  on --color-accent or --color-highlight only
     --color-accent, --color-highlight: fills and decorative lines, never text
     --color-focus           keyboard focus outline
   A test fails if a color value appears in this file. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* 18px: easy to read on a phone */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.6;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

h1 {
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1.15;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 2rem;
}

/* A short highlight bar under the name: decoration only. */
h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.3rem;
  margin: 0.75rem auto 0;
  background: var(--color-highlight);
  border-radius: 0.15rem;
}

.verse {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-radius: 0.5rem;
  text-align: center;
}

.verse blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.1rem;
}

.verse blockquote p {
  margin: 0 0 0.75rem;
}

.verse figcaption {
  font-size: 0.85rem;
}

.verse cite {
  font-style: normal;
  font-weight: bold;
}

.lead {
  font-size: 1.15rem;
}

a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

::selection {
  background: var(--color-highlight);
  color: var(--color-text-on-accent);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--color-highlight);
  color: var(--color-text-on-accent);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
