/* styleOA.modern.css
   Mobile-first update of styleOA.css. Preserves serif/italic devotional tone.
   Adds responsive typography, spacing, and dark mode.
*/

:root {
  --font-sans: Verdana, Arial, Helvetica, sans-serif;
  --font-serif: "Times New Roman", Georgia, Times, serif;
  --accent1: maroon;
  --accent2: navy;
  --text: #000;
  --bg: #fff;
  --lh: 1.7;
  --content-max: 72ch;
}

html { box-sizing: border-box; font-size: 100%; }
*,*::before,*::after { box-sizing: inherit; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 1rem;
  line-height: var(--lh);
  font-size: clamp(.95rem, .6vw + .85rem, 1.05rem);
  max-width: var(--content-max);
  margin-inline: auto;
}

p {
  font-family: var(--font-sans);
  text-align: justify;
  margin: 0 1em 1em;
  font-size: clamp(.95rem, .6vw + .85rem, 1.05rem);
}
@media (max-width: 900px){
  p { text-align: start; }
}

blockquote {
  color: var(--accent1);
  font-style: italic;
  text-indent: 0;
  letter-spacing: .01em;
  margin: 1em;
  padding-left: 1em;
  border-left: 4px solid var(--accent1);
}

h1 {
  font-style: italic;
  font-weight: 800;
  text-align: center;
  font-size: clamp(1.6rem, 2vw + 1.2rem, 2.6rem);
  margin-block: .8em .4em;
}
h2 {
  color: var(--accent2);
  font-weight: bold;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 2rem);
  font-family: var(--font-sans);
  line-height: 1.3;
  margin: .75em auto;
  max-width: var(--content-max);
  text-align: center;
}
h3 {
  color: var(--accent2);
  font-size: clamp(1.1rem, 1vw + .9rem, 1.6rem);
  margin: .75em 0 .4em;
}
h4 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, .9vw + .9rem, 1.4rem);
  font-weight: 500;
}
h5 {
  font-size: clamp(.95rem, .7vw + .85rem, 1.2rem);
}
h6 {
  font-size: clamp(.85rem, .6vw + .8rem, 1rem);
  font-weight: 300;
}

i { color: #7f2135; font-style: italic; }
a { font-size: inherit; color: blue; text-decoration: none; }
a:hover { color: purple; }
a:visited { color: maroon; }

td {
  font-size: .9rem;
  padding: .3rem .5rem;
  vertical-align: top;
}

.tablenor {
  font-family: var(--font-serif);
  font-size: .85rem;
  text-align: left;
  text-indent: .3em;
}

address {
  font-style: italic;
  font-size: .95rem;
  line-height: 1.4;
  margin-top: 1em;
}

@media (prefers-color-scheme: dark) {
  body { background:#111; color:#eee; }
  blockquote { border-color:#ffbcbc; color:#ffbcbc; }
}