/* ===================================
   HOMEPAGE-SPECIFIC STYLES
   =================================== */

/* Override selection color for homepage */
::selection {
    background-color: #dfede0;
    color: #216d26;
}

/* ===================================
   LINK STYLING
   =================================== */

a,
a:visited {
    font-style: normal;
    font-weight: 500;
    color: #3C9342;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-decoration-color: #3C9342;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:focus,
a:hover,
a:active {
    color: #53af59;
    text-decoration: underline;
    text-decoration-color: #53af59;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

/* ===================================
   BOOK LINK & CURSOR FOLLOWER
   =================================== */

.book-link {
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.cursor-image {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 350px;
    height: auto;
    transform: translate(50px, -70%) rotate(0deg);
}

.cursor-image.visible {
    opacity: 1;
}

.cursor-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   LAYOUT
   =================================== */

body {
    padding: 2rem;
    position: relative;
}

main {
    max-width: 1360px;
}

.thumbnail {
    width: 160px;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(83, 175, 89, 0.4);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.section-contents:has(a:hover) .thumbnail {
    box-shadow: 0 8px 24px rgba(60, 147, 66, 0.15);
    transform: translateY(-2px);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1 {
    font-size: 2.7em;
    letter-spacing: -0.01em;
    font-weight: 600;
}

h2 {
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

.home .section-contents p, .home .section-contents li, .home .section-contents-text p {
    text-wrap: pretty;
    font-size: 1.5rem;
    font-weight: 400;
}

.home .section-contents-text p {
    padding-right: 1rem;
}

.section h2, .section h3, .section h4, .section p, .section dt, .section dd {
    line-height: 1.35;
}

body {
    line-height: 1.45;
}

/* ===================================
   NAVIGATION & BREADCRUMBS
   =================================== */

.nav-modal img, .masthead img {
    display: block;
}

.nav-modal-content li, .fw3 {
    font-weight: 300;
}

.nav-modal-content a {
    font-weight: 700;
}

.home .section li, .nav-modal-content a, .nav-modal-content li, .nav-modal button, .masthead button {
    line-height: 1;
}

.home-header h1 {
    line-height: 1.25;
}

.nav-modal-content ul, .breadcrumbs ol {
    list-style-type: none;
}

.home .section ul, .nav-modal-content ul, .breadcrumbs ol {
    padding: 0;
}

.nav-modal button, .masthead button {
    padding: 0.25rem;
}

.nav-modal-content {
    padding: 2rem;
}

.section h2, .section h3, .nav-modal-content ul, .nav-modal button, .breadcrumbs ol, .masthead button {
    margin: 0;
}

.section > *:last-child {
    margin-bottom: 0;
}

.section h3, .section p, .section ul, .section dl, .home .section li {
    margin-bottom: 0.5rem;
}

.home-header h1 {
    margin-bottom: 2rem;
}

.section h2, .section h3, .section p, .section ul, .section dl, .home-header h1 {
    margin-top: 0;
}

.home-header {
    margin-top: 8rem;
}

.section .subsection {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.nav-modal-content li {
    font-size: 2.25rem;
}

.home-header h1 {
    font-size: 1.5rem;
}

.section h2, .section h3 {
    font-size: 1.5rem;
}

.nav-modal-content, .breadcrumbs .breadcrumb-past, .breadcrumbs ol, .masthead {
    display: flex;
}

.breadcrumbs .breadcrumb-past {
    color: #3C9342;
}

.nav-modal-content {
    background: white;
}

.breadcrumbs {
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: 500;
}

.top-nav a,
.breadcrumbs a {
  text-decoration: none !important;
}

.breadcrumbs a:hover {
  text-decoration: none !important;
}


.section h2, abbr {
    font-feature-settings: "c2sc";
}

.masthead {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.top-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
}

.top-nav a {
    text-decoration: none;
    font-weight: 400;
}

.top-nav a:hover {
    text-decoration: underline;
}

.lang-switcher {
    font-weight: 500;
}

.lang-switcher a[aria-current="page"] {
    font-weight: 700;
}

/* @media (max-width: 768px) {
    .top-nav {
        font-size: 0.75rem;
        gap: 1rem;
    }
} */

.masthead button {
    border: none;
    background: none;
    cursor: pointer;
}

.masthead button:hover, .masthead button:focus {
    background: #e3e3ff;
}

.breadcrumbs ol {
    gap: 0 1ch;
    flex-wrap: wrap;
}

.breadcrumbs ol li:not(:last-child)::after {
    content: "/"/"";
}

.breadcrumbs .breadcrumb-past {
    gap: 1ch;
}

.breadcrumbs .breadcrumb-past a {
    color: #999;
    text-decoration: none;
}

.breadcrumbs .breadcrumb-current a {
    text-decoration: none;
}

.breadcrumbs * {
    letter-spacing: 0.03em !important;
}

/* ===================================
   NAVIGATION MODAL
   =================================== */

.nav-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.2s;
    opacity: 1;
}

@starting-style {
    .nav-modal {
        opacity: 0;
    }
}

.nav-modal button {
    border: none;
    background: none;
    cursor: pointer;
}

.nav-modal button:hover, .nav-modal button:focus {
    background: #e3e3ff;
}

.nav-modal.hidden {
    display: none;
}

.nav-modal.fade-out {
    opacity: 0;
}

.nav-modal-content {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}

.nav-modal-content li {
    max-width: none;
}

.nav-modal-content ul ul li {
    padding-left: 1em;
}

.nav-modal-content a {
    mix-blend-mode: multiply;
    text-decoration: none;
}

/* ===================================
   SECTIONS
   =================================== */

.home .section li {
    list-style: none;
}

.section h2 {
    text-transform: uppercase;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media screen and (min-width: 768px) {
    .home-header h1 {
        line-height: 1.28;
    }

    .nav-modal-content, body {
        padding: 4rem;
    }

    .section, .home-header {
        padding-top: 2rem;
    }

    .section .section-contents p:last-child, .section > *:last-child, .section h3, .home-header h1 {
        margin-bottom: 0;
    }

    .section .subsection {
        margin-bottom: 0.5rem;
    }

    .section .section-contents p, .section .subsection {
        margin-top: 0;
    }

    .home-header {
        margin-top: 3rem;
    }

    .section {
        margin-top: 8rem;
        margin-bottom: 8rem;
    }

    .nav-modal-content li {
        font-size: 3rem;
    }

    .home-header h1 {
        font-size: 2.25rem;
    }

    .section h2, .section h3 {
        font-size: 1.5rem;
    }

    .section, .section h2, .section h3, .section h4, .section p, .section dt, .section dd {
        line-height: 1.45;
    }

    .home .section ul {
        margin-top: 0.18rem;
    }

    .section {
        border-top: 1px solid rgba(60, 147, 66, 0.5);
        display: grid;
        grid-template-columns: .9fr 1fr 1fr 1fr;
        grid-template-rows: repeat(var(--subsections, 1), auto);
        grid-template-areas: "heading subheading contents contents";
        gap: 2rem;
        padding-top: 3rem;
    }

    .section .subsection:not(:last-child) {
        padding-bottom: 48px;
        border-bottom: 1px solid rgba(60, 147, 66, 0.45);
    }

    .subsection:has(+ .subsection-short) {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .section .subsection-short {
        padding-bottom: 0 !important;
    }

    .section .subsection-short .section-contents {
        border-top: 1px solid rgba(60, 147, 66, 0.45);
        padding-bottom: 48px;
        padding-top: 48px;
    }

    .section .subsection-short header {
        padding-bottom: 48px;
        padding-top: 48px;
        visibility: hidden;
    }

    .section header {
        position: relative;
        grid-row: 1/-1;
    }

    .section header h2, .section header h3 {
        position: sticky;
        top: 2rem;
        margin-top: -0.25em;
    }

    .section .section-contents, .section .section-contents-text {
        grid-area: contents;
    }

    .section .section-contents:has(.thumbnail) {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2rem;
        align-items: start;
    }

    .section .section-contents:has(.thumbnail) .thumbnail {
        grid-column: 1;
        grid-row: 1;
        order: 2;
    }

    .section .section-contents:has(.thumbnail) > p {
        grid-column: 2;
        grid-row: 1;
        order: 1;
        margin: 0;
        margin-top: -0.25em;
    }

    .section .section-contents:has(.thumbnail) img {
        width: 100%;
        height: auto;
        display: block;
    }

    .section .section-contents-text {
        grid-column: 2 / -1;
    }

    .section .subsection {
        grid-column: 2/-1;
        display: grid;
        grid-template-columns: subgrid;
        grid-template-rows: subgrid;
    }
}

@media screen and (max-width: 767px) {
    .section > header {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .section > header::after {
        content: "";
        display: block;
        border-top: 1px solid rgba(60, 147, 66, 0.5);
        width: 100%;
    }

    .section > header:first-child + div.section-contents {
        margin-top: 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .home-header {
        padding-top: 4rem;
    }

    .section > *:last-child {
        margin-bottom: 0;
    }

    .nav-modal-content a[href], .nav-modal-content li {
        font-size: 6rem;
    }

    .home-header h1 {
        font-size: 3rem;
    }

    .section h2, .section h3, .section h4, .section p, .section dt, .section dd, body {
        line-height: 1.55;
    }

    .home .section ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 2rem;
    }
}
/* Updated: 1736861000 */
