/* 22 Digital Art Opportunities — theme v2.0.9 */

:root {
    --ink: #000000;
    --paper: #ffffff;
    --muted: #4d4d4d;
    --rule: #000000;
    --rule-soft: #d9d9d9;
    --soft: #f3f3f3;
    --accent: #ff4f00;
    --accent-dark: #e04500;
    --radius: 6px;
    --wrap: 1360px;
    --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; }
img, video, canvas { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius); border: 2px solid transparent; font-family: var(--font); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 18px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #262626; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* Header */
.site-header { background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.wrap.header-row { border-bottom: 0; position: relative; }
.wrap.header-row::after { content: ""; position: absolute; left: 48px; right: 48px; bottom: 0; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-num { font-size: 72px; font-weight: 900; line-height: 0.82; letter-spacing: -0.05em; color: var(--accent); }
.brand-name { font-size: 28px; font-weight: 700; line-height: 0.98; letter-spacing: -0.02em; }
.header-actions { display: flex; align-items: center; gap: 36px; }
.header-link { font-size: 17px; font-weight: 500; text-decoration: none; }
.header-search { background: none; border: 0; padding: 10px 0; font-family: var(--font); color: var(--ink); cursor: pointer; }

.section-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.section-row::after { content: ""; position: absolute; left: 48px; right: 48px; bottom: 0; border-bottom: 1px solid var(--rule); }
.section-links { display: flex; gap: 6px 40px; overflow-x: auto; scrollbar-width: none; }
.section-links::-webkit-scrollbar { display: none; }
.section-links a, .section-gulf { flex-shrink: 0; padding: 14px 0 12px; border-bottom: 3px solid transparent; font-size: 17px; text-decoration: none; white-space: nowrap; }
.section-links a.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.section-links a:hover { border-bottom-color: var(--rule-soft); }
.section-gulf { font-weight: 600; }
.section-gulf:hover { color: var(--accent); }

/* Hero */
.hero { padding: 52px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.hero-title { margin: 0; font-size: clamp(46px, 6vw, 92px); font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; max-width: 13ch; }
.hero-sub { margin: 26px 0 0; font-size: 26px; line-height: 1.3; max-width: 30ch; }
.hero-by { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-price { font-size: 17px; }
a.hero-price { font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
a.hero-price:hover { color: var(--accent); }
.cover { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--accent); overflow: hidden; text-decoration: none; color: var(--ink); }
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-label { position: absolute; left: 18px; top: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.cover-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: 200px; font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.cover-date { position: absolute; right: 18px; bottom: 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Blocks */
.block { padding: 64px 0 0; }
.block-tight { padding-top: 20px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 22px; margin-bottom: 26px; }
.block-head h1, .block-head h2 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
.block-meta { margin: 0; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.block-link { font-weight: 600; text-decoration-thickness: 2px; }
.events .block-head h2, .news .block-head h2 { font-size: clamp(26px, 2.4vw, 34px); }
.empty, .cards-loading { margin: 0; color: var(--muted); }

/* Opportunity cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opp { border: 1px solid var(--rule-soft); background: var(--paper); display: flex; flex-direction: column; }
.opp[hidden] { display: none; }
.opp-art { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--rule-soft); }
.opp-art, .cards-two .opp-art, .is-issue .opp-art { aspect-ratio: 8 / 3; }
.opp.is-lead .opp-art, .cards-two .opp-art { aspect-ratio: 16 / 9; }
.opp-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.opp-body { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.opp-type { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); display: flex; gap: 12px; flex-wrap: wrap; }
.opp-due { margin-left: auto; color: var(--ink); border: 1.5px solid var(--ink); padding: 1px 8px; letter-spacing: 0.04em; }
.opp-due.is-soon { background: var(--accent); border-color: var(--accent); color: #fff; }
.opp h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.cards-two .opp h3, .is-issue .opp h3 { font-size: 32px; }
.opp-meta { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.opp-text { margin: 0; font-size: 16px; line-height: 1.5; }
.opp-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.opp-foot a { text-decoration: none; font-weight: 600; }
.opp-foot a:hover { color: var(--accent); }

/* Teaser and paywall */
.teaser, .paywall { margin-top: 26px; border-top: 1px solid var(--rule); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.teaser[hidden] { display: none; }
.teaser-text, .paywall-title { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.paywall-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.paywall-login { font-size: 16px; }

/* Events and news */
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.event { border-top: 1px solid var(--rule-soft); padding-top: 14px; }
.event-when { margin: 0 0 8px; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.event-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.event-title a, .news-title a { text-decoration: none; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.news-item { display: flex; flex-direction: column; gap: 8px; }
.news-item.is-lead { grid-row: span 2; }
.news-cover { position: relative; display: block; aspect-ratio: 8 / 3; overflow: hidden; border: 1px solid var(--rule-soft); }
.news-item.is-lead .news-cover { aspect-ratio: 16 / 7; }
.news-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-kicker { margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.news-date { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.news-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.22; }
.news-item.is-lead .news-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.news-text { margin: 8px 0 0; font-size: 16px; }
.tag-text { max-width: 40em; color: var(--muted); }

/* Gulf 22 */
.gulf { position: relative; display: block; min-height: 380px; background: var(--ink); color: var(--paper); overflow: hidden; text-decoration: none; }
.gulf canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.gulf-copy { position: relative; padding: 48px; max-width: 640px; }
.gulf-label { margin: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.gulf-title { margin: 10px 0 0; font-size: clamp(56px, 7vw, 104px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; }
.gulf-text { margin: 18px 0 26px; font-size: 20px; color: #e6e6e6; }

/* Organizations band */
.org-band { border-top: 1px solid var(--rule); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.org-title { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; max-width: 22ch; }
.org-text { margin: 10px 0 0; }

/* Footer */
.site-footer { margin-top: 96px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 40px; font-size: 16px; border-top: 1px solid var(--rule); }
.wrap.footer-row { border-top: 0; position: relative; }
.wrap.footer-row::before { content: ""; position: absolute; left: 48px; right: 48px; top: 0; border-top: 1px solid var(--rule); }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Articles */
.article-head { padding-top: 48px; padding-bottom: 28px; }
.article-date { margin: 0 0 10px; color: var(--muted); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.article-title { margin: 0; font-size: clamp(40px, 5vw, 76px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; max-width: 20ch; }
.article-dek { margin: 18px 0 0; font-size: 22px; line-height: 1.45; max-width: 36em; }
.gh-content { font-size: 19px; line-height: 1.65; }
.gh-content > * { max-width: 760px; }
.gh-content > .kg-width-wide, .gh-content.is-issue > * { max-width: none; }
.gh-content h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 48px 0 16px; }
.gh-content h3 { font-size: 25px; font-weight: 800; line-height: 1.2; margin: 32px 0 10px; }
.gh-content hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 32px 0; }
.gh-content figure { margin: 32px 0; }
.gh-content blockquote { margin: 28px 0; padding-left: 20px; border-left: 4px solid var(--ink); font-size: 22px; }
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin-left: calc(50% - 50vw); transform: translateX(calc(50vw - 50%)); }
.kg-width-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { width: 100%; }
.kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Issue layout */
.is-issue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.is-issue > :not(.opp) { grid-column: 1 / -1; }
.is-issue > h2 { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 28px; }
.is-issue > h2:first-child { margin-top: 0; }
.is-issue > .section-note { margin: -10px 0 4px; font-size: 16px; color: var(--muted); max-width: 70ch; }
.issue-byline { margin: 14px 0 0; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.issue-offer { margin: 6px 0 0; font-size: 17px; }
.issue-offer a { font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.section-source { margin: 0 auto 10px; font-size: 14px; color: var(--muted); }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--rule-soft); }
.filters[hidden] { display: none; }
.tabs { display: flex; gap: 6px 34px; flex-wrap: wrap; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 0 9px; font-family: var(--font); font-size: 17px; color: var(--ink); cursor: pointer; }
.tab[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.type-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.filter-empty { color: var(--muted); }

/* Organizations page */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.plans-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { border: 1px solid var(--ink); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.plan-featured { background: var(--ink); color: var(--paper); }
.plan-name { margin: 0; font-size: 22px; font-weight: 800; }
.plan-price { margin: 0; font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.plan-list { margin: 0 0 8px; padding-left: 20px; flex-grow: 1; }
.plan-list li { margin-bottom: 6px; }
.event-plan { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.event-plan > div { border: 1px solid var(--rule-soft); padding: 22px 26px; flex-grow: 1; }
.event-plan p { margin: 6px 0 0; }
.vat-note { color: var(--muted); font-size: 16px; margin-top: 16px; margin-bottom: 40px; }

/* Lists */
.post-list { display: flex; flex-direction: column; }
.post-row { padding: 22px 0; border-bottom: 1px solid var(--rule-soft); }
.post-row-date { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.post-row-title { margin: 4px 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.post-row-title a { text-decoration: none; }
.post-row-text { margin: 0; }
.pagination { display: flex; gap: 20px; align-items: center; padding: 28px 0; }
.error { text-align: center; padding: 60px 0; }
.error h1 { font-size: 120px; font-weight: 900; margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
    .cover-num { font-size: 160px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .header-actions { gap: 22px; }
}

@media (max-width: 760px) {
    body { font-size: 17px; }
    .wrap { padding: 0 20px; }
    .wrap.header-row::after, .section-row::after, .wrap.footer-row::before { left: 20px; right: 20px; }
    .brand-num { font-size: 50px; }
    .brand-name { font-size: 18px; }
    .header-actions { gap: 14px; }
    .header-actions .header-link[href*="/about/"], .header-search { display: none; }
    .section-row { gap: 16px; }
    .section-links { gap: 24px; }
    .hero { padding: 30px 0 24px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-sub { font-size: 20px; }
    .cover { max-width: 420px; }
    .cards, .cards-two, .is-issue, .event-grid, .news-grid, .plans-two { grid-template-columns: minmax(0, 1fr); }
    .cards-two .opp h3, .is-issue .opp h3 { font-size: 26px; }
    .block { padding-top: 44px; }
    .gulf-copy { padding: 28px 22px; }
    .site-footer { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* v2.0.7: home pair, locked cards, tag grid, news hero */
.home-pair { align-items: stretch; }
.home-free { display: contents; }
.news-card .news-title, .tag-grid .opp h3 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.tag-grid .opp h3 a { color: inherit; text-decoration: none; }
.news-card .news-title a { color: inherit; text-decoration: none; }
.news-card .opp-foot a { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.tag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tag-grid .opp-art { aspect-ratio: 16 / 9; }
.news-hero { margin-top: 10px; margin-bottom: 28px; aspect-ratio: 16 / 6; position: relative; overflow: hidden; border: 1px solid var(--rule-soft); }
.news-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.article .news-kicker { margin: 0 0 10px; }
.locked { grid-column: 1 / -1; position: relative; margin-top: 8px; }
.locked-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; filter: blur(7px); opacity: 0.75; pointer-events: none; user-select: none; }
.opp-ghost { border: 1px solid var(--rule-soft); background: var(--bg, #fff); }
.opp-ghost .opp-art { aspect-ratio: 8 / 3; position: relative; overflow: hidden; }
.opp-ghost canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ghost-lines { height: 120px; margin: 18px; background: linear-gradient(var(--ink) 0 0) 0 0 / 40% 18px no-repeat, linear-gradient(#bbb 0 0) 0 38px / 85% 10px no-repeat, linear-gradient(#bbb 0 0) 0 58px / 70% 10px no-repeat, linear-gradient(#bbb 0 0) 0 78px / 60% 10px no-repeat; }
.locked .paywall { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92%); margin: 0; background: #fff; border: 2px solid var(--ink); padding: 28px; flex-direction: column; align-items: flex-start; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
@media (max-width: 760px) {
    .tag-grid, .locked-cards { grid-template-columns: 1fr; }
}

.tag-grid .locked { grid-column: 1 / -1; }
@media (max-width: 760px) { .tag-grid .opp h3 { font-size: 26px; } }
