/* ========================================
   CSS VARIABLES & RESET
   ======================================== */

@font-face {
    font-family: "Adobe Garamond Regular";
    src: url(../data/fonts/AGaramond-Regular.otf)format("opentype");
    font-weight: 400;
    font-style: normal
}

*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --secondary-bg: #A9A9A9;
    --accent-gray: #696969;
    --text-primary: #2D2D2D;
    --text-secondary: #808080;
    --highlight-accent: #F5F5F5;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --spacing-unit: 8px;
    --transition-default: 0.3s ease-in-out;
    --border-radius: 6px;
    --font-size-base: 1.25rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --header-height: 150px;
    --image-height: clamp(400px, 35vw, 450px);
    --thumbnail-height: clamp(180px, 20vw, 250px);
    --min-height: 100vh;
    --border-color: var(--accent-gray);
    --background-color: #dedede;
    --text-color: var(--text-primary);
    --primary-color: var(--text-primary);
    --error-color: #dc3545;
    --hover-color: #4a4a4a;
    --error-red: #f44;
    --border-light: #bdbdbd;
    --text-medium: #555;
}

/* ========================================
   UI TEXT SIZE SCALE (set via body/html class from settings)
   ======================================== */

html.ui-text-small,
body.ui-text-small {
    --font-size-base: 1.05rem;
    --font-size-sm: 0.9rem;
    --font-size-lg: 1.15rem;
    --font-size-h1: 2.2rem;
    --font-size-h2: 1.6rem;
    --font-size-h3: 1.35rem;
}

html.ui-text-regular,
body.ui-text-regular {
    --font-size-base: 1.25rem;
    --font-size-sm: 1rem;
    --font-size-lg: 1.35rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
}

html.ui-text-big,
body.ui-text-big {
    --font-size-base: 1.4rem;
    --font-size-sm: 1.1rem;
    --font-size-lg: 1.5rem;
    --font-size-h1: 2.8rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.7rem;
}

/* ========================================
   BASE LAYOUT & STRUCTURE
   ======================================== */

html {
    height: 100%;
    margin: 0
}

body {
    background: var(--background-color);
    background-attachment: fixed;
    font-family: "Adobe Garamond Regular", serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    position: relative
}

.journal-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto
}

.right-column {
    position: fixed;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(to bottom, #8f8f8f, #848685);
    z-index: 0;
    overflow: hidden
}

.right-column img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 95%;
    height: auto;
    object-fit: contain;
    object-position: bottom
}

