/* Updated per user spec: EB Garamond italic headers, monospace body/links, specific colors */

:root {
    /* Monochrome palette */
    --text: #000000d9;
    --muted: #000000d9;
    --bg: #EEEEE7;
    --border: #dcdcd4;
    --card: #f3f3ee;

    /* Typographic scale */
    --font-serif: 'EB Garamond', ui-serif, Georgia, serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --fs-header: 28px;
    --fs-body: 14px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;
    --space-10: 64px;
    --radius: 12px;
    --shadow: 0 1px 0 rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.04);
    --gap-small: 16px;
    --outline-offset: 3px;
    --outline-width: 2px;
    --link-gap: 24px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: light; }
body {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.row { display: flex; gap: var(--space-4); }
.between { justify-content: space-between; }
.center { align-items: center; }

/* Centered header with two links below */
.centered-header { text-align: left; padding: 56px 0 24px; }
.centered-header h1 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--fs-header);
    font-weight: 500;
    margin: 0 0 calc(var(--gap-small) * 3 - 14px);
    letter-spacing: 0;
}
.primary-links { display: flex; gap: var(--link-gap); justify-content: flex-start; margin-bottom: var(--space-2); }
.primary-links a { color: var(--text); text-decoration: none; font-size: var(--fs-body); }
.primary-links a:hover { text-decoration: none; }

main { display: flex; flex: 1 0 auto; flex-direction: column; align-items: flex-start; justify-content: center; }

/* Remove previous hero and sections layout; simplified link lists */

/* Projects link block */
.projects { padding: 8px 0 48px; }
.project-links { display: flex; gap: var(--link-gap); justify-content: flex-start; flex-wrap: nowrap; }
.project-links a { color: var(--text); text-decoration: none; font-size: var(--fs-body); padding: 0; }

/* Remove cards/grid from previous design */

/* Generic link styling for the site */
a { color: var(--text); text-decoration: none; outline-offset: var(--outline-offset); transition: outline-offset 160ms ease; }
a:hover, a:focus-visible { outline: var(--outline-width) dotted var(--text); }

.site-footer { border-top: 1px solid var(--border); margin-top: 96px; }
.site-footer .container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; padding: 18px 0; }
.site-footer p { margin: 0; color: var(--muted); font-size: var(--fs-body); }

@media (max-width: 600px) {
    .centered-header { padding: 40px 0 16px; }
}

/* Remove sticky header support clause from previous design */

/* Button */
.btn {
    display: inline-block;
    margin-top: var(--space-5);
    margin-right: 8px;
    background: var(--text);
    color: var(--bg);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: var(--fs-body);
    border: none;
    border-radius: 0;
    outline: none;
    transition: none;
}
.btn:hover, .btn:focus-visible { outline: none; background: var(--text); color: var(--bg); }

/* Button 2 */
.btn2 {
    display: inline-block;
    margin-top: var(--space-5);
    background: transparent;
    color: var(--text);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: var(--fs-body);
    border: none;
    border-radius: 0;
    outline: var(--outline-width) dotted var(--text);
    outline-offset: 0;
}
.btn2:hover, .btn2:focus-visible {
    background: var(--text);
    color: var(--bg);
    outline: var(--outline-width) dotted var(--text);
    outline-offset: 0;
}