/* hil.st -- neubrutalist list platform */

:root {
    --bg: #ffffff;
    --ink: #000000;
    --lime: #c8f542;
    --pink: #ff5ca2;
    --blue: #42b4f5;
    --card: #fffbe6;
    --input-bg: #ffffff;
    --border-w: 3px;
}

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

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

::selection { background: var(--lime); color: var(--ink); }

/* ========== TOPBAR ========== */
.topbar {
    border-bottom: var(--border-w) solid var(--ink);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-mark {
    font-family: 'Syne', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.brand-mark.small { font-size: 1.2rem; }
.topnav {
    display: flex;
    gap: 28px;
}
.topnav a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}
.topnav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 4px;
    background: var(--lime);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: #ffffff;
    border: var(--border-w) solid var(--ink);
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 4px 4px 0 var(--pink);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    user-select: none;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--pink); }

.btn-primary { background: var(--ink); color: #ffffff; }

.btn-ghost {
    background: var(--bg);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--blue);
}
.btn-ghost:hover { box-shadow: 2px 2px 0 var(--blue); }

.btn-huge {
    padding: 22px 48px;
    font-size: 1.05rem;
    box-shadow: 6px 6px 0 var(--lime);
    width: 100%;
}
.btn-huge:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--lime); }

/* ========== HERO ========== */
.hero {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 32px 64px;
    text-align: center;
}
.billboard {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 14vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-shadow:
        6px 6px 0 var(--lime),
        12px 12px 0 var(--pink);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}
.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin: 24px 0 40px;
    line-height: 1.3;
}
.ul-lime, .ul-pink, .ul-blue {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.ul-lime::after, .ul-pink::after, .ul-blue::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 2px;
    height: 10px;
    z-index: -1;
}
.ul-lime::after { background: var(--lime); }
.ul-pink::after { background: var(--pink); }
.ul-blue::after { background: var(--blue); }

.hero-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
}
.big-input {
    flex: 1;
    border: var(--border-w) solid var(--ink);
    background: var(--input-bg);
    padding: 18px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 4px 4px 0 var(--blue);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    outline: none;
    color: var(--ink);
    min-width: 0;
}
.big-input::placeholder { color: #777777; font-weight: 500; }
.big-input:focus { box-shadow: 6px 6px 0 var(--blue); }

.hero-meta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.chip {
    border: var(--border-w) solid var(--ink);
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 3px 3px 0 var(--ink);
}
.chip-lime { background: var(--lime); }
.chip-blue { background: var(--blue); color: var(--ink); }

/* Stickers */
.sticker {
    position: absolute;
    border: var(--border-w) solid var(--ink);
    border-radius: 50%;
}
.sticker-pink {
    width: 80px;
    height: 80px;
    background: var(--pink);
    top: 60px;
    left: 8%;
    box-shadow: 4px 4px 0 var(--ink);
}
.sticker-blue {
    width: 56px;
    height: 56px;
    background: var(--blue);
    top: 140px;
    right: 10%;
    box-shadow: 4px 4px 0 var(--ink);
}
.sticker-star {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lime);
    -webkit-text-stroke: 3px var(--ink);
    font-size: 5rem;
    line-height: 1;
    top: 30px;
    right: 20%;
    transform: rotate(-12deg);
}

/* ========== SECTIONS COMMON ========== */
section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 32px;
    border-top: var(--border-w) solid var(--ink);
}
.featured { background: var(--bg); }

.section-head {
    margin-bottom: 48px;
}
.kicker {
    display: inline-block;
    background: var(--ink);
    color: #ffffff;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    box-shadow: 4px 4px 0 var(--pink);
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.section-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
}

/* ========== BIG LIST ========== */
.big-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.big-list-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--card);
    border: var(--border-w) solid var(--ink);
    box-shadow: 6px 6px 0 var(--lime);
    padding: 20px 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.big-list-item:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--lime);
}
.big-list-item:nth-child(2n) { box-shadow: 6px 6px 0 var(--pink); }
.big-list-item:nth-child(2n):hover { box-shadow: 3px 3px 0 var(--pink); }
.big-list-item:nth-child(3n) { box-shadow: 6px 6px 0 var(--blue); }
.big-list-item:nth-child(3n):hover { box-shadow: 3px 3px 0 var(--blue); }

.big-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    min-width: 88px;
    color: var(--ink);
    letter-spacing: -0.04em;
}
.big-text { flex: 1; min-width: 0; }
.big-text h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 4px;
}
.big-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #444444;
}
.vote-btn {
    border: var(--border-w) solid var(--ink);
    background: var(--bg);
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: 'Inter', sans-serif;
}
.vote-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--lime); }
.vote-btn.voted { background: var(--lime); }

/* ========== CARD GRID ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.card {
    background: var(--card);
    border: var(--border-w) solid var(--ink);
    padding: 28px;
    box-shadow: 6px 6px 0 var(--lime);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    position: relative;
}
.card[data-shadow="pink"] { box-shadow: 6px 6px 0 var(--pink); }
.card[data-shadow="blue"] { box-shadow: 6px 6px 0 var(--blue); }
.card:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--lime); }
.card[data-shadow="pink"]:hover { box-shadow: 3px 3px 0 var(--pink); }
.card[data-shadow="blue"]:hover { box-shadow: 3px 3px 0 var(--blue); }

.card-tag {
    display: inline-block;
    background: var(--ink);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.card-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444444;
    margin-bottom: 16px;
}
.card-stats {
    display: flex;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-top: 2px solid var(--ink);
    padding-top: 12px;
}

/* ========== CREATE ========== */
.create-card {
    background: var(--card);
    border: var(--border-w) solid var(--ink);
    box-shadow: 8px 8px 0 var(--pink);
    padding: 48px;
}
.create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.field input,
.field select,
.item-input {
    border: var(--border-w) solid var(--ink);
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    background: var(--input-bg);
    outline: none;
    transition: box-shadow 0.15s ease;
    color: var(--ink);
    width: 100%;
}
.field input:focus,
.field select:focus,
.item-input:focus { box-shadow: 4px 4px 0 var(--blue); }

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                      linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

/* Items list */
.items-block { display: flex; flex-direction: column; gap: 12px; }
.items-list { display: flex; flex-direction: column; gap: 10px; }
.item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: var(--border-w) solid var(--ink);
    padding: 8px 14px;
    box-shadow: 4px 4px 0 var(--lime);
}
.row-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    min-width: 44px;
    line-height: 1;
}
.item-row .item-input {
    border: none;
    box-shadow: none;
    padding: 6px 0;
    background: transparent;
}
.item-row .item-input:focus { box-shadow: none; }
.row-del {
    background: var(--bg);
    border: 2px solid var(--ink);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease;
}
.row-del:hover { background: var(--pink); color: #ffffff; }

/* Checkboxes */
.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.cbx {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}
.cbx input { display: none; }
.cbx-box {
    width: 24px;
    height: 24px;
    border: var(--border-w) solid var(--ink);
    background: var(--bg);
    box-shadow: 3px 3px 0 var(--ink);
    position: relative;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cbx input:checked + .cbx-box {
    background: var(--lime);
}
.cbx input:checked + .cbx-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 7px;
    height: 13px;
    border: solid var(--ink);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.cbx:hover .cbx-box { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

/* ========== FOOTER ========== */
.footer {
    border-top: var(--border-w) solid var(--ink);
    background: var(--ink);
    color: #ffffff;
    margin-top: 80px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer p {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}
.footer .brand-mark { color: var(--lime); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-links a:hover { color: var(--lime); }

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--ink);
    color: #ffffff;
    border: var(--border-w) solid var(--ink);
    box-shadow: 6px 6px 0 var(--lime);
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 760px) {
    .topbar-inner { padding: 14px 20px; gap: 12px; }
    .topnav { display: none; }
    section { padding: 56px 20px; }
    .hero { padding: 56px 20px 40px; }
    .billboard { text-shadow: 4px 4px 0 var(--lime), 8px 8px 0 var(--pink); }
    .hero-form { flex-direction: column; }
    .card-grid { grid-template-columns: 1fr; }
    .big-list-item { flex-wrap: wrap; gap: 14px; padding: 16px; }
    .big-num { font-size: 3rem; min-width: 64px; }
    .vote-btn { width: 48px; height: 48px; }
    .create-card { padding: 28px 20px; }
    .sticker-pink, .sticker-blue, .sticker-star { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
}
