/* namu.farm -- neubrutalism raw edges blog
   Palette:
     #fffef5 raw white
     #1a1a1a black ink
     #b8f25d lime fresh
     #ff6b4a tomato alert
     #ffd166 sunflower yellow
     #e0e0e0 concrete gray
     #4ecdc4 teal sprout
*/

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

html, body {
    background: #fffef5;
    color: #1a1a1a;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        repeating-linear-gradient(0deg, rgba(26,26,26,0.04) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(26,26,26,0.04) 0 1px, transparent 1px 32px);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.page {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 28px clamp(16px, 3vw, 40px) 80px;
}

/* ---------- TOPBAR ---------- */
.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    background: #fffef5;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0 #1a1a1a;
    margin-bottom: 28px;
}

.topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #1a1a1a;
    color: #b8f25d;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transform: rotate(-3deg);
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.topbar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.nav-link {
    display: inline-block;
    padding: 6px 12px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    border: 2px solid #1a1a1a;
    background: #fffef5;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.nav-link:hover {
    background: #b8f25d;
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 #1a1a1a;
}

.nav-link.is-active {
    background: #ffd166;
    box-shadow: 3px 3px 0 #1a1a1a;
    transform: translate(-2px, -2px);
}

.topbar__meta {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #b8f25d;
    padding: 6px 10px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 260px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    margin: 0 0 40px;
}

.hero__block {
    background: #b8f25d;
    border: 3px solid #1a1a1a;
    box-shadow: 6px 6px 0 #1a1a1a;
    padding: clamp(28px, 4vw, 48px);
    transform: rotate(-1deg);
    transform-origin: left center;
}

.hero__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.hero__tag { letter-spacing: 0.04em; }

.hero__stamp {
    display: inline-block;
    padding: 6px 14px;
    background: #1a1a1a;
    color: #fffef5;
    transform: rotate(2deg);
    border: 2px solid #1a1a1a;
}

.hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.hero__subtitle {
    max-width: 60ch;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 26px;
}

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

.hero__chip {
    display: inline-block;
    padding: 6px 14px;
    background: #fffef5;
    border: 2px solid #1a1a1a;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
}

.hero__chip.alt {
    background: #ffd166;
    transform: rotate(1deg);
}

.hero__chip.warn {
    background: #ff6b4a;
    color: #1a1a1a;
    transform: rotate(-2deg);
}

.hero__sticker {
    position: absolute;
    top: -18px;
    right: 16px;
    width: 110px;
    height: 110px;
    background: #ff6b4a;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0 #1a1a1a;
    display: grid;
    place-items: center;
    text-align: center;
    transform: rotate(8deg);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ---------- SECTION HEAD ---------- */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 56px 0 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid #1a1a1a;
}

.section-head__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    letter-spacing: -0.01em;
}

.section-head__sub {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #fffef5;
    padding: 4px 10px;
}

/* ---------- BLOCK BASE ---------- */
.block {
    background: #fffef5;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0 #1a1a1a;
    padding: 1.5rem;
}

/* ---------- FILTERS ---------- */
.filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter {
    padding: 6px 12px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: #fffef5;
    border: 2px solid #1a1a1a;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.filter:hover { background: #ffd166; }

.filter.is-active {
    background: #b8f25d;
    box-shadow: 3px 3px 0 #1a1a1a;
    transform: translate(-2px, -2px);
}

/* ---------- CATALOG GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.plot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.plot:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #1a1a1a;
}

.plot:nth-child(3n+1) { background: #fffef5; }
.plot:nth-child(3n+2) { background: #ffd166; }
.plot:nth-child(3n+3) { background: #4ecdc4; }
.plot.dormant { background: #e0e0e0 !important; }

.plot__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.plot__id {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.plot__name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.plot__latin {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.plot__note {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-top: 4px;
}

.plot__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 4px;
}

/* growth bars */
.bar {
    height: 10px;
    background: #e0e0e0;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

.bar__fill {
    display: block;
    height: 100%;
    background: #b8f25d;
    width: 0;
    transition: width 900ms cubic-bezier(.65,.05,.36,1);
    background-image: repeating-linear-gradient(45deg, rgba(26,26,26,0.12) 0 4px, transparent 4px 8px);
}

.plot.dormant .bar__fill { background: #e0e0e0; }
.plot[data-status="ready"] .bar__fill { background: #b8f25d; }
.plot[data-status="growing"] .bar__fill { background: #ffd166; }
.plot[data-status="new"] .bar__fill { background: #4ecdc4; }

/* stamps */
.stamp {
    display: inline-block;
    padding: 4px 12px;
    background: #b8f25d;
    border: 2px solid #1a1a1a;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.72rem;
    transform: rotate(-2deg);
    white-space: nowrap;
}

.stamp--lime { background: #b8f25d; }
.stamp--yellow { background: #ffd166; transform: rotate(2deg); }
.stamp--red { background: #ff6b4a; transform: rotate(-3deg); }
.stamp--teal { background: #4ecdc4; transform: rotate(1deg); }

/* ---------- LOG ---------- */
.log-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.log-entry {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-entry:nth-child(2n) { background: #ffd166; }
.log-entry:nth-child(3n) { background: #fffef5; }
.log-entry:nth-child(5n) { background: #b8f25d; }

.log-entry__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.log-entry__date {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.log-entry__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.log-entry p { font-size: 0.95rem; }

/* ---------- DISPATCH OPS ---------- */
.ops {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

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

.ops__card--1 { background: #b8f25d; }
.ops__card--2 { background: #4ecdc4; }
.ops__card--3 { background: #ffd166; }
.ops__card--4 { background: #ff6b4a; }

.ops__label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ops__num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.ops__caption {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* board */
.board__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1a1a1a;
}

.board__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.board__pulse {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #b8f25d;
    padding: 4px 10px;
}

.board__pulse.is-on {
    background: #b8f25d;
    color: #1a1a1a;
}

.board__rows {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.board__row {
    display: grid;
    grid-template-columns: 110px 1fr 130px 130px;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px dashed #1a1a1a;
}

.board__row:last-child { border-bottom: none; }

.board__cell {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.board__cell--id { font-weight: 700; }

.board__cell--name {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 500;
}

/* ---------- ZINE ---------- */
.zine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.zine-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.zine-card:hover {
    transform: translate(-3px, -3px) rotate(-0.5deg);
    box-shadow: 7px 7px 0 #1a1a1a;
}

.zine-card--big {
    grid-column: span 2;
    grid-row: span 2;
    background: #b8f25d;
}

.zine-card:nth-child(2) { background: #ffd166; }
.zine-card:nth-child(3) { background: #4ecdc4; }
.zine-card:nth-child(4) { background: #ff6b4a; }
.zine-card:nth-child(5) { background: #fffef5; }

.zine-card__num {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zine-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.zine-card--big .zine-card__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.zine-card__body {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: auto;
}

/* ---------- FOOTER ---------- */
.foot {
    margin-top: 56px;
}

.foot__block {
    background: #1a1a1a;
    color: #fffef5;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0 #b8f25d;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

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

.foot__heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #b8f25d;
    letter-spacing: -0.01em;
}

.foot__col p {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
}

.foot__rule {
    margin-top: 18px;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
    .grid, .log-grid { grid-template-columns: repeat(2, 1fr); }
    .grid .plot[style*="grid-column: span 2"], .log-grid .log-entry[style*="grid-column: span 2"] {
        grid-column: span 2 !important;
    }
    .ops { grid-template-columns: repeat(2, 1fr); }
    .zine-grid { grid-template-columns: repeat(2, 1fr); }
    .zine-card--big { grid-column: span 2; grid-row: auto; }
    .foot__block { grid-template-columns: repeat(2, 1fr); }
    .topbar { grid-template-columns: 1fr; text-align: left; }
    .topbar__meta { max-width: none; }
    .board__row { grid-template-columns: 90px 1fr 100px; }
    .board__row .board__cell--to { display: none; }
}

@media (max-width: 560px) {
    .grid, .log-grid, .zine-grid { grid-template-columns: 1fr; }
    .grid .plot[style*="grid-column: span 2"], .log-grid .log-entry[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
    .ops { grid-template-columns: 1fr 1fr; }
    .foot__block { grid-template-columns: 1fr; }
    .hero__sticker { width: 86px; height: 86px; right: 6px; top: -10px; font-size: 0.95rem; }
    .board__row {
        grid-template-columns: 1fr 1fr;
        gap: 6px 14px;
    }
    .board__row .board__cell--to { display: inline-block; }
}
