/* Section-specific Styles */

/* General section styles */
.section {
    margin-bottom: 60px;
    padding: 0;
    border-radius: 0;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    padding-left: 20px;
}

.section:hover {
    transform: translateX(8px);
    border-left-color: var(--sage);
}

.section h2 {
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 24px;
}

.section-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.section-description {
    font-size: 16px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.5;
    color: var(--color-text);
}

/* Section-specific hover colors */
.section.manifesto:hover {
    border-left-color: var(--manifesto-black);
}

.section.questions:hover {
    border-left-color: var(--lavender);
}

.section.toys:hover {
    border-left-color: var(--powder);
}

.section.thoughts:hover {
    border-left-color: var(--rose);
}

.section.cats:hover {
    border-left-color: var(--sage);
}

.section.cv:hover {
    border-left-color: var(--ochre);
}

.section-navigation h2 {
    font-size: 28px;
    margin-bottom: 40px;
    margin-top: 20px;
    color: var(--color-text);
    font-weight: 600;
}

/* All Souls / Questions page specific styles */
#questions {
    padding: var(--space-l);
}

/* Projects page specific styles */
#projects {
    padding: var(--space-l);
}

.souls-explainer {
    margin-inline: auto;          /* logical centring */
    max-width: 95ch;              /* readable line length */
}

.souls-explainer p {
    font-size: clamp(1rem, 1.05rem + 0.3vw, 1.125rem);
    line-height: 1.7;             /* unit-less multiplier */
    font-weight: 400;
    color: var(--color-text);
}

.souls-quotes {
    padding: var(--space-l);
    margin-left: 0;               /* override UA default */
    border-radius: 0.5rem;
}

.souls-quotes li {
    font-size: 1.125rem;          /* ~18px at default root */
    line-height: 1.8;
    margin-bottom: 1.25rem;       /* rhythm: 20px at default root */
    list-style-type: decimal;
}

.souls-quotes li em {
    font-size: 0.95em;            /* slightly smaller than parent */
    color: var(--color-muted);
    font-style: italic;
}

.souls-intro {
    text-align: center;
    font-size: 20px;
    margin-bottom: 60px;
    opacity: 0.9;
}

.soul-question {
    background-color: var(--lavender);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.question-content {
    margin-top: 30px;
}

.premise-block {
    border-left: 4px solid var(--sage);
    padding: 20px 30px;
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.premise-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.speculation {
    margin-top: 40px;
    padding: 30px;
    background: var(--gradient-calm);
    border-radius: 12px;
    text-align: center;
}

.speculative-text {
    background: linear-gradient(135deg, var(--electric-purple), var(--phosphor-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 500;
}

/* CV section styles */
#cv ul {
    /* remove the browser's default 40-px padding so we control everything */
    padding-left: 0;

    /* push the whole list—bullet and text—four "0" characters to the right */
    margin-left: 2ch;   /* change 4ch to taste */
    margin-bottom: 1.5rem;
}

/* if you ever nest lists, keep the extra step of indentation */
#cv ul ul {
    margin-left: 2ch;
}

#cv p {
    margin-bottom: 0.5rem;
}

#cv .experience-section {
    margin-top: 1.5rem;
}

#cv .experience-section:first-child {
    margin-top: 0;
}

#cv h2:not(:first-of-type) {
    margin-top: 1.5rem;
}

/* Thoughts section styles */
#thoughts {
    padding: var(--space-l);
}

.thoughts-card-container {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.thoughts-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.nav-arrows {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
    padding: 0.5rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-arrow:hover:not(:disabled) {
    color: var(--rose);
}

.nav-arrow:focus:not(:disabled) {
    color: var(--color-text);
    outline: none;
}

.nav-arrow:active:not(:disabled) {
    color: var(--rose);
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.article-counter {
    font-size: 0.9rem;
    color: var(--color-text);
}

.thoughts-cards {
    position: relative;
    overflow: hidden;
}

.thought-post {
    margin-inline: auto;
    max-width: 95ch;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thought-post.active {
    display: block;
    opacity: 1;
}

.thought-post h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.thought-post .post-date {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.thought-post ol {
    padding-left: 2ch;
    margin-left: 2ch;
}

.thought-post li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.thought-post ol[type="a"] {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.thought-post ol[type="a"] li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Manifesto section styles */
#manifesto {
    padding: var(--space-l);
}

.manifesto-card-container {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
    margin-inline: auto;
    max-width: 95ch;
}

/* All Souls section styles */
.questions-card-container {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
    margin-inline: auto;
    max-width: 95ch;
}

/* Blog section styles */
#blog {
    padding: var(--space-l);
}

.blog-card-container {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
    margin-inline: auto;
    max-width: 95ch;
}

.blog-content {
    margin-inline: auto;
    max-width: 95ch;
}

.blog-content article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.3;
}

.blog-content article h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.blog-content article p {
    font-size: clamp(1rem, 1.05rem + 0.3vw, 1.125rem);
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.blog-content article em {
    font-style: italic;
}

/* CV section styles */
#cv {
    padding: var(--space-l);
}

.cv-card-container {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
    margin-inline: auto;
    max-width: 95ch;
}

.cv-card-container h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.cv-card-container h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--color-text);
}

/* Contact button styling */
.contact-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.contact-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-nav);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    padding-right: 12px;
    border: 2px solid var(--black);
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    z-index: 0;
    min-width: 280px;
    justify-content: space-between;
}

.contact-text {
    color: var(--page-bg);
    transition: color var(--transition-fast);
    z-index: 1;
}

.copy-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--page-bg);
    color: var(--black);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
    z-index: 1;
}

/* Base fill: solid black rectangle under text */
.contact-button::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: var(--black);
    z-index: -2;
    border-radius: inherit;
    transition: background var(--transition-theme);
}

/* Hover fill: page background, hidden by default */
.contact-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--page-bg);
    opacity: 0;
    z-index: -1;
    border-radius: 18px;
    transition: opacity var(--transition-fast),
                background var(--transition-theme);
}

/* Hover state */
.contact-button:hover::before,
.contact-button:focus-visible::before {
    opacity: 1;
}

.contact-button:hover .contact-text {
    color: var(--black);
}

.contact-button:hover .copy-pill {
    background: var(--black);
    color: var(--page-bg);
}

/* Success state - no color change, just text */
.contact-button.copied .copy-pill {
    /* Keep the same styling, only text changes */
}

/* Mobile responsive */
@media (max-width: 600px) {
    .contact-button {
        min-width: 100%;
        font-size: 14px;
    }
}

/* Toys section styles */
#toys {
    padding: var(--space-l);
}

.toys-card-container {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    margin-inline: auto;
    max-width: 95ch;
}

.toys-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.toy-nav-arrows {
    display: flex;
    gap: 0.5rem;
}

.toy-counter {
    font-size: 0.9rem;
    color: var(--color-text);
}

.toys-cards {
    position: relative;
    overflow: hidden;
}

.toy-card {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toy-card.active {
    display: block;
    opacity: 1;
}

.toy-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.toy-date {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.toy-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.mesopotamia-container {
    position: relative;
    width: 100%;
    padding: 1rem;
    background-color: var(--page-bg);
    border-radius: 8px;
}

#world {
    display: block;
    margin: 1rem auto;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    image-rendering: pixelated;  /* keep the crisp 8‑bit look */
}

.mesopotamia-controls {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.mesopotamia-controls label {
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.mesopotamia-controls input[type="number"] {
    width: 4rem;
    text-align: right;
    padding: 4px 8px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.mesopotamia-legend {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.2);
}

.reset-button {
    position: relative;
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 0.9rem;
    padding: 6px 14px;
    border: 2px solid var(--black);
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    z-index: 0;
    
    /* Text is always page background color */
    color: var(--page-bg);
    transition: color var(--transition-fast);
}

/* Base fill: solid black rectangle under text */
.reset-button::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: var(--black);
    z-index: -2;
    border-radius: inherit;
    transition: background var(--transition-theme);
}

/* Hover fill: page background, hidden by default */
.reset-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--page-bg);
    opacity: 0;
    z-index: -1;
    border-radius: 14px;
    transition: opacity var(--transition-fast),
                background var(--transition-theme);
}

/* Hover state: invert colors */
.reset-button:hover,
.reset-button:focus-visible {
    color: var(--black);
    transition: color var(--transition-fast);
}

.reset-button:hover::before,
.reset-button:focus-visible::before {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .mesopotamia-controls {
        justify-content: center;
    }
    
    .mesopotamia-controls input[type="number"] {
        width: 3.5rem;
    }
}

