/* BANTER & BREWS — shared design for every page.
   Change these variables to update the complete site. */
:root {
    --green: #247338;
    --ink: #17291c;
    --muted: #526057;
    --pale-green: #edf5ed;
    --line: #cfdece;
    --page-width: 1120px;
    --reading-width: 760px;
    --section-gap: 48px;
}

/* Base styles and consistent typography */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'Newsreader', Georgia, serif;
    font-size: 18px;
    line-height: 1.65;
}
h1, h2, h3, p, figure, blockquote {
    margin: 0;
}
h1, h2, h3 {
    font-family: 'Corben', Georgia, serif;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.02em;
}
h1 {
    font-size: 44px;
    line-height: 1.2;
}
h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.35;
}
h3 {
    margin-bottom: 16px;
    font-size: 22px;
    line-height: 1.4;
}
p + p {
    margin-top: 20px;
}
a {
    color: var(--green);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
a:hover {
    text-decoration-thickness: 2px;
}
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 5px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
ul {
    margin: 20px 0 0;
    padding-left: 24px;
}
li + li {
    margin-top: 12px;
}
button {
    font: inherit;
    color: inherit;
}
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 12px;
    background: #fff;
}

/* Shared header: a single navigation row on desktop */
.site-header {
    padding: 44px 24px 32px;
    background: linear-gradient(rgba(58, 182, 74, .34), #fff);
    text-align: center;
}
.site-title {
    font-family: 'Corben', Georgia, serif;
    font-size: 28px;
    line-height: 1.35;
    letter-spacing: -.02em;
    color: var(--ink);
    text-decoration: none;
}
.main-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
    max-width: var(--page-width);
    margin: 28px auto 0;
    font-size: 16px;
    line-height: 1.5;
}
.main-nav a {
    flex: 0 0 auto;
    padding: 6px 0;
    color: var(--ink);
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
    color: var(--green);
    border-bottom-color: var(--green);
}
.menu-toggle {
    display: none;
}
.fallback-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
}
.fallback-contact {
    text-align: center;
    padding: 24px;
}

/* Every page uses this same title, width and content spacing */
.page-container {
    width: min(var(--page-width), calc(100% - 64px));
    margin: 0 auto;
    padding: 48px 0 72px;
}
.page-heading {
    padding-bottom: 32px;
    margin-bottom: var(--section-gap);
    border-bottom: 1px solid var(--line);
}
.page-introduction {
    max-width: 100%;
    margin-top: 20px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.5;
}
.reading-column {
    width: 100%;
    max-width: none;
}
.content-section + .content-section,
.page-content > * + *,
.reading-column > .content-section {
    margin-top: var(--section-gap);
}
.reading-column > .content-section:first-child {
    margin-top: 0;
}
.content-section > p {
    max-width: none;
}
/* Continuous introductory paragraphs use the normal paragraph gap. */
.work-introduction + .reading-column {
    margin-top: 20px;
}
.content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}
.logo-figure img {
    width: 280px;
    margin: auto;
}
.illustration img {
    width: 100%;
}
.quotation {
    padding: 28px 32px;
    background: var(--pale-green);
    border-left: 3px solid var(--green);
}
.quotation blockquote {
    font-size: 22px;
    line-height: 1.5;
}
.quotation figcaption {
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
}
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.testimonials .quotation {
    padding: 24px;
}
.testimonials blockquote {
    font-size: 20px;
}
.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.photo-pair img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.wide-photo {
    max-width: var(--reading-width);
}
.wide-photo img {
    width: 100%;
}
.button {
    display: inline-block;
    padding: 14px 24px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
}
.button:hover {
    background: #195528;
}

/* Shared footer uses the same page width and colours */
.site-footer {
    padding: 36px 24px 44px;
    border-top: 1px solid var(--line);
    background: var(--pale-green);
    text-align: center;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}
.social-links svg {
    width: 23px;
    height: 23px;
}
.footer-email {
    margin-top: 20px;
    font-family: 'Corben', Georgia, serif;
    font-size: 22px;
    overflow-wrap: anywhere;
}

/* Collapsible navigation where a single row would no longer fit */
@media (max-width: 1023px) {
    .site-header {
        position: relative;
        padding: 32px 80px;
    }
    .site-title {
        font-size: 23px;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        left: 24px;
        top: 34px;
        width: 40px;
        height: 36px;
        padding: 5px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        height: 2px;
        background: var(--ink);
        margin: 7px 0;
    }
    .main-nav {
        display: none;
    }
    .menu-open .main-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 28px;
    }
    .menu-open .menu-toggle span:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }
    .menu-open .menu-toggle span:last-child {
        transform: translateY(-4.5px) rotate(-45deg);
    }
    .testimonials {
        grid-template-columns: 1fr;
    }
}

/* Phone layout: consistent sizes and comfortable gutters */
@media (max-width: 600px) {
    :root {
        --section-gap: 36px;
    }
    .site-header {
        padding: 28px 60px 28px 72px;
    }
    .site-title {
        font-size: 18px;
    }
    .menu-toggle {
        left: 18px;
        top: 30px;
    }
    .page-container {
        width: calc(100% - 40px);
        padding: 32px 0 48px;
    }
    h1 {
        font-size: 34px;
    }
    h2 {
        font-size: 25px;
    }
    h3 {
        font-size: 21px;
    }
    .page-introduction {
        font-size: 20px;
    }
    .content-split, .photo-pair {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .quotation {
        padding: 24px;
    }
    .logo-figure img {
        width: 220px;
    }
}
