/* =========================================
   ART OF METHOD — SHARED SITE SHELL
   Header + Footer
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');


/* =========================================
   HEADER
========================================= */

.aom-header {
    width: 100%;
    background: #f4f0e8;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.aom-header-inner {
    width: min(1360px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.aom-logo {
    color: #171717;
    text-decoration: none;

    font-family: "Rye", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.aom-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.aom-nav a {
    position: relative;

    color: #171717;
    text-decoration: none;

    font-family: "Rye", serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.aom-nav a:hover {
    color: #174c3a;
}

.aom-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;
    background: #174c3a;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.aom-nav a:hover::after,
.aom-nav a.active::after {
    transform: scaleX(1);
}

.aom-nav a.active {
    color: #174c3a;
}

.aom-menu-button {
    display: none;

    border: 0;
    padding: 4px;

    background: transparent;
    color: #171717;

    font-size: 26px;
    cursor: pointer;
}


/* =========================================
   COMMUNITY
========================================= */

.aom-community {
    width: 100%;
    background: #174c3a;
    color: #ffffff;
}

.aom-community-inner {
    width: min(1360px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
    text-align: center;
}

.aom-community-label {
    margin-bottom: 18px;

    font-family: "Rye", serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aom-community h2 {
    margin: 0 0 14px;

    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
}

.aom-community p {
    max-width: 620px;
    margin: 0 auto;

    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}

@media (max-width: 720px) {
    .aom-community-inner {
        width: calc(100% - 28px);
        padding: 54px 0;
    }

    .aom-community p {
        font-size: 15px;
    }
}


/* =========================================
   FOOTER
========================================= */

.aom-footer {
    width: 100%;
    background: #111514;
    color: #ffffff;
}

.aom-footer-inner {
    width: min(1360px, calc(100% - 40px));
    min-height: 110px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.aom-footer-logo {
    font-family: "Rye", serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.aom-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.aom-footer-socials a {
    color: #ffffff;
    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.aom-footer-socials a:hover {
    opacity: 0.7;
}

.aom-footer-copy {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    white-space: nowrap;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 720px) {

    .aom-header-inner {
        width: calc(100% - 28px);
        min-height: 72px;
        position: relative;
    }

    .aom-logo {
        font-size: 25px;
    }

    .aom-menu-button {
        display: block;
    }

    .aom-nav {
        display: none;

        position: absolute;
        top: 72px;
        left: -14px;
        right: -14px;
        z-index: 1000;

        padding: 12px 14px 18px;

        background: #f4f0e8;
        border-top: 1px solid rgba(0,0,0,0.08);
        border-bottom: 1px solid rgba(0,0,0,0.08);

        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .aom-nav.open {
        display: flex;
    }

    .aom-nav a {
        width: 100%;
        padding: 13px 0;

        font-size: 18px;
    }

    .aom-nav a::after {
        display: none;
    }

    .aom-footer-inner {
        width: calc(100% - 28px);
        min-height: 160px;

        padding: 30px 0;

        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 18px;
    }

    .aom-footer-socials {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 18px;
    }

    .aom-footer-copy {
        white-space: normal;
    }
}

/* =========================
   STANDARD SIDEBAR
========================= */

.aom-page-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
}

.aom-main-column {
    min-width: 0;
}

.aom-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 24px;
}

.aom-sidebar-section {
    display: grid;
    gap: 10px;
}

.aom-sidebar-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #174c3a;
}

.aom-sidebar-card {
    display: block;
    padding: 18px;
    background: #fffdf8;
    border: 1px solid #d8d0c4;
    border-radius: 14px;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}

.aom-sidebar-card:hover {
    transform: translateY(-2px);
    border-color: #174c3a;
}

.aom-sidebar-card-title {
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
}

.aom-sidebar-card-text {
    color: #66625d;
    font-size: 13px;
    line-height: 1.5;
}

.aom-sidebar-card-link {
    margin-top: 14px;
    color: #174c3a;
    font-size: 12px;
    font-weight: 850;
}

.aom-sidebar-ad {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede8de;
    border: 1px dashed #c7beb1;
    border-radius: 14px;
    color: #8b857d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* =========================
   SIDEBAR RESPONSIVE
========================= */

@media (max-width: 900px) {

    .aom-page-layout {
        grid-template-columns: 1fr;
    }

    .aom-sidebar {
        position: static;
        margin-top: 30px;
    }

}

@media (max-width: 600px) {

    .aom-page-layout {
        width: min(100% - 28px, 1180px);
        gap: 22px;
    }

}

/* =========================
   KEEP THE RECORD MODAL
========================= */

.aom-record-open {
    overflow: hidden;
}

.aom-record-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(17, 21, 20, 0.72);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.aom-record-modal {
    position: relative;

    width: min(520px, 100%);
    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;

    padding: 18px;

    background: #f4f0e8;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34);

    overflow-y: auto;
}

.aom-record-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: rgba(244, 240, 232, 0.94);
    color: #171717;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.aom-record-close:hover {
    background: #ffffff;
}

.aom-record-image {
    display: block;

    width: auto;
    height: auto;

    max-width: min(500px, 100%);
    max-height: 600px;

    margin: 0 auto;

    object-fit: contain;
    border-radius: 12px;
}

.aom-record-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.aom-record-action {
    min-height: 46px;
    padding: 12px 10px;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;

    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;

    cursor: pointer;
    transition: opacity 0.15s ease;
}

/* SAVE */
#aomRecordSave {
    background: #171717;
    color: #ffffff;
}

/* COPY LINK */
#aomRecordCopy {
    background: #174c3a;
    color: #ffffff;
}

/* MORE OPTIONS */
#aomRecordMore {
    background: #e8dfcf;
    color: #171717;
}

.aom-record-action:hover {
    opacity: 0.86;
}


/* =========================
   KEEP THE RECORD — MOBILE
========================= */

@media (max-width: 600px) {

    .aom-record-overlay {
        padding: 14px;
        align-items: center;
    }

    .aom-record-modal {
        width: 100%;
        max-height: calc(100vh - 28px);
        padding: 12px;
        border-radius: 14px;
    }

    .aom-record-close {
        top: 8px;
        right: 8px;
    }

}
