/* recycle.auction --- catalog stylesheet
   Palette:
     #FEFCF7  Aged Cream         (card backgrounds)
     #FFF8EB  Ivory Highlight    (hover states)
     #8B7355  Antique Bronze     (frame borders)
     #2C2416  Dark Mahogany      (ticker, footer)
     #C87941  Burnished Amber    (accents, stamps, progress)
     #3B2F20  Deep Espresso      (body text)
     #A04040  Faded Crimson      (SOLD, active bid)
     #8A7D6B  Warm Dust          (captions)
     #D4C5A9  Light Sand         (card edge)
*/

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #FFF8EB;
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(139, 115, 85, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(160, 64, 64, 0.04) 0%, transparent 55%),
        repeating-linear-gradient(
            0deg,
            rgba(139, 115, 85, 0.012) 0px,
            rgba(139, 115, 85, 0.012) 1px,
            transparent 1px,
            transparent 3px
        );
    color: #3B2F20;
    font-family: "Lora", Georgia, serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================
   Scroll progress bar
   ============================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: #C87941;
    z-index: 60;
    transition: width 80ms linear;
}

/* ============================
   Gavel anchor (top-left)
   ============================ */
.gavel-anchor {
    position: fixed;
    top: 18px;
    left: 22px;
    width: 44px;
    height: 44px;
    background: #FEFCF7;
    border: 1px solid #8B7355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
    box-shadow: 0 1px 0 rgba(60, 47, 32, 0.06);
}

.gavel-anchor:hover {
    background: #C87941;
    transform: rotate(-12deg) scale(1.05);
    box-shadow: 0 6px 14px rgba(60, 47, 32, 0.18);
}

.gavel-anchor:hover svg {
    stroke: #FEFCF7;
}

/* ============================
   Catalog header
   ============================ */
.catalog-header {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 80px 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ornamental-frame {
    position: absolute;
    top: 5vh;
    left: 5vw;
    right: 5vw;
    bottom: 5vh;
    width: 90vw;
    height: 90vh;
    pointer-events: none;
}

.frame-rect,
.frame-rect-inner {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawFrame 2000ms ease-in-out 200ms forwards;
}

.frame-rect-inner {
    animation-delay: 800ms;
}

.frame-flourish {
    opacity: 0;
    animation: revealFlourish 800ms ease-out 1500ms forwards;
}

.frame-divider {
    stroke-dasharray: 2 4;
    opacity: 0;
    animation: revealFlourish 800ms ease-out 2200ms forwards;
}

@keyframes drawFrame {
    to { stroke-dashoffset: 0; }
}

@keyframes revealFlourish {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.catalog-content {
    position: relative;
    max-width: 760px;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 900ms ease-out 1800ms forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.catalog-eyebrow {
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: #8B7355;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.catalog-title {
    font-family: "Abril Fatface", "Lora", serif;
    font-weight: 400;
    font-size: clamp(56px, 11vw, 132px);
    line-height: 0.95;
    color: #2C2416;
    margin: 0;
    letter-spacing: -0.01em;
}

.title-dot {
    color: #C87941;
}

.catalog-subtitle {
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.42em;
    color: #3B2F20;
    margin: 28px 0 24px;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 12px auto 36px;
    width: 60%;
    color: #C87941;
}

.orn-line {
    flex: 1;
    height: 1px;
    background: #8B7355;
    opacity: 0.6;
}

.orn-mark {
    font-size: 22px;
    color: #C87941;
}

.catalog-description {
    font-family: "Lora", Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    color: #3B2F20;
    font-style: italic;
    max-width: 580px;
    margin: 0 auto 40px;
}

.catalog-meta {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #3B2F20;
    text-transform: uppercase;
}

.meta-block em {
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    color: #8A7D6B;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 6px;
    font-size: 13px;
}

/* ============================
   Bid ticker
   ============================ */
.bid-ticker {
    height: 48px;
    background: #2C2416;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #8B7355;
    border-bottom: 1px solid #8B7355;
}

.bid-ticker::before,
.bid-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.bid-ticker::before {
    left: 0;
    background: linear-gradient(to right, #2C2416, transparent);
}

.bid-ticker::after {
    right: 0;
    background: linear-gradient(to left, #2C2416, transparent);
}

.ticker-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    padding-left: 100%;
    animation: tickerScroll 60s linear infinite;
    will-change: transform;
}

.tick {
    font-family: "Share Tech Mono", "Oswald", monospace;
    font-size: 13px;
    color: #C87941;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tick-hot {
    color: #FFF8EB;
}

.tick-sep {
    color: #8B7355;
    font-size: 10px;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================
   Auction floor
   ============================ */
.auction-floor {
    padding: 96px 6vw 64px;
    position: relative;
}

.floor-heading {
    text-align: center;
    margin: 0 auto 64px;
    max-width: 720px;
}

.section-title {
    font-family: "Abril Fatface", "Lora", serif;
    font-weight: 400;
    font-size: clamp(48px, 7vw, 84px);
    color: #2C2416;
    margin: 0;
    line-height: 1;
}

.section-rule {
    width: 80px;
    height: 2px;
    background: #C87941;
    margin: 22px auto 24px;
    position: relative;
}

.section-rule::before,
.section-rule::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px;
    height: 1px;
    background: #8B7355;
    transform: translateY(-50%);
}

.section-rule::before { right: 100%; margin-right: 18px; }
.section-rule::after  { left: 100%;  margin-left: 18px; }

.section-note {
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    color: #8A7D6B;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Masonry grid via CSS columns */
.lots-masonry {
    column-count: 3;
    column-gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .lots-masonry { column-count: 2; }
}

@media (max-width: 620px) {
    .lots-masonry { column-count: 1; }
    .auction-floor { padding: 72px 5vw 48px; }
}

.lot-card {
    --rotation: 0deg;
    background: #FEFCF7;
    border: 1px solid #D4C5A9;
    padding: 24px 26px 22px;
    margin: 0 0 16px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
    transform: rotate(var(--rotation)) scale(0.94);
    opacity: 0;
    transition:
        opacity 600ms ease-out,
        transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 320ms ease,
        background 320ms ease;
    box-shadow: 0 1px 0 rgba(60, 47, 32, 0.04);
}

.lot-card.is-visible {
    opacity: 1;
    transform: rotate(var(--rotation)) scale(1);
}

.lot-card:hover {
    background: #FFF8EB;
    transform: rotate(var(--rotation)) translateY(-4px);
    box-shadow:
        0 10px 24px rgba(60, 47, 32, 0.12),
        0 2px 0 rgba(139, 115, 85, 0.08);
    z-index: 4;
}

.lot-card::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 280ms ease;
}

.lot-card:hover::before {
    border-color: #8B7355;
}

.lot-card--tall {
    /* taller content; visual variation comes from richer bodies */
}

.lot-card--short {
    padding-bottom: 18px;
}

/* Gavel-strike line */
.lot-card .strike-line {
    position: absolute;
    left: -2px;
    top: 22px;
    width: 0;
    height: 1px;
    background: #C87941;
    opacity: 0;
    pointer-events: none;
}

.lot-card.is-struck .strike-line {
    animation: gavelStrike 600ms ease-out forwards;
}

@keyframes gavelStrike {
    0%   { width: 0;    opacity: 0; }
    35%  { width: 60px; opacity: 1; }
    70%  { width: 60px; opacity: 1; }
    100% { width: 60px; opacity: 0; }
}

/* Lot stamp */
.lot-stamp {
    position: absolute;
    top: -14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #C87941;
    background: #FEFCF7;
    color: #C87941;
    font-family: "Oswald", "Inter", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 260ms ease, color 260ms ease, transform 260ms ease;
    z-index: 3;
}

.lot-card:hover .lot-stamp {
    background: #C87941;
    color: #FEFCF7;
    transform: rotate(-8deg) scale(1.06);
}

/* SOLD overstamp */
.sold-stamp {
    position: absolute;
    top: 38%;
    right: -8px;
    transform: rotate(-12deg);
    font-family: "Oswald", "Inter", sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.18em;
    color: #A04040;
    border: 3px solid #A04040;
    padding: 6px 14px;
    background: rgba(254, 252, 247, 0.6);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.lot-card--sold {
    background: #FEFCF7;
}

.lot-card--sold .lot-title,
.lot-card--sold .lot-desc,
.lot-card--sold .lot-meta {
    color: #8A7D6B;
}

/* Lot meta line */
.lot-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #8B7355;
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #D4C5A9;
}

.lot-cat {
    color: #C87941;
}

.lot-prov {
    color: #8A7D6B;
    font-size: 10px;
}

/* Lot title */
.lot-title {
    font-family: "Abril Fatface", "Lora", serif;
    font-weight: 400;
    color: #2C2416;
    font-size: 26px;
    line-height: 1.12;
    margin: 4px 0 14px;
    letter-spacing: -0.005em;
}

.lot-card--tall .lot-title {
    font-size: 30px;
}

.lot-card--short .lot-title {
    font-size: 22px;
}

/* Description */
.lot-desc {
    font-family: "Lora", Georgia, serif;
    color: #3B2F20;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 16px;
}

.lot-note {
    font-family: "Lora", Georgia, serif;
    color: #8A7D6B;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 2px solid #C87941;
    background: rgba(212, 197, 169, 0.18);
}

.lot-note em {
    color: #3B2F20;
    font-style: italic;
}

/* Spec list */
.lot-spec {
    list-style: none;
    margin: 0 0 18px;
    padding: 8px 0;
    border-top: 1px dotted #D4C5A9;
    border-bottom: 1px dotted #D4C5A9;
}

.lot-spec li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 0;
    color: #3B2F20;
}

.lot-spec li span:first-child {
    color: #8A7D6B;
}

/* Price block */
.lot-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 14px;
    padding: 12px 14px;
    background: rgba(200, 121, 65, 0.06);
    border: 1px solid rgba(200, 121, 65, 0.25);
    border-left: 3px solid #C87941;
}

.price-label {
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 10px;
    letter-spacing: 0.24em;
    color: #8A7D6B;
    text-transform: uppercase;
}

.price-amount {
    font-family: "Abril Fatface", "Lora", serif;
    font-size: 28px;
    color: #2C2416;
    line-height: 1;
}

.lot-card--sold .price-amount {
    color: #A04040;
}

/* Bid line */
.lot-bidline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bidline-bidders {
    color: #8A7D6B;
}

.bidline-status {
    color: #C87941;
    border: 1px solid #C87941;
    padding: 3px 8px;
}

.lot-card--sold .bidline-status {
    color: #A04040;
    border-color: #A04040;
}

/* ============================
   House rules
   ============================ */
.house-rules {
    padding: 80px 6vw 96px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(139, 115, 85, 0.018) 0px,
            rgba(139, 115, 85, 0.018) 1px,
            transparent 1px,
            transparent 8px
        ),
        #FFF8EB;
}

.rules-frame {
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid #8B7355;
    padding: 56px 64px;
    position: relative;
    background: #FEFCF7;
}

.rules-frame::before,
.rules-frame::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #C87941;
    border-style: solid;
}

.rules-frame::before {
    top: -12px;
    left: -12px;
    border-width: 2px 0 0 2px;
}

.rules-frame::after {
    bottom: -12px;
    right: -12px;
    border-width: 0 2px 2px 0;
}

.rules-title {
    font-family: "Abril Fatface", "Lora", serif;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 60px);
    color: #2C2416;
    margin: 0 0 36px;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 56px;
}

@media (max-width: 720px) {
    .rules-grid { grid-template-columns: 1fr; gap: 24px; }
    .rules-frame { padding: 40px 28px; }
}

.rule {
    display: flex;
    gap: 18px;
}

.rule-num {
    font-family: "Abril Fatface", "Lora", serif;
    font-size: 36px;
    color: #C87941;
    line-height: 1;
    min-width: 44px;
}

.rule p {
    margin: 4px 0 0;
    font-family: "Lora", Georgia, serif;
    color: #3B2F20;
    font-size: 16px;
    line-height: 1.65;
}

/* ============================
   Footer
   ============================ */
.catalog-footer {
    background: #2C2416;
    color: #D4C5A9;
    padding: 56px 6vw 36px;
    margin-top: 0;
}

.footer-rule {
    height: 1px;
    background: #8B7355;
    margin-bottom: 48px;
    position: relative;
}

.footer-rule::before {
    content: "\25C6";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #2C2416;
    padding: 0 14px;
    color: #C87941;
    font-size: 12px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto 56px;
}

@media (max-width: 760px) {
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col p,
.footer-col li {
    font-family: "Lora", Georgia, serif;
    color: #D4C5A9;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.footer-label {
    display: block;
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #C87941;
    margin-bottom: 16px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    padding: 6px 0;
    border-bottom: 1px dotted rgba(212, 197, 169, 0.2);
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D4C5A9;
}

.footer-mark {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(139, 115, 85, 0.4);
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8A7D6B;
}

.footer-set {
    color: #C87941;
}

@media (max-width: 760px) {
    .footer-mark { justify-content: center; text-align: center; }
}
