/* ========================================
   Velum Forge - Workshop Resource Center
   A sleek studio site with layered craft theme
   ======================================== */

/* CSS Variables */
:root {
    /* Forge Palette - warm, earthy tones */
    --velum: #f5f0e8;
    --velum-light: #faf8f4;
    --parchment: #e8dcc8;
    --forge-warm: #c9a87c;
    --forge-copper: #b87333;
    --forge-dark: #2d2926;
    --forge-charcoal: #1a1816;
    --ink: #3d3835;
    --ink-light: #5a5552;
    
    /* Accent */
    --accent: #8b6914;
    --accent-light: #c9a227;
    
    /* Typography */
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--velum-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--forge-copper);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--forge-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--parchment);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--forge-dark);
}

.logo-mark {
    font-size: 1.5rem;
    color: var(--forge-copper);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--forge-copper);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--velum) 0%, var(--velum-light) 100%);
    text-align: center;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forge-copper);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--ink-light);
    max-width: 540px;
    margin: 0 auto 36px;
}

.hero-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--forge-dark);
    color: var(--velum);
}

.btn-primary:hover {
    background: var(--forge-charcoal);
    color: var(--velum);
}

.btn-secondary {
    background: transparent;
    color: var(--forge-dark);
    border: 1px solid var(--forge-warm);
}

.btn-secondary:hover {
    background: var(--parchment);
}

/* ========================================
   Animated Underline
   ======================================== */

.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--forge-copper);
    border-radius: 2px;
}

/* ========================================
   Pulse Separator
   ======================================== */

.pulse-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    background: var(--velum-light);
}

.pulse-separator-warm {
    background: var(--velum);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--forge-warm);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.pulse-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: var(--section-padding);
}

.section-fundamentals {
    background: var(--velum-light);
}

.section-workflows {
    background: var(--velum);
}

.section-gallery {
    background: var(--forge-dark);
    color: var(--velum);
}

.section-gallery h2,
.section-gallery h4 {
    color: var(--velum);
}

.section-gallery .section-description {
    color: var(--parchment);
}

.section-cards {
    background: var(--velum-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--forge-copper);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1rem;
    color: var(--ink-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ========================================
   Article Cards (Fundamentals)
   ======================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--velum);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--parchment);
    transition: var(--transition-normal);
}

.article-card:hover {
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.1);
    transform: translateY(-4px);
}

.card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--forge-copper), var(--forge-warm));
}

.card-content {
    padding: 28px;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forge-copper);
    background: rgba(184, 115, 51, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.card-content > p {
    font-size: 0.95rem;
    color: var(--ink-light);
    margin-bottom: 20px;
}

.card-details {
    background: var(--velum-light);
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.card-details h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: var(--ink);
}

.card-details ul {
    list-style: disc;
    padding-left: 18px;
}

.card-details li {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-bottom: 6px;
}

.card-links {
    font-size: 0.85rem;
    color: var(--ink-light);
}

.card-links span {
    margin-right: 8px;
}

.card-links a {
    margin-right: 12px;
}

/* ========================================
   Workflow Cards
   ======================================== */

.workflows-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.workflow-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    background: var(--velum-light);
    border-radius: 10px;
    padding: 36px;
    border: 1px solid var(--parchment);
}

.workflow-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--velum);
    background: var(--forge-copper);
    border-radius: 50%;
}

.workflow-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.workflow-intro {
    font-size: 1rem;
    color: var(--ink-light);
    margin-bottom: 28px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--forge-copper);
    background: rgba(184, 115, 51, 0.12);
    border-radius: 50%;
}

.step-content h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--ink-light);
}

.workflow-links {
    font-size: 0.85rem;
    color: var(--ink-light);
    padding-top: 16px;
    border-top: 1px solid var(--parchment);
}

.workflow-links span {
    margin-right: 8px;
}

.workflow-links a {
    margin-right: 12px;
}

/* ========================================
   Texture Gallery
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(26, 24, 22, 0.9));
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

.gallery-item figcaption h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.gallery-item figcaption p {
    font-size: 0.85rem;
    color: var(--parchment);
}

.gallery-item figcaption a {
    color: var(--forge-warm);
}

.gallery-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--parchment);
}

.gallery-note a {
    color: var(--forge-warm);
}

/* Texture image cropping */
.texture-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ========================================
   Resource Cards (Printable)
   ======================================== */

.resource-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.resource-card {
    background: var(--velum);
    border: 1px solid var(--parchment);
    border-radius: 8px;
    padding: 24px;
}

.resource-card-featured {
    background: linear-gradient(135deg, var(--forge-dark), var(--forge-charcoal));
    color: var(--velum);
    border: none;
}

.resource-card-featured h4 {
    color: var(--velum);
}

.resource-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.resource-card-icon {
    font-size: 1.2rem;
    color: var(--forge-copper);
}

.resource-card-featured .resource-card-icon {
    color: var(--forge-warm);
}

.resource-card-type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.resource-card-featured .resource-card-type {
    color: var(--parchment);
}

.resource-card h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.resource-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.resource-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--parchment);
}

.resource-card-featured .resource-table td {
    border-color: rgba(255,255,255,0.1);
}

.resource-table td:first-child {
    font-weight: 500;
    color: var(--forge-dark);
    width: 35%;
}

.resource-card-featured .resource-table td:first-child {
    color: var(--forge-warm);
}

.resource-table-shortcuts td:first-child {
    width: 50%;
}

kbd {
    display: inline-block;
    background: var(--velum-light);
    border: 1px solid var(--parchment);
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.8rem;
}

.resource-card-featured kbd {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--velum);
}

.resource-checklist {
    font-size: 0.85rem;
}

.resource-checklist li {
    padding: 6px 0;
    border-bottom: 1px solid var(--parchment);
}

.checkbox {
    margin-right: 10px;
    color: var(--forge-copper);
}

.resource-principles {
    padding-left: 20px;
    font-size: 0.9rem;
}

.resource-principles li {
    margin-bottom: 12px;
}

.resource-principles strong {
    display: block;
    color: var(--forge-warm);
    margin-bottom: 4px;
}

.resource-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--parchment);
}

.resource-card-featured .resource-card-footer {
    border-color: rgba(255,255,255,0.1);
}

.resource-card-footer a {
    font-size: 0.85rem;
    font-weight: 500;
}

.print-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--velum);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--ink-light);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--forge-charcoal);
    color: var(--parchment);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--velum);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--ink-light);
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--ink-light);
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .workflow-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .workflow-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .resource-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .header, .hero, .pulse-separator, .section-gallery, .footer {
        display: none;
    }
    
    .section {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .resource-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    .resource-card-featured {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    .resource-card-featured h4,
    .resource-card-featured .resource-card-icon,
    .resource-card-featured .resource-table td:first-child,
    .resource-principles strong {
        color: #333 !important;
    }
}
