
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Permanent+Marker&display=swap');

:root {
    --red: #b90512;
    --black: #181818;
    --paper: #f6f3ec;
    --yellow: #f2df75;
    --gray: #5c5752;
    --white: #ffffff;
    --line: #b9b3a8;
    --font-hand: "Permanent Marker", cursive;
    --font-display: "Archivo Black", Impact, sans-serif;
    --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

button:disabled {
    cursor: not-allowed;
}

img,
svg {
    display: block;
}

.content-width,
.site-header,
.footer-inner {
    width: min(var(--content-width), calc(100% - 48px));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.skip-link {
    position: absolute;
    z-index: 20;
    top: 8px;
    left: 8px;
    padding: 12px 16px;
    transform: translateY(-150%);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-condensed);
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 40px);
}

.brand {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand span {
    font-family: var(--font-hand);
    font-size: 1.05rem;
    transform: rotate(-2deg);
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 36px);
}

.primary-navigation,
.explore-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}

.site-navigation a,
.explore-menu summary,
.footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--red);
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-navigation a,
.explore-menu summary {
    position: relative;
}

.explore-menu summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: var(--red);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 900;
    list-style: none;
    text-transform: uppercase;
}

.explore-menu summary::-webkit-details-marker {
    display: none;
}

.explore-menu summary::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.explore-menu[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.explore-menu summary::before {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red);
    content: "";
    transition: transform 160ms ease;
}

.explore-menu summary:hover::before,
.explore-menu summary:focus-visible::before,
.explore-menu summary.is-active::before {
    transform: scaleX(1);
}

.explore-menu {
    position: relative;
}

.explore-links {
    position: absolute;
    z-index: 8;
    top: calc(100% - 2px);
    left: -16px;
    display: grid;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 12px 28px rgb(24 24 24 / 12%);
}

.explore-links a {
    width: 100%;
    min-height: 42px;
    padding-inline: 10px;
}

.explore-links a:hover,
.explore-links a:focus-visible,
.explore-links a[aria-current="page"] {
    background: var(--yellow);
    color: var(--black);
}

.explore-links a::after {
    display: none;
}

.site-navigation .publish-nav-link {
    min-height: 42px;
    padding-inline: 18px;
    background: var(--red);
    color: var(--white);
    transition: background-color 160ms ease, color 160ms ease;
}

.site-navigation .publish-nav-link::after {
    display: none;
}

.site-navigation .publish-nav-link:hover,
.site-navigation .publish-nav-link:focus-visible {
    background: var(--black);
    color: var(--white);
}

.site-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red);
    content: "";
    transition: transform 160ms ease;
}

.site-navigation a:hover::after,
.site-navigation a:focus-visible::after,
.site-navigation a[aria-current="page"]::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-weight: 800;
    text-transform: uppercase;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-link:hover,
.account-link:focus-visible,
.account-link[aria-current="page"] {
    color: var(--red);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.account-signup {
    padding-inline: 12px;
    border: 1px solid var(--black);
}

.account-signup:hover,
.account-signup:focus-visible {
    background: var(--yellow);
    color: var(--black);
}

.account-logout {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.menu-toggle svg,
.text-link svg,
.button-link svg,
.poster-download svg,
.search-field svg,
.document-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-footer {
    margin-top: 104px;
    background: var(--red);
    color: var(--white);
}

.footer-inner {
    display: grid;
    min-height: 280px;
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: center;
    gap: 36px;
    padding-block: 48px 58px;
}

.footer-brand {
    width: fit-content;
    font-family: var(--font-hand);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.82;
    transform: rotate(-4deg);
}

.footer-message {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 1.35rem;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0 60px;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-copy {
    grid-column: 2 / 4;
    justify-self: end;
    align-self: end;
    font-family: var(--font-condensed);
    font-size: 0.95rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow-yellow {
    color: var(--yellow);
}

.home-hero {
    position: relative;
    display: flex;
    min-height: 470px;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 28px;
}

.hero-poster {
    position: relative;
    display: grid;
    width: min(600px, 78vw);
    min-height: 250px;
    place-items: center;
    padding: 48px;
    transform: rotate(-6deg);
    background: var(--red);
    clip-path: polygon(5% 7%, 94% 0, 100% 20%, 99% 77%, 91% 100%, 8% 96%, 0 31%);
}

.hero-poster::before {
    position: absolute;
    inset: 14px 18px;
    border: 2px solid rgb(255 255 255 / 15%);
    content: "";
    clip-path: polygon(5% 7%, 94% 0, 100% 20%, 99% 77%, 91% 100%, 8% 96%, 0 31%);
    pointer-events: none;
}

.hero-slogan {
    max-width: 520px;
    margin: 0;
    color: var(--white);
    font-family: var(--font-hand);
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
}

.tape {
    position: absolute;
    z-index: 2;
    display: block;
    width: 78px;
    height: 24px;
    background: rgb(246 243 236 / 62%);
    content: "";
    transform: rotate(-4deg);
}

.hero-tape-one {
    top: 11px;
    right: 42px;
    transform: rotate(36deg);
}

.hero-tape-two {
    bottom: 6px;
    left: 42px;
    transform: rotate(-42deg);
}

.hero-intro {
    max-width: 580px;
    margin: 28px 0 0;
    font-family: var(--font-condensed);
    font-size: 1.2rem;
    text-align: center;
}

.edition-note {
    position: absolute;
    top: 48%;
    right: max(28px, calc((100vw - var(--content-width)) / 2));
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.home-news {
    padding-top: 30px;
}

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

.hand-heading {
    margin: 0;
    font-family: var(--font-hand);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
}

.button-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: background-color 160ms ease;
}

.button-link:hover,
.button-link:focus-visible {
    background: var(--black);
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    min-width: 0;
}

.news-image-link {
    position: relative;
    display: block;
    aspect-ratio: 1.52;
    overflow: visible;
    border-bottom: 4px solid var(--red);
    background: #d2d0ca;
}

.news-image-link .editorial-photo {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
    object-fit: cover;
    transition: filter 220ms ease;
}

.news-image-link:hover .editorial-photo,
.news-image-link:focus-visible .editorial-photo {
    filter: grayscale(0.12);
}

.news-image-link .tape {
    top: -10px;
    left: 42%;
    width: 72px;
    height: 22px;
    background: var(--red);
    transform: rotate(-5deg);
}

.image-category {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 6px 12px 5px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-condensed);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card-content {
    padding-top: 16px;
}

.news-date {
    display: block;
    margin-bottom: 7px;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-card-title,
.history-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.13;
}

.news-card-summary,
.history-card-content > p:not(.eyebrow) {
    margin: 10px 0 16px;
    color: #3b3936;
    font-size: 0.95rem;
    line-height: 1.5;
}

.text-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--red);
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.text-link svg {
    width: 18px;
    height: 18px;
    transition: transform 150ms ease;
}

.text-link:hover svg,
.text-link:focus-visible svg {
    transform: translateX(4px);
}

.page-hero {
    background: var(--red);
    color: var(--white);
}

.page-hero-inner {
    display: grid;
    width: min(var(--content-width), calc(100% - 48px));
    min-height: 320px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    margin-inline: auto;
    padding-block: 42px;
}

.page-title {
    margin: 0;
    font-family: var(--font-hand);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.page-hero-description {
    max-width: 390px;
    margin: 28px 0 0;
    font-family: var(--font-condensed);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
}

.document-library {
    padding-top: 76px;
}

.document-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 54px;
}

.search-field {
    display: flex;
    width: min(360px, 100%);
    min-height: 48px;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--black);
}

.search-field svg {
    flex: 0 0 20px;
}

.search-field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--black);
    font-family: var(--font-condensed);
    font-size: 1.1rem;
}

.search-field input:focus-visible {
    outline: 0;
}

.search-field:focus-within {
    border-color: var(--red);
}

.search-field input::placeholder {
    color: #878178;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: background-color 140ms ease, color 140ms ease;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.document-table-header,
.document-row {
    display: grid;
    grid-template-columns: 56px minmax(280px, 2fr) minmax(115px, 0.8fr) minmax(170px, 1fr) 120px;
    align-items: center;
    column-gap: 14px;
}

.document-table-header {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-table-header span:first-child {
    grid-column: 2;
}

.document-row {
    min-height: 104px;
    border-bottom: 1px solid var(--line);
}

.document-number {
    color: #817b72;
    font-family: var(--font-condensed);
    font-size: 0.88rem;
    text-align: center;
}

.document-name {
    display: flex;
    align-items: center;
    gap: 16px;
}

.document-name h3 {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.15;
}

.document-icon {
    display: grid;
    width: 44px;
    height: 50px;
    flex: 0 0 44px;
    place-items: center;
    background: var(--red);
    color: var(--white);
}

.document-icon svg {
    width: 20px;
    height: 22px;
}

.document-category {
    color: var(--red);
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.document-details {
    display: grid;
    gap: 2px;
    font-family: var(--font-condensed);
}

.document-details strong {
    font-weight: 700;
}

.document-details time,
.availability-note {
    color: #817b72;
    font-size: 0.88rem;
}

.document-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.download-button {
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible {
    color: var(--red);
}

.download-button:disabled {
    color: var(--gray);
    opacity: 0.72;
}

.availability-note {
    font-family: var(--font-condensed);
}

.empty-state {
    padding: 32px 0;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 1.2rem;
}

.history-feature {
    display: grid;
    min-height: 430px;
    grid-template-columns: 1.7fr 0.8fr;
    margin-top: 0;
    background: var(--black);
    color: var(--white);
}

.history-feature-image {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

.history-feature-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, rgb(24 24 24 / 75%));
    content: "";
}

.history-feature-image .editorial-photo {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
    object-fit: cover;
    transition: filter 220ms ease;
}

.history-feature:hover .history-feature-image .editorial-photo,
.history-feature:focus-within .history-feature-image .editorial-photo {
    filter: grayscale(0.15);
}

.feature-year {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    left: 28px;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7rem);
    filter: grayscale(1);
    line-height: 0.9;
    transition: filter 220ms ease;
}

.history-feature:hover .feature-year,
.history-feature:focus-within .feature-year {
    filter: grayscale(0);
}

.history-feature-copy {
    align-self: center;
    padding: 44px 40px 44px 12px;
}

.history-feature-copy h2 {
    margin: 12px 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.history-feature-copy > p:not(.eyebrow) {
    margin: 0 0 25px;
    color: #e4e0d8;
}

.history-timeline {
    padding-top: 92px;
}

.history-timeline > .hand-heading {
    margin-bottom: 40px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 28px;
}

.history-image {
    position: relative;
    display: block;
    aspect-ratio: 1.98;
    overflow: hidden;
    background: #d1cec6;
}

.history-image .editorial-photo {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
    object-fit: cover;
    transition: filter 220ms ease;
}

.history-card:hover .history-image .editorial-photo,
.history-card:focus-within .history-image .editorial-photo {
    filter: grayscale(0.15);
}

.history-year {
    position: absolute;
    right: 0;
    bottom: -12px;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    filter: grayscale(1);
    line-height: 1;
    transition: filter 220ms ease;
}

.history-card:hover .history-year,
.history-card:focus-within .history-year {
    filter: grayscale(0);
}

.history-card-content {
    padding-top: 18px;
}

.history-card-content > p.eyebrow {
    margin-bottom: 8px;
}

.history-card h3 {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.history-card-content > p:not(.eyebrow) {
    margin-bottom: 4px;
}

.poster-gallery {
    padding-top: 72px;
}

.poster-notes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 50px;
    padding: 14px 0;
    border-block: 1px solid var(--line);
    list-style: none;
    font-family: var(--font-condensed);
    font-size: 0.98rem;
    font-weight: 900;
    text-transform: uppercase;
}

.poster-notes li::before {
    margin-right: 10px;
    color: var(--red);
    content: "×";
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 48px 32px;
}

.poster-card {
    min-width: 0;
}

.poster-variation-2,
.poster-variation-5 {
    margin-top: 22px;
}

.poster-preview {
    position: relative;
    aspect-ratio: 297 / 420;
    padding: 10px;
    background: #dedbd4;
    transform: rotate(-0.7deg);
}

.poster-pdf-preview {
    display: grid;
    overflow: hidden;
    place-items: center;
    color: var(--red);
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.poster-pdf-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--white);
    object-fit: contain;
}

.poster-pdf-loading {
    padding: 8px;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.04em;
    text-align: center;
}

.community-lambes {
    padding-top: 64px;
    padding-bottom: 80px;
}

.community-lambes .section-title {
    margin-bottom: 32px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.poster-artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 7px 7px 0 rgb(24 24 24 / 8%);
}

.poster-tape {
    top: -9px;
    left: 42%;
    width: 72px;
    height: 22px;
}

.poster-variation-2 .poster-preview,
.poster-variation-5 .poster-preview {
    transform: rotate(0.8deg);
}

.poster-variation-3 .poster-preview,
.poster-variation-6 .poster-preview {
    transform: rotate(-0.3deg);
}

.poster-details {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 4px 14px;
    padding-top: 14px;
}

.poster-name h3 {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.poster-name p,
.poster-format {
    margin: 0;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.poster-format {
    grid-column: 1;
}

.poster-download {
    display: grid;
    width: 46px;
    height: 46px;
    grid-column: 2;
    grid-row: 1 / span 2;
    place-items: center;
    background: var(--red);
    color: var(--white);
    transition: background-color 160ms ease;
}

.poster-download:hover,
.poster-download:focus-visible {
    background: var(--black);
}

.poster-download svg {
    width: 22px;
    height: 22px;
}

.news-archive {
    padding-top: 72px;
}

.news-archive > .filter-list {
    margin-bottom: 40px;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 28px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
}

.news-article {
    padding-top: 52px;
    padding-bottom: 100px;
}

.moderator-post-actions {
    max-width: 820px;
    margin: 28px auto 0;
}

.moderator-post-feedback {
    margin: 12px 0 0;
    color: #9a1f1f;
}

.news-article-content {
    max-width: 820px;
    margin: 42px auto 0;
}

.news-article-content > .eyebrow {
    color: var(--red);
}

.news-article-content > h1 {
    margin: 10px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.04;
}

.news-article-image {
    width: 100%;
    max-height: 600px;
    margin: 28px 0;
    object-fit: cover;
}

.news-article-summary {
    font-family: var(--font-condensed);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.45;
}

.news-author {
    margin: 0 0 16px;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 700;
}

.news-article-paragraph {
    margin: 24px 0;
    font-size: 1.08rem;
    line-height: 1.8;
    white-space: pre-line;
}

.news-card-featured {
    grid-column: 1 / -1;
}

.news-card-featured .news-image-link {
    min-height: 430px;
    aspect-ratio: auto;
    border-bottom: 0;
}

.news-card-featured .history-feature-image::after {
    pointer-events: none;
}

.news-card-featured .news-image-link .editorial-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.news-card-featured .news-image-link:hover .editorial-photo,
.news-card-featured .news-image-link:focus-visible .editorial-photo {
    filter: grayscale(0);
}

.news-card-featured .image-category,
.news-card-featured .news-image-link .tape {
    z-index: 1;
}

.news-card-featured .news-card-title {
    color: var(--white);
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.08;
}

.news-card-featured .news-date {
    color: var(--yellow);
}

.news-card-featured .news-card-summary {
    color: #e4e0d8;
}

.news-card-featured .text-link {
    width: fit-content;
    color: var(--white);
}

.publish-workspace {
    padding-top: 54px;
    padding-bottom: 100px;
}

.publish-notice {
    margin: 0 0 26px;
    padding: 14px 18px;
    border-left: 4px solid var(--yellow);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-condensed);
    font-size: 1.1rem;
}

.publish-guide {
    margin: 0 0 30px;
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid var(--black);
    background: var(--white);
    box-shadow: 5px 5px 0 var(--yellow);
}

.publish-guide[hidden] {
    display: none;
}

.publish-guide-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.publish-guide-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.publish-guide-dismiss {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.publish-guide-dismiss:hover,
.publish-guide-dismiss:focus-visible {
    background: var(--yellow);
}

.publish-guide-dismiss svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.publish-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.publish-guide-item {
    padding: 14px 16px;
    border-left: 3px solid var(--red);
    background: var(--paper);
}

.publish-guide-item h3 {
    margin: 0 0 5px;
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.publish-guide-item p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.publish-guide-warning {
    display: grid;
    gap: 4px;
    margin: 14px 0 0;
    padding: 13px 16px;
    border-left: 5px solid var(--red);
    background: #f8e9e6;
    line-height: 1.45;
}

.publish-guide-warning strong {
    color: #8f101a;
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.publish-guide-warning span {
    color: var(--black);
    font-size: 0.88rem;
}

.publish-guide-hide-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.85rem;
}

.publish-guide-hide-label input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--red);
}

.auth-required-dialog {
    width: min(460px, calc(100% - 32px));
    max-width: none;
    margin: auto;
    padding: clamp(24px, 5vw, 40px);
    border: 2px solid var(--red);
    border-top-width: 7px;
    background: var(--paper);
    color: var(--black);
    box-shadow: 8px 8px 0 var(--red);
}

.auth-required-dialog::backdrop {
    background: rgb(24 24 24 / 72%);
    backdrop-filter: blur(3px);
}

.auth-required-dialog-content > .eyebrow {
    margin-bottom: 10px;
}

.auth-required-dialog h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 5vw, 2.2rem);
    line-height: 1.05;
}

.auth-required-dialog-content > p:not(.eyebrow) {
    margin: 14px 0 24px;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 1.15rem;
}

.auth-required-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-required-link:hover {
    filter: brightness(1.12);
}

.auth-required-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.publish-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.publish-type {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 1.08rem;
    font-weight: 800;
}

.publish-type.is-active {
    background: var(--yellow);
}

.publish-form {
    max-width: 850px;
}

.publish-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.publish-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.publish-field-wide {
    grid-column: 1 / -1;
}

.publish-label {
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 800;
}

.publish-field input,
.publish-field select,
.publish-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    font: inherit;
}

.publish-field textarea {
    min-height: 120px;
    resize: vertical;
}

.publish-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #f0ede6;
}

.publish-rich-tool,
.publish-rich-size {
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 800;
}

.publish-rich-tool:hover,
.publish-rich-tool:focus-visible,
.publish-rich-size:focus-visible {
    border-color: var(--black);
    background: var(--yellow);
}

.publish-rich-tool.is-bold {
    font-weight: 900;
}

.publish-rich-tool.is-italic {
    font-style: italic;
}

.publish-rich-tool.is-underline {
    text-decoration: underline;
}

.publish-rich-size-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 2px;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.publish-rich-size {
    min-height: 34px;
    padding: 4px 6px;
}

.publish-rich-editor {
    min-height: 260px;
    padding: 14px;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--black);
    font-size: 1rem;
    line-height: 1.65;
}

.publish-rich-editor:focus {
    outline: 2px solid var(--red);
    outline-offset: 1px;
}

.publish-rich-editor:empty::before {
    color: #89837a;
    content: attr(data-placeholder);
    pointer-events: none;
}

.publish-rich-editor > :first-child {
    margin-top: 0;
}

.publish-rich-editor > :last-child {
    margin-bottom: 0;
}

.publish-rich-hint {
    color: var(--gray);
    font-size: 0.82rem;
}

.publish-rich-counter {
    justify-self: end;
    color: var(--gray);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.publish-rich-counter.is-over-limit {
    color: var(--red);
    font-weight: 800;
}

.rich-text-size-small {
    font-size: 0.82em;
}

.rich-text-size-normal {
    font-size: 1em;
}

.rich-text-size-large {
    font-size: 1.3em;
}

.rich-text-size-huge {
    font-size: 1.65em;
}

.news-article-content .news-article-paragraph-list,
.moderation-body .news-article-paragraph-list {
    margin: 24px 0;
    padding-left: 1.6em;
    font-size: 1.08rem;
    line-height: 1.8;
}

.news-article-content .news-article-paragraph-list li + li,
.moderation-body .news-article-paragraph-list li + li {
    margin-top: 0.4em;
}

.news-article-content a,
.moderation-body a {
    color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.publish-field input[type="file"] {
    padding: 8px;
}

.publish-submit {
    min-height: 48px;
    margin-top: 28px;
    padding: 0 20px;
    border: 0;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.publish-submit:disabled {
    background: var(--gray);
    color: var(--white);
}

.publish-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.publish-toolbar .publish-notice {
    flex: 1;
    margin: 0;
}

.publish-logout {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-weight: 900;
    text-transform: uppercase;
}

.publish-feedback {
    min-height: 1.5em;
    margin-top: 16px;
    font-family: var(--font-condensed);
    font-weight: 700;
}

.moderation-panel {
    display: grid;
    gap: 24px;
}

.moderation-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--white);
}

.moderation-card h2,
.moderation-card p {
    margin: 0;
}

.moderation-card .eyebrow {
    color: var(--red);
}

.moderation-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.12;
}

.moderation-body {
    max-height: 240px;
    overflow: auto;
    font-size: 0.95rem;
    line-height: 1.55;
}

.moderation-body > :first-child {
    margin-top: 0;
}

.moderation-body > :last-child {
    margin-bottom: 0;
}

.moderation-image-frame {
    position: relative;
    width: min(100%, 640px);
    aspect-ratio: 1.52;
    overflow: hidden;
    border-bottom: 4px solid var(--red);
    background: #d2d0ca;
}

.moderation-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 220ms ease;
}

.moderation-year {
    position: absolute;
    right: 8px;
    bottom: 0;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    text-shadow: 0 2px 8px rgb(0 0 0 / 45%);
}

@media (hover: hover) and (pointer: fine) {
    .moderation-image {
        filter: grayscale(1);
    }

    .moderation-image-frame:hover .moderation-image {
        filter: grayscale(0);
    }
}

.moderation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.moderation-actions .publish-submit,
.moderation-actions .publish-logout {
    margin-top: 0;
}

@media (max-width: 900px) {
    .content-width,
    .site-header,
    .footer-inner,
    .page-hero-inner {
        width: min(var(--content-width), calc(100% - 40px));
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-header {
        position: relative;
        min-height: 76px;
    }

    .site-navigation {
        position: absolute;
        z-index: 10;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100dvh - 76px);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        padding: 14px 18px 20px;
        border-top: 1px solid var(--line);
        border-bottom: 2px solid var(--black);
        background: var(--paper);
        box-shadow: 0 16px 30px rgb(24 24 24 / 12%);
    }

    .site-navigation.is-open {
        display: flex;
    }

    .primary-navigation {
        display: grid;
        gap: 2px;
    }

    .primary-navigation > li > a,
    .explore-menu summary {
        width: 100%;
        justify-content: flex-start;
    }

    .explore-menu summary {
        justify-content: space-between;
    }

    .explore-links {
        position: static;
        width: auto;
        padding: 0 0 6px 12px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .explore-links a {
        padding-inline: 12px;
    }

    .auth-menu {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px 18px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .account-link {
        min-height: 44px;
    }

    .document-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-navigation .publish-nav-link {
        width: fit-content;
        margin-top: 4px;
    }

    .search-field {
        width: 100%;
        max-width: 460px;
    }

    .document-table-header,
    .document-row {
        grid-template-columns: 38px minmax(220px, 1.8fr) minmax(100px, 0.8fr) minmax(145px, 1fr) 100px;
        column-gap: 10px;
    }

    .history-feature {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .history-feature-copy {
        padding-inline: 8px 26px;
    }

}

@media (max-width: 700px) {
    .content-width,
    .site-header,
    .footer-inner,
    .page-hero-inner {
        width: calc(100% - 36px);
    }

    .site-header {
        min-height: 72px;
    }

    .brand span {
        font-size: 0.95rem;
    }

    .home-hero {
        min-height: 420px;
        padding: 52px 18px 38px;
    }

    .hero-poster {
        width: min(520px, 86vw);
        min-height: 220px;
        padding: 38px 28px;
        transform: rotate(-3deg);
    }

    .hero-slogan {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-intro {
        max-width: 440px;
        margin-top: 24px;
        font-size: 1.1rem;
    }

    .edition-note {
        position: static;
        margin-top: 18px;
        writing-mode: horizontal-tb;
    }

    .home-news {
        padding-top: 24px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 28px;
    }

    .home-news-grid,
    .history-grid,
    .poster-grid,
    .news-archive-grid {
        grid-template-columns: 1fr;
    }

    .home-news-grid {
        gap: 42px;
    }

    .news-image-link {
        aspect-ratio: 1.55;
    }

    .page-hero-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        padding-block: 42px 48px;
    }

    .page-title {
        font-size: clamp(3.8rem, 15vw, 6rem);
    }

    .page-hero-description {
        max-width: 520px;
        margin-top: 0;
        font-size: 1.25rem;
    }

    .document-library,
    .poster-gallery,
    .news-archive {
        padding-top: 48px;
    }

    .document-controls {
        gap: 22px;
        margin-bottom: 34px;
    }

    .publish-workspace {
        padding-top: 38px;
    }

    .publish-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .publish-toolbar .publish-notice {
        width: 100%;
    }

    .publish-fields {
        grid-template-columns: 1fr;
    }

    .publish-field-wide {
        grid-column: auto;
    }

    .publish-type {
        flex: 1 1 calc(50% - 8px);
    }

    .moderation-card {
        padding: 16px;
    }

    .moderation-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .moderation-actions > * {
        width: 100%;
    }

    .filter-list {
        gap: 7px;
    }

    .filter-button {
        min-height: 44px;
        padding-inline: 11px;
    }

    .document-table-header {
        display: none;
    }

    .document-row {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px 12px;
        padding: 18px 0;
    }

    .document-number {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: start;
        padding-top: 6px;
    }

    .document-name {
        grid-column: 2;
        gap: 12px;
    }

    .document-name::before,
    .document-category::before,
    .document-details::before,
    .document-action::before {
        color: var(--gray);
        content: attr(data-label);
        font-family: var(--font-condensed);
        font-size: 0.76rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .document-name::before {
        display: none;
    }

    .document-name h3 {
        font-size: 1.2rem;
    }

    .document-category,
    .document-details,
    .document-action {
        display: flex;
        grid-column: 2;
        align-items: baseline;
        gap: 12px;
    }

    .document-action {
        align-items: center;
        flex-wrap: wrap;
    }

    .download-button {
        min-height: 44px;
        padding-inline: 0;
    }

    .history-feature {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .history-feature-image {
        min-height: 310px;
    }

    .feature-year {
        left: 18px;
        font-size: clamp(3.8rem, 16vw, 6rem);
    }

    .history-feature-copy {
        padding: 32px 22px 36px;
    }

    .history-timeline {
        padding-top: 64px;
    }

    .history-grid {
        gap: 42px;
    }

    .poster-notes {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 38px;
    }

    .poster-grid {
        max-width: 430px;
        margin-inline: auto;
        gap: 40px;
    }

    .poster-variation-2,
    .poster-variation-5 {
        margin-top: 0;
    }

    .poster-preview {
        transform: rotate(-0.5deg) !important;
    }

    .news-archive > .filter-list {
        margin-bottom: 28px;
    }

    .news-archive-grid {
        gap: 38px;
        padding-top: 30px;
    }

    .news-card-featured .news-image-link {
        min-height: 310px;
    }

    .site-footer {
        margin-top: 72px;
    }

    .footer-inner {
        min-height: 0;
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
        padding-block: 42px 28px;
    }

    .footer-brand {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
    }

    .footer-message {
        font-size: 1.1rem;
    }

    .footer-links {
        gap: 0 24px;
    }

    .footer-copy {
        grid-column: 1 / -1;
        justify-self: start;
        align-self: auto;
    }
}

@media (max-width: 380px) {
    .content-width,
    .site-header,
    .footer-inner,
    .page-hero-inner {
        width: calc(100% - 28px);
    }

    .filter-button {
        padding-inline: 9px;
        font-size: 0.83rem;
    }

    .poster-preview {
        transform: none !important;
    }

    .poster-artwork {
        box-shadow: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-copy {
        grid-column: 1;
    }
}

@media (max-width: 700px), (hover: none) {
    .news-image-link .editorial-photo,
    .history-feature-image .editorial-photo,
    .history-card .history-image .editorial-photo,
    .feature-year,
    .history-year {
        filter: grayscale(0) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.auth-document,
.auth-page {
    min-width: 0;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: minmax(280px, 31.3vw) minmax(0, 1fr);
    background: var(--paper);
    font-size: clamp(16px, 1.3vw, 18px);
}

.auth-aside {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 30px clamp(24px, 3.2vw, 46px) 24px;
    background: var(--red);
    color: var(--white);
}

.auth-aside::before,
.auth-aside::after {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    content: "";
}

.auth-aside::before {
    right: -142px;
    bottom: -196px;
    width: 420px;
    height: 420px;
    border: 2px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgb(255 255 255 / 4%), 0 0 0 76px rgb(255 255 255 / 3%);
}

.auth-aside::after {
    right: 18px;
    bottom: 12px;
    width: 136px;
    height: 190px;
    background: rgb(80 0 6 / 9%);
    clip-path: polygon(28% 0, 70% 0, 100% 100%, 0 100%);
    transform: rotate(-8deg);
}

.auth-brand,
.auth-aside-copy,
.auth-aside-footer {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 10px;
}

.auth-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
}

.auth-brand span {
    font-family: var(--font-hand);
    font-size: 1rem;
    transform: rotate(-2deg);
}

.auth-aside-copy {
    width: 100%;
    min-width: 0;
    margin-block: 48px;
}

.auth-aside-label {
    display: table;
    margin: 0 0 24px;
    padding: 4px 9px;
    border: 1px solid currentColor;
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.auth-aside-intro {
    margin: 0 0 8px;
    font-family: var(--font-condensed);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 700;
}

.auth-aside-title {
    max-width: 100%;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.9vw, 2.75rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.auth-aside-title span {
    display: block;
}

.auth-aside-description {
    max-width: 360px;
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgb(255 255 255 / 55%);
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-aside-footer {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-main {
    min-width: 0;
    padding: 24px clamp(16px, 1.5vw, 24px) 48px clamp(28px, 4.5vw, 64px);
}

.auth-topbar {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-back-link,
.auth-topbar > p {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.auth-back-link span {
    color: var(--red);
    font-size: 1.25rem;
}

.auth-topbar > p {
    color: var(--gray);
    font-size: 0.6rem;
    text-align: right;
}

.auth-content {
    width: min(100%, 1100px);
    margin: clamp(48px, 8vh, 76px) auto 0;
}

.auth-intro {
    margin-bottom: 26px;
}

.auth-eyebrow {
    margin: 0 0 6px;
    color: var(--red);
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-intro h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 4vw, 3.6rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-transform: uppercase;
}

.auth-intro h1 span {
    color: var(--red);
    font-family: var(--font-hand);
    font-size: 0.84em;
    font-weight: 400;
    letter-spacing: -0.06em;
}

.auth-intro > p:last-child {
    margin: 12px 0 0;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 1.05rem;
}

.auth-cards {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
    align-items: start;
    gap: clamp(24px, 2vw, 30px);
}

.auth-card {
    position: relative;
    min-width: 0;
    padding: 24px clamp(18px, 2vw, 28px);
    border: 2px solid var(--black);
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--yellow);
    min-height: 316px;
}

.auth-register-card {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 7px 7px 0 var(--red);
    min-height: 382px;
    padding-block: 22px;
}

.auth-register-card::before {
    position: absolute;
    top: -8px;
    right: 24px;
    width: 58px;
    height: 14px;
    background: #d6d0c5;
    content: "";
    transform: rotate(3deg);
}

.auth-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black);
}

.auth-step {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 900;
    transform: rotate(-3deg);
}

.auth-register-card .auth-step {
    background: var(--red);
}

.auth-card.auth-register-card form {
    gap: 7px;
}

.auth-register-card .auth-input-wrap {
    height: 36px;
}

.auth-card-heading p {
    margin: 0;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-card-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.auth-card form {
    display: grid;
    gap: 13px;
}

.auth-resend-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    color: var(--black);
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-transform: uppercase;
}

.auth-resend-link:hover,
.auth-resend-link:focus-visible {
    color: var(--red);
}

.auth-resend-dialog {
    width: min(520px, calc(100% - 32px));
    max-width: none;
    margin: auto;
    padding: 24px;
    border: 1px solid var(--black);
    background: var(--white);
    box-shadow: 6px 6px 0 var(--yellow);
    color: var(--black);
}

.auth-resend-dialog::backdrop {
    background: rgb(20 18 16 / 65%);
}

.auth-resend-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black);
}

.auth-resend-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.auth-resend-close {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.auth-resend-close:hover,
.auth-resend-close:focus-visible {
    background: var(--yellow);
}

.auth-resend-dialog form {
    display: grid;
    gap: 13px;
}

.auth-resend-dialog .auth-message:empty {
    display: none;
}

.auth-resend-dialog .auth-message {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .auth-resend-dialog {
        padding: 18px;
    }
}

.auth-field {
    display: grid;
    min-width: 0;
    gap: 5px;
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    min-width: 0;
    height: 40px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--white);
}

.auth-input-wrap > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin-left: 10px;
    fill: none;
    stroke: #77716a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 5px 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
}

.auth-input-wrap:focus-within {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.auth-input-wrap input:focus-visible {
    outline: 0;
}

.auth-password-wrap input {
    padding-right: 2px;
}

.auth-password-toggle {
    display: grid;
    width: 34px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
}

.auth-password-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -3px;
}

.auth-submit {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
}

.auth-submit span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
}

.auth-submit-dark {
    background: var(--black);
}

.auth-submit-red {
    background: var(--red);
}

.auth-submit:hover {
    filter: brightness(1.16);
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    line-height: 1.45;
}

.auth-consent input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--red);
}

.auth-message {
    min-height: 0;
    margin: 0;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.auth-message:not(:empty) {
    margin-top: 10px;
}

.auth-message.error {
    color: #9a1f1f;
}

.auth-message.success {
    color: #1b6b3d;
}

.auth-password-hint {
    margin: -4px 0 0;
    color: #555;
    font-size: 0.76rem;
    line-height: 1.45;
}

.publish-author-note {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 14px;
    border-left: 4px solid var(--red);
    background: #f5f1ec;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.publish-file-preview {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.file-preview-name {
    margin: 0;
    color: #555;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.file-pdf-preview {
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--line);
    background: #fff;
}

.profile-avatar {
    width: clamp(88px, 12vw, 140px);
    height: clamp(88px, 12vw, 140px);
    margin: 0 0 18px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-username {
    margin: -20px 0 24px;
    color: #555;
    font-size: 0.9rem;
}

.profile-editor {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--white);
}

.profile-editor > summary {
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin-top: 24px;
}

.profile-edit-form .publish-field:nth-of-type(4),
.profile-edit-form .publish-field:nth-of-type(5),
.profile-avatar-preview,
.profile-edit-form .auth-password-hint,
.profile-edit-form .publish-submit,
.profile-edit-form .publish-feedback {
    grid-column: 1 / -1;
}

.profile-avatar-preview:empty {
    display: none;
}

.profile-avatar-preview .profile-avatar {
    margin: 0;
}

.moderation-preview-dialog {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: clamp(18px, 4vw, 48px);
    border: 0;
    background: #f7f4ee;
    color: var(--black);
}

.moderation-preview-dialog::backdrop {
    background: rgb(0 0 0 / 78%);
}

.moderation-preview-close {
    position: sticky;
    z-index: 1;
    top: 0;
    float: right;
    margin-bottom: 16px;
}

.moderation-preview-content {
    max-width: 760px;
    margin: 36px auto 0;
    clear: both;
}

.moderation-preview-content > .eyebrow {
    color: var(--red);
}

.moderation-preview-image {
    display: block;
    width: 100%;
    max-height: 62vh;
    margin: 24px 0;
    object-fit: contain;
}

.moderation-preview-pdf {
    width: 100%;
    min-height: 70vh;
    margin-top: 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.profile-page {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.profile-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: var(--red);
    color: var(--white);
}

.profile-hero::after {
    position: absolute;
    right: -18px;
    bottom: -120px;
    color: rgb(0 0 0 / 8%);
    content: "A";
    font-family: var(--font-display);
    font-size: clamp(260px, 31vw, 440px);
    line-height: 0.9;
    pointer-events: none;
}

.profile-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1060px, calc(100% - 48px));
    min-height: 220px;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    margin-inline: auto;
}

.profile-hero-heading .eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
}

.profile-page-title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.profile-hero-description {
    max-width: 370px;
    margin: 0;
    font-family: var(--font-condensed);
    font-size: clamp(1.1rem, 1.55vw, 1.35rem);
    font-weight: 500;
    line-height: 1.45;
}

.profile-card {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1060px, calc(100% - 48px));
    min-height: 600px;
    grid-template-columns: minmax(270px, 36%) minmax(0, 1fr);
    margin: 24px auto 0;
    border: 1px solid var(--black);
    background: var(--white);
    box-shadow: 10px 10px 0 var(--yellow);
}

.profile-sidebar {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 3vw, 42px);
    overflow: hidden;
    background: var(--black);
    color: var(--white);
}

.profile-sidebar::after {
    position: absolute;
    right: -25px;
    bottom: -73px;
    color: rgb(255 255 255 / 5%);
    content: "×";
    font-family: var(--font-display);
    font-size: 240px;
    line-height: 1;
    pointer-events: none;
}

.profile-avatar-frame {
    position: relative;
    display: grid;
    width: min(100%, 260px);
    aspect-ratio: 1;
    place-items: center;
    margin: 0 0 28px 4px;
    border: 6px solid var(--paper);
    background: var(--red);
    box-shadow: 7px 7px 0 var(--red);
    transform: rotate(-2deg);
}

.profile-avatar-frame::before {
    position: absolute;
    z-index: 1;
    top: -9px;
    left: 34%;
    width: 58px;
    height: 16px;
    background: rgb(246 243 236 / 70%);
    content: "";
    transform: rotate(4deg);
}

.profile-avatar.profile-avatar {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.profile-avatar-initials {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1;
}

.profile-sidebar-label,
.profile-member-id {
    position: relative;
    z-index: 1;
    color: var(--yellow);
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-sidebar-label {
    margin: 0 0 4px;
}

.profile-sidebar-name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.profile-sidebar-username {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    color: #d7d2c9;
    font-family: var(--font-condensed);
}

.profile-avatar-help {
    position: relative;
    z-index: 1;
    margin: 8px 0 16px;
    color: #d7d2c9;
    font-size: 0.78rem;
}

.profile-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-avatar-input:focus-visible + .profile-avatar-button {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.profile-avatar-button {
    position: relative;
    z-index: 1;
    min-height: 40px;
    margin-bottom: 20px;
    padding: 0 16px;
    border: 0;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.image-edit-button {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
    background: rgb(0 0 0 / 48%);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    transition: opacity 160ms ease;
}

.image-edit-button svg {
    width: 54px;
    height: 54px;
    padding: 14px;
    border-radius: 50%;
    background: var(--red);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-avatar-frame:hover .image-edit-button,
.profile-avatar-frame.has-editable-avatar:focus-within .image-edit-button {
    opacity: 1;
}

.profile-avatar-frame:hover .profile-avatar,
.profile-avatar-frame:focus-within .profile-avatar,
.profile-avatar-frame:active .profile-avatar {
    filter: brightness(0.62);
}

.profile-avatar-frame .profile-avatar {
    transition: filter 160ms ease;
}

.image-upload-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--black);
    background: var(--black);
}

.image-upload-preview-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: filter 160ms ease;
}

.image-upload-frame:hover .image-upload-preview-image,
.image-upload-frame:focus-within .image-upload-preview-image {
    filter: brightness(0.62);
}

.image-upload-frame:hover .image-upload-edit,
.image-upload-frame:focus-within .image-upload-edit {
    opacity: 1;
}

.image-edit-button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: -5px;
    opacity: 1;
}

.profile-member-id {
    z-index: 1;
    margin: auto 0 0;
    color: var(--white);
    font-size: 0.7rem;
}

.profile-main {
    min-width: 0;
    padding: clamp(32px, 4vw, 58px);
}

.profile-form-heading {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--black);
}

.profile-form-heading > .eyebrow,
.profile-main > .eyebrow {
    margin: 0 0 4px;
    color: var(--red);
    font-size: 0.8rem;
}

.profile-form-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.profile-form-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.1vw, 2.8rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-required-note {
    margin: 0;
    color: var(--gray);
    font-family: var(--font-condensed);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-edit-form {
    display: grid;
    gap: 18px;
}

.profile-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.profile-field-label {
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-field-control {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--paper);
}

.profile-field-control > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-left: 14px;
    fill: none;
    stroke: #827d75;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-field-control input,
.profile-field-control textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--black);
    font: inherit;
    font-size: 0.9rem;
}

.profile-field-control textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-field-control:focus-within {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.profile-password-toggle {
    flex: 0 0 auto;
    margin-right: 12px;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
}

.profile-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-password-hint {
    margin: -15px 0 0;
    color: var(--gray);
    font-size: 0.75rem;
}

.profile-personal-note {
    margin-top: 4px;
    padding: 16px 18px;
    border-left: 4px solid var(--yellow);
    background: var(--paper);
}

.profile-personal-note strong {
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-personal-note p {
    margin: 5px 0 0;
    color: var(--gray);
    font-size: 0.8rem;
}

.profile-extra-details {
    border-bottom: 1px solid var(--line);
}

.profile-extra-details > summary {
    padding: 10px 0;
    cursor: pointer;
    font-family: var(--font-condensed);
    font-weight: 800;
    text-transform: uppercase;
}

.profile-extra-fields {
    display: grid;
    gap: 16px;
    padding: 6px 0 18px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-save-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 0 18px;
    border: 0;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-weight: 900;
    text-transform: uppercase;
}

.profile-save-button:disabled {
    background: var(--gray);
    cursor: wait;
}

.profile-save-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.profile-logout-button {
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-logout-button:disabled {
    opacity: 0.6;
}

.profile-feedback {
    min-height: 1.5em;
    margin: 0;
    color: var(--red);
    font-weight: 700;
}

.profile-public-info {
    margin-bottom: 24px;
}

.profile-public-bio {
    margin: 0;
}

.profile-card-public .profile-main {
    align-self: start;
}

.profile-loading,
.profile-error {
    padding-block: 48px;
}

.profile-confirm-dialog {
    width: min(480px, calc(100% - 32px));
    max-width: none;
    margin: auto;
    padding: clamp(24px, 5vw, 40px);
    border: 2px solid var(--black);
    border-top: 7px solid var(--red);
    background: var(--white);
    color: var(--black);
    box-shadow: 8px 8px 0 var(--yellow);
}

.profile-confirm-dialog::backdrop {
    background: rgb(24 24 24 / 72%);
    backdrop-filter: blur(3px);
}

.image-crop-dialog {
    box-sizing: border-box;
    width: min(720px, calc(100% - 32px));
    max-width: none;
    max-height: min(92vh, 820px);
    margin: auto;
    padding: clamp(22px, 4vw, 38px);
    overflow: auto;
    border: 2px solid var(--black);
    border-top: 7px solid var(--red);
    background: var(--paper);
    color: var(--black);
    box-shadow: 8px 8px 0 var(--yellow);
}

.image-crop-dialog::backdrop {
    background: rgb(24 24 24 / 72%);
    backdrop-filter: blur(3px);
}

.image-crop-content {
    display: grid;
    gap: 14px;
}

.image-crop-content > .eyebrow {
    margin: 0;
    color: var(--red);
}

.image-crop-content h2 {
    margin: -10px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.image-crop-copy {
    margin: -4px 0 0;
    color: var(--gray);
}

.image-crop-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: #eee;
    background-image:
        linear-gradient(45deg, #d6d3ce 25%, transparent 25%),
        linear-gradient(-45deg, #d6d3ce 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #d6d3ce 75%),
        linear-gradient(-45deg, transparent 75%, #d6d3ce 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    cursor: grab;
    touch-action: none;
}

.image-crop-canvas:active {
    cursor: grabbing;
}

.image-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 4px;
}

.profile-confirm-form {
    display: grid;
    gap: 16px;
}

.profile-confirm-form > .eyebrow {
    margin: 0;
    color: var(--red);
}

.profile-confirm-form h2 {
    margin: -12px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.profile-confirm-copy {
    margin: -6px 0 0;
    color: var(--gray);
}

.profile-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 6px;
}

.profile-confirm-cancel {
    min-height: 48px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: var(--font-condensed);
    font-weight: 900;
    text-transform: uppercase;
}

.profile-access-card {
    width: min(760px, calc(100% - 48px));
    margin: 32px auto 72px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--black);
    background: var(--white);
    box-shadow: 10px 10px 0 var(--yellow);
}

.profile-access-card > .eyebrow {
    margin: 0 0 8px;
    color: var(--red);
}

.profile-access-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.profile-access-card > p:not(.eyebrow) {
    max-width: 540px;
    margin: 14px 0 24px;
    color: var(--gray);
}

.profile-access-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-access-actions .profile-save-button {
    min-width: 180px;
}

.profile-access-register {
    border-bottom: 1px solid var(--black);
    font-family: var(--font-condensed);
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .publish-guide-grid {
        grid-template-columns: 1fr;
    }

    .profile-edit-form {
        grid-template-columns: 1fr;
    }

    .profile-edit-form > *,
    .profile-edit-form .publish-field:nth-of-type(4),
    .profile-edit-form .publish-field:nth-of-type(5),
    .profile-avatar-preview,
    .profile-edit-form .auth-password-hint,
    .profile-edit-form .publish-submit,
    .profile-edit-form .publish-feedback {
        grid-column: auto;
    }

    .file-pdf-preview {
        min-height: 320px;
    }

    .moderation-preview-dialog {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        padding: 16px;
    }

    .moderation-preview-pdf {
        min-height: 65vh;
    }

    .profile-hero,
    .profile-hero-inner {
        min-height: 210px;
    }

    .profile-hero-inner {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 16px;
    }

    .profile-hero-description {
        max-width: 300px;
    }

    .profile-card {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .profile-sidebar {
        min-height: 0;
        padding: 26px;
    }

    .profile-avatar-frame {
        width: min(60%, 220px);
        margin-bottom: 24px;
    }

    .profile-member-id {
        margin-top: 24px;
    }

    .profile-main {
        padding: 28px 22px;
    }

    .profile-form-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .profile-actions {
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .profile-confirm-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .image-crop-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .image-crop-actions > button {
        justify-content: center;
        width: 100%;
    }

    .profile-access-card {
        width: min(100% - 40px, 760px);
        margin-block: 24px 56px;
    }

    .profile-access-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (hover: none) {
    .profile-avatar-frame.has-editable-avatar .image-edit-button,
    .image-upload-frame .image-upload-edit {
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .auth-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-card {
        padding-inline: 24px;
    }
}

@media (min-width: 1241px) {
    .auth-card {
        padding: 24px clamp(22px, 2.2vw, 34px);
    }

    .auth-login-card {
        min-height: 340px;
    }

    .auth-register-card {
        min-height: 400px;
        padding-block: 22px;
    }

    .auth-card-heading {
        gap: 14px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .auth-step {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .auth-card-heading p {
        font-size: 0.8rem;
    }

    .auth-card-heading h2 {
        font-size: 1.5rem;
    }

    .auth-card form {
        gap: 13px;
    }

    .auth-card.auth-register-card form {
        gap: 9px;
    }

    .auth-field {
        font-size: 0.86rem;
        gap: 6px;
    }

    .auth-input-wrap {
        height: 42px;
    }

    .auth-register-card .auth-input-wrap {
        height: 38px;
    }

    .auth-input-wrap > svg,
    .auth-password-toggle svg {
        width: 17px;
        height: 17px;
    }

    .auth-input-wrap input {
        font-size: 1rem;
    }

    .auth-password-toggle {
        width: 40px;
        height: 38px;
    }

    .auth-submit {
        min-height: 48px;
        padding-inline: 16px;
        font-size: 0.95rem;
    }

    .auth-consent {
        font-size: 0.78rem;
    }
}

@media (max-width: 1100px) {
    .auth-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-card {
        padding-inline: 24px;
    }

    .auth-aside {
        min-height: 250px;
        padding: 20px 24px;
    }

    .auth-aside-copy {
        margin: 28px 0 22px;
    }

    .auth-aside-label {
        margin-bottom: 14px;
    }

    .auth-aside-title {
        max-width: 560px;
        font-size: clamp(1.55rem, 8.4vw, 3rem);
        letter-spacing: -0.04em;
    }

    .auth-aside-intro {
        margin-bottom: 6px;
    }

    .auth-aside-description {
        max-width: 420px;
        margin-top: 14px;
    }

    .auth-aside-footer {
        display: none;
    }

    .auth-main {
        padding: 18px 20px 40px;
    }

    .auth-content {
        margin-top: 42px;
    }
}

@media (max-width: 380px) {
    .auth-topbar {
        align-items: flex-start;
    }

    .auth-topbar > p {
        max-width: 110px;
    }

    .auth-card {
        padding: 20px 16px;
    }
}