.as-stories-page,
.as-story-single,
.as-story-home-teaser {
    color: #30362d;
}

.as-stories-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.as-stories-hero {
    padding: clamp(48px, 8vw, 96px) 0 34px;
    background: #f7f3ef;
}

.as-stories-hero h1,
.as-story-section h2,
.as-story-section-heading h2,
.as-subscribe-box h2,
.as-continuation-block h2 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0;
}

.as-stories-hero h1 {
    max-width: 780px;
    font-size: clamp(36px, 7vw, 68px);
}

.as-stories-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.as-story-section {
    padding: 42px 0 0;
}

.as-story-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.as-story-section-heading a,
.as-story-series-link,
.as-story-nav a {
    color: #8f4c3a;
    text-decoration: none;
}

.as-story-section h2,
.as-story-section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.as-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.as-story-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(48, 54, 45, 0.12);
    border-radius: 8px;
    background: #fff;
}

.as-story-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
}

.as-story-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.as-story-card h3,
.as-episode-row h3,
.as-continuation-block h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.as-story-card h3 a,
.as-episode-row h3 a {
    color: inherit;
    text-decoration: none;
}

.as-story-card p,
.as-episode-row p,
.as-subscribe-box p,
.as-continuation-block p,
.as-story-lead {
    margin: 0;
    line-height: 1.55;
}

.as-story-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: #f0e4dc;
    color: #784131;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 11px;
}

.as-story-meta,
.as-story-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #6d7469;
    font-size: 14px;
}

.as-story-button {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: auto;
    border: 1px solid #8f4c3a;
    border-radius: 999px;
    background: #8f4c3a;
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    text-decoration: none;
}

.as-story-button-light {
    background: transparent;
    color: #8f4c3a;
}

.as-story-button-disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.as-episode-list {
    display: grid;
    gap: 14px;
}

.as-episode-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(48, 54, 45, 0.12);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.as-episode-number {
    color: #8f4c3a;
    font-weight: 800;
    text-transform: uppercase;
}

.as-story-season {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.as-story-season h3 {
    margin: 0;
    font-size: clamp(21px, 3vw, 28px);
}

.as-episode-access {
    font-weight: 700;
}

.as-episode-locked-soft {
    opacity: 0.74;
}

.as-episode-read {
    border-color: rgba(91, 130, 72, 0.34);
}

.as-episode-current {
    border-color: rgba(143, 76, 58, 0.48);
}

.as-story-reset {
    display: inline-flex;
    width: fit-content;
    margin-top: 20px;
    border: 0;
    background: transparent;
    color: #8f4c3a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.as-story-single {
    padding: clamp(32px, 6vw, 72px) 0;
}

.as-story-cover {
    margin-bottom: 28px;
}

.as-story-cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 8px;
}

.as-episode-header {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.as-part-indicator {
    margin: 0;
    color: #6d7469;
    font-weight: 700;
    text-transform: uppercase;
}

.as-story-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.as-story-nav a {
    border: 1px solid rgba(143, 76, 58, 0.28);
    border-radius: 999px;
    padding: 8px 13px;
}

.as-story-disclaimer {
    margin: 0 0 24px;
    border-left: 4px solid #8f4c3a;
    background: #f7f3ef;
    padding: 14px 16px;
    line-height: 1.55;
}

.as-story-body {
    font-size: 18px;
    line-height: 1.72;
}

.as-story-body > *:first-child {
    margin-top: 0;
}

.as-continuation-block,
.as-subscribe-box,
.as-unlock-next {
    display: grid;
    gap: 14px;
    margin-top: 34px;
    border-radius: 8px;
    background: #f7f3ef;
    padding: clamp(22px, 4vw, 34px);
}

.as-unlock-next {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.as-read-progress {
    color: #6d7469;
    font-weight: 700;
}

.as-subscribe-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.as-subscribe-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.as-subscribe-form input,
.as-subscribe-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(48, 54, 45, 0.18);
    border-radius: 6px;
    background: #fff;
    color: #30362d;
    padding: 9px 12px;
}

.as-checkbox,
.as-subscribe-form button,
.as-form-message {
    grid-column: 1 / -1;
}

.as-checkbox {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
}

.as-checkbox input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}

.as-hp {
    position: absolute;
    left: -9999px;
}

.as-form-message {
    border-radius: 6px;
    background: #e9f4e6;
    padding: 12px 14px;
}

.as-story-empty {
    color: #6d7469;
}

.as-story-home-teaser {
    padding: 48px 0;
}

@media (max-width: 900px) {
    .as-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .as-episode-row {
        grid-template-columns: 1fr;
    }

    .as-unlock-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .as-story-grid,
    .as-subscribe-form {
        grid-template-columns: 1fr;
    }

    .as-story-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .as-stories-container {
        width: min(100% - 24px, 1120px);
    }
}
