:root {
    color-scheme: light dark;
    --paper: #f6efe3;
    --surface: #fff9ef;
    --ink: #4a352b;
    --link: #2d5d55;
    --brand: #772b20;
    --rule: #e3b549;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 1.05rem/1.6 system-ui, sans-serif;
}

header, main {
    width: min(100% - 2rem, 44rem);
    margin-inline: auto;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 1.25rem;
    border-bottom: 1px solid var(--rule);
    padding-block: 1.25rem .75rem;
}

.brand {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    color: var(--brand);
    font: italic 1.6rem/1.1 Georgia, serif;
    text-decoration: none;
}

.brand img { border-radius: .6rem; }

nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

nav a[aria-current] { font-weight: 650; }

main { padding-block: 1.75rem 3rem; }

h1, h2 { line-height: 1.22; }
h1 { font: 2.3rem/1.15 Georgia, serif; margin-block: 0 1.25rem; }
h2 { font-size: 1.2rem; margin-block: 1.5rem .35rem; }
p { margin-block: 0 1rem; }
a { color: var(--link); text-underline-offset: .16em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: .2em; }

.contact {
    margin-block: 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border-block-start: 1px solid var(--rule);
}

.contact h2 { margin-block-start: 0; }
.contact p { margin: 0; }
.contact a { overflow-wrap: anywhere; }

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #251e19;
        --surface: #342821;
        --ink: #f7e9d7;
        --link: #b4ddd3;
        --brand: #ffe3a8;
        --rule: #dbad4c;
    }
}
