/* My Reading Room — site styles.
   Morris willow-bough wallpaper + a cream cartouche, echoing the app's
   Entrance screen. */

:root {
  --ground:     #ece4d2;
  --panel:      #fbf6ea;
  --ink:        #211c14;
  --muted:      #6c6453;
  --green:      #2b5e38;
  --green-deep: #1f4a2c;
  --gold:       rgba(200, 162, 74, 0.45);
  --rule:       rgba(33, 28, 20, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  padding: 0 20px 4px;
  background-color: var(--ground);
  /* a flat cream wash sits over the willow pattern to calm it */
  background-image:
    linear-gradient(rgba(249, 244, 232, 0.50), rgba(249, 244, 232, 0.50)),
    url("willow-bough.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 460px auto;
  background-attachment: fixed, fixed;
  background-position: center, center;
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(43, 94, 56, 0.18); }

/* ── Header (legal/support pages) ─────────────────────────── */
.site-header { text-align: center; padding: 44px 20px 22px; }
.brand {
  font-size: 23px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  text-decoration: none;
}

/* ── The cartouche panel ──────────────────────────────────── */
.content {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 10px auto 0;
  background: var(--panel);
  padding: 52px 56px;
  border-radius: 3px;
  border: 1px solid rgba(33, 28, 20, 0.10);
  box-shadow:
    0 30px 70px -30px rgba(45, 34, 16, 0.45),
    0 6px 22px rgba(45, 34, 16, 0.12);
}
/* inner gold hairline, inset — the double-border detail */
.content::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  pointer-events: none;
}

/* ── Document typography (legal + support pages) ──────────── */
.content h1 { font-size: 39px; font-weight: 600; line-height: 1.15; margin: 4px 0 2px; }
.content h2 { font-size: 26px; font-weight: 600; color: var(--green-deep); margin: 36px 0 8px; }
.content h3 { font-size: 21px; font-weight: 600; margin: 24px 0 4px; }
.content p  { margin: 13px 0; }
.content ul { margin: 13px 0; padding-left: 24px; }
.content li { margin: 7px 0; }
.content a  { color: var(--green); text-underline-offset: 2px; }
.content hr { border: none; border-top: 1px solid var(--rule); margin: 32px 0; }
.content code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8em;
  background: #efe8d6;
  padding: 2px 6px;
  border-radius: 4px;
}
.updated { color: var(--muted); font-style: italic; }

/* ── Home page — the hero cartouche ───────────────────────── */
.content.home {
  max-width: 600px;
  margin-top: 54px;
  padding: 60px 56px 52px;
  text-align: center;
}
.wordmark {
  margin: 0;
  font-size: clamp(38px, 7vw, 56px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ornrule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 300px;
  margin: 20px auto 22px;
}
.ornrule::before, .ornrule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
}
.ornrule .fleuron { color: var(--green); font-size: 19px; line-height: 1; }
.tagline {
  margin: 0 auto 20px;
  max-width: 440px;
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink);
}
.content.home p {
  margin: 13px auto;
  max-width: 470px;
  color: var(--muted);
}
.content.home p.lede { color: var(--ink); }
.coming {
  display: inline-block;
  margin-top: 20px !important;
  padding: 9px 24px;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  border: 1px solid rgba(43, 94, 56, 0.4);
  border-radius: 999px;
}
.content.home .contact { margin-top: 22px; font-size: 17px; }
.content.home a { color: var(--green); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 24px 20px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.site-footer nav a { color: var(--green); text-decoration: none; margin: 0 3px; }
.site-footer nav a:hover { text-decoration: underline; }
.copyright { margin: 8px 0 0; font-size: 14px; opacity: 0.9; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  body { font-size: 20px; }
  .content { padding: 40px 26px; }
  .content.home { padding: 44px 26px 40px; margin-top: 36px; }
  .content h1 { font-size: 32px; }
  .content h2 { font-size: 23px; }
  .tagline { font-size: 21px; }
}
