.article-page {
    background:
        radial-gradient(ellipse 68% 90% at 50% 30%, rgb(255 255 255 / 62%), transparent 78%),
        #fcf7ee;
}

.article-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 58px 24px 72px;
    isolation: isolate;
}

.article-edge-field {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .23;
    background:
        radial-gradient(ellipse 16% 28% at 0% 0%, rgb(96 120 135 / 28%), transparent 72%),
        radial-gradient(ellipse 15% 30% at 100% 1%, rgb(96 120 135 / 24%), transparent 74%),
        radial-gradient(ellipse 17% 25% at 0% 100%, rgb(96 120 135 / 22%), rgb(199 104 50 / 8%) 38%, transparent 73%),
        radial-gradient(ellipse 17% 25% at 100% 100%, rgb(96 120 135 / 20%), rgb(199 104 50 / 7%) 39%, transparent 74%),
        repeating-linear-gradient(108deg, rgb(80 83 82 / 5%) 0 1px, transparent 1px 10px);
    mask-image: radial-gradient(ellipse 61% 80% at 50% 48%, transparent 0 70%, #000 96%);
}

.article-utility {
    display: grid;
    width: min(968px, 100%);
    margin: 0 auto 38px;
    grid-template-columns: 1fr 580px 1fr;
    align-items: start;
    font: 400 13px/1.2 var(--sans-condensed);
}

.article-return {
    justify-self: start;
    text-decoration: none;
}

.article-return span {
    margin-right: 8px;
    color: var(--oxide-orange);
    font-family: var(--mono);
}

.article-return:hover {
    text-decoration: underline;
    text-decoration-color: var(--oxide-orange);
    text-underline-offset: .22em;
}

.article-type {
    position: relative;
    justify-self: start;
    text-transform: uppercase;
}

.article-type::after {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    width: 36px;
    height: 3px;
    content: "";
    background: var(--oxide-orange);
}

.article-number {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 14px;
    font-family: var(--mono);
}

.article-number i {
    display: inline-block;
    width: 25px;
    height: 1px;
    background: var(--oxide-orange);
}

.article-document {
    width: min(580px, 100%);
    margin: 0 auto;
}

.article-header h1 {
    margin: 0;
    font: 400 clamp(58px, 3.8vw, 64px)/1.06 var(--serif);
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.article-header time {
    display: block;
    margin-top: 13px;
    color: var(--soft-graphite);
    font: 400 12px/1.4 var(--mono);
}

.article-summary {
    margin: 17px 0 0;
    color: var(--soft-graphite);
    font: italic 18px/1.55 var(--serif);
}

.article-divider {
    width: 100%;
    height: 1px;
    margin: 24px 0 21px;
    background: var(--oxide-orange);
}

.article-content {
    color: var(--charcoal);
    font: 400 18px/1.76 var(--serif);
    line-break: strict;
    overflow-wrap: break-word;
}

.article-content > :first-child {
    margin-top: 0;
}

.article-content p {
    margin: 0 0 .92em;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--charcoal);
    font-family: var(--serif);
    text-wrap: balance;
}

.article-content h1,
.article-content h2 {
    margin: 1.95em 0 .65em;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h3 {
    margin: 1.7em 0 .58em;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}

.article-content blockquote {
    margin: 1.45em 0 1.55em;
    border-left: 2px solid var(--oxide-orange);
    padding: 14px 0 14px 25px;
    color: var(--charcoal);
    font-size: 20px;
    line-height: 1.55;
}

.article-content blockquote p {
    margin-bottom: .45em;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
    color: var(--oxide-orange);
    font-size: 14px;
}

.article-content a {
    color: inherit;
    text-decoration-color: var(--oxide-orange);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.article-content a:visited {
    color: var(--soft-graphite);
}

.article-content a:hover {
    text-decoration-thickness: 2px;
}

.article-content code {
    border-radius: 2px;
    padding: 1px 3px;
    background: rgb(80 83 82 / 8%);
    font: 400 .87em/1.5 var(--mono);
}

.article-content pre {
    max-width: 100%;
    margin: 1.2em 0 1.8em;
    overflow-x: auto;
    border-radius: 4px;
    padding: 22px 25px;
    background: #eee7dc;
    color: var(--charcoal);
    font: 400 14px/1.62 var(--mono);
    scrollbar-color: var(--soft-graphite) transparent;
}

.article-content pre code {
    border-radius: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    white-space: pre;
}

.article-content ul,
.article-content ol {
    margin: .7em 0 1.15em;
    padding-left: 1.55em;
}

.article-content li {
    margin: .28em 0;
    padding-left: .15em;
}

.article-content li::marker {
    color: var(--soft-graphite);
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.25em 0 1.75em;
    overflow-x: auto;
    border-collapse: collapse;
    color: var(--charcoal);
    font-size: 15px;
    line-height: 1.45;
    white-space: nowrap;
}

.article-content th,
.article-content td {
    border-bottom: 1px solid rgb(80 83 82 / 25%);
    padding: 9px 15px 9px 0;
    text-align: left;
}

.article-content th {
    border-top: 1px solid var(--oxide-orange);
    color: var(--soft-graphite);
    font-family: var(--sans-condensed);
    font-weight: 600;
}

.article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.65em auto .55em;
}

.article-content p:has(> img:only-child) {
    margin-bottom: 0;
}

.article-content p:has(> img:only-child) + p:has(> em:only-child) {
    margin-top: 8px;
    color: var(--soft-graphite);
    font-size: 14px;
    line-height: 1.5;
}

.article-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 64px 0 34px;
}

.article-end i {
    width: 29px;
    height: 1px;
    background: var(--oxide-orange);
}

.article-end span {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--oxide-orange);
}

.article-comments {
    margin-top: 54px;
    border-top: 1px solid rgb(80 83 82 / 22%);
    padding-top: 28px;
}

.comments-heading h2,
.comment-form h3 {
    margin: 0;
    color: var(--charcoal);
    font: 500 18px/1.35 var(--sans-condensed);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.comments-heading p,
.comment-form > p,
.comments-empty {
    margin: 7px 0 0;
    color: var(--soft-graphite);
    font: 400 13px/1.55 var(--mono);
}

.comment-notice,
.comment-error {
    margin: 24px 0 0;
    border-left: 2px solid var(--oxide-orange);
    padding: 9px 0 9px 14px;
    color: var(--soft-graphite);
    font: 500 12px/1.5 var(--mono);
    letter-spacing: .05em;
}

.comment-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.comment-note {
    border-top: 1px solid rgb(80 83 82 / 18%);
    padding: 22px 0 24px;
}

.comment-note:last-child {
    border-bottom: 1px solid rgb(80 83 82 / 18%);
}

.comment-note header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    color: var(--soft-graphite);
    font: 400 11px/1.4 var(--mono);
}

.comment-note header strong {
    color: var(--charcoal);
    font: 600 15px/1.3 var(--serif);
}

.comment-note > article > p {
    margin: 12px 0 0;
    color: var(--charcoal);
    font: 400 17px/1.68 var(--serif);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.comment-state {
    margin-left: auto;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.comment-state--pending {
    color: var(--oxide-orange);
}

.comment-moderation {
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

.comment-moderation form {
    margin: 0;
}

.comment-moderation button,
.comment-form button,
.article-group-editor button {
    min-height: 36px;
    border: 0;
    border-bottom: 1px solid rgb(199 104 50 / 60%);
    padding: 8px 0;
    background: transparent;
    color: var(--soft-graphite);
    cursor: pointer;
    font: 500 12px/1 var(--sans-condensed);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-top: 38px;
    border-top: 1px solid rgb(80 83 82 / 18%);
    padding-top: 26px;
}

.comment-form label,
.article-group-editor label {
    margin-top: 10px;
    color: var(--soft-graphite);
    font: 500 11px/1.3 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.comment-form input,
.comment-form textarea,
.article-group-editor select {
    width: 100%;
    border: 1px solid rgb(80 83 82 / 30%);
    border-radius: 0;
    padding: 10px 12px;
    background: rgb(247 241 231 / 72%);
    color: var(--charcoal);
    font: 400 16px/1.55 var(--serif);
}

.comment-form textarea {
    min-height: 128px;
    resize: vertical;
}

.article-admin {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 18px;
    border-top: 1px solid rgb(80 83 82 / 18%);
    border-bottom: 1px solid rgb(80 83 82 / 18%);
    color: var(--soft-graphite);
    font: 400 12px/1 var(--sans-condensed);
    text-transform: uppercase;
}

.article-admin a,
.article-admin button {
    min-height: 32px;
    border: 0;
    border-bottom: 1px solid rgb(199 104 50 / 60%);
    padding: 8px 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    text-transform: uppercase;
}

.article-admin form {
    margin: 0;
}

.article-admin span {
    margin-left: auto;
    color: rgb(80 83 82 / 58%);
    font-family: var(--mono);
    letter-spacing: .06em;
    text-transform: none;
}

.article-group-editor {
    position: relative;
}

.article-group-editor summary {
    min-height: 32px;
    border-bottom: 1px solid rgb(199 104 50 / 60%);
    padding: 9px 0 7px;
    cursor: pointer;
    list-style: none;
}

.article-group-editor summary::-webkit-details-marker {
    display: none;
}

.article-group-editor form {
    position: absolute;
    z-index: 4;
    bottom: calc(100% + 10px);
    left: -12px;
    display: grid;
    width: 245px;
    gap: 8px;
    border: 1px solid rgb(80 83 82 / 22%);
    padding: 16px;
    background: var(--paper-ivory);
    box-shadow: 0 12px 30px rgb(41 43 43 / 10%);
}

@media (max-width: 1279px) {
    .article-shell {
        padding-inline: 40px;
    }

    .article-utility {
        grid-template-columns: 1fr min(580px, calc(100vw - 80px)) 1fr;
    }

    .article-header h1 {
        font-size: clamp(48px, 5.2vw, 56px);
    }

    .article-edge-field {
        opacity: .12;
    }
}

@media (max-width: 767px) {
    .article-shell {
        padding: 28px 22px 54px;
    }

    .article-edge-field {
        opacity: .05;
    }

    .article-utility {
        margin-bottom: 32px;
        grid-template-columns: 1fr auto;
        gap: 27px 20px;
    }

    .article-return {
        grid-column: 1 / -1;
    }

    .article-type {
        grid-column: 1;
    }

    .article-number {
        grid-column: 2;
    }

    .article-document {
        width: 100%;
    }

    .article-header h1 {
        font-size: clamp(36px, 11vw, 42px);
        line-height: 1.1;
    }

    .article-summary {
        font-size: 17px;
    }

    .article-content {
        font-size: 17px;
        line-height: 1.76;
    }

    .article-content h1,
    .article-content h2 {
        font-size: 25px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content pre {
        margin-right: -4px;
        margin-left: -4px;
        padding: 18px 20px;
        font-size: 13px;
    }

    .article-admin {
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .article-admin span {
        width: 100%;
        margin-left: 0;
    }

    .comment-note header {
        gap: 6px 10px;
    }

    .comment-state {
        width: 100%;
        margin-left: 0;
    }

    .comment-moderation button,
    .comment-form button {
        min-height: 44px;
    }

    .article-group-editor form {
        position: fixed;
        right: 18px;
        bottom: 18px;
        left: 18px;
        width: auto;
    }
}

@media (forced-colors: active) {
    .article-type::after,
    .article-divider,
    .article-end i,
    .article-end span {
        background: CanvasText;
    }
}
