/* TAG design system: editorial catalogue (Index) with two borrowed marks:
   the personal TAG as a marker signature, and the museum plaque for artwork labels. */
:root {
    --bg: #F4F5F7;
    --surface: #FFFFFF;
    --ink: #101319;
    --muted: #5C6473;
    --line: #D8DCE4;
    --accent: #2B3FF0;
    --accent-ink: #FFFFFF;
    --soft: #E7EAF8;
    --ok: #0F8A5F;
    --warn: #B4531C;
    --sticker: #FF5C39;
    --plaque: #E9ECF1;
    --plaque-ink: #101319;
    --display: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'DM Mono', ui-monospace, Consolas, monospace;
    --marker: 'Permanent Marker', 'Marker Felt', cursive;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0D0F14; --surface: #151922; --ink: #EEF0F5; --muted: #9AA2B2; --line: #272C38;
        --accent: #8794FF; --accent-ink: #0D0F14; --soft: #1B2040; --ok: #4FD1A0; --warn: #F0A06A;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0D0F14; --surface: #151922; --ink: #EEF0F5; --muted: #9AA2B2; --line: #272C38;
    --accent: #8794FF; --accent-ink: #0D0F14; --soft: #1B2040; --ok: #4FD1A0; --warn: #F0A06A;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
.label, .eyebrow { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo svg { display: block; height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.main-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; background: none; border: 1.5px solid var(--ink); color: var(--ink); padding: 7px 12px; border-radius: 999px; cursor: pointer; }

.btn { font-family: var(--display); font-weight: 600; font-size: .95rem; display: inline-block; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid, .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-solid:hover, .btn-accent:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.1); }
.btn-outline { border-color: var(--line); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero and claim field */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); line-height: .92; font-weight: 700; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 24px 0 28px; }
.claim { display: flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); max-width: 560px; overflow: hidden; }
.claim label { font-family: var(--mono); font-size: .85rem; color: var(--muted); padding: 0 4px 0 20px; display: flex; align-items: center; white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--marker); font-size: 1.35rem; color: var(--ink); padding: 10px 8px; outline: none; }
.claim button { border: 0; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 0 24px; cursor: pointer; }
.claim:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { font-family: var(--mono); font-size: .8rem; margin: 10px 0 0 20px; min-height: 1.3em; color: var(--muted); }
.hint.ok { color: var(--ok); }
.hint.no { color: var(--warn); }

.founding { margin-top: 30px; max-width: 560px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 10px 0 8px; }
.bar i { display: block; height: 100%; background: var(--accent); min-width: 3px; }
.founding .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.founding .row b { color: var(--ink); font-weight: 500; }

.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack figure { margin: 0; }
.stack figure:first-child { grid-row: span 2; }
.stack .art { aspect-ratio: 1/1; }
.stack figure:first-child .art { aspect-ratio: 3/4.3; }
.art { background: var(--soft); overflow: hidden; position: relative; }
.art img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; }

/* Sections */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.section-head p { color: var(--muted); max-width: 44ch; margin: 0; }

/* The wall: priced work with the artist's TAG as signature */
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 20px; align-items: start; }
.piece { min-width: 0; position: relative; }
.piece.s5 { grid-column: span 5; } .piece.s4 { grid-column: span 4; } .piece.s3 { grid-column: span 3; }
.piece .art { aspect-ratio: 4/5; }
.piece.wide .art { aspect-ratio: 5/4; }
.piece h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin: 12px 0 2px; }
.piece .meta { font-size: .85rem; color: var(--muted); }
.sticker { position: absolute; right: -10px; top: -10px; z-index: 2; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 999px; background: var(--sticker); color: #101319; font-family: var(--display); font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; transform: rotate(10deg); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.signature { font-family: var(--marker); color: var(--accent); font-size: 1.05rem; }
.signature:hover { text-decoration: underline; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.step { padding: 28px 26px; border-right: 1px solid var(--line); background: var(--surface); }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 9vw, 7rem); line-height: .95; letter-spacing: -.04em; }
.big small { font-family: var(--mono); font-size: .2em; font-weight: 400; color: var(--muted); letter-spacing: 0; display: block; margin-top: 10px; }
.perks { border-top: 1.5px solid var(--ink); }
.perk { display: flex; justify-content: space-between; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.perk span:last-child { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: right; }

/* Directory */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.artist-card { display: block; }
.artist-card .cover { aspect-ratio: 4/3; background: var(--soft); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: hidden; }
.artist-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.artist-card .cover.single { display: block; }
.artist-card .cover .placeholder { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.artist-card .info { padding-top: 12px; }
.artist-card .category-tag { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.artist-card h3 { font-size: 1.1rem; margin: 4px 0 2px; }
.artist-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.artist-card:hover h3 { color: var(--accent); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-bar a { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.filter-bar a.active, .filter-bar a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--line); font-family: var(--mono); font-size: .88rem; }
.chip { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Closing band */
.cta-band { padding-block: 80px; text-align: center; border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-band p { color: var(--muted); max-width: 46ch; margin: 18px auto 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Forms */
.auth-wrap { max-width: 460px; margin: 56px auto; padding: 36px; background: var(--surface); border: 1px solid var(--line); }
.auth-wrap h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.founder-note { font-family: var(--mono); font-size: .8rem; background: var(--soft); padding: 10px 12px; margin: 0 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.handle-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 4px; background: var(--bg); padding-left: 12px; }
.handle-input:focus-within { border-color: var(--accent); }
.handle-input input { border: 0; background: transparent; font-family: var(--marker); font-size: 1.25rem; padding: 8px 10px 8px 4px; }
.handle-input input:focus { border: 0; }
.field .hint { margin: 8px 0 0; }
.auth-switch { text-align: center; margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 600; }
.alert { padding: 12px 14px; font-size: .9rem; margin-bottom: 20px; border: 1px solid; }
.alert-error { color: var(--warn); border-color: var(--warn); }
.alert-success { color: var(--ok); border-color: var(--ok); }

/* Dashboard */
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.dashboard-head h1 { font-size: 2.2rem; }
.dashboard-head p { color: var(--muted); margin: 4px 0 0; }
.your-tag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1.5px solid var(--ink); background: var(--surface); padding: 14px 18px; margin-bottom: 28px; }
.your-tag .signature { font-size: 1.5rem; }
.your-tag .mono { color: var(--muted); font-size: .85rem; }
.your-tag .spacer { flex: 1; }
.card-panel { background: var(--surface); border: 1px solid var(--line); padding: 30px; margin-bottom: 28px; }
.card-panel h2 { font-size: 1.4rem; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 26px; }
.upload-slot { border: 1.5px dashed var(--line); background: var(--bg); position: relative; }
.upload-slot img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.slot-body { padding: 10px; display: grid; gap: 8px; }
.slot-body input[type="file"] { font-size: .76rem; width: 100%; color: var(--muted); }
.slot-body input[type="text"], .slot-body input[type="number"] { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: .85rem; }
.remove-link { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }

/* Public TAG page */
.profile-hero { padding: 64px 0 36px; }
.profile-hero .category-tag { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.profile-hero .tag-name { font-family: var(--marker); font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; margin: 10px 0 6px; color: var(--ink); }
.profile-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
.profile-hero .tagline { color: var(--muted); font-size: 1.1rem; margin: 6px 0 0; }
.profile-hero .bio { max-width: 62ch; color: var(--muted); margin: 18px 0 0; }
.profile-hero .facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; padding-bottom: 72px; }
.work-card { position: relative; }
.work-card .art { aspect-ratio: 1/1; }
.plaque { background: var(--plaque); color: var(--plaque-ink); padding: 11px 13px; margin: 12px 0 0 auto; width: 88%; font-size: .8rem; line-height: 1.4; }
.plaque b { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; }
.plaque .row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-family: var(--mono); font-size: .76rem; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
    .main-nav.open { display: flex; }
    .hero { padding: 44px 0 36px; }
    .hero-grid, .founders { grid-template-columns: 1fr; gap: 36px; }
    .steps { grid-template-columns: 1fr; }
    .step { border-right: 0; border-bottom: 1px solid var(--line); }
    .wall { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
    .piece.s5, .piece.s4, .piece.s3 { grid-column: span 1; }
    .form-grid { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-wrap { padding: 26px 20px; margin: 28px auto; }
}

/* Briefs */
.board { border-top: 1.5px solid var(--ink); }
.job { display: grid; grid-template-columns: 1fr 140px 170px 110px; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.job:hover { background: var(--surface); }
.job h3 { font-size: 1.15rem; font-weight: 600; }
.job .by { font-size: .85rem; color: var(--muted); }
.job .chip { justify-self: start; }
.job .pay { font-family: var(--mono); font-size: .92rem; }
.job .when { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: right; }
.brief-head { padding: 56px 0 24px; }
.brief-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; margin: 14px 0 18px; }
.brief-head .facts { display: flex; gap: 10px; flex-wrap: wrap; }
.brief-body { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; margin: 12px 0 36px; }
.brief-text { font-size: 1.05rem; max-width: 62ch; }
.brief-meta { margin: 0; width: 100%; }
.application { border-top: 1px solid var(--line); padding: 16px 0; }
.application-head { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.application p { margin: 8px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.board-teaser .job { grid-template-columns: 1fr 140px 170px; }
@media (max-width: 860px) {
    .job { grid-template-columns: 1fr auto; row-gap: 6px; }
    .job .chip, .job .when { display: none; }
    .brief-body { grid-template-columns: 1fr; }
    .board-teaser .job { grid-template-columns: 1fr auto; }
}

/* Buying */
.buy-form { margin-top: 12px; width: 88%; margin-left: auto; }
