/* ==========================================================================
   1. THE HEADER DIAL
   ========================================================================== */
:root {
    --header-spacing: 0.25em; 
}

/* ==========================================================================
   2. GLOBAL LAYOUT & FONTS
   ========================================================================== */
* { box-sizing: border-box; }

body.no-scroll { overflow: hidden; }

/* SMOOTH SCROLLING FOR ANCHOR LINKS */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff !important;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #000;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important; 
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

/* ==========================================================================
   3. THE HEADER MECHANISM
   ========================================================================== */
header {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 4em;
    border-bottom: 1px dotted #000;
    padding-bottom: 2em;
}

.header-constraint {
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    flex-direction: column;
}

.header-top {
    letter-spacing: var(--header-spacing);
    margin-right: calc(var(--header-spacing) * -1);
    display: block;
    white-space: nowrap;
    font-weight: bold; 
    font-size: 14px; 
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.8em;
}

.header-nav {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: #000080;
    font-weight: normal;
    font-size: 14px;
}

.header-nav a:hover {
    text-decoration: underline;
}

.sep { color: black; font-size: 10px; margin: 0 2px; }

/* ==========================================================================
   4. SECTION HEADERS & TEXT
   ========================================================================== */
h3, .section-header {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: normal; 
    font-size: 12px !important; 
    margin-top: 5em;
    margin-bottom: 3em;
    text-transform: uppercase;
    color: #000 !important;
    text-align: center;  
    letter-spacing: 0.3em; 
}

/* Constrains the bio text width */
.narrow-read {
    max-width: 500px; 
    margin-left: auto; 
    margin-right: auto;
    text-align: left; 
}

/* ==========================================================================
   5. WORK LIST
   ========================================================================== */
ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

li {
    margin-bottom: 4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 2em;
}

.work-title, .work-title a {
    display: inline-block;
    font-weight: bold; 
    font-size: 16px;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    color: #000080;
    text-decoration: underline;
}

.work-desc {
    display: block;
    margin-bottom: 1em;
    line-height: 1.6;
    max-width: 100%;
    font-size: 15px; 
    color: #000;
}

.work-meta {
    display: block;
    font-size: 11px !important; 
    color: #666;
    margin-top: 1em;
    text-transform: uppercase; 
}

.work-quote {
    display: block;
    margin: 1.5em 0;
    padding-left: 20px;
    border-left: 4px solid #000; 
    font-size: 14px !important;
    font-style: italic;
    line-height: 1.5;
    color: #333;
}

/* ==========================================================================
   6. GLOBAL LINKS & MOBILE
   ========================================================================== */
a {
    color: #000080; 
    text-decoration: underline;
}

a:hover {
    background-color: #000080;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    body { padding: 30px 20px !important; }
}

/* ==========================================================================
   7. WINDOWS 98 WIDGET STYLES (RESTORED)
   ========================================================================== */
.win-ref-final {
    width: 380px; 
    max-width: 90%;
    margin: 60px auto 40px auto; 
    background: #c0c0c0; 
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, sans-serif;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000; 
    position: relative; z-index: 100;
}
  
.win-ref-final * { 
    -webkit-font-smoothing: none; 
    -moz-osx-font-smoothing: grayscale; 
    font-smooth: never; 
    text-rendering: optimizeSpeed; 
}

.title-bar-final {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%); 
    padding: 3px 3px 3px 5px;
    height: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 2px 0 2px; 
}

.title-text-final {
    color: white; font-weight: bold; font-size: 11px; cursor: default;
    letter-spacing: 0px;
}

.close-btn-final {
    width: 16px; height: 14px; background: #c0c0c0;
    border-top: 1px solid #dfdfdf; border-left: 1px solid #dfdfdf;
    border-right: 1px solid #000000; border-bottom: 1px solid #000000;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; margin-left: 2px; cursor: pointer;
}
  
.close-x-final {
    color: black; font-weight: bold; font-size: 9px; 
    line-height: 1; font-family: "MS Sans Serif", Tahoma, sans-serif; margin-top: -2px;
}

.content-final {
    padding: 20px 20px 22px 20px; 
    text-align: left; 
}

.msg-final {
    font-size: 13px;
    color: black;
    margin-bottom: 32px; 
    line-height: 1.5;
}

.input-final {
    width: 100%; box-sizing: border-box; padding: 5px; 
    font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 13px;
    margin-bottom: 26px; 
    outline: none;
    border-top: 2px solid #808080; border-left: 2px solid #808080; 
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    background: #fff; color: black;
}
  
.btn-container-final { text-align: center; }

.btn-final {
    cursor: pointer; font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 13px;
    padding: 4px 25px; color: black; background: #c0c0c0; outline: none;
    border-top: 2px solid #fff; border-left: 2px solid #fff;
    border-right: 2px solid #000; border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px 0 #808080;
}
  
.btn-final:active {
    border-top: 2px solid #000; border-left: 2px solid #000;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    box-shadow: none; padding: 5px 24px 3px 26px; 
}

