/* ==========================================================
   THEME: Paper  ·  Book-like, typographic, warm
   Personality: traditional, sophisticated, readable, literary
   Font: Crimson Text (old-style serif)
   Boxes: thick paint/marker strokes, slight rotation (hand-drawn feel)
   Headings: dark ink color, centered, bottom decorative rule
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('./base.css');

:root {
    --accent:                  #8d6e63;  /* warm brown/taupe */
    --ink:                     #3e2723;  /* deep brown-black ink */
    --border-radius:           2px;

    --font-heading:            'Crimson Text', serif;
    --font-body:               'Crimson Text', serif;
    
    /* Heading style: Centered, Ink on Paper */
    --heading-color:           #3e2723;
    --heading-bg:              transparent;
    --heading-shadow:          none;
    --heading-letter-spacing:  0.02em;

    /* Boxes: Marker / Highlighter style */
    --box-border-radius:       2px;
    --box-border-width:        3px;
    --box-shadow:              2px 3px 0px rgba(62, 39, 35, 0.1);

    /* Backgrounds mimic highlighter colors */
    --box-info-bg:             #e1f5fe;
    --box-info-border:         #0288d1;
    --box-warning-bg:          #fff9c4;
    --box-warning-border:      #fbc02d;
    --box-danger-bg:           #ffcdd2;
    --box-danger-border:       #d32f2f;
    --box-success-bg:          #dcedc8;
    --box-success-border:      #689f38;

    --table-header-bg:         #efebe9;
    --table-header-border:     #bcaaa4;

    --outline-highlight-color: #3e2723;
    --outline-highlight-bg:    #ffcc80; /* warm highlight */
}

/* --------------------------------------------------------
   PAPER OVERRIDES
   -------------------------------------------------------- */

/* 1. Background: Warm off-white paper */
body {
    background-color: #fcfbf7;
    color: var(--ink);
}

/* 2. Headline Styling */
/* Shared properties */
.reveal h1, .reveal h2, .reveal h3 {
    border-bottom: 3px double var(--accent);
    padding-bottom: 10px;      /* Reduced padding */
    margin-bottom: 20px;       /* Reduced margin (was 40px) */
    width: 90%;                /* Wider to fit more text on one line if needed */
    margin-left: 5%;           /* Center with 5% margin */
    font-weight: 400; 
    line-height: 1.1;
}

/* Specific Sizes */
.reveal h1 {
    font-size: 2.2em;          /* Title Slide: Slightly smaller */
    margin-bottom: 40px;       /* Keep main title spacious */
}

.reveal h2 {
    font-size: 1.8em;          /* Slide Titles: Increased as requested */
    border-bottom-width: 2px; 
}

.reveal h3 {
    font-size: 1.1em;
    border-bottom: 1px solid var(--accent); 
    width: 70%;
    margin-left: 15%;
}

/* 3. Text size & LIST DENSITY adjustments */
/* Reset font size boost or keep it minimal */
.reveal section p, .reveal section li {
    font-size: 0.95em;         /* Slightly smaller than default to fit content */
    line-height: 1.4;          /* Tighter line height suitable for lists */
    margin-bottom: 0.3em;      /* Reduced spacing between items */
}

/* Reduce spacing for nested lists */
.reveal ul ul, .reveal ol ol {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

/* 4. Boxes: Hand-drawn feel */
.box-info, .box-warning, .box-danger, .box-success {
    border: 2px solid;
    border-left-width: 6px;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
    padding: 0.8em;            /* Slightly tighter padding in boxes */
}
.box-info:hover, .box-warning:hover, .box-danger:hover, .box-success:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Match borders */
.box-info    { border-color: var(--box-info-border); }
.box-warning { border-color: var(--box-warning-border); }
.box-danger  { border-color: var(--box-danger-border); }
.box-success { border-color: var(--box-success-border); }

/* 5. Highlight text: Marker stroke */
.text-highlight {
    background: linear-gradient(100deg, rgba(255,235,59,0.7) 0%, rgba(255,235,59,0.3) 100%);
    border-radius: 8px 2px 8px 3px;
    padding: 0 5px;
}

/* ---- Title Heading: book chapter title — double top+bottom rules, warm tint ---- */
.reveal .title-heading {
    color:          var(--ink);
    border-top:     4px double var(--accent);
    border-bottom:  4px double var(--accent);
    border-left:    none;
    border-right:   none;
    padding:        18px 30px;
    background:     rgba(141, 110, 99, 0.04);
    box-shadow:     none;
    letter-spacing: 0.04em;
    width:          90%;
    margin-left:    5%;
}
