/* Memetic Studios: a quiet index page. The studio stays neutral;
   each project brings its own colour. */

/* Font: served from this site (dashboard/public/fonts, SIL Open Font License). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }


:root {
    --paper: #e8e6ef;
    --ink: #17141f;
    --muted: #5f5a6e;
    --line: rgba(23, 20, 31, 0.16);
    --face: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --gutter: clamp(18px, 5vw, 72px);
    color-scheme: light;
}

* { box-sizing: border-box; }

/* Elements hidden from JS must stay hidden even when a class sets display. */
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 18px/1.55 var(--face);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.top {
    display: flex; align-items: center; gap: 10px;
    padding: 22px var(--gutter);
    font-weight: 600;
}

/* A small mark built from the project colours, so it grows with the studio. */
.top picture { display: block; line-height: 0; }
.mark { display: block; width: 30px; height: 30px; }

.intro { padding: clamp(48px, 10vw, 140px) var(--gutter) clamp(40px, 7vw, 96px); }

.intro h1 {
    margin: 0;
    font: 800 clamp(52px, 10vw, 156px)/0.9 var(--face);
    font-variation-settings: "opsz" 96;
    letter-spacing: -0.035em;
    max-width: 9ch;
}

.intro p {
    margin: 32px 0 0;
    max-width: 46ch;
    font-size: clamp(19px, 1.8vw, 23px);
    color: var(--muted);
}

.projects { padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }

.projects h2 {
    margin: 0 0 6px;
    font: 600 16px/1.4 var(--face);
    color: var(--muted);
}

.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }

.project { border-bottom: 1px solid var(--line); }

.project a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1.1fr) auto;
    gap: clamp(14px, 3vw, 40px);
    align-items: center;
    padding: clamp(20px, 3vw, 34px) 0;
    text-decoration: none;
}

.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--muted); }

.project .name { display: flex; flex-direction: column; min-width: 0; }
.project .name b {
    font: 800 clamp(36px, 5.5vw, 76px)/0.95 var(--face);
    letter-spacing: -0.03em;
}
.project .name span { color: var(--muted); font-size: 16px; margin-top: 6px; }

.project .about { color: var(--ink); max-width: 44ch; }
.project .about small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }

.project .visit {
    font-weight: 600; white-space: nowrap;
    padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
}
.project a:hover .visit, .project a:focus-visible .visit { background: var(--ink); color: var(--paper); }

.project.soon { color: var(--muted); padding: 24px 0 24px calc(18px + clamp(14px, 3vw, 40px)); }

.bottom a { color: var(--muted); text-underline-offset: 3px; }
.bottom {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 24px var(--gutter) 36px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 15px;
}

@media (max-width: 760px) {
    .project a { grid-template-columns: 14px minmax(0, 1fr); row-gap: 14px; }
    .swatch { width: 14px; height: 14px; align-self: start; margin-top: 12px; }
    .project .about, .project .visit { grid-column: 2; justify-self: start; }
    .project.soon { padding-left: calc(14px + clamp(14px, 3vw, 40px)); }
}
