/* Note Page Styles
   Extracted from notes/epiplexity/index.html
   =========================================== */

@layer content {
  /* Index card styling */
  .note-card {
    max-width: 640px;
    margin: 0 auto;
    background: #FFFEF8;
    background: linear-gradient(180deg, #FFFEF8 0%, #FFF9E8 100%);
    padding: 2.5rem 3rem 3rem;
    position: relative;
    z-index: 1;
    box-shadow: 
      0 2px 4px var(--shadow),
      0 8px 24px var(--shadow-strong),
      0 24px 48px rgba(28, 24, 20, 0.12);
    border: 1px solid rgba(180, 160, 100, 0.2);
  }

  /* Index card lines */
  .note-card::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 2.5rem;
    right: 2.5rem;
    bottom: 2.5rem;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 26px,
      rgba(100, 140, 180, 0.12) 26px,
      rgba(100, 140, 180, 0.12) 27px
    );
    pointer-events: none;
  }

  /* Red top line */
  .note-card::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(180, 60, 60, 0.25);
  }

  /* Header */
  .note-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 1;
  }

  .note-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .note-meta {
    font-size: 0.8rem;
    color: var(--ink-faint);
    font-family: var(--font-system);
  }

  /* Body */
  .note-body {
    position: relative;
    z-index: 1;
  }

  .note-body p {
    margin-bottom: 1.25rem;
  }

  .note-body a {
    color: var(--brass);
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 106, 32, 0.3);
    transition: border-color 0.2s ease;
  }

  .note-body a:hover {
    border-color: var(--brass);
  }

  .note-body em {
    font-style: italic;
  }

  /* Reference */
  .note-reference {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(138, 106, 32, 0.15);
    font-size: 0.85rem;
    color: var(--ink-faint);
  }

  .note-reference a {
    color: var(--brass);
    text-decoration: none;
  }

  /* Footer */
  .note-footer {
    margin-top: 2.5rem;
    text-align: center;
  }

  .note-footer-seal {
    width: 36px;
    height: 36px;
    color: var(--brass);
    opacity: 0.4;
  }

  /* Responsive */
  @media (max-width: 600px) {
    .note-card {
      padding: 2rem 1.25rem 2.5rem;
      box-shadow: none;
      border: none;
      max-width: 100%;
    }

    .note-card::before {
      left: 1rem;
      right: 1rem;
      top: 70px;
    }

    .note-title {
      font-size: 1.5rem;
    }
  }
}
