* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Mono', monospace;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Home page vertically centers its hero; other pages start at the top. */
.center-content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topnav {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.topnav-title {
    font-size: 1.5rem;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    word-spacing: -0.25em;
}

.topnav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.topnav-item {
    margin-left: 20px;
}
.topnav-link {
    color: #000;
    text-decoration: none;
}
.mobilemenu {
    display: none;
}
h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
}
h2 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
}
h1, h2, h3 {
    overflow-wrap: break-word;
}
.footer {
    flex-shrink: 0;
    line-height: 1.8em;
    font-size: 1.4rem;
    text-align: center;
    padding: 20px 0;
}

/* Home page specific */
.home {
    text-align: center;
    max-width: 600px;
    margin: auto;
}
.home h1 {
    margin-bottom: 1.6rem;
    font-size: 2.5em;
    word-spacing: -0.25em;
}
.home h2 {
    font-size: 2.4rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
}
.home-tagline {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
}
.home-since {
    font-weight: 700;
    margin-bottom: 3.6rem;
}
.home ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home li {
    display: inline-block;
    position: relative;
}
.home li a {
    margin: 0 .6rem;
    color: #000;
    text-decoration: none;
}

/* About page specific */
.about-page p {
    margin-bottom: 16px;
}

/* Content lists: bullets align to the content's left edge (no left overhang). */
.content-list,
.projects-section ul {
    list-style-position: outside;
    padding-left: 1.2em;
    margin: 0 0 15px;
}
.content-list li,
.projects-section li {
    margin-bottom: 8px;
}
.projects-section li > ul {
    margin: 8px 0 0;
}

/* Expertise page specific */
.expertise-group {
    font-size: 1.5em;
    margin: 48px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}
.expertise-item {
    width: 100%;
    margin-bottom: 40px;
}
.expertise-item h3 {
    font-size: 1.25em;
    margin-bottom: 15px;
}
.expertise-item p {
    margin-bottom: 15px;
}

/* Experience page specific */
.experience-item {
    width: 100%;
    margin-bottom: 40px;
}
.experience-item h2 {
    margin-bottom: 15px;
}
.experience-item p {
    margin-bottom: 15px;
}

/* Blog page specific */
.blog-intro {
    width: 100%;
}
.blog-intro p {
    margin-bottom: 20px;
}
.blog-cta {
    margin-top: 30px;
    margin-bottom: 40px;
}
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article {
    padding: 24px 0;
    border-top: 1px solid #ddd;
}
.article-thumb {
    display: block;
    max-width: 520px;
    margin: 0 0 14px;
}
.article-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.article-title {
    font-size: 1.4em;
    margin: 0 0 6px;
}
.article-title a {
    color: #000;
    text-decoration: none;
}
.article-title a:hover {
    text-decoration: underline;
}
.article-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 12px;
}
.article-summary {
    margin: 0;
}
.external-link {
    display: inline-block;
    padding: 0.6em 1.2em;
    border: 1px solid #222;
    border-radius: 4px;
    background: #222;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.external-link:hover {
    background: #fff;
    color: #222;
}

/* Au product page
   Spacing model: a single vertical rhythm. Block-level children stack with a
   uniform bottom margin and zero top margin; the last child in a group trims
   its bottom margin so section gaps stay exact. */
.au-title {
    margin: 0 0 16px;
}
.au-logo {
    display: block;
    height: 84px;
    width: auto;
}
.au-slogan {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 28px;
}

/* Intro */
.au-intro {
    margin: 0 0 36px;
}
.au-lead {
    font-size: 1.15em;
}
.au-intro p {
    margin: 0 0 16px;
}
.au-intro p:last-child {
    margin-bottom: 0;
}

/* Stats strip */
.au-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.au-stats li {
    flex: 1 1 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 16px;
    text-align: center;
}
.au-stat-num {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.2;
}
.au-stat-label {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-top: 4px;
}

/* Feature pillars */
.au-feature {
    margin: 0 0 56px;
}
.au-eyebrow,
.au-feature p.au-eyebrow {
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    margin: 0 0 6px;
}
.au-feature h2 {
    margin: 0 0 16px;
}
/* Uniform gap between every content block inside a feature */
.au-feature p,
.au-feature .au-targets,
.au-feature .au-arch,
.au-feature .au-pipeline,
.au-feature .au-figure,
.au-feature .au-quote,
.au-feature .au-points {
    margin: 0 0 20px;
}
.au-feature > *:last-child {
    margin-bottom: 0;
}

/* Architecture breakdown (Model / Compiler / Implementations) */
.au-arch {
    list-style: none;
    padding: 0;
}
.au-arch li {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-left: 3px solid #222;
    border-radius: 4px;
    margin-bottom: 10px;
}
.au-arch li:last-child {
    margin-bottom: 0;
}
.au-arch-name {
    font-weight: 700;
}

/* Compile pipeline diagram */
.au-pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f7f7f7;
    font-size: 0.85em;
}
.au-node {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
}
.au-node-out {
    background: #222;
    color: #fff;
    border-color: #222;
}
.au-arrow {
    color: #888;
}

.au-targets {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.au-targets li {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.85em;
    background: #f7f7f7;
}

.au-shot {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.au-figure figcaption {
    font-size: 0.85em;
    color: #777;
    margin-top: 8px;
}

.au-quote {
    padding-left: 16px;
    border-left: 3px solid #222;
    font-style: italic;
    color: #333;
}

.au-points {
    list-style: none;
    counter-reset: au-point;
    padding: 0;
}
.au-points li {
    counter-increment: au-point;
    position: relative;
    padding-left: 44px;
    margin-bottom: 16px;
    min-height: 30px;
}
.au-points li:last-child {
    margin-bottom: 0;
}
.au-points li::before {
    content: counter(au-point);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
}

/* Outro */
.au-outro {
    border-top: 1px solid #ddd;
    padding-top: 24px;
}
.au-outro p {
    margin: 0 0 14px;
}
.au-outro p:last-child {
    margin-bottom: 0;
}
.au-outro a {
    color: #000;
}

/* Human (dust-jacket) page */
.human {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}
.human-photo {
    flex: 0 0 auto;
    width: 220px;
    height: auto;
}
.human-bio {
    flex: 1 1 auto;
    min-width: 0;
}
.human-bio p {
    margin-bottom: 16px;
}
.human-bio p:last-child {
    margin-bottom: 0;
}
.human-bio a {
    color: #000;
}
.human-signoff {
    color: #777;
    font-style: italic;
}
@media screen and (max-width: 600px) {
    .human {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 24px;
    }
    .human-photo {
        width: 180px;
    }
}

/* Contact page specific */
.contact-intro {
    font-size: 1.1em;
    max-width: 620px;
    margin-bottom: 32px;
}
.contact-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-card:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}
.contact-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: flex;
}
.contact-icon svg {
    width: 28px;
    height: 28px;
}
.contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.contact-label {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
}
.contact-card:hover .contact-label {
    color: #bbb;
}
.contact-value {
    font-size: 1.05em;
    word-break: break-word;
}

/* Detail level selector (Overview / More Detail / Detailed) */
#detail-buttons {
    display: flex;
    gap: 1em;
    margin-bottom: 2em;
    flex-wrap: wrap;
}
.detail-btn {
    padding: 0.5em 1em;
    border: 1px solid #888;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.detail-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Fun hotspot (home page): pinned to the top-left edge, over the interface, so
   it's subtle and doesn't shift the title. Hover or tap to launch the demo. */
.fun-zone {
    position: fixed;
    left: 12px;
    top: 24px;
    z-index: 60;
    margin: 0;
    padding: 4px;
    border: 0;
    background: none;
    line-height: 0;
    color: #cfcfcf;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s, color 0.2s, transform 0.2s;
}
.fun-zone:hover,
.fun-zone:focus-visible {
    opacity: 1;
    color: #FCBD00;
    transform: scale(1.18);
    outline: none;
}
.fun-invader {
    display: block;
    height: 18px;
    width: auto;
}
@media (prefers-reduced-motion: reduce) {
    .fun-zone { display: none; }
}
/* Hide near small widths where the centred title sits at the left edge. */
@media screen and (max-width: 900px) {
    .fun-zone { display: none; }
}

/* Tablet & mobile: collapse the nav to a hamburger below 900px. */
@media screen and (max-width: 900px) {
    .topnav {
        position: relative;
    }
    .mobilemenu {
        display: block;
        position: absolute;
        right: 15px;
        top: 20px;
        text-decoration: none;
        color: #000;
    }
    .topnav-list {
        display: none;
        flex-direction: column;
        padding-top: 20px;
    }
    .topnav-item {
        margin: 10px 0;
    }
    .navopen {
        display: flex;
    }
    .home h2 {
        font-size: 1.8rem;
    }
}

/* Phones: shrink large headings and let the hero fit narrow screens. */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.4em;
    }
    .home {
        max-width: 100%;
    }
    .home h1 {
        font-size: 2em;
    }
    .au-logo {
        height: 64px;
    }
}
