html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    background-color: #F5F5F5;
}

.crt {
    animation: flicker 0.2s infinite;
  }
  
  @keyframes flicker {
    0% { opacity: 1; }
    95% { opacity: 0.97; }
    100% { opacity: 1; }
  }
  

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 0 1.5rem;
    text-align: left;
    line-height: 1.6;
}

main > p:first-child {
    margin-top: 0;
}

main p:first-of-type {
    margin-top: 0;
}

main p:last-of-type {
    margin-bottom: 0;
}

main > article:first-child {
    margin-top: 0;
}

main > h2 {
    margin: 0;
    padding: 0.5rem 0;
}

h1 {
    font-size: 2rem;
    margin: 0;
    padding: 0.2rem 0 1rem 0;
}

p {
    margin: 2rem 0;
}

a {
    color: black;
    text-decoration: underline;
}

a:hover {
    font-weight: bold;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

li {
    margin: 1rem 0;
}

nav {
    display: flex;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
    padding: 0;
    list-style: none;
    margin: 0;
}

nav li {
    margin: 0.5rem 0;
}

nav a {
    color: black;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size:1.75rem;
    white-space: nowrap;
    display: inline-block;
    padding: 0.25rem 1.2ch;
    position: relative;
}

nav a:visited {
    color: black;
}

nav a:hover {
    font-weight: bold;
}

nav a.current {
    font-weight: bold;
    position: relative;
}

nav a.current:before {
    content: "[";
    text-decoration: none;
    display: inline-block;
}

nav a.current:after {
    content: "]";
    text-decoration: none;
    display: inline-block;
}

/* Home */
.career-highlights {
    margin: 1.5rem 0;
}

.career-highlights p {
    margin-bottom: 0.5rem;
}

.career-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-highlights li {
    margin: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.career-highlights li:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #333;
}

.testimonials {
    margin: 2rem 0;
}

.testimonials p {
    margin-bottom: 0.5rem;
}

.testimonials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.testimonials li {
    font-style: italic;
    position: relative;
    margin: 0.4rem 0 0.6rem 0;
    padding-left: 1.5rem;
}

.testimonials li:last-child {
    margin-bottom: 0;
}

.testimonials li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    bottom: 0.3em;
    width: 2px;
    background-color: #333;
}

.testimonials .quote {
    display: block;
}

.testimonials .attribution {
    display: block;
    margin-top: 0rem;
    font-size: 0.9em;
    color: #666;
}

.testimonials .attribution::before {
    content: "—";
    margin: 0 0.3rem;
}

.signature {
    margin-top: 1.5rem;
}

.next-links {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.next-links a {
    color: black;
    text-decoration: none;
    font-size: 1.2em;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.next-links a::after {
    content: " →";
    transition: margin-left 0.2s ease;
}

.next-links a:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

.next-links a:hover::after {
    margin-left: 0.2rem;
}

/* Music */
.soundcloud-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

.soundcloud-container iframe {
    width: 100%;
    max-width: 100%;
}

/* Blog Articles */
article {
    margin: 1rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

article:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

article h2 {
    margin: 0;
    font-size: 1.5rem;
}

article time {
    display: block;
    color: #666;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
}

article p {
    margin: 1rem 0;
    line-height: 1.6;
}

article a {
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease;
}

article a:hover {
    color: #000;
    background-color: #f5f5f5;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

article a::after {
    margin-left: 0.2rem;
}

.thought li {
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
}

.thought li::marker {
    color: #666;
}

.thought li:last-child {
    margin-bottom: 0;
}

/* Comic script */
.page {
    margin-bottom: 3.5rem;
}

.page h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.panel {
    margin-bottom: 1rem;
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.panel p {
    margin: 0.5rem 0;
}

.dialogue {
    margin-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.character {
    font-weight: bold;
}

.sfx {
    margin-left: 2rem;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.visual-note {
    margin-left: 2rem;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.caption {
    margin-left: 2rem;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Stories */
.story h2 {
    margin: 0rem 0 1rem;
}

/* Breadcrumbs */
nav.breadcrumbs {
    max-width: 800px;
    display: block;
    justify-content: flex-start;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0 auto;
    text-align: left;
}

nav.breadcrumbs a {
    text-transform: none;
    font-size: 1em;
    padding: 0;
}

nav.breadcrumbs a:hover {
    text-decoration: underline;
    font-weight: normal;
}

nav.breadcrumbs a:visited {
    color: #666;
}

nav.breadcrumbs span {
    font-weight: bold;
}


/* Media query for smaller screens */
@media screen and (max-width: 600px) {
    main {
        padding: 0.5rem 1rem 1.5rem 1rem;
    }
    
    nav {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    
    nav ul {
        gap: 0.3rem;
        width: 100%;
    }
    
    nav a {
        letter-spacing: 0;
        font-size: 1.5rem;
        padding: 0.25rem 0.1rem;
    }

    .next-links a {
        font-size: 1.1em;
    }
}