/* ==========================================================================
   Base & Reset Styles - Ralph Ammer Theme
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* CSS Reset */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Background Paper Texture - iOS-Workaround */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #aaa;
    background: 
        radial-gradient(circle at center, 
            rgba(0, 0, 0, 0) 50%,  
            rgba(0, 0, 0, 0.02) 70%,  
            rgba(0, 0, 0, 0.1) 100%  
        ),  
        url("../images/paper_gray_mid_light.jpg"); 
    background-repeat: repeat;
    z-index: -2;
}

body {
    font-family: "Crimson Pro", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.5rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    z-index: 0;
}

/* Typography */
h1 {
    font-family: "Crimson Pro", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 3rem;
    line-height: 3.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-family: "Plus Jakarta Sans", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 2.5rem;
}

h3, h4, h5, h6 {
    font-family: "Crimson Pro", serif;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

a {
    color: #555;
    text-decoration-color: #aaa;
}

/* Lists */
ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Forms */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

/* WordPress Classes */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
