:root {
    /* Core Colors extracted from CI Screenshot (RGB formats) */
    --brand-teal-rgb: 53, 134, 145;     /* Logo+Signet auf Weiß, H1/2, Links */
    --dark-teal-rgb: 37, 74, 75;        /* H2/3 */
    --brand-orange-rgb: 174, 100, 52;   /* Logo+Signet auf Weiß (Erdrot/Orange) */
    --earth-red-rgb: 110, 61, 32;       /* H2/3, Hintergrund */
    --dark-sepia-rgb: 80, 67, 53;       /* Lesetext, H2/3, Hintergrund */

    /* Solid Color Variables */
    --bg-color: #ffffff;
    --brand-teal: rgb(var(--brand-teal-rgb));
    --dark-teal: rgb(var(--dark-teal-rgb));
    --brand-orange: rgb(var(--brand-orange-rgb));
    --earth-red: rgb(var(--earth-red-rgb));
    --dark-sepia: rgb(var(--dark-sepia-rgb));

    /* Typography & UI Colors */
    --text-main: var(--dark-sepia);
    --text-dim: rgba(var(--dark-sepia-rgb), 0.7);
    --border-color: rgba(var(--brand-teal-rgb), 0.2);
    --bg-light: #fdfdfc;

    /* Fonts */
    --font-header: 'Source Sans 3', sans-serif;
    --font-code: 'Source Code Pro', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-header);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 125%;
}

.container {
    width: 90%;
    max-width: 1000px;
    text-align: center;
    padding: 60px 0 20px 0;
    position: relative;
    z-index: 2;
}

.header-wrapper, .footer-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-wrapper picture, .footer-wrapper picture { display: contents; }

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -1px;
}

h1 {
    font-size: clamp(1.2rem, 5.5vw, 3.2rem);
    margin: 0 0 15px 0;
    text-transform: lowercase;
    letter-spacing: -0.04em;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.brand-bold { font-weight: 900; }
.brand-regular {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85em;
}

.c-teal { color: var(--brand-teal); }
.c-orange { color: var(--brand-orange); }

.slogan {
    font-family: var(--font-code);
    color: var(--earth-red);
    font-size: clamp(0.7rem, 2vw, 1.1rem);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

/* Terminal / Log Box */
.log-wrapper {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 60px auto;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}
.log-header {
    background: var(--brand-teal);
    padding: 8px 15px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #fff;
    text-align: left;
    display: flex;
    justify-content: space-between;
}
.log-container {
    height: 240px;
    padding: 20px;
    text-align: left;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--dark-teal);
    font-family: var(--font-code);
    display: flex;
    flex-direction: column;
}
.log-line { margin-bottom: 8px; line-height: 1.4; }
.log-cursor::after { content: '█'; animation: blink 1s infinite; margin-left: 5px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* General UI Elements */
.highlight {
    color: var(--brand-teal);
    font-weight: 700;
    background: rgba(var(--brand-teal-rgb), 0.05);
    padding: 0 4px;
}

.execution-warning {
    background: rgba(var(--earth-red-rgb), 0.05);
    border: 1px solid rgba(var(--earth-red-rgb), 0.2);
    padding: 25px;
    margin-top: 50px;
    border-radius: 4px;
}
.execution-warning b {
    color: var(--earth-red);
    font-family: var(--font-code);
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Architect Note */
.architect-note {
    border-left: 3px solid var(--brand-orange);
    background: rgba(var(--brand-orange-rgb), 0.03);
    padding: 20px 25px;
    margin-top: 40px;
    font-style: italic;
    color: var(--dark-sepia);
    font-size: 1.1rem;
    text-align: left;
}
.architect-note-author {
    display: block;
    margin-top: 10px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--brand-orange);
    font-style: normal;
    text-transform: uppercase;
}

/* Uplink Section (cross-link CTA boxes) */
.uplink-section {
    width: 100%;
    max-width: 850px;
    margin: 100px auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.uplink-box {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: clamp(30px, 8vw, 40px);
    border-radius: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
}

/* Book Section */
.book-section {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.book-cover-wrapper {
    max-width: 470px;
    margin-bottom: 40px;
    position: relative;
}
.book-status-tag {
    font-family: var(--font-code);
    color: var(--mid-sepia);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}
.book-cover-link img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.book-cover-link:hover img { transform: scale(1.03); }

.book-description { text-align: left; }
.book-title-main {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 900;
    color: var(--dark-teal);
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
}

.terminal-header-inline {
    font-family: var(--font-code);
    color: var(--earth-red);
    font-weight: 700;
    display: block;
    margin: 40px 0 15px 0;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.list-protocol { list-style: none; padding: 0; margin: 20px 0; }
.list-protocol li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.list-protocol li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--brand-teal);
    font-weight: 900;
}

/* Stack/Directory Section */
.stack-section { margin-top: 100px; text-align: left; }
.stack-header-main {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--dark-sepia);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Enforce max density symmetry */
    gap: 20px;
    font-size: 0.85rem; /* Down-clock text scaling inside the technical grid */
}
@media (max-width: 992px) {
    .directory-grid { grid-template-columns: repeat(2, 1fr); } /* 2x2 grid on tablets */
}
@media (max-width: 600px) {
    .directory-grid { grid-template-columns: 1fr; } /* Bare-metal stack on mobile */
}
.dir-title {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--earth-red);
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(var(--earth-red-rgb), 0.1);
}
.stack-item { margin-bottom: 10px; border-left: 2px solid #eee; padding-left: 10px; }
.stack-item .label { font-size: 0.7rem; color: var(--text-dim); display: block; }
.stack-item .name { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }

/* Social Section */
.social-section { margin: 60px 0; text-align: center; }
.social-label {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.social-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-icon-link {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid #eee;
    transition: all 0.3s ease; background: #fff;
}
.social-icon-link svg { width: 20px; height: 20px; fill: var(--dark-sepia); transition: fill 0.3s ease; }
.social-icon-link:hover { border-color: var(--brand-teal); transform: translateY(-3px); }
.social-icon-link:hover svg { fill: var(--brand-teal); }

/* Footer */
.footer-content {
    background-color: var(--earth-red);
    width: 100%;
    padding: 0px 0 80px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-family: var(--font-code);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.architect-sig {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.65);
}
.architect-sig a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}
.architect-sig a:hover {
    color: var(--brand-orange);
}
.newsletter-wrapper { margin-top: 30px; text-align: center; }

.beehiiv-embed { width: 100%; height: 50px; background: transparent; }

/* Responsive Fixes */
@media (max-width: 600px) {
    h1 { font-size: clamp(1.1rem, 5.5vw, 1.8rem); }
    .brand-regular { font-size: 0.85em; }
}
