.front {
    --front-ink: #1b201c;
    --front-paper: #f8f7f0;
    --front-lime: #d6eb83;
    --front-line: #d8d9cf;
    --front-mono: 'JetBrains Mono', monospace;
    color: var(--front-ink);
}

.front-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .97fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1rem, 2.1vw, 1.8rem);
    border-radius: 1.4rem;
    background: var(--front-ink);
    color: var(--front-paper);
}

.front-lead {
    align-self: center;
    min-width: 0;
    padding: clamp(1rem, 3vw, 2.75rem);
}

.front-index, .front-visual-top, .front-visual figcaption {
    font: 500 .69rem/1.5 var(--front-mono);
    letter-spacing: .11em;
    text-transform: uppercase;
}

.front-index { display: flex; align-items: center; gap: .7rem; }
.front-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--front-lime); flex: none; }
.front-lead .front-index { color: var(--front-lime); }

.front h1 {
    margin: clamp(1.25rem, 2.5vw, 2rem) 0 1.5rem;
    font-size: clamp(3.65rem, 8vw, 7.7rem);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.055em;
    word-spacing: .04em;
    overflow-wrap: anywhere;
}

.front h1 span, .front h1 em { display: block; }
.front h1 em { color: var(--front-lime); font-style: normal; }
.front-intro { max-width: 32ch; color: #d6d8ce; font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.62; white-space: pre-line; }
.front-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.front-actions:not(:has(> :not(.site-hidden))) { display: none; }

.front-button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    min-height: 3.1rem;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    font-size: .88rem;
    font-weight: 700;
    text-align: left;
    transition: background-color .2s, color .2s, border-color .2s;
}

.front-primary { background: var(--front-lime); color: var(--front-ink); }
.front-primary:hover { background: #e8f5ad; }
.front-secondary { border-color: #777e71; color: var(--front-paper); }
.front-secondary:hover, .front-dark { background: var(--front-ink); color: var(--front-paper); }
.front-secondary:hover { border-color: var(--front-paper); }
.front-dark:hover { background: #3a4437; }
.front a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.front-primary:focus-visible { outline-color: var(--front-lime) !important; }

.front-visual {
    position: relative;
    display: grid;
    isolation: isolate;
    place-items: center;
    min-width: 0;
    min-height: 23rem;
    overflow: hidden;
    border-radius: .7rem;
    margin: 0;
    background-color: #cada86;
    background-image: linear-gradient(#20291824 1px, transparent 1px), linear-gradient(90deg, #20291824 1px, transparent 1px), radial-gradient(ellipse at 45% 34%, #ebf4bc, transparent 72%);
    background-size: 2rem 2rem, 2rem 2rem, 100% 100%;
    background-position: center;
    color: #282e21;
}

.front-visual img { display: block; width: min(100%, 33rem); height: auto; }
.front-visual-top, .front-visual figcaption {
    position: absolute;
    inset-inline: clamp(.8rem, 2vw, 1.35rem);
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}

.front-visual-top { top: 1rem; }
.front-visual figcaption { bottom: 1rem; }
.front-collection { margin: clamp(3.5rem, 7vw, 6rem) 0; }
.front-section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.front-section-head .front-index, .front-project .front-index { color: #46503e; }
.front-section-head h2, .front-project h2 { margin: .4rem 0 0; font-size: clamp(2rem, 4.4vw, 3.65rem); line-height: 1.06; letter-spacing: -.045em; word-spacing: .025em; font-weight: 800; overflow-wrap: anywhere; }
.front-text-button { padding: .55rem 0; border-bottom: 1px solid currentColor; font-size: .88rem; font-weight: 700; }
.front-text-button:hover { color: #49602e; }
.front-text-button > span + span { margin-left: .35rem; }
.front-collections { display: grid; grid-template-columns: 1.2fr 1fr .85fr; gap: clamp(.75rem, 1.65vw, 1.4rem); }
.front-collections:not(:has(> :not(.site-hidden))) { display: none; }
.front-category { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--front-line); border-radius: .8rem; background: var(--front-paper); text-align: left; }
.front-tile { position: relative; display: grid; overflow: hidden; place-items: center; height: clamp(9.5rem, 20vw, 16rem); }
.front-tile-form { background: #e4e6d5; color: #475442; }
.front-tile-bowl { background: #e7ded1; color: #6a4e3f; }
.front-tile-poster { background: #dadfdf; color: #415359; }
.front-tile svg { width: 62%; height: 72%; }
.front-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform .35s, opacity .25s; }
.front-photo-ready img { opacity: 1; }
.front-category:hover img { transform: scale(1.045); }
.front-category-name { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1rem; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 800; }
.front-folder-label { overflow-wrap: anywhere; }
.front-category-arrow { display: grid; place-items: center; flex: 0 0 2.1rem; height: 2.1rem; border: 1px solid var(--front-line); border-radius: 50%; font-size: .95rem; transition: background-color .2s, border-color .2s; }
.front-category:hover .front-category-arrow { background: var(--front-lime); border-color: var(--front-lime); }

.front-project { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid #cdd5b2; border-radius: .9rem; background: #e8edda; }
.front-project h2 { font-size: clamp(1.65rem, 3.4vw, 2.65rem); }
.front-project h2 + p { margin-top: .65rem; color: #46503e; white-space: pre-line; }

@media (max-width: 767px) {
    .front-hero { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
    .front-lead { padding: 1.15rem .65rem .25rem; }
    .front h1 { font-size: clamp(3.55rem, 12.8vw, 6rem); }
    .front-visual { min-height: 0; }
    .front-visual img { width: min(100%, 27rem); }
}

@media (max-width: 560px) {
    .front-actions .front-button { gap: .5rem; padding-inline: .7rem; font-size: .82rem; }
    .front-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-category:first-child { grid-column: 1 / -1; }
    .front-category:first-child .front-tile { height: 12rem; }
    .front-category-name { padding-inline: .65rem; }
    .front-visual-top, .front-visual figcaption { font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
    .front *, .front *::before, .front *::after { transition: none !important; }
    .front-category:hover img { transform: none; }
}
