:root {
    --ink: #181713;
    --ink-soft: #5e5a51;
    --paper: #f3efe6;
    --paper-light: #faf8f2;
    --white: #fffdf8;
    --accent: #aa7440;
    --accent-dark: #765033;
    --mark-gold: #c8935c;
    --line: #d8d1c4;
    --serif: "Newsreader", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --display: "DM Sans", Arial, sans-serif;
    --shell: min(1240px, calc(100vw - 80px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper-light);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: 120px 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
    position: relative;
    z-index: 20;
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .09em;
    text-decoration: none;
}
.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--mark-gold);
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    /* P has no descender, so the centred line box leaves it high; this moves the letter to the true centre */
    padding-top: .22em;
}
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav a, .footer-links a {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.primary-nav a:hover, .footer-links a:hover { color: var(--accent-dark); }
.nav-toggle { display: none; }
.primary-nav { margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.lang-switch a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); text-decoration: none; }
.lang-switch .flag { width: 18px; height: 12px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; }
.lang-switch a:hover { color: var(--accent-dark); }
.lang-switch span { color: var(--line); }

.eyebrow {
    margin: 0 0 20px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.35;
    text-transform: uppercase;
}
.button-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.button-solid { background: var(--ink); color: var(--white); }
.button-solid:hover { background: var(--accent-dark); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--paper); }
.button-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.button-outline-light:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: var(--white); }

.site-footer { padding: 58px 0; background: var(--ink); color: var(--white); }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 30px;
}
.footer-brand .brand-mark { border-color: var(--mark-gold); }
.footer-inner > div:first-child > p { margin: 18px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }
.footer-links { display: flex; gap: 26px; }
.copyright { grid-column: 1 / -1; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 12px; }

@media (max-width: 820px) {
    :root { --shell: min(100% - 40px, 680px); }
    .section-pad { padding: 82px 0; }
    .header-inner { min-height: 74px; }
    .nav-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }
    .nav-toggle > span:not(.sr-only) { width: 22px; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .primary-nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        padding: 26px 20px 32px;
        background: var(--paper-light);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
    .primary-nav.open { display: flex; }
    .header-inner { gap: 16px; }
    .lang-switch { order: 2; margin-left: auto; }
    .nav-toggle { order: 3; margin-right: -8px; }
    .primary-nav a { font-size: 16px; }
    .footer-inner { grid-template-columns: 1fr; align-items: start; }
    .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    :root { --shell: calc(100% - 30px); }
    .brand { font-size: 11px; letter-spacing: .06em; }
    .header-inner { gap: 10px; }
    .lang-switch { gap: 6px; }
    .lang-switch a { gap: 5px; }
    .brand-mark { width: 32px; height: 32px; font-size: 22px; }
    .button-row { align-items: stretch; flex-direction: column; gap: 18px; }
    .button { width: 100%; }
    .text-link { align-self: flex-start; }
}

@media (max-width: 640px) {
    .button-row { align-items: stretch; flex-direction: column; gap: 18px; }
    .button { width: 100%; }
    .text-link { align-self: flex-start; }
}

h1, h2, h3 { text-wrap: balance; }

/* Contact form: the home page's last section and the contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
.contact-copy h1, .contact-copy h2 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(46px, 5.5vw, 78px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.contact-copy > p:not(.eyebrow) { max-width: 460px; margin: 0; font-size: 17px; line-height: 1.7; }
.contact-copy > p:not(.eyebrow) + p { margin-top: 22px; }
.contact-section { padding: 110px 0; background: var(--accent-dark); color: var(--white); }
.contact-section .eyebrow { color: #e6c49d; }
.contact-section .contact-copy > p:not(.eyebrow) { color: rgba(255,253,248,.82); }
.contact-page .contact-copy > p:not(.eyebrow) { color: var(--ink-soft); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin: 0; }
.contact-form .field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-form .field-wide { grid-column: 1 / -1; }
.contact-form label, .contact-form legend { padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.contact-form .optional { margin-left: 6px; font-weight: 400; opacity: .7; }
.contact-form input:not([type="radio"]):not([type="checkbox"]), .contact-form textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: #b3261e; }
.contact-section .button-solid { background: var(--white); color: var(--ink); }
.contact-section .button-solid:hover { background: var(--paper); }
.form-trap { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-feedback { margin: 0; font-size: 15px; }
@media (max-width: 820px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .contact-section { padding: 82px 0; }
}

/* Page not found */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(46px, 6vw, 84px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.notfound .shell > p:not(.eyebrow) { max-width: 520px; margin: 0 0 36px; color: var(--ink-soft); font-size: 17px; }

/* Article cards and newsletter: shared by Home, Articles and posts */
.articles-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; }
.articles-page { background: var(--white); }
.articles-heading p:not(.eyebrow) { max-width: none; margin: 24px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.articles-page h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5vw, 74px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card { min-width: 0; background: var(--paper-light); color: inherit; text-decoration: none; overflow: hidden; display: flex; flex-direction: column; }
.article-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.article-card-featured > img { object-fit: contain; padding: 20px; background: #f4eee3; }
.article-card-lead { grid-column: 1 / -1; flex-direction: row; }
.article-card-lead > img { width: 58%; aspect-ratio: 16 / 9; }
.article-card-lead .article-copy { min-height: 0; padding: 44px 48px; }
.article-card-lead .article-copy h3 { font-size: clamp(34px, 3.4vw, 50px); text-wrap: balance; }
.article-card:hover > img { transform: scale(1.02); }
.article-copy { min-height: 260px; padding: 27px 28px 30px; display: flex; flex: 1; flex-direction: column; }
.article-meta { margin: 0 0 14px; color: var(--accent-dark); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article-copy h3 { margin: 0 0 30px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; line-height: 1.12; }
.article-copy > span { margin-top: auto; font-size: 12px; font-weight: 600; }
.newsletter { background: var(--paper); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 90px; }
.newsletter h2 { max-width: 620px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 4vw, 62px); font-weight: 400; letter-spacing: -.03em; line-height: 1.02; }
.newsletter-form { position: relative; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--ink); }
.newsletter-form input { min-width: 0; padding: 18px 0; border: 0; background: transparent; color: var(--ink); outline: 0; }
.newsletter-form input:focus { box-shadow: inset 0 -2px 0 var(--accent-dark); }
.newsletter-form button { padding: 18px 0 18px 24px; border: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.newsletter-form button:disabled { opacity: .5; }
.newsletter-feedback { position: absolute; top: calc(100% + 12px); left: 0; margin: 0; font-size: 12px; }
@media (max-width: 1050px) {
    .article-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .articles-heading { align-items: flex-start; flex-direction: column; }
    .newsletter-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
    .article-grid, .article-grid-two { grid-template-columns: 1fr; }
    .article-card-featured > img, .article-card > img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
    .article-card-lead { flex-direction: column; }
    .article-card-lead > img { aspect-ratio: 16 / 9; }
    .article-card-lead .article-copy { padding: 27px 28px 30px; }
    .article-card-lead .article-copy h3 { font-size: clamp(24px, 2.2vw, 34px); }
    .newsletter-form { grid-template-columns: 1fr; }
    .newsletter-form button { padding-left: 0; text-align: left; }
}
