/* ============================================
   quietjoon.com -- Memphis-Revival Personal Archive
   Monochrome Memphis | Broken-Grid Layout
   Fonts: Inter" (Google Fonts), Source Sans 3" (Google Fonts)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
    background-color: #FFFFFF;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

a {
    color: #0A0A0A;
    text-decoration: none;
    border-bottom: 2px solid #0A0A0A;
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom-color: #B0B0B0;
}

/* --- Floating Geometric Shapes --- */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.12;
}

.shape-circle {
    border: 4px solid #0A0A0A;
    border-radius: 0;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #0A0A0A;
    background: none;
}

.shape-squiggle {
    width: 120px;
    height: 40px;
}

/* Individual shape positions and sizes */
.shape-1 {
    width: 80px;
    height: 80px;
    top: 8%;
    left: 5%;
    animation: float-1 8s ease-in-out infinite;
}

.shape-2 {
    top: 15%;
    right: 10%;
    animation: float-2 10s ease-in-out infinite;
}

.shape-3 {
    width: 50px;
    height: 50px;
    top: 35%;
    left: 85%;
    animation: float-3 12s ease-in-out infinite;
}

.shape-4 {
    top: 45%;
    left: 3%;
    animation: float-4 9s ease-in-out infinite;
}

.shape-5 {
    top: 55%;
    right: 5%;
    animation: float-2 11s ease-in-out infinite reverse;
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 52px;
}

.shape-6 {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 10%;
    animation: float-3 8s ease-in-out infinite;
}

.shape-7 {
    top: 80%;
    right: 15%;
    animation: float-1 10s ease-in-out infinite reverse;
}

.shape-8 {
    width: 40px;
    height: 40px;
    top: 90%;
    left: 50%;
    animation: float-4 7s ease-in-out infinite;
}

/* Float keyframes */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, -35px) rotate(-3deg); }
    75% { transform: translate(20px, -15px) rotate(7deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(-8deg); }
    66% { transform: translate(10px, -25px) rotate(4deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, -30px); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 20px) rotate(10deg); }
    50% { transform: translate(-15px, 10px) rotate(-5deg); }
    75% { transform: translate(5px, -15px) rotate(3deg); }
}

/* --- Broken-Grid Container --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    position: relative;
    z-index: 1;
}

/* --- Grid Block Base --- */
.grid-block {
    border: 4px solid #0A0A0A;
    padding: 30px;
    background: #FFFFFF;
    position: relative;
    transition: transform 0.3s ease;
}

.grid-block:hover {
    transform: translate(-3px, -3px);
}

/* Memphis-style decorative shadow on blocks */
.grid-block::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    border: 4px solid #B0B0B0;
    z-index: -1;
    transition: transform 0.3s ease;
}

.grid-block:hover::after {
    transform: translate(3px, 3px);
}

/* --- Section Headings --- */
.section-heading {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 4px solid #0A0A0A;
    display: inline-block;
}

/* --- Header Block --- */
.header-block {
    grid-column: 1 / 9;
    grid-row: 1;
    padding: 50px 40px;
    background: #0A0A0A;
    color: #FFFFFF;
}

.site-title {
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
}

.title-accent {
    color: #B0B0B0;
}

.site-tagline {
    color: #B0B0B0;
    font-size: 1.1rem;
    max-width: 500px;
}

/* --- Memphis Bar --- */
.memphis-bar {
    grid-column: 9 / 13;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0E0E0;
    padding: 20px;
}

.bar-pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bar-dot {
    display: block;
    width: 16px;
    height: 16px;
    background: #0A0A0A;
    border-radius: 0;
}

.bar-dot:nth-child(odd) {
    background: none;
    border: 3px solid #0A0A0A;
}

.bar-line {
    display: block;
    width: 4px;
    height: 30px;
    background: #0A0A0A;
}

/* --- About Block --- */
.about-block {
    grid-column: 1 / 7;
    grid-row: 2;
}

/* --- Counter Block --- */
.counter-block {
    grid-column: 7 / 13;
    grid-row: 2;
    background: #E0E0E0;
}

.counters {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
}

.counter-number {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #0A0A0A;
    line-height: 1;
    transition: color 0.3s ease;
}

.counter-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333333;
    margin-top: 8px;
}

/* --- Featured Block --- */
.featured-block {
    grid-column: 1 / 8;
    grid-row: 3;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 2px solid #E0E0E0;
    align-items: flex-start;
}

.featured-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-number {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #B0B0B0;
    line-height: 1;
    min-width: 60px;
}

.featured-content h3 {
    margin-bottom: 6px;
}

.featured-content p {
    font-size: 0.95rem;
}

/* --- Research Block --- */
.research-block {
    grid-column: 8 / 13;
    grid-row: 3 / 5;
    background: #0A0A0A;
    color: #FFFFFF;
    align-self: start;
}

.research-block .section-heading {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
    background: #FFFFFF;
    color: #0A0A0A;
}

/* --- Journal Block --- */
.journal-block {
    grid-column: 1 / 8;
    grid-row: 4;
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journal-entry {
    padding: 18px 0;
    border-bottom: 2px solid #E0E0E0;
}

.journal-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.journal-date {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #B0B0B0;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.journal-text {
    font-size: 0.95rem;
}

/* --- Contact Block --- */
.contact-block {
    grid-column: 1 / 6;
    grid-row: 5;
    background: #E0E0E0;
}

.contact-links {
    margin-top: 15px;
}

.contact-link {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom-width: 3px;
}

/* --- Footer Block --- */
.footer-block {
    grid-column: 6 / 13;
    grid-row: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-color: #B0B0B0;
}

.footer-block::after {
    border-color: #E0E0E0;
}

.footer-pattern {
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.footer-zigzag {
    display: block;
}

.footer-zigzag svg {
    width: 100%;
    height: auto;
}

.footer-text {
    font-size: 0.85rem;
    color: #B0B0B0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Memphis texture patterns (decorative pseudo-elements) --- */
.about-block::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: #0A0A0A;
}

.counter-block::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid #0A0A0A;
}

.journal-block::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 40px;
    height: 4px;
    background: #B0B0B0;
}

.featured-block::before {
    content: '';
    position: absolute;
    bottom: -14px;
    right: 20px;
    width: 28px;
    height: 28px;
    border: 4px solid #B0B0B0;
    background: #FFFFFF;
}

/* --- Responsive adjustments --- */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 30px 16px;
    }

    .header-block,
    .memphis-bar,
    .about-block,
    .counter-block,
    .featured-block,
    .research-block,
    .journal-block,
    .contact-block,
    .footer-block {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .counters {
        justify-content: center;
    }

    .featured-item {
        flex-direction: column;
        gap: 8px;
    }

    .featured-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .grid-container {
        padding: 20px 12px;
    }

    .grid-block {
        padding: 20px;
    }

    .header-block {
        padding: 30px 20px;
    }

    .counters {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
