/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all form elements use the correct font family */
input, textarea, select {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif !important;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: rgb(255, 255, 255);
    color: rgb(39, 39, 41);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
    transition: all 200ms ease;
}

a:hover {
    color: rgb(0, 0, 0);
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 80px 0;
    border-bottom: 1px solid rgb(230, 230, 232);
    margin-bottom: 20px;
}

.logo {
    width: 88px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12)) drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}


.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgb(39, 39, 41);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgb(99, 99, 102);
    letter-spacing: -0.01em;
    max-width: 84ch;
    margin: 0 auto;
    text-wrap: balance;
    text-wrap: pretty;
}

/* Main content */
.main-content {
    padding: 60px 0 80px 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Section styles */
.section {
    background: linear-gradient(135deg, rgb(250, 250, 252) 0%, rgb(245, 245, 247) 100%);
    border-radius: 16px;
    padding: 40px;
    min-height: 400px;
    border: 1px solid rgb(245, 245, 247);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgb(230, 230, 232);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: rgb(39, 39, 41);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgb(39, 39, 41), rgb(99, 99, 102));
    border-radius: 2px;
}

.section-subtitle {
    max-width: 72ch;
    font-size: 1.075rem;
    color: rgb(99, 99, 102);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin-bottom: 8px;
    text-wrap: balance;
    text-wrap: pretty;
}

/* Individual section styling (unified by .section background) */

/* Prism interaction area */
.prism-input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.prism-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgb(230,230,232);
    background: rgb(250,250,252);
    padding: 12px 14px 14px 14px;
    resize: vertical;
    min-height: 140px;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
    overflow-y: auto;
}

.prism-actions {
    display: flex;
    justify-content: center;
}

.prism-btn {
    appearance: none;
    border: 1px solid rgb(230,230,232);
    background: rgb(250,250,252);
    color: rgb(39,39,41);
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 200ms ease;
}

.prism-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    border-color: rgb(39,39,41);
    background: rgb(39,39,41);
    color: #fff;
}

.prism-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.prism-card {
    background: linear-gradient(180deg, rgb(250, 250, 252), rgb(242, 242, 244));
    border: 1px solid rgb(230,230,232);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.prism-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgb(39,39,41);
    margin-bottom: 16px;
    text-align: center;
}

.prism-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prism-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.prism-number {
    font-weight: 600;
    color: rgb(39,39,41);
    flex-shrink: 0;
    margin-top: 2px;
}

.prism-text {
    color: rgb(39,39,41);
    line-height: 1.5;
    flex: 1;
}

.prism-restart {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .prism-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Playdough interaction area */
.interaction-area {
    background: rgb(243, 243, 245);
    border: 1px solid rgb(233, 233, 235);
    border-radius: 14px;
    padding: 28px;
    margin-top: 30px;
}
/* Crucible layout */
.crucible-forge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.forge-left { display: flex; flex-direction: column; gap: 10px; }

.forge-label {
    font-weight: 600;
    color: rgb(39,39,41);
}

.forge-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgb(230,230,232);
    background: rgb(250,250,252);
    padding: 12px 14px 14px 14px;
    resize: vertical;
    min-height: 140px;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
    overflow-y: auto;
}

.forge-actions { display: flex; justify-content: center; }

.forge-btn, .continue-btn, .restart-btn { appearance: none; border: 1px solid rgb(230,230,232); background: rgb(250,250,252); color: rgb(39,39,41); border-radius: 10px; padding: 8px 16px; font-weight: 500; font-size: 0.8rem; transition: all 200ms ease; }

.forge-btn:hover, .continue-btn:hover, .restart-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.06); border-color: rgb(39,39,41); background: rgb(39,39,41); color: #fff; }

.forge-right { display: grid; grid-template-columns: 1fr; gap: 18px; align-self: stretch; }

.ecology-card { background: linear-gradient(180deg, rgb(250, 250, 252), rgb(242, 242, 244)); border: 1px solid rgb(230,230,232); border-radius: 12px; padding: 18px 18px; }

.eco-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgb(39,39,41);
}

.eco-question {
    font-size: 0.98rem;
    color: rgb(72,72,74);
    margin-top: 6px;
    margin-bottom: 10px;
}

.eco-answer { width: 100%; border-radius: 10px; border: 1px solid rgb(230,230,232); background: rgb(250,250,252); padding: 12px 16px 14px 16px; resize: vertical; font-size: 1rem; line-height: 1.4; overflow-y: auto; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif; }

.forge-continue { display: flex; justify-content: center; margin-top: 20px; }

.grey-future {
    margin-top: 20px;
}

.grey-lede { color: rgb(39,39,41); font-weight: 750; font-size: 1.4rem; max-width: 100ch; margin: 30px auto; text-align: center; text-wrap: balance; }

.headline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }

.headline-card {
    background: transparent;
    border: none;
    cursor: pointer;
    perspective: 1000px;
    border-radius: 12px;
}

.headline-inner { position: relative; width: 100%; aspect-ratio: 1 / 1; transform-style: preserve-3d; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1); border-radius: 12px; }

.headline-card.flipped .headline-inner { transform: rotateY(180deg); }

.headline-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid rgb(230, 230, 232);
    background: linear-gradient(180deg, rgb(250, 250, 252), rgb(242, 242, 244));
    box-shadow: 0 10px 22px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.06);
    padding: 12px;
}

.headline-front {
    background: url('headline.png') center/cover no-repeat;
}

.headline-back { transform: rotateY(180deg); align-items: flex-start; justify-content: flex-start; padding: 18px; background: #ffffff; display: flex; flex-direction: column; overflow: hidden; }
.headline-back .headline-text { text-align: left; max-width: none; width: 100%; padding: 0 0 8px 0; }
.headline-back .grey-paragraph { text-align: left; line-height: 1.55; max-width: 56ch; font-size: 1rem; overflow-y: auto; max-height: calc(100% - 48px); -webkit-overflow-scrolling: touch; word-break: break-word; }

.headline-text { font-size: 1.5rem; font-weight: 800; text-align: center; line-height: 1.15; text-wrap: balance; max-width: 20ch; padding: 8px 10px 6px; }

.grey-report { list-style: disc; padding-left: 22px; max-width: 52ch; line-height: 1.5; }

/* Final provocation */
.final-provocation { margin-top: 50px; text-align: center; }
.provocation-text { font-size: 1.9rem; font-weight: 800; max-width: 64ch; margin: 30px auto; line-height: 1.25; }

@media (max-width: 1024px) {
    .crucible-forge {
        grid-template-columns: 1fr;
    }
    .forge-continue { justify-content: center; }
    .headline-grid { grid-template-columns: 1fr; }
    .headline-inner { height: 280px; }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card {
    background: transparent;
    border: none;
    cursor: pointer;
    perspective: 1000px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 12px;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid rgb(230, 230, 232);
    background: linear-gradient(180deg, rgb(250, 250, 252), rgb(242, 242, 244));
    box-shadow: 0 10px 22px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.06);
    padding: 12px;
}

.card-face--back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, rgb(242, 242, 246), rgb(235, 235, 239));
    border-color: rgb(224, 224, 228);
}

.card-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: rgb(39,39,41);
}

.card-value {
    font-weight: 600;
    font-size: 1.25rem;
    color: rgb(39,39,41);
    text-align: center;
    max-width: 22ch;
    text-wrap: balance;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.reset-btn {
    appearance: none;
    border: 1px solid rgb(230,230,232);
    background: rgb(250,250,252);
    color: rgb(39,39,41);
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 200ms ease;
}

.reset-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.06); border-color: rgb(39,39,41); background: rgb(39,39,41); color: #fff; }

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 40px 0 60px 0;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .main-content {
        padding: 45px 0 60px 0;
        gap: 40px;
    }
    
    .section {
        padding: 32px 24px;
        min-height: 300px;
    }
    
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 24px 20px;
        min-height: 250px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .logo {
        width: 72px;
    }
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }

/* Focus states for accessibility */
.section:focus-within {
    outline: 2px solid rgb(0, 122, 255);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure hidden elements are not displayed */
[hidden] { display: none !important; }

/* Footer */
.footer {
    padding: 40px 0 60px 0;
    text-align: center;
    color: rgb(99, 99, 102);
    font-size: 0.95rem;
}
