@import url('https://cdn.evanhollander.org/themes.css');

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.evanhollander.org/eb-garamond-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #000099;
    --surface: #ffffff;
    --border-radius: 4px;
    --spacing: 2rem;
    --max-width: 1400px;
    --content-width: 1000px;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'EB Garamond', Georgia, serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--canvas);
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* EB Garamond for font names in the typeface section */
.font-name.garamond {
    font-family: var(--font-serif);
    font-style: normal;
}

/* Keep everything else in Helvetica */
body {
    font-family: var(--font-sans);
}

/* Reset any previously set font families */
.section > p:first-of-type,
blockquote,
.subtitle {
    font-family: var(--font-sans);
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    line-height: 1.3;
    margin: 1.5rem 0 1rem;
    color: var(--primary);
}

h1 { 
    font-size: 2.5rem;
    margin-top: 0;
}

h2 { 
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    /* underlines.js will handle the underlines */
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Layout */
.site-header {
    text-align: center;
    padding: 4rem 0 4rem;
    margin: 0 0 1rem;
    background: var(--header-surface);
    color: var(--text);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 20vh;
}

/* Header text color (applies to all themes) */
.site-header h1,
.site-header .subtitle {
    color: var(--primary);
}


.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Sections */
.section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .section {
        padding: 1.5rem;
    }
}
