/* ===== Common Base Styles ===== */
/* pallet2005.com — shared across all pages */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@300;400&display=swap');

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

:root {
    --paper: #f0ece4;
    --ink: #1a1a1a;
    --muted: #8a7a6a;
    --faded: #c4b8a8;
    --shadow: rgba(26, 26, 26, 0.15);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== Film Grain Overlay ===== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4em;
    color: var(--muted);
}

h3 {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
}

p {
    margin-bottom: 1em;
    max-width: 65ch;
}

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--faded);
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom-color: var(--ink);
}

/* ===== Layout ===== */
.page {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ===== Horizontal Rule ===== */
hr {
    border: none;
    border-top: 1px solid var(--faded);
    margin: 3rem 0;
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.2);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.15),
        0 4px 20px var(--shadow);
}

/* ===== Footer ===== */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--faded);
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

.footer .contact {
    margin-top: 0.5rem;
}

.footer .contact a {
    color: var(--muted);
    border-bottom: 1px solid var(--faded);
    font-size: 0.75rem;
}

.footer .contact a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .page {
        padding: 2.5rem 1.2rem 4rem;
    }
}
