/* =============================================================================
   FERAL ARCHIVE — Vintage & Deadstock Resale House
   Tokens:
   --ink:     #0C0C0A  (near-black warm ink)
   --paper:   #F2EDE4  (bone / paper)
   --rust:    #8B2E1F  (oxblood — stamped-ink accent)
   --olive:   #5C5747  (utility grey-olive)
   --brass:   #C9A876  (aged brass — sparing use)
   Display: Oswald (condensed, manifest/stencil energy)
   Body: Space Grotesk
   Data/mono: Space Mono (lot numbers, specs, prices)
   ============================================================================= */

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

:root {
    --ink: #0C0C0A;
    --ink-soft: #181712;
    --paper: #F2EDE4;
    --paper-dim: #E4DDCC;
    --rust: #8B2E1F;
    --olive: #5C5747;
    --brass: #C9A876;
    --line: rgba(242, 237, 228, 0.14);
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.eyebrow {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--rust);
    margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--brass); }

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--paper);
}
.section-title-light { color: var(--paper); }

/* Paper-grain texture overlay for tactile, archival feel */
.texture-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================================
   NAVBAR
   ============================================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 10, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.15rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--paper);
}
.logo span { color: var(--rust); }
.nav-links { display: flex; gap: 2.3rem; }
.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--paper-dim);
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--paper); }
.btn-stamp {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--paper);
    border: 1px solid var(--paper);
    padding: 0.55rem 1.1rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-stamp:hover { background: var(--paper); color: var(--ink); }

/* =============================================================================
   HERO — auction-listing style
   ============================================================================= */
.hero { padding: 4rem 2.5rem 0; }
.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: start;
    padding-bottom: 3.5rem;
}

.hero-listing { position: relative; }
.lot-tag {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}
.lot-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--olive);
}
.lot-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brass);
}
.hero-garment { position: relative; }
.garment-frame {
    position: relative;
    aspect-ratio: 4/5;
    border: 1px solid var(--line);
    background: var(--ink-soft);
    background-image:
        repeating-linear-gradient(135deg, transparent, transparent 38px, rgba(242,237,228,0.025) 38px, rgba(242,237,228,0.025) 39px);
    overflow: hidden;
}
.garment-art {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(139,46,31,0.35), transparent 55%),
        linear-gradient(170deg, #3A2E22 0%, #1E1813 55%, #0C0C0A 100%);
}
.garment-art::after {
    content: '';
    position: absolute;
    inset: 18%;
    border: 1px dashed rgba(242,237,228,0.18);
}
.seal-stamp {
    position: absolute;
    bottom: 1.4rem; right: 1.4rem;
    width: 92px; height: 92px;
    color: var(--brass);
    opacity: 0.92;
    transform: rotate(-12deg);
    mix-blend-mode: screen;
}
.seal-stamp svg { width: 100%; height: 100%; }
.seal-text-top, .seal-text-bottom {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.06em;
    fill: var(--brass);
}
.seal-text-mid {
    font-family: var(--font-mono);
    font-size: 7px;
    fill: var(--brass);
    opacity: 0.8;
}

.hero-copy { padding-top: 0.4rem; }
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--rust);
    margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.18;
    color: var(--paper);
    letter-spacing: -0.005em;
}
.hero-sub {
    margin-top: 1.4rem;
    font-size: 1rem;
    color: var(--paper-dim);
    max-width: 460px;
    line-height: 1.65;
}

.hero-specs {
    margin-top: 2.2rem;
    border-top: 1px solid var(--line);
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.84rem;
}
.spec-key { color: var(--olive); letter-spacing: 0.06em; }
.spec-val { color: var(--paper); text-align: right; }
.spec-status { color: var(--brass); font-weight: 700; }

.hero-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--rust);
    color: var(--paper);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    padding: 0.95rem 1.6rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #A8392A; transform: translateY(-2px); }
.btn-primary .arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-large { padding: 1.15rem 2.1rem; font-size: 0.95rem; }
.hero-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--paper);
}

/* Ticker */
.ticker {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
    overflow: hidden;
}
.ticker-track {
    display: flex;
    gap: 1.4rem;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--olive);
    width: max-content;
}
.tick-dot { color: var(--rust); }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =============================================================================
   LEDGER — numbered inventory rows (justified: real lot numbers)
   ============================================================================= */
.ledger-section { padding: 5.5rem 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.6rem;
}
.ledger-count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--olive);
    letter-spacing: 0.04em;
}
.ledger-list { display: flex; flex-direction: column; }
.ledger-row {
    display: grid;
    grid-template-columns: 70px 56px 1fr 70px 90px 24px;
    align-items: center;
    gap: 1.3rem;
    padding: 1.15rem 0.5rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.ledger-row:hover { background: rgba(242,237,228,0.03); padding-left: 1rem; }
.ledger-row-featured { background: rgba(139,46,31,0.07); }
.ledger-id {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--brass);
}
.ledger-swatch {
    width: 56px; height: 56px;
    border-radius: 2px;
}
.swatch-a { background: linear-gradient(145deg, #4A4030, #2A2419); }
.swatch-b { background: linear-gradient(145deg, #2E2A28, #15110F); }
.swatch-c { background: linear-gradient(145deg, #3D2A24, #1A100C); }
.swatch-d { background: linear-gradient(145deg, #5C4530, #2E2114); }
.swatch-e { background: linear-gradient(145deg, #28282A, #0C0C0D); }
.swatch-f { background: linear-gradient(145deg, #3A4038, #181C17); }
.ledger-main h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--paper);
    margin-bottom: 0.25rem;
}
.ledger-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--olive);
    letter-spacing: 0.01em;
}
.ledger-era {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--paper-dim);
}
.ledger-price {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--paper);
    text-align: right;
}
.ledger-arrow {
    color: var(--rust);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ledger-row:hover .ledger-arrow { opacity: 1; transform: translateX(3px); }

/* =============================================================================
   PROCESS — light section for contrast
   ============================================================================= */
.process-section {
    background: var(--paper);
    color: var(--ink);
    padding: 5.5rem 0;
}
.process-section .eyebrow-light { color: var(--rust); }
.process-section .section-title-light { color: var(--ink); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 2.6rem;
}
.process-step {
    border-top: 2px solid var(--ink);
    padding-top: 1.2rem;
}
.process-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rust);
    display: block;
    margin-bottom: 0.9rem;
}
.process-step h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.08rem;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 0.7rem;
}
.process-step p {
    font-size: 0.88rem;
    color: var(--olive);
    line-height: 1.55;
}

/* =============================================================================
   ABOUT — manifest card signature
   ============================================================================= */
.about-section { padding: 6rem 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}
.about-text {
    color: var(--paper-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1.3rem;
}
.about-text em { color: var(--paper); font-style: normal; font-weight: 600; }
.about-stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2.3rem;
    flex-wrap: wrap;
}
.about-stat { display: flex; flex-direction: column; }
.about-stat-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--brass);
}
.about-stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--olive);
    margin-top: 0.3rem;
    max-width: 130px;
    line-height: 1.3;
}

.manifest-card {
    background: var(--paper);
    color: var(--ink);
    padding: 2rem 1.8rem;
    border-radius: 2px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    transform: rotate(1.5deg);
}
.manifest-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rust);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.9rem;
    margin-bottom: 1.1rem;
}
.manifest-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(12,12,10,0.18);
}
.manifest-row span:first-child { color: var(--olive); }
.manifest-row span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.manifest-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--rust);
    border: 1px solid var(--rust);
    padding: 0.5rem;
}

/* =============================================================================
   CONSIGN CTA
   ============================================================================= */
.consign-section {
    background: var(--ink-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 5.5rem 0;
}
.consign-inner { text-align: center; }
.consign-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--paper);
    line-height: 1.15;
}
.consign-sub {
    color: var(--paper-dim);
    font-size: 1rem;
    margin: 1.2rem auto 2rem;
    max-width: 460px;
    line-height: 1.6;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer { padding: 2.4rem 0; }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-credit {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--olive);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.8rem; }
    .hero-garment { max-width: 380px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 380px; }
    .ledger-row {
        grid-template-columns: 56px 44px 1fr auto;
        row-gap: 0.4rem;
    }
    .ledger-era { display: none; }
    .ledger-arrow { display: none; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .section-inner { padding: 0 1.5rem; }
    .hero { padding: 2.5rem 1.5rem 0; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .process-grid { grid-template-columns: 1fr; }
    .about-stats { gap: 1.5rem; }
    .ledger-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "id price"
            "main main";
    }
    .ledger-id { grid-area: id; }
    .ledger-price { grid-area: price; }
    .ledger-main { grid-area: main; }
    .ledger-swatch { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}
