@import url("https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap");

:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-2: #ffffff;
    --ink: #111111;
    --accent: #111111;
    --accent-2: #111111;
    --card: #ffffff;
    --border: #111111;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Cutive Mono", "Courier New", "Courier", monospace;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    font-size: 15px;
    user-select: none;
}

body.dark {
    --bg: #000000;
    --bg-2: #000000;
    --ink: #ffffff;
    --accent: #ffffff;
    --accent-2: #ffffff;
    --card: #000000;
    --border: #ffffff;
    --lightbox-bg: rgba(0, 0, 0, 0.9);
}

img,
button,
a {
    user-select: none;
    -webkit-user-drag: none;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

.hero {
    display: grid;
    gap: 32px;
    padding: 56px 8vw 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero__content h1 {
    font-size: 1rem;
    margin: 12px 0 16px;
    font-family: "Syne Mono", "Courier New", "Courier", monospace;
    letter-spacing: 0;
}

.hero__content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 520px;
}

.hero__tag {
    display: inline-flex;
    background: var(--ink);
    color: var(--bg);
    padding: 6px 12px;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 1rem;
}

.hero__actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    border-radius: 0;
    padding: 10px 18px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    transition: none;
    box-shadow: none;
}

.btn:hover {
    transform: none;
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--ink);
}

.hero__panel {
    background: var(--card);
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border);
}

.hero__panel ol {
    padding-left: 18px;
    line-height: 1.6;
}

.panel__title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 1rem;
    color: var(--accent-2);
    margin-bottom: 12px;
}

main {
    padding: 0 8vw 56px;
}

.section {
    margin-top: 40px;
}

.section__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section__title h2 {
    margin: 0;
    font-size: 1rem;
}

.section__title span {
    font-weight: 600;
    color: var(--ink);
}

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

.gallery-card {
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border-radius: 0;
    overflow: hidden;
    transition: none;
    border: 1px solid var(--border);
}

.gallery-card:hover {
    transform: none;
    box-shadow: none;
}

.gallery-card__image {
    height: 160px;
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery-card__placeholder {
    font-weight: 600;
    color: var(--ink);
}

.gallery-card__meta {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-card__meta h3 {
    margin: 0;
    font-size: 1rem;
}

.gallery-card__meta span {
    font-size: 1rem;
    color: var(--ink);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    min-height: 170px;
}

.photo {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: opacity 0.5s ease;
}

.photo-page {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    opacity: 1;
    transition: opacity 1.2s ease-in-out;
}

.photo-page.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.photo img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
    filter: grayscale(100%);
}

.photo:hover img {
    transform: none;
}

.gallery-section:hover .photo img {
    filter: grayscale(0%);
}

.empty {
    padding: 18px;
    border-radius: 0;
    background: var(--bg);
    border: 1px dashed var(--border);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 20px;
    cursor: default;
}

.lightbox.open {
    display: flex;
    cursor: none;
}

.lightbox.open * {
    cursor: none;
}


.lightbox__image {
    width: calc(100vw - 120px);
    height: calc(100vh - 120px);
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

.lightbox__close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2rem;
    border-radius: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: #ffffff;
    mix-blend-mode: difference;
    display: none;
}

.lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: #ffffff;
    mix-blend-mode: difference;
    display: none;
}

.fake-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 10000;
    display: none;
}

.theme-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 1rem;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    z-index: 50;
    width: 28px;
    height: 28px;
}

.theme-toggle__icon {
    width: 24px;
    height: 24px;
    display: block;
}

.theme-toggle__icon--dark {
    display: none;
}

body.dark .theme-toggle__icon--dark {
    display: block;
}

body.dark .theme-toggle__icon--light {
    display: none;
}

.lightbox__nav--prev {
    left: 24px;
}

.lightbox__nav--next {
    right: 24px;
}

code {
    background: var(--bg-2);
    padding: 2px 6px;
    border-radius: 0;
    font-size: 1rem;
}

button,
a,
span,
li,
p {
    font-size: 1rem;
}

@media (max-width: 700px) {
    .hero {
        padding: 48px 6vw 28px;
    }

    main {
        padding: 0 6vw 48px;
    }

    .photo img {
        height: 150px;
    }
}

@media (max-width: 900px) {
    .photo-grid,
    .photo-page {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .photo-grid,
    .photo-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
