:root {
  color-scheme: light;
  --ink: #241c17;
  --muted: #74665b;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #e4d7c8;
  --accent: #8f4f2c;
  --accent-strong: #5f2f1c;
  --gold: #c8942f;
  --blue: #31566f;
  --shadow: 0 18px 55px rgba(65, 43, 28, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
}

.site-hero {
  min-height: 34vh;
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(251, 238, 220, 0.86)),
    url("content/wordoc/a1-odot.files/image003.jpg") center / cover;
}

.hero-copy {
  grid-column: 2;
  max-width: 760px;
}

.eyebrow,
.current-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  color: var(--accent-strong);
}

.hero-copy p:last-child {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.7;
}

.dedication {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--accent-strong);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 800;
  line-height: 1.5;
}

.site-hero img {
  grid-column: 1;
  width: 100%;
  max-width: 420px;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  width: min(1480px, calc(100% - 32px));
  margin: 24px auto;
  align-items: start;
}

.library,
.reader {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(75, 50, 31, 0.08);
}

.library {
  grid-column: 2;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.library-header,
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.library-header span {
  font-weight: 800;
  color: var(--accent-strong);
}

.icon-button {
  display: none;
  width: 58px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
}

#navList {
  display: grid;
  padding: 10px;
}

.nav-button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #f1e6d9;
  background: transparent;
  color: var(--ink);
  text-align: right;
  font: inherit;
  padding: 12px 10px;
  cursor: pointer;
}

.nav-button:hover,
.nav-button.active {
  background: #fbf2e6;
}

.nav-button.active {
  color: var(--accent-strong);
  font-weight: 750;
}

.nav-index {
  grid-column: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #f2dfc4;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.reader {
  grid-column: 1;
  min-height: 80vh;
}

.reader-toolbar {
  min-height: 84px;
}

h2 {
  margin-top: 3px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.source-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff7ec;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

iframe {
  width: 100%;
  height: 78vh;
  min-height: 720px;
  display: block;
  border: 0;
  background: white;
}

footer {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy,
  .site-hero img {
    grid-column: 1;
  }

  .site-hero img {
    justify-self: start;
    max-width: 320px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .library,
  .reader {
    grid-column: 1;
  }

  .library {
    position: static;
    max-height: none;
  }

  .icon-button {
    display: grid;
    place-items: center;
  }

  #navList {
    display: none;
  }

  .library.open #navList {
    display: grid;
  }

  .reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  iframe {
    min-height: 680px;
    height: 76vh;
  }
}
.reader {
  grid-column: 1;
}
