/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    color: #000000;
    font-family: "Georgia", "Times New Roman", Times, serif;
    font-size: 12pt;
    /* Strictly 12pt */
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.container {
    max-width: 75ch;
    /* ~65-75 characters */
    margin: 0 auto;
    padding: 10vh 2rem;
    position: relative;
}

/* Typography & Content */
p {
    margin-bottom: 2em;
    /* comfortable spacing between paragraphs */
    text-align: left;
}

/* Hidden Links Configuration */
a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    background-color: transparent;
    cursor: default;
    /* Hide pointer by default to mimic text */
    transition: background-color 0.2s ease, text-decoration 0.2s ease;
}

/* Reveal behavior on hover and focus */
a:hover,
a:focus {
    text-decoration: underline;
    /* Subtle underline */
    text-decoration-thickness: 1px;
    text-decoration-color: #000;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.03);
    /* Extremely subtle highlight */
    outline: none;
    /* Custom focus handling */
}

/* Sections Configuration */
section {
    margin-top: 15vh;
    padding-top: 5vh;
    scroll-margin-top: 20vh;
    /* Smooth scroll offset */
}

h2 {
    font-size: 12pt;
    /* Keep minimal headings */
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1em;
    margin-top: 4em;
}

/* Back to Top Link (if used) */
.back-to-top {
    display: inline-block;
    margin-top: 4rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 5vh 1.5rem;
    }

    /* Ensure font size stays 12pt, do not upscale */
    html,
    body {
        font-size: 12pt;
    }
}

/* Adam CMYK Proofmark Logo */
.adam-proofmark {
    display: inline-flex;
    flex-direction: column;
    vertical-align: baseline;
    margin-left: 1em;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle definition */
    position: relative;
    top: 0.5em;
    /* Optical alignment adjustments */
}

.adam-proofmark span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 9px;
    font-weight: bold;
    font-family: inherit;
    /* Keep serif */
    color: white;
}

.adam-proofmark .mark-c {
    background-color: #00AEEF;
}

/* Cyan */
.adam-proofmark .mark-m {
    background-color: #EC008C;
}

/* Magenta */
.adam-proofmark .mark-y {
    background-color: #FFF200;
    color: black;
}

/* Yellow - black text for contrast */
.adam-proofmark .mark-k {
    background-color: #000000;
}

/* Key/Black */

/* Hidden Contact Form */
.hidden-trigger {
    cursor: default;
    transition: font-weight 0.2s ease;
}

.hidden-trigger:hover,
.hidden-trigger:focus,
.hidden-trigger.active {
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

#hidden-form {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

#hidden-form.visible {
    display: block;
    max-height: 200px;
    /* Approximate height */
    opacity: 1;
    margin-bottom: 2em;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
}

#contact-form textarea {
    width: 100%;
    max-width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    resize: none;
    padding: 0.5em 0;
}

#contact-form textarea:focus {
    outline: none;
    border-bottom: 2px solid #000;
}

#contact-form button {
    background: transparent;
    border: 1px solid transparent;
    color: #000;
    font-family: inherit;
    font-size: 10pt;
    padding: 0.5em 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: opacity 0.2s;
}

#contact-form button:hover,
#contact-form button:focus {
    opacity: 1;
    outline: none;
    text-decoration: underline;
}



/* Floating Menu - Minimalist/Typographic */
#floating-menu {
    position: fixed;
    right: 3vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through container */
}

#floating-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-end;
}

#floating-menu li {
    pointer-events: auto;
    /* Re-enable clicks on items */
}

#floating-menu a {
    font-family: "Courier New", Courier, monospace;
    font-size: 10pt;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.4s ease, letter-spacing 0.4s ease, transform 0.4s ease;
    display: block;
    position: relative;
    padding: 0.5em 0;
}

#floating-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: 0;
    right: 0;
    background-color: #000;
    transition: width 0.4s ease;
}

#floating-menu a:hover,
#floating-menu a:focus {
    opacity: 1;
    letter-spacing: 0.35em;
    cursor: pointer;
    background-color: transparent;
    /* Override default link bg */
}

#floating-menu a:hover::after {
    width: 100%;
}

@media (max-width: 900px) {
    #floating-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        z-index: 1000;
        pointer-events: auto;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 0.4rem 1rem;
    }

    #floating-menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.2rem 0.8rem;
        align-items: center;
        justify-content: center;
    }

    #floating-menu a {
        font-size: 7pt;
        letter-spacing: 0.08em;
        padding: 0.2em 0;
        opacity: 0.5;
    }

    #floating-menu a:hover,
    #floating-menu a:focus {
        letter-spacing: 0.15em;
        opacity: 1;
    }
}

/* Creepy Typing Cursor Effect */
.creepy-typing-container {
    display: inline;
    opacity: 1;
    transition: opacity 0.5s ease;
    font-family: "Courier New", Courier, monospace;
    font-size: 11pt;
    color: rgba(0, 0, 0, 0.6);
    letter-spacing: 0.05em;
}

.creepy-text {
    display: inline;
}

.creepy-cursor {
    display: inline;
    animation: blink 0.8s infinite;
    font-weight: normal;
    margin-left: 1px;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}