/* Moodroom legal pages. The atelier look: plaster ivory, espresso, aged brass, serif titles.
   System fonts only and no scripts, so the pages load nothing from another company. */

:root {
  --ground: #F4EFE6;
  --surface: #FBF8F2;
  --ink: #2B211B;
  --ink-soft: #6A5B50;
  --brass: #B08D57;
  --hairline: #DDD0BA;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

/* Dark mode swaps ground and text; brass stays. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #2B211B;
    --surface: #362A23;
    --ink: #F4EFE6;
    --ink-soft: #C4B6A4;
    --hairline: #54453A;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap { max-width: 68ch; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--ink); color: var(--ground); z-index: 10; }
.skip-link:focus { left: 16px; }

/* Header: the doorway arch from the app icon, the name, three links. */
.site-header { border-bottom: 1px solid var(--brass); padding: 1.1rem 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.45rem; color: var(--ink); text-decoration: none; }
.brand::before { content: ""; width: 0.95rem; height: 1.35rem; border: 1.5px solid var(--brass); border-bottom-width: 0; border-radius: 999px 999px 0 0; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }

main { padding: 2.25rem 0 3rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--brass); }

/* Brass on ivory is too faint for words, so links are ink with a brass underline. */
a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 650; }

.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.6rem; }
.lead { font-size: 1.15rem; }
.updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* The short version: a card with a brass hairline. */
.summary { background: var(--surface); border: 1px solid var(--brass); border-radius: 20px; padding: 1.25rem 1.4rem 0.4rem; margin: 1.5rem 0 2rem; }
.summary h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }

.toc { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 1rem 0 0.25rem; margin-bottom: 2rem; }
.toc ol { columns: 2; column-gap: 2rem; font-size: 0.97rem; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Tables scroll inside their own box so the page never scrolls sideways. */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem 0.55rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; border-bottom-color: var(--brass); }

/* Landing page: two doors to the legal pages. */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 0.5rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 1.1rem 1.3rem; text-decoration: none; }
.card:hover { border-color: var(--brass); }
.card strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.2rem; }
.card span { color: var(--ink-soft); font-size: 0.95rem; }

.site-footer { border-top: 1px solid var(--hairline); padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: var(--ink-soft); }
