/* ============================================================
   Aromas Community Grange — Woodcut-Inspired Stylesheet
   Palette drawn from Grange-Woodcut.jpg: ink on aged parchment
   High-contrast, warm, handcrafted letterpress aesthetic
   ============================================================ */

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

/* --- Color Tokens --- */
:root {
    --parchment: #f3ede0;   /* aged paper background */
    --ink:       #1c1208;   /* deep woodcut ink, near-black warm */
    --ink-mid:   #3d2b14;   /* slightly lifted ink, dark walnut */
    --wood:      #5a3a1a;   /* warm dark brown, like the hall's siding */
    --grain:     #7a5228;   /* medium grain, lighter wood tone */
    --muted:     #9a8a6a;   /* faded ink, aged paper edge */
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 2.5rem auto;
    max-width: 720px;
    padding: 0 1.5rem 4rem;
    background-color: var(--parchment);
    color: var(--ink);
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.75;
}

/* --- Navigation / Masthead --- */
/* Double-rule borders echo classic broadside and letterpress printing */
nav {
    border-top: 6px double var(--ink);
    border-bottom: 6px double var(--ink);
    padding: 0.3rem 0.5rem;
    margin-bottom: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 1.5rem;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.75rem;
}

nav ul li {
    display: inline;
    margin-bottom: 0;
}

nav a {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    padding: 0.2em 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

nav a:hover,
nav a:focus {
    color: var(--wood);
    border-bottom-color: var(--wood);
    outline: none;
}

.nav-logo-link {
    display: block;
    flex-shrink: 0;
    border-bottom: none;
}

.nav-logo-link:hover { opacity: 0.85; }

.site-logo {
    height: 3.5rem;
    width: auto;
    display: block;
    border: none;
    box-shadow: none;
    margin: 0;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.6rem;
    height: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: opacity 0.15s;
}

.nav-hamburger:hover span { opacity: 0.6; }

/* --- Page Title Block --- */
#title-block-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--ink-mid);
}

#title-block-header h1.title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.01em;
    color: var(--ink);
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink);
    line-height: 1.25;
    margin-top: 1.75em;
    margin-bottom: 0.4em;
}

h1 {
    font-size: 2rem;
    font-weight: 900;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0.3em;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    border-bottom: 1px solid var(--wood);
    padding-bottom: 0.2em;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

/* h4 used on the homepage as a tagline — render as an italic subheading */
h4 {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--wood);
    text-align: center;
    margin-top: 0.5em;
}

h5 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h6 {
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
}

/* --- Links --- */
a {
    color: var(--wood);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover  { color: var(--ink); }
a:visited { color: var(--grain); }

/* --- Buttons --- */
/* Solid, woodblock-stamped call-to-action; echoes the offset shadow on img */
.join-button {
    display: inline-block;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--parchment);
    background: var(--ink);
    border: 2px solid var(--ink);
    padding: 0.75em 1.75em;
    margin: 0.5em 0 1.5em;
    box-shadow: 4px 4px 0 var(--wood);
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}

.join-button:hover,
.join-button:focus {
    background: var(--wood);
    border-color: var(--wood);
    color: var(--parchment);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
    outline: none;
}

.join-button:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 var(--ink);
}

.join-button:visited {
    color: var(--parchment);
}

/* --- Images --- */
/* Offset box-shadow gives a woodblock-print impression */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border: 2px solid var(--ink-mid);
    box-shadow: 5px 5px 0 var(--ink-mid);
}

/* --- Blockquote --- */
blockquote {
    border-left: 5px solid var(--wood);
    background: rgba(90, 58, 26, 0.06);
    margin: 1.75em 0;
    padding: 0.75em 1.25em;
    font-style: italic;
    color: var(--ink-mid);
    quotes: "\201C""\201D""\2018""\2019";
}

blockquote::before {
    content: open-quote;
    font-size: 3.5em;
    line-height: 0.1em;
    margin-right: 0.2em;
    vertical-align: -0.35em;
    color: var(--wood);
    font-family: 'Playfair Display', Georgia, serif;
}

blockquote p {
    display: inline;
}

/* --- Tables --- */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

th {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: var(--parchment);
    padding: 0.55em 0.75em;
    text-align: left;
}

td {
    padding: 0.5em 0.75em;
    border-bottom: 1px solid var(--muted);
}

tr:nth-child(even) td {
    background: rgba(90, 58, 26, 0.05);
}

/* --- Horizontal Rule --- */
hr {
    border: none;
    border-top: 1px solid var(--ink-mid);
    margin: 2.5em 0;
    opacity: 0.4;
}

/* --- Lists --- */
ul, ol {
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.3em;
}

/* --- Code --- */
code {
    font-size: 0.88em;
    background: rgba(90, 58, 26, 0.08);
    padding: 0.15em 0.35em;
    border-radius: 2px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background: var(--ink);
    color: var(--parchment);
    padding: 1.25em 1.5em;
    overflow-x: auto;
    border-left: 4px solid var(--wood);
    margin: 1.5em 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.88em;
}

/* --- Footer --- */
/* Override the inline filter:opacity(33%) set in footer.html */
footer {
    filter: none !important;
    margin-top: 3rem;
    padding: 1rem 0 0.5rem;
    border-top: 4px double var(--ink);
    font-size: 0.85rem;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: center;
}

footer a       { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* --- Responsive / Hamburger --- */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        margin-top: 1rem;
        padding: 0 1rem 3rem;
    }

    #title-block-header h1.title {
        font-size: 1.75rem;
    }

    .join-button {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* On mobile: logo left, hamburger right, links hidden below */
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.4rem 0.25rem;
    }

    /* Show the hamburger button */
    .nav-hamburger {
        display: flex;
    }

    /* Links collapse below the logo/hamburger row */
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        padding-top: 0.4rem;
        border-top: 1px solid rgba(28, 18, 8, 0.15);
        margin-top: 0.4rem;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(28, 18, 8, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }
}
