:root {
    --aacr-bg: #f7f4ee;
    --aacr-paper: #fffdf8;
    --aacr-ink: #1d2424;
    --aacr-muted: #60706d;
    --aacr-line: #d8d1c4;
    --aacr-red: #aa2e25;
    --aacr-teal: #176c68;
    --aacr-gold: #b9852d;
    --aacr-shadow: 0 16px 40px rgba(29, 36, 36, 0.12);
    --aacr-gutter: clamp(18px, 4vw, 56px);
    --aacr-measure: 720px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.aacr-market {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(29, 36, 36, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(29, 36, 36, 0.03) 1px, transparent 1px),
        var(--aacr-bg);
    background-size: 42px 42px;
    color: var(--aacr-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.58;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px var(--aacr-gutter);
    border-bottom: 1px solid rgba(29, 36, 36, 0.14);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(16px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--aacr-ink);
    background: var(--aacr-red);
    color: #fff;
    font-weight: 800;
}

.site-brand strong,
.site-brand em {
    display: block;
}

.site-brand strong {
    font-size: 15px;
    line-height: 1.1;
}

.site-brand em {
    color: var(--aacr-muted);
    font-size: 12px;
    font-style: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav ul {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--aacr-muted);
    font-size: 14px;
    text-decoration: none;
}

.site-nav__buy {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--aacr-red);
    background: var(--aacr-red);
    color: #fff !important;
    font-weight: 700;
}

.site-main {
    min-height: 70vh;
}

.aacr-commerce-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.aacr-hero {
    min-height: min(760px, calc(100vh - 72px));
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 78px);
    padding: clamp(40px, 6vw, 86px) var(--aacr-gutter) clamp(30px, 5vw, 64px);
    border-bottom: 1px solid var(--aacr-line);
}

.aacr-kicker,
.aacr-section-label {
    margin: 0 0 12px;
    color: var(--aacr-red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.aacr-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 76px;
    font-weight: 700;
    line-height: 0.98;
}

.aacr-lede {
    max-width: var(--aacr-measure);
    margin: 26px 0 0;
    color: #40504d;
    font-size: 20px;
}

.aacr-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
    margin-top: 34px;
}

.aacr-hero__facts span {
    min-height: 78px;
    padding: 14px;
    border-top: 3px solid var(--aacr-ink);
    background: rgba(255, 253, 248, 0.68);
}

.aacr-hero__facts strong {
    display: block;
    color: var(--aacr-ink);
    font-size: 24px;
    line-height: 1.15;
}

.aacr-hero__previews {
    position: relative;
    min-height: 560px;
}

.aacr-preview-card {
    position: absolute;
    width: min(330px, 70%);
    margin: 0;
    border: 1px solid #262e2e;
    background: var(--aacr-paper);
    box-shadow: var(--aacr-shadow);
}

.aacr-preview-card img {
    width: 100%;
    aspect-ratio: 4 / 5.2;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid var(--aacr-line);
    background: #eee8dc;
}

.aacr-preview-card figcaption {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    color: var(--aacr-muted);
    font-size: 12px;
    font-weight: 700;
}

.aacr-preview-card--0 {
    top: 0;
    right: 36px;
    transform: rotate(2deg);
}

.aacr-preview-card--1 {
    top: 130px;
    left: 0;
    transform: rotate(-3deg);
}

.aacr-preview-card--2 {
    right: 0;
    bottom: 0;
    transform: rotate(1deg);
}

.aacr-buy-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
    gap: 28px;
    align-items: start;
    padding: clamp(36px, 5vw, 72px) var(--aacr-gutter);
    border-bottom: 1px solid var(--aacr-line);
    background: var(--aacr-paper);
}

.aacr-checkout-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.56fr) minmax(360px, 0.86fr);
    gap: 30px;
    padding: clamp(34px, 5vw, 68px) var(--aacr-gutter);
    border-bottom: 1px solid var(--aacr-line);
    background: rgba(255, 253, 248, 0.72);
}

.aacr-buy-panel h2,
.aacr-checkout-panel h2,
.aacr-index-heading h2,
.content-page__header h1,
.archive-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.08;
}

.aacr-buy-panel p {
    max-width: 740px;
    color: var(--aacr-muted);
}

.aacr-access-box {
    padding: 22px;
    border: 1px solid var(--aacr-line);
    border-left: 5px solid var(--aacr-teal);
    background: #f8fbf8;
}

.aacr-payment-methods {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.aacr-payment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--aacr-line);
    background: #fffdf8;
}

.aacr-payment-card strong,
.aacr-payment-card span {
    display: block;
}

.aacr-payment-card strong {
    font-size: 15px;
}

.aacr-payment-card span {
    color: var(--aacr-muted);
    font-size: 13px;
}

.aacr-payment-card img,
.aacr-payment-placeholder {
    width: 116px;
    aspect-ratio: 1;
    border: 1px solid var(--aacr-line);
    background: #f1ece3;
}

.aacr-payment-card img {
    object-fit: contain;
}

.aacr-payment-placeholder {
    display: grid;
    place-items: center;
    padding: 10px;
    color: var(--aacr-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.aacr-payment-order {
    margin: 2px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(23, 108, 104, 0.35);
    background: #edf7f2;
    color: #165443;
    font-weight: 800;
}

.aacr-code-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--aacr-ink);
    font-weight: 800;
}

.aacr-code-form div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.aacr-code-form input {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #9aa6a2;
    background: #fff;
    color: var(--aacr-ink);
    font: inherit;
}

.aacr-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--aacr-ink);
    background: var(--aacr-paper);
    color: var(--aacr-ink);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.aacr-button--primary {
    border-color: var(--aacr-red);
    background: var(--aacr-red);
    color: #fff;
}

.aacr-status {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--aacr-line);
    font-weight: 700;
}

.aacr-status--ok {
    background: #edf7f2;
    color: #165443;
}

.aacr-status--error {
    background: #fff0ed;
    color: #8d241d;
}

.aacr-checkout-copy p {
    max-width: 560px;
    color: var(--aacr-muted);
}

.aacr-checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--aacr-line);
    border-left: 5px solid var(--aacr-red);
    background: #fffdf8;
}

.aacr-checkout-form label,
.aacr-checkout-form span {
    display: block;
}

.aacr-checkout-form span {
    margin-bottom: 6px;
    color: var(--aacr-ink);
    font-size: 13px;
    font-weight: 800;
}

.aacr-checkout-form input,
.aacr-checkout-form select,
.aacr-checkout-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #9aa6a2;
    background: #fff;
    color: var(--aacr-ink);
    font: inherit;
}

.aacr-checkout-form textarea {
    min-height: 96px;
    resize: vertical;
}

.aacr-checkout-form__wide,
.aacr-checkout-form .aacr-button {
    grid-column: 1 / -1;
}

.aacr-resource-index {
    padding: clamp(36px, 5vw, 72px) var(--aacr-gutter) clamp(56px, 7vw, 100px);
}

.aacr-index-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.aacr-resource-list {
    display: grid;
    gap: 14px;
}

.aacr-resource-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--aacr-line);
    background: rgba(255, 253, 248, 0.78);
}

.aacr-resource-card img {
    width: 168px;
    height: 214px;
    border: 1px solid var(--aacr-line);
    object-fit: cover;
    object-position: top center;
    background: #ece4d6;
}

.aacr-resource-card h3 {
    max-width: 980px;
    margin: 8px 0 8px;
    font-size: 22px;
    line-height: 1.22;
}

.aacr-resource-card p {
    max-width: 880px;
    color: var(--aacr-muted);
}

.aacr-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--aacr-teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.aacr-locked {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 12px;
    border: 1px dashed #9b9285;
    color: var(--aacr-muted);
    font-weight: 800;
}

.content-page,
.site-main--archive {
    width: min(980px, calc(100% - 2 * var(--aacr-gutter)));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.content-page__header,
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--aacr-line);
}

.content-page__body {
    max-width: 760px;
    color: #35423f;
    font-size: 18px;
}

.post-index {
    display: grid;
    gap: 18px;
}

.post-summary {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--aacr-line);
}

.post-summary time {
    color: var(--aacr-muted);
    font-size: 13px;
}

.post-summary h2 {
    margin: 4px 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px var(--aacr-gutter);
    border-top: 1px solid var(--aacr-line);
    background: #1d2424;
    color: #fffdf8;
}

.site-footer span {
    display: block;
    color: #c7d0cc;
    font-size: 13px;
}

.site-footer a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 980px) {
    .aacr-hero,
    .aacr-buy-panel,
    .aacr-checkout-panel {
        grid-template-columns: 1fr;
    }

    .aacr-hero {
        min-height: 0;
    }

    .aacr-hero h1 {
        font-size: 58px;
    }

    .aacr-hero__previews {
        min-height: 470px;
    }

    .aacr-hero__facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav ul {
        display: none;
    }

    .aacr-hero {
        padding-top: 32px;
    }

    .aacr-hero h1 {
        font-size: 42px;
    }

    .aacr-lede {
        font-size: 17px;
    }

    .aacr-hero__previews {
        min-height: 360px;
    }

    .aacr-preview-card {
        width: 62%;
    }

    .aacr-preview-card--1 {
        top: 92px;
    }

    .aacr-code-form div {
        grid-template-columns: 1fr;
    }

    .aacr-payment-card {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .aacr-payment-card img,
    .aacr-payment-placeholder {
        width: 96px;
    }

    .aacr-checkout-form {
        grid-template-columns: 1fr;
    }

    .aacr-resource-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        padding: 10px;
    }

    .aacr-resource-card img {
        width: 96px;
        height: 126px;
    }

    .aacr-resource-card h3 {
        font-size: 17px;
    }

    .aacr-resource-card p {
        display: none;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .aacr-preview-card figcaption {
        font-size: 11px;
    }

    .aacr-hero__previews {
        min-height: 330px;
    }

    .aacr-buy-panel h2,
    .aacr-index-heading h2 {
        font-size: 30px;
    }
}
