/* Additions for the local preview. Original styles.css is preserved. */

main {
    line-height: 1.6;
}

main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 56px 0;
    border-bottom: 1px solid #b9ae98;
}

h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -1px;
}

h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.3;
}

p {
    margin: 0 0 20px;
    max-width: 72ch;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.intro {
    padding: 72px 0 56px;
}

.intro h2 {
    font-size: clamp(38px, 6vw, 70px);
    letter-spacing: -2px;
}

.intro-copy {
    font-size: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px solid #181818;
    background: #181818;
    color: #f3f0e8;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background: #ead9bc;
    color: #181818;
}

.button:disabled {
    cursor: not-allowed;
    background: #e4dfd3;
    color: #595449;
    border-color: #8b8373;
}

.preview-note {
    margin: 16px 0 0;
    font-size: 14px;
    color: #514a3e;
}

.product-card {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 36px;
    border: 2px solid #181818;
    background: #eee2cc;
    box-shadow: 6px 6px 0 #181818;
}

.product-mark {
    display: grid;
    place-items: center;
    align-self: start;
    aspect-ratio: 1;
    background: #285e4b;
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -5px;
    border: 2px solid #181818;
}

.product-copy {
    padding-top: 32px;
}

.product-copy h3 {
    font-size: 36px;
}

.status-tag {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 12px;
    font-weight: 700;
}

.detail-panel {
    margin-top: 48px;
    padding: 36px;
    border: 2px solid #181818;
    background: #faf8f2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 32px 0;
}

.feature-grid h3 {
    font-size: 19px;
}

.notice {
    border-left: 4px solid #285e4b;
    padding: 12px 16px;
    background: #e6ece5;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

.empty-panel {
    padding: 28px;
    border: 1px dashed #8b8373;
}

.empty-panel p {
    margin: 0;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

details {
    padding: 20px;
    border: 1px solid #8b8373;
    background: #eee2cc;
}

summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 32px;
}

details[open] summary {
    margin-bottom: 20px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px;
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid #285e4b;
    outline-offset: 5px;
}

section:focus,
main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    z-index: 10;
    left: 16px;
    top: -100px;
    padding: 12px 20px;
    background: #fff;
}

.skip-link:focus {
    top: 16px;
}

@media (max-width: 800px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }






}

@media (max-width: 600px) {












    .main-nav a {
        padding: 10px 8px;
        font-size: 12px;
    }

    main {
        padding: 0 20px;
    }

    section {
        padding: 40px 0;
    }

    .intro {
        padding: 48px 0 40px;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .product-mark {
        width: 100px;
        font-size: 40px;
    }

    .product-copy {
        padding-top: 0;
    }

    .detail-panel {
        padding: 24px;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Keep the existing header artwork and make its layout fit smaller screens. */

@media (max-width: 1100px) {
    .site-header {
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 22px;
    }

    .brand-title h1 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .brand-mascot {
        left: 190px;
        top: -12px;
        width: 90px;
    }

    .brand-claw {
        left: 220px;
        width: 35px;
    }

    .brand-area p {
        font-size: 14px;
    }

    .main-nav {
        gap: 2px;
    }
}

@media (max-width: 600px) {
    .button {
        max-width: 100%;
        gap: 12px;
        padding: 12px;
        overflow-wrap: anywhere;
    }

    .brand-area {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .brand-area {
        max-width: 100%;
        flex-shrink: 1;
    }
}

/* ---------- PARCHMENT STOREFRONT FINISH ---------- */

body {
    background-color: #eee2cc;
    background-image: linear-gradient(rgba(243, 240, 232, 0.65), rgba(243, 240, 232, 0.65)), url("parchment-bg.png");
    background-size: auto, 1774px auto;
}

main > section {
    position: relative;
}

.section-heading h2,
#games h2,
#about h2,
#contact h2 {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #181818;
}

.product-card,
.detail-panel,
.empty-panel,
.split-section > div:last-child {
    background-color: #eee2cc;
    background-image: linear-gradient(rgba(255, 252, 244, 0.72), rgba(255, 252, 244, 0.72)), url("parchment-bg.png");
    background-size: cover;
}

.product-card {
    border-radius: 2px 9px 3px 6px;
}

.product-mark {
    object-fit: contain;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
}

.empty-panel,
.split-section > div:last-child {
    border: 2px solid #181818;
    border-radius: 5px 2px 8px 3px;
    box-shadow: 3px 4px 0 #b9ae98;
}

.split-section > div:last-child {
    padding: 28px;
}

.status-tag {
    padding: 3px 8px;
    border: 1px solid #181818;
    background: #f3ead7;
    transform: rotate(2deg);
}

.notice {
    border-color: #181818;
    background: #eee2cc;
}

.button {
    border-radius: 2px 5px 3px 2px;
    box-shadow: 3px 3px 0 #b9ae98;
}

.main-nav a,
.text-link,
.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.main-nav a:focus-visible,
.button:focus-visible,
a:focus-visible {
    outline: 3px solid #285e4b;
    outline-offset: 4px;
}

.return-message {
    width: fit-content;
    padding: 8px 14px;
    border: 2px dashed #181818;
    background: #eee2cc;
    font-weight: 700;
    transform: rotate(-1deg);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .site-header {
        row-gap: 65px;
    }
}

@media (max-width: 600px) {
    .site-header {
        row-gap: 20px;
    }

    .brand-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .brand-title h1 {
        font-size: clamp(25px, 7.5vw, 32px);
    }

    .brand-mascot {
        position: relative;
        left: auto;
        top: auto;
        width: 180px;
        margin-top: 8px;
    }

    .brand-claw {
        left: 54px;
        top: 53px;
        width: 44px;
    }

    .brand-area p {
        -webkit-mask-image: none;
        mask-image: none;
        -webkit-text-stroke: 0;
        line-height: 1.5;
    }

    .status-tag {
        top: 16px;
        right: 12px;
        max-width: 145px;
        font-size: 11px;
    }

    .product-mark {
        width: 80px;
        height: 80px;
    }

    .split-section > div:last-child {
        padding: 24px;
    }

    .product-copy .eyebrow {
        letter-spacing: 1px;
    }
}

/* ---------- CONFIRMED PROJECT LISTINGS ---------- */

.product-card + .product-card {
    margin-top: 28px;
}

.planned-card {
    grid-template-columns: 1fr;
}

.planned-card .product-copy {
    padding-top: 28px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.game-grid .preview-note {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- SECTION NAVIGATION ---------- */

.main-nav a[aria-current="page"] {
    border: 2px solid #181818;
    background: #f3f0e8;
}

main > section[hidden] {
    display: none;
}

/* ---------- NAVIGATION CORNERS ---------- */

.main-nav a {
    border-radius: 6px;
}
