/* --- 1. GLOBAL & RESET --- */
body { 
  margin: 0; 
  padding: 0; 
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-color); 
  color: var(--text-color);          
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: background-color 0.4s, color 0.4s; 
}


.page-buffer {
    height: 120px;
    width: 100%;
}

/* --- 2. NAVIGATION & HEADER --- */
.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    z-index: 100;
    box-sizing: border-box;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nav-text); 
    text-decoration: none;
}

.site-title:hover { opacity: 0.6; }

.site-subtitle {
    margin: 5px 0 0 0; 
    font-size: 10px;    
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.8;
    background-color: transparent;
    transition: color 0.4s ease, opacity 0.4s ease;
}

.top-nav {
    display: flex;
    gap: 15px;
}

.top-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative; 
    padding-bottom: 4px; 
    transition: color 0.3s ease;
}

.top-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.top-nav a:hover::after {
    width: 100%;
}

.top-nav a:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .overlay-header { flex-direction: column; gap: 15px; padding: 15px; align-items: center; }
    .logo-wrapper {align-items: center; text-align: center;}
    .top-nav { gap: 10px; justify-content: center; width: 100%; }
    .page-buffer { height: 100px; }
}

/* --- 3. WRITING PAGE STYLES --- */
.writing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 100px; 
}

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--section-label);
    margin-bottom: 0;
    font-weight: normal;
}

.script-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 2px solid var(--script-item);
    text-decoration: none;
    color: var(--text-color);
    transition: padding-left 0.3s ease;
}

.script-item:hover {
    padding-left: 15px;
    border-bottom-color: var(--script-hover);
}

.script-type {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--script-meta);
    display: block;
    margin-bottom: 10px;
}

.script-info h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.script-info p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

.arrow {
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.script-item:hover .arrow {
    opacity: 1;
}

/* Mobile Adjustments for Writing */
@media (max-width: 768px) {
    .script-info h3 { font-size: 20px; }
    .script-info p { font-size: 13px; }
    .arrow { display: none; } 
}