/* ============================================= */
/* PARDES - The Letter                           */
/* Deep dark + warm gold | Sacred letter layout  */
/* Prefix: pa-                                   */
/* ============================================= */

/* ============================= */
/* COMPONENT: CSS Variables      */
/* ============================= */
:root {
  --pa-bg: #0d0d0f;
  --pa-text: #ccc;
  --pa-gold: #d4a843;
  --pa-gold-dim: rgba(212, 168, 67, 0.4);
  --pa-muted: #888;
  --pa-scripture: #aaa;
  --pa-link: #d4a843;
  --pa-max-width: 640px;
}
/* /COMPONENT: CSS Variables     */

/* ============================= */
/* COMPONENT: Reset + Base       */
/* ============================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 2.0;
  color: var(--pa-text);
  background: var(--pa-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pa-link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* /COMPONENT: Reset + Base      */

/* ============================= */
/* COMPONENT: Page Layout        */
/* ============================= */
.pa-page {
  max-width: var(--pa-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

@media (max-width: 480px) {
  .pa-page {
    padding: 2.5rem 1.2rem 2rem;
  }
}
/* /COMPONENT: Page Layout       */

/* ============================= */
/* COMPONENT: Letter Content     */
/* ============================= */
.pa-letter {
  margin: 0;
}

.pa-invocation {
  font-style: italic;
  text-align: center;
  color: var(--pa-gold);
  font-size: 1.1em;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.pa-paragraph {
  margin-bottom: 2rem;
}

.pa-paragraph:last-of-type {
  margin-bottom: 2.5rem;
}
/* /COMPONENT: Letter Content    */

/* ============================= */
/* COMPONENT: Hebrew Words       */
/* ============================= */
.pa-hebrew {
  color: var(--pa-gold);
  font-size: 1.15em;
  font-weight: 600;
  direction: rtl;
  unicode-bidi: isolate;
}

.pa-translation {
  color: var(--pa-muted);
  font-size: 0.85em;
  font-weight: normal;
}
/* /COMPONENT: Hebrew Words      */

/* ============================= */
/* COMPONENT: Gematria Numbers   */
/* ============================= */
.pa-number {
  color: var(--pa-gold);
  font-variant-numeric: oldstyle-nums;
}
/* /COMPONENT: Gematria Numbers  */

/* ============================= */
/* COMPONENT: Scripture Refs     */
/* ============================= */
.pa-scripture {
  font-style: italic;
  color: var(--pa-scripture);
}
/* /COMPONENT: Scripture Refs    */

/* ============================= */
/* COMPONENT: Closing Lines      */
/* ============================= */
.pa-closing {
  text-align: center;
  margin: 3rem 0;
}

.pa-closing-line {
  display: block;
  margin-bottom: 0.5rem;
}

.pa-final-line {
  color: var(--pa-gold);
  font-size: 1.4em;
  font-weight: 600;
  display: block;
  margin-top: 1.5rem;
  line-height: 1.6;
}
/* /COMPONENT: Closing Lines     */

/* ============================= */
/* COMPONENT: Signature          */
/* ============================= */
.pa-signature {
  text-align: center;
  margin-top: 3rem;
  color: var(--pa-muted);
  font-size: 0.9em;
  line-height: 1.8;
}

.pa-signature-name {
  color: var(--pa-gold);
  font-size: 1.1em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  direction: rtl;
  unicode-bidi: isolate;
}
/* /COMPONENT: Signature         */

/* ============================= */
/* COMPONENT: Language Divider   */
/* ============================= */
.pa-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 4rem 0;
}

.pa-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(212, 168, 67, 0.2);
}

.pa-divider-text {
  font-size: 1.4em;
  color: var(--pa-gold);
  font-weight: 600;
  letter-spacing: 2px;
}
/* /COMPONENT: Language Divider  */

/* ============================= */
/* COMPONENT: Hebrew Letter      */
/* ============================= */
.pa-letter--hebrew {
  direction: rtl;
  text-align: right;
  font-family: 'David Libre', 'Frank Ruhl Libre', 'Noto Serif Hebrew', Georgia, serif;
}

.pa-letter--hebrew .pa-paragraph {
  font-size: 1.15em;
}

.pa-letter--hebrew .pa-invocation {
  text-align: center;
  direction: rtl;
}

.pa-letter--hebrew .pa-closing {
  text-align: center;
  direction: rtl;
}

.pa-letter--hebrew .pa-signature {
  direction: rtl;
  text-align: center;
}

.pa-hebrew-em {
  color: var(--pa-gold);
  font-weight: 600;
  font-size: 1.05em;
}

.pa-scripture-he {
  font-style: italic;
  color: var(--pa-scripture);
}
/* /COMPONENT: Hebrew Letter     */

/* ============================= */
/* COMPONENT: Footer             */
/* ============================= */
.pa-footer {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 168, 67, 0.15);
}

.pa-footer a {
  color: var(--pa-muted);
  font-size: 0.8em;
  letter-spacing: 0.5px;
}

.pa-footer a:hover {
  color: var(--pa-gold);
}
/* /COMPONENT: Footer            */
