@use "sass:map"
@use "sass:color"

@use './org-media-sass/org-base'

@use './org-media-sass/themes/golden-ledger.sass' as * 
@use './org-media-sass/fonts' as fonts
@use './org-media-sass/mixins' as mixins-basic

@include mixins-basic.set-header-sizes($default-header-sizes)
@include mixins-basic.set-header-colors($default-header-colors)
@include mixins-basic.set-header-margins-sides($default-header-margins-sides)
@include mixins-basic.set-header-margins-vertical($default-header-margins-vertical)

@include mixins-basic.remove-section-number(h3)

/* Base Styles */
body
  font-family: $primary-font
  color: $text-color
  background-color: $background-color

/* Link Styles */
a
  color: $anchor-color

  &:hover
    color: $anchor-hover-color

// Lists
ul, ol
  padding-left: $list-padding-left

// Notes
.note
  background-color: $note-background-color
  border-color: $note-border-color
  p
    color: $note-color

// Blockquotes
blockquote
  color: $blockquote-color
  border-color: $blockquote-border-color

// Tables
table
  color: $table-color
  // border: 1px solid $table-border-color 

th
  background-color: $table-header-bg
  color: $table-header-color
  font-family: $secondary-font

th, td
  border-color: $table-border-color

tr:nth-child(odd)
  background-color: color.adjust($table-header-bg, $lightness: 8%)

/* Code Block Styles */
pre, code
  color: $code-text-color
  background-color: $code-background-color
  border-color: $code-border-color

/* Header Styles */
h1, h2, h3, h4, h5, h6
  font-family: $secondary-font

h4
  text-transform: uppercase

h4[id="timestamp"]
  color: color.adjust(map.get($default-header-colors, 'h2'), $lightness: 20%)  

h4[id="playlist"]
  color: color.adjust(map.get($default-header-colors, 'h3'), $lightness: -10%)  

h3 
  a
    color: color.adjust($anchor-color, $lightness: -12%)
    &:hover
      color: color.adjust($anchor-hover-color, $lightness: -12%)


div#postamble
  border-color: $note-border-color
  color: color.adjust($note-border-color, $lightness: 20%)

/* Table of Contents Link */
.toc
  color: $primary-color

div#table-of-contents ul li a
  color: $toc-anchor-color
  &:hover
    color: $toc-anchor-hover-color
