/* MINISTRY OF MINOR THINGS — CONTAINERS, GRIDS AND LAYOUT */
/* Rules for each selector are grouped with its responsive variants. */

.site {
    max-width: 1180px;
    margin: auto;
    padding: 0 30px;
}

@media (max-width: 700px) {
    .site {
        padding: 0 12px;
    }
}

.directory-list {
    display: grid;
    gap: 10px;
}

.directory-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: left;
    border: 2px solid var(--steel);
    background: var(--navy);
    color: var(--paper);
    font-size: 13px;
    padding: 14px;
}

@media (max-width: 700px) {
    .directory-list button {
        font-size: 11px;
    }
}

.directory-list button:first-child {
    color: var(--amber);
    border-color: var(--amber);
}

.directory-list button:hover {
    background: var(--blue);
}

.directory-list small {
    font-size: 10px;
    color: var(--copper);
}

@media (max-width: 700px) {
    .directory-list small {
        font-size: 8px;
    }
}

.directory-list button:first-child small {
    color: var(--amber);
}

.content-rule {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 60px 0 10px;
    color: var(--amber);
    font-size: 10px;
}

@media (max-width: 700px) {
    .content-rule {
        margin-top: 35px;
        font-size: 7px;
        gap: 10px;
    }
}

.content-rule span {
    height: 8px;
    flex: 1;
    border-block: 2px solid var(--steel);
    background: var(--navy);
}

.content-rule b {
    font-weight: normal;
}

.text-section {
    padding: 50px 0;
    border-bottom: 2px solid var(--blue);
    scroll-margin-top: 20px;
}

@media (max-width: 700px) {
    .text-section {
        padding: 35px 3px;
    }
}

.text-section h2 {
    font-size: 28px;
    line-height: 1.35;
    font-weight: normal;
    margin: 0 0 22px;
    color: var(--paper);
}

@media (max-width: 700px) {
    .text-section h2 {
        font-size: 23px;
        margin-bottom: 18px;
    }
}

.text-section p {
    font-family: "Courier New", monospace;
    font-size: 16px;
    line-height: 1.7;
    color: var(--silver);
}

@media (max-width: 700px) {
    .text-section p {
        font-size: 15px;
        line-height: 1.7;
    }
}

.text-section h3 {
    font-weight: normal;
}

.section-intro {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 700px) {
    .section-heading {
        flex-direction: column;
        gap: 0;
    }
}

.directory-table {
    border: 2px solid var(--steel);
    background: var(--navy);
}

.directory-row {
    display: grid;
    grid-template-columns: 1.05fr 1.3fr 0.55fr;
    gap: 20px;
    align-items: center;
    padding: 21px 22px;
    border-bottom: 1px solid var(--blue);
    font-size: 12px;
    color: var(--silver);
}

@media (max-width: 900px) {
    .directory-row {
        grid-template-columns: 1.1fr 1.2fr 0.6fr;
        gap: 10px;
    }
}

@media (max-width: 700px) {
    .directory-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 18px 12px;
    }
}

.directory-row:last-child {
    border-bottom: 0;
}

.directory-row p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 700px) {
    .directory-row p {
        grid-column: 1/-1;
        grid-row: 2;
        font-size: 14px;
        line-height: 1.6;
    }
}

.directory-row small {
    color: var(--silver);
    font-size: 12px;
}

@media (max-width: 700px) {
    .directory-row small {
        font-size: 12px;
    }
}

.directory-row > span:last-child {
    font-size: 9px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .directory-row > span:last-child {
        font-size: 7px;
    }
}

.directory-row > div {
    line-height: 1.6;
}

@media (max-width: 700px) {
    .directory-row > div {
        font-size: 11px;
    }
}

.directory-row.available {
    background: #163a7733;
    border-left: 4px solid var(--amber);
    padding-left: 18px;
}

@media (max-width: 700px) {
    .directory-row.available {
        padding-left: 8px;
    }
}

.directory-row.available a {
    color: var(--amber);
}

.directory-row.available a:hover {
    text-decoration: underline;
}

.text-section .footnote {
    font-size: 12px;
    color: var(--silver);
}

@media (max-width: 700px) {
    .text-section .footnote {
        font-size: 12px;
    }
}

.app-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 900px) {
    .app-section {
        gap: 25px;
    }
}

@media (max-width: 700px) {
    .app-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.app-description h3 {
    font-size: 22px;
    line-height: 1.6;
    color: var(--paper);
    margin: 0 0 18px;
}

@media (max-width: 900px) {
    .app-description h3 {
        font-size: 19px;
    }
}

@media (max-width: 700px) {
    .app-description h3 {
        font-size: 19px;
    }
}

.text-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 700px) {
    .text-actions {
        gap: 14px;
    }
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .guide-steps {
        gap: 20px;
    }
}

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

.guide-steps article {
    border-top: 4px solid var(--blue);
    padding: 22px 0 0;
}

@media (max-width: 700px) {
    .guide-steps article {
        padding-top: 18px;
    }
}

.guide-steps h3 {
    font-size: 18px;
    color: var(--paper);
    margin: 16px 0;
}

@media (max-width: 700px) {
    .guide-steps h3 {
        display: inline-block;
        margin-left: 18px;
        font-size: 18px;
    }
}

.guide-steps p {
    font-size: 15px;
}

.guide-steps .example {
    font-size: 13px;
    color: var(--paper);
    border-left: 2px solid var(--steel);
    padding-left: 12px;
}

.guide-steps .aside {
    font-size: 13px;
    color: var(--silver);
    font-style: italic;
}

.download-section {
    display: flex;
    align-items: center;
    gap: 70px;
}

@media (max-width: 900px) {
    .download-section {
        gap: 35px;
    }
}

@media (max-width: 700px) {
    .download-section {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}

.download-section > div:first-child {
    flex: 1;
}

.download-section p {
    font-size: 15px;
}

.help-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .help-layout {
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .help-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.table-head {
    background: var(--blue);
    font-size: 9px;
    color: var(--paper);
    padding-block: 10px;
}

@media (max-width: 700px) {
    .table-head {
        display: none;
    }
}

.about-section > p {
    max-width: 780px;
}

.about-section {
    border: 0;
    padding-bottom: 35px;
}

@media (max-width: 700px) {
    .under-game {
        font-size: 8px;
        align-items: start;
        margin-bottom: 22px;
        gap: 12px;
        margin-top: 14px;
    }
}

@media (max-width: 700px) {
    .under-game > span {
        max-width: 170px;
    }
}

@media (max-width: 700px) {
    .under-game a {
        font-size: 8px;
        text-align: right;
        max-width: 145px;
        line-height: 1.7;
    }
}

@media (max-width: 700px) {
    .section-heading .badge {
        font-size: 8px;
        margin-bottom: 15px;
    }
}

@media (max-width: 700px) {
    .guide-steps .example,
        .guide-steps .aside {
        font-size: 13px;
    }
}

.subpage {
    max-width: 960px;
    margin: auto;
}

.subpage .subpage-hero {
    padding: clamp(32px, 7vw, 72px) 0 24px;
    border-bottom: 2px solid var(--blue);
}

.subpage .subpage-hero h1 {
    position: static;
    display: block;
    font-size: clamp(29px, 5.5vw, 58px);
    color: var(--amber);
    text-shadow: 4px 4px var(--blue);
    line-height: 1.2;
}

.subpage .subpage-hero h1::before, .subpage .subpage-hero h1::after {
    display: none;
}

.subpage .subpage-hero .lead {
    font: clamp(17px, 2vw, 22px)/1.5 "Courier New", monospace;
    max-width: 700px;
    margin-top: 20px;
}

.subpage .eyebrow {
    font: 11px Ministry, monospace;
    color: var(--silver);
    letter-spacing: .025em;
}

.subpage .subpage-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.subpage section {
    padding: 28px 0;
    border-bottom: 1px solid var(--blue);
}

.subpage section h2 {
    font: clamp(18px, 3vw, 27px)/1.4 Ministry, monospace;
    color: var(--paper);
    margin: 0 0 18px;
}

.subpage section h3 {
    font: 15px Ministry, monospace;
    color: var(--amber);
}

.subpage section p, .subpage section li {
    font: 16px/1.7 "Courier New", monospace;
    color: var(--silver);
}

@media (max-width:700px) {
    .subpage section p, .subpage section li {
        font-size: 15px;
    }
}

.subpage section ul {
    padding-left: 20px;
}

.subpage .data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
}

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

.subpage .data-card {
    border: 2px solid var(--steel);
    padding: 18px;
    background: var(--navy);
}

.subpage .data-card h3 {
    margin: 0 0 10px;
}

.subpage .data-card p {
    margin: 0;
}

.subpage .alert-draft {
    border-left: 4px solid var(--amber);
    padding: 16px 20px;
    background: var(--navy);
    color: var(--paper);
    font: 14px/1.6 "Courier New", monospace;
}

.subpage .notice-line {
    color: var(--amber);
    font: 12px/1.5 Ministry, monospace;
}

.subpage .file-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.subpage footer {
    margin-top: 35px;
}

.hero-grid {
    max-width: 1600px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    /*min-height: 740px;*/
}

@media (max-width: 760px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-copy {
    padding: clamp(1.5rem, 3vw, 3rem);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 760px) {
    .hero-copy {
        padding: 70px 6vw 65px;
    }
}

.hero-art {
    /*background: var(--blue);*/
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .hero-art {
        min-height: 650px;
    }
}

@media (max-width: 760px) {
    .hero-art {
        min-height: 550px;
        padding: 45px 2vw;
    }
}

@media (max-width: 520px) {
    .hero-art {
        min-height: 500px;
    }
}

.hero-art-caption {
    position: absolute;
    bottom: 18px;
    right: 22px;
    text-align: right;
    color: var(--silver);
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 15px;
}

@media (max-width: 520px) {
    .hero-art-caption {
        display: none;
        font-size: 15px;
    }
}

.hero-bottom {
    padding: 17px 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 1600px;
    margin: auto;
    color: var(--silver);
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 17px;
}

@media (max-width: 760px) {
    .hero-bottom {
        justify-content: space-between;
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .hero-bottom {
        flex-wrap: wrap;
        font-size: 17px;
    }
}

.hero-bottom a {
    color: var(--amber);
}

.hero-bottom small {
    font-size: 9px;
}

.feature-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 56px;
}

@media (max-width: 760px) {
    .feature-top {
        align-items: start;
        flex-direction: column;
    }
}

.feature-top h2,
.directory-title h2,
.game-heading h2,
.clerk-words h2,
.press-tease h2,
.world-statement h2 {
    margin: 19px 0 0;
    font: 400 clamp(20px, 2.7vw, 40px)/1.65 var(--font-display);
    letter-spacing: -0.02em;
}

.feature-top h2 em,
.directory-title h2 em {
    font-style: normal;
    color: var(--blue);
}

.feature-aside {
    max-width: 310px;
    padding-bottom: 12px;
}

@media (max-width: 760px) {
    .feature-aside {
        max-width: 620px;
    }
}

.feature-aside p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--steel);
    font-weight: 600;
}

.feature-aside .inline-link {
    color: var(--blue);
    border-color: var(--blue);
}

.screenshot-stage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 760px) {
    .screenshot-stage {
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .screenshot-stage {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
}

.stage-visual {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 45px 35px 0;
}

@media (max-width: 1100px) {
    .stage-visual {
        min-height: 430px;
        padding-inline: 18px;
    }
}

@media (max-width: 760px) {
    .stage-visual {
        min-height: 330px;
        padding-inline: 12px;
    }
}

@media (max-width: 520px) {
    .stage-visual {
        min-height: 415px;
    }
}

.stage-visual .device {
    max-width: 245px;

}

@media (max-width: 1100px) {
    .stage-visual .device {
        max-width: 200px;
    }
}

@media (max-width: 760px) {
    .stage-visual .device {
        max-width: 150px;
    }
}

@media (max-width: 520px) {
    .stage-visual .device {
        max-width: 205px;
    }
}

.stage-text {
    padding: 23px 5px 12px;
}

@media (max-width: 520px) {
    .stage-text {
        padding: 8px 2px;
    }
}

.stage-text span {
    color: var(--blue);
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 19px;
}

.stage-text h3 {
    margin: 8px 0;
    font: 400 clamp(16px, 2vw, 28px)/1.6 var(--font-display);
    letter-spacing: 0;
}

.stage-text p {
    font-size: 15px;
    color: var(--steel);
    line-height: 1.5;
    max-width: 260px;
}

.product-bottom {
    border-top: 2px solid var(--steel);
    margin-top: 70px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 520px) {
    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.product-bottom h3 {
    margin: 14px 0;
    font: 400 clamp(16px, 2vw, 28px)/1.6 var(--font-display);
    letter-spacing: 0;
}

.product-bottom-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 17px;
}

@media (max-width: 520px) {
    .product-bottom-action {
        align-items: flex-start;
    }
}

.product-bottom-action a:not([data-store-app]) {
    color: var(--blue);
    font: 850 12px/1.2 var(--sans);
    letter-spacing: 0.08em;
}

.game-heading {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto 48px;
}

@media (max-width: 760px) {
    .game-heading {
        align-items: start;
        flex-direction: column;
    }
}

.game-heading h2 em {
    font-style: normal;
    color: var(--amber);
}

.game-heading > div:last-child {
    max-width: 335px;
    padding-bottom: 10px;
}

@media (max-width: 760px) {
    .game-heading > div:last-child {
        max-width: 680px;
    }
}

.game-heading p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--silver);
}

.game-heading span:not(.eyebrow) {
    font: 700 10px/1.4 var(--sans);
    letter-spacing: 0.1em;
    color: var(--steel);
}

.game-under {
    max-width: 1200px;
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--silver);
    font-family: var(--font-terminal);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 520px) {
    .game-under {
        font-size: 20px;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .game-under {
        align-items: flex-start;
        flex-direction: column;
    }
}

.game-under a {
    color: var(--amber);
}

.directory-title-line {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

@media (max-width: 520px) {
    .directory-title-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.375rem);

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

.dept-card-bottom {
    background: var(--void);
    padding: 26px 27px 27px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 25px;
    align-items: end;
    flex: 1;
    align-content: start;
}

.dept-card-bottom > div {
    color: var(--paper);
    font: 400 clamp(16px, 2vw, 28px)/1.6 var(--font-display);
    letter-spacing: 0;
}

.dept-card-bottom .dept-number {
    display: block;
    color: var(--amber);
    margin: 0 0 7px;
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 19px;
}

.dept-card-bottom p {
    grid-column: 1/-1;
    margin: 6px 0 7px;
    color: var(--paper);
    font-size: 20px;
    line-height: 1.65;
    font-weight: 400;
    font-family: var(--font-terminal);
    letter-spacing: 0.04em;
}

.dept-card-bottom small {
    font: 500 15px/1.4 var(--sans);
    color: var(--silver);
}

@media (max-width: 1100px) {
    .feature-top h2,
    .directory-title h2,
    .game-heading h2 {
        font-size: clamp(43px, 6.4vw, 75px);
        font: 400 clamp(20px, 2.7vw, 40px)/1.65 var(--font-display);
        letter-spacing: -0.02em;
    }
}

@media (max-width: 760px) {
    .hero-art .device {
        max-width: 240px;
    }
}

@media (max-width: 760px) {
    .hero-bottom > span:last-child {
        display: none;
    }
}

@media (max-width: 520px) {
    .game-heading h2 {
        font-size: clamp(44px, 11vw, 75px);
        font: 400 clamp(20px, 2.7vw, 40px)/1.65 var(--font-display);
        letter-spacing: -0.02em;
    }
}

@media (max-width: 380px) {
    .hero-grid,
    .clerk-story {
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .hero-copy,
    .hero-art,
    .clerk-portrait,
    .clerk-words {
        min-width: 0;
    }
}

.game-under > span {
    color: var(--silver);
}

.game-under-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

@media (max-width: 520px) {
    .game-under-actions {
        flex-direction: column;
    }
}

.game-under-actions a {
    font-size: 1.2rem;
}

.dept-card-bottom .dept-card-name {
    color: var(--paper);
    font: 400 clamp(1.1rem, 2.2vw, 1.8rem)/1.55 var(--font-display);
    margin: 0;
    letter-spacing: 0;
    grid-column: 1 / -1;
}

.dept-card-bottom .dept-problem {
    grid-column: 1 / -1;
    margin: 16px 0 2px;
    font: 400 clamp(.76rem, 1.15vw, 1rem)/1.6 var(--font-display);
    letter-spacing: 0;
    color: var(--amber);
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .dept-card-bottom .dept-problem {
        font-size: .78rem;
    }
}

.dept-card-bottom .dept-card-description {
    grid-column: 1 / -1;
    margin: 10px 0;
    font: 400 1.03rem/1.55 var(--font-body);
    letter-spacing: 0;
    color: var(--paper);
}

.dept-card-bottom .dept-official {
    grid-column: 1 / -1;
    font: 400 1.13rem/1.3 var(--font-terminal);
    letter-spacing: .02em;
    margin: 5px 0 12px;
    color: var(--silver);
}

.dept-card-bottom .dossier-link {
    grid-column: 1 / -1;
    margin-top: auto;
    padding: 11px 0;
}
