/**
 * Ben Olsen Portfolio - Styles
 *
 * Vintage comic panel aesthetic with muted colors, diagrammatic layouts,
 * and hand-drawn typography feel. Think old printed comics meets technical
 * diagrams, with a dash of absurdist humor.
 *
 * @author Ben Olsen
 */


/* =============================================================================
   RESET & CSS CUSTOM PROPERTIES
   The foundation. Nothing fancy, just making browsers behave.
   ============================================================================= */

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

:root {
    /* Color Palette - Muted, vintage, like comics left in the sun */
    --color-cream: #f5f0e6;      /* Background - aged paper */
    --color-paper: #e8e0d0;      /* Secondary background */
    --color-ink: #2a2522;        /* Primary text - not quite black */
    --color-ink-light: #4a4540;  /* Secondary text */
    --color-rust: #a65d3f;       /* Accent - warm */
    --color-dusty-blue: #6b8a9a; /* Accent - cool */
    --color-sage: #7a917a;       /* Accent - natural */
    --color-mustard: #c4a24d;    /* Accent - highlight */
    --color-faded-red: #b85c5c;  /* Accent - error/emphasis */

    /* Typography - A mix of display, body, and mono */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'EB Garamond', Georgia, serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;

    /* Spacing & Layout */
    --panel-gap: 12px;
    --border-width: 2px;

    /* Animation Timing */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.6s;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    background: var(--color-cream);
    /* Subtle grid pattern - like graph paper that's seen some things */
    background-image:
        linear-gradient(rgba(42, 37, 34, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 37, 34, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--color-ink);
    line-height: 1.5;
    font-size: 16px;
    position: relative;
}


/* =============================================================================
   DIAGRAMMATIC NAVIGATION
   Fixed sidebar nav that appears after scrolling past hero.
   Collapsible on mobile because thumb real estate is precious.
   ============================================================================= */
.diagram-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Disabled for now */
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px) translateZ(0);
    transition: opacity 0.5s, transform 0.5s;
    will-change: opacity, transform;
    isolation: isolate;
}

.diagram-nav.visible {
    opacity: 1;
    transform: translateX(0) translateZ(0);
}

.nav-box {
    background: var(--color-cream);
    border: var(--border-width) solid var(--color-ink);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-title {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-title .small-label {
    font-size: 9px;
    opacity: 0.6;
}

.nav-title .name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-connector {
    width: var(--border-width);
    height: 15px;
    background: var(--color-ink);
    margin-right: 30px;
}

.nav-branches {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Mobile: hide navigation by default */
@media (max-width: 768px) {
    .nav-branches {
        display: none;
    }

    .nav-branches.active {
        display: flex;
    }

    .nav-title {
        cursor: pointer;
        user-select: none;
    }

    .nav-title::after {
        content: ' ▼';
        font-size: 8px;
        opacity: 0.5;
    }

    .nav-connector {
        display: none;
    }

    .nav-connector.active {
        display: block;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.nav-link:hover {
    background: var(--color-ink);
    color: var(--color-cream);
    transform: translateX(-4px);
}

.nav-link.active {
    background: var(--color-rust);
    color: var(--color-cream);
    border-color: var(--color-rust);
}

.nav-number {
    font-size: 9px;
    opacity: 0.5;
}

.nav-label {
    font-size: 10px;
}

/* =============================================================================
   HERO PANEL
   The star of the show. Two boxes side by side: identity slot machine on the
   left, terminal emulator on the right. They split apart on scroll like a
   dramatic curtain reveal. Also houses Game of Life and scribble backgrounds.
   ============================================================================= */
.hero-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-paper);
    z-index: 10; /* Above other sections */
}

#gameOfLife {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* Scribble Background - Full Page */
.scribble-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.scribble-bg path {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: var(--border-width);
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.25;
}

.hero-dual-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-dual-box > * {
    min-width: 0;
    overflow: hidden;
}

.panel-border {
    border: var(--border-width) solid var(--color-ink);
    padding: 40px;
    background: var(--color-cream);
    position: relative;
}

/* Decorative offset border removed - was causing alignment issues */

/* Identity Slot Machine Box */
.identity-box {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.slot-machine {
    text-align: left;
    width: 100%;
    overflow: hidden;
}

.slot-line {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    max-width: 100%;
}

.slot-line.cycling {
    color: var(--color-ink-light);
}

.slot-line.error {
    color: var(--color-faded-red);
}

.slot-line.final {
    color: var(--color-ink);
}

/* Minesweeper */
.minesweeper-container {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0 !important;
    height: 100%;
    box-sizing: border-box;
}

.minesweeper-grid {
    display: grid;
    gap: 0;
    background: #808080;
    border: 3px solid;
    border-color: #808080 #fff #fff #808080;
    box-shadow: inset 1px 1px 0 #fff;
    width: 100%;
    height: 100%;
}

.mine-cell {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: clamp(8px, 1.5vw, 14px);
    font-weight: 900;
    cursor: default;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

.mine-cell.revealed {
    background: #c0c0c0;
    border: 1px solid #808080;
}

.mine-cell.flagged {
    background: #c0c0c0;
    position: relative;
}

/* Classic flag - red triangle on black pole with black base */
/* Pole */
.mine-cell.flagged::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 50%;
    background: #000;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Flag triangle */
.mine-cell.flagged::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3px 0 3px 5px;
    border-color: transparent transparent transparent #ff0000;
    top: 15%;
    left: calc(50% + 1px);
    z-index: 2;
}

/* Base of the flag - actual element */
.flag-base {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: #000;
    z-index: 1;
}

.mine-cell.mine {
    background: #ff0000;
    color: #000;
}

/* Classic minesweeper colors */
.mine-cell.num-1 { color: #0000ff; }
.mine-cell.num-2 { color: #008000; }
.mine-cell.num-3 { color: #ff0000; }
.mine-cell.num-4 { color: #000080; }
.mine-cell.num-5 { color: #800000; }
.mine-cell.num-6 { color: #008080; }
.mine-cell.num-7 { color: #000000; }
.mine-cell.num-8 { color: #808080; }

/* Terminal Box */
.terminal-box {
    height: 280px;
    background: var(--color-ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}


.terminal {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-cream);
    line-height: 1.6;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-output {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.terminal-output::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.terminal-input-line {
    flex-shrink: 0;
    padding-top: 8px;
}

.terminal-output .prompt-line {
    opacity: 0.5;
}

.terminal-output .boot {
    opacity: 0.7;
    font-size: 11px;
}

.terminal-output .thinking {
    color: var(--color-mustard);
}

.terminal-output .result {
    color: var(--color-sage);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.terminal-prompt {
    color: var(--color-sage);
    opacity: 0.8;
}

.terminal-input {
    color: var(--color-cream);
}

.terminal-cursor {
    animation: blink 1s step-end infinite;
    color: var(--color-cream);
}

.terminal-cursor.hidden {
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive - stack vertically on smaller screens */
@media (max-width: 700px) {
    .hero-dual-box {
        grid-template-columns: 1fr;
    }

    .slot-line {
        font-size: 2.2rem;
    }

    .identity-box,
    .terminal-box {
        height: 220px;
    }
}

/* =============================================================================
   SECTION HEADERS
   Each content section gets a header with section number and title.
   They slide in from the left on scroll for that extra bit of flair.
   ============================================================================= */
.panel-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* First section (Public Art) starts behind hero */
.panel-section:first-of-type {
    margin-top: -100vh;
    position: relative;
    z-index: 1; /* Behind hero */
}

.section-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
}

.header-box {
    border: var(--border-width) solid var(--color-ink);
    padding: 15px 25px;
    background: var(--color-cream);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.5;
    display: block;
    margin-bottom: 4px;
}

.header-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-top: 4px;
}

.header-line {
    flex: 1;
    height: 1px;
    background: var(--color-ink);
    opacity: 0.3;
}

/* =============================================================================
   COMIC GRID - Panel Layout
   A 6-column responsive grid that holds the content panels.
   Panels can span multiple columns/rows for visual hierarchy.
   Think newspaper layout meets comic book meets technical diagram.
   ============================================================================= */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--panel-gap);
}

.grid-panel {
    border: var(--border-width) solid var(--color-ink);
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

.grid-panel:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--color-ink);
}

/* Panel sizes */
.grid-panel.large {
    grid-column: span 4;
    grid-row: span 2;
}

.grid-panel.medium {
    grid-column: span 3;
    grid-row: span 2;
}

.grid-panel.small {
    grid-column: span 2;
}

.grid-panel.wide {
    grid-column: span 6;
}

.panel-inner {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Panel content */
.panel-header {
    margin-bottom: 15px;
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    display: block;
    margin-bottom: 4px;
}

.grid-panel h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.grid-panel p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.grid-panel .detail {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

.panel-note {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-rust);
    margin-top: auto;
}

.panel-caption {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-top: auto;
}

/* SoundCloud embeds */
.soundcloud-embeds {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.soundcloud-embeds iframe {
    border-radius: 4px;
}

/* Video panels - full-width video with minimal chrome */
.grid-panel.video-panel {
    align-self: start;
}

.grid-panel.video-panel .panel-inner {
    padding: 0;
}

.grid-panel.video-panel h3,
.grid-panel.video-panel h4,
.grid-panel.video-panel p,
.grid-panel.video-panel .panel-note,
.grid-panel.video-panel .panel-caption,
.grid-panel.video-panel .panel-observation {
    padding: 0 15px;
}

.grid-panel.video-panel h3 {
    padding-top: 15px;
}

.grid-panel.video-panel .panel-note,
.grid-panel.video-panel .panel-observation {
    padding-bottom: 15px;
}

/* YouTube video embeds */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 10px 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* HTML5 video embeds */
.video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vertical video (9:16 aspect ratio) */
.video-embed.vertical {
    padding-bottom: 133%; /* 9:16 at 75% width */
    max-width: 75%;
    margin: 0 auto;
}

.video-embed.vertical video {
    object-fit: contain;
}

/* Panel images */
.panel-image {
    width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

/* Panel illustrations (placeholder) */
.panel-illustration {
    background: var(--color-paper);
    border: 1px solid var(--color-ink);
    height: 100px;
    margin-bottom: 15px;
    position: relative;
}

.panel-illustration::after {
    content: '[ ]';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.3;
}

.large .panel-illustration {
    height: 150px;
}

/* Flowchart styling */
.panel-flowchart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--color-ink);
    opacity: 0.3;
}

.flow-step {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border: 1px solid var(--color-ink);
}

.flow-arrow {
    font-family: var(--font-mono);
}

/* Panel content layout */
.panel-content {
    display: flex;
    gap: 20px;
    flex: 1;
}

.panel-content .panel-illustration {
    flex: 1;
    min-width: 120px;
    height: auto;
    min-height: 100px;
}

.panel-description {
    flex: 1;
}

/* Observation box */
.panel-observation {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 10px;
    background: var(--color-paper);
    border: 1px solid var(--color-ink);
    margin-top: auto;
}

.obs-label {
    color: var(--color-rust);
}

/* Stats display */
.panel-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    opacity: 0.3;
}

.philosophy {
    font-style: italic;
    opacity: 0.7;
}

/* Section Title Panel - Large title panels with timeline */
.section-title-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.title-content {
    flex: 1;
}

.section-title-panel .section-number {
    font-family: var(--font-mono);
    font-size: 12px;
    opacity: 0.5;
    display: block;
    margin-bottom: 8px;
}

.section-title-panel h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 8px 0;
    line-height: 1;
}

.section-title-panel .section-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.title-illustration {
    width: 280px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--color-ink);
}

.title-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Music illustration - zoom in on record player */
.music-illustration img {
    object-position: 50% center;
    transform: scale(1.8);
}

/* Art illustration - zoom in to remove borders */
.art-illustration img {
    object-position: 50% center;
    transform: scale(1.5);
}

/* Video illustration - zoom in to remove borders */
.video-illustration img {
    object-position: 50% center;
    transform: scale(1.8);
}

/* Computer illustration - zoom in more to hide bottom text */
.computer-illustration img {
    object-position: 50% 40%;
    transform: scale(1.6);
}

/* Public Art illustration - zoom in to remove borders */
.publicart-illustration img {
    object-position: 50% center;
    transform: scale(1.8);
}

/* =============================================================================
   ABOUT SECTION
   Special styling for the about/timeline section with its connector diagram.
   ============================================================================= */

.connector-line {
    width: 1px;
    height: 30px;
    background: var(--color-ink);
    margin: 0 auto;
    opacity: 0.5;
}

.connector-endpoints {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.endpoint {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 15px;
    border: var(--border-width) solid var(--color-ink);
    background: var(--color-cream);
    opacity: 0.9;
}

/* =============================================================================
   FOOTER
   Simple, centered, unassuming. Just the name and some decorative diamonds.
   ============================================================================= */
.diagram-footer {
    padding: 60px 40px;
    text-align: center;
}

.footer-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: var(--border-width) solid var(--color-ink);
    background: var(--color-cream);
    padding: 20px 30px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-symbol {
    opacity: 0.3;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--color-ink);
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   Desktop: 6-column grid | Tablet (≤900px): 4-column | Mobile (≤600px): 2-column
   Because not everyone has a 27" monitor (but they should).
   ============================================================================= */
@media (max-width: 900px) {
    .comic-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-panel.large {
        grid-column: span 4;
    }

    .grid-panel.medium {
        grid-column: span 2;
    }

    .grid-panel.wide {
        grid-column: span 4;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-aside {
        border-left: none;
        border-top: var(--border-width) solid var(--color-ink);
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 600px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-panel.large,
    .grid-panel.medium,
    .grid-panel.wide {
        grid-column: span 2;
    }

    .main-title h1 {
        font-size: 2.5rem;
    }

    .panel-section {
        padding: 40px 20px;
    }

    .diagram-nav {
        top: 10px;
        right: 10px;
    }

    .nav-box {
        padding: 6px 10px;
        font-size: 9px;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
    /* Timeline wraps to next line */
    .panel-flowchart {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .flow-step {
        font-size: 8px;
    }

    .flow-arrow {
        font-size: 10px;
    }

    /* Title panel stacks vertically - picture below text */
    .section-title-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-illustration {
        width: 100%;
        height: auto;
        aspect-ratio: 21/9;
        margin-top: 15px;
    }

    .section-title-panel h2 {
        font-size: 2.2rem;
    }
}

/* =============================================================================
   SCROLL ANIMATIONS
   Initial states for elements that animate in on scroll.
   The JavaScript (via GSAP ScrollTrigger) handles the actual animation.
   ============================================================================= */
.section-header {
    opacity: 0;
    transform: translateX(-20px);
}

.section-header.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s, transform 0.6s;
}

/* =============================================================================
   CONTACT SECTION
   Standalone contact form above the footer.
   ============================================================================= */
.contact-section {
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-cream);
    border: var(--border-width) solid var(--color-ink);
    position: relative;
    z-index: 5;
}

.contact-container {
    border: var(--border-width) solid var(--color-ink);
    background: var(--color-cream);
    padding: 30px;
}

.contact-container h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 12px;
    border: var(--border-width) solid var(--color-ink);
    background: var(--color-paper);
    color: var(--color-ink);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-rust);
    box-shadow: 3px 3px 0 var(--color-ink);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border: var(--border-width) solid var(--color-ink);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-ink);
    color: var(--color-cream);
}

.btn-primary:hover {
    background: var(--color-rust);
    border-color: var(--color-rust);
}

.btn-transform {
    background: var(--color-paper);
    color: var(--color-ink);
}

.btn-transform:hover {
    background: var(--color-dusty-blue);
    color: var(--color-cream);
    border-color: var(--color-dusty-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--color-ink);
}

.btn-secondary:hover {
    background: var(--color-ink);
    color: var(--color-cream);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.transform-section {
    background: var(--color-paper);
    border: var(--border-width) solid var(--color-ink);
    padding: 15px;
    margin: 10px 0;
}

.transform-result {
    margin-bottom: 12px;
}

.transform-style {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-rust);
    display: block;
    margin-bottom: 8px;
}

.transform-result p {
    font-style: italic;
    margin: 0;
}

.transform-actions {
    display: flex;
    gap: 10px;
}

.form-note {
    font-family: var(--font-mono);
    font-size: 9px;
    opacity: 0.5;
    margin-top: 10px;
}
