/* 22 Digital Art Opportunities — theme styles */

:root {
    --ink: #000000;
    --paper: #ffffff;
    --muted: #4a4a4a;
    --rule: #d4d4d4;
    --soft: #f2f2f2;
    --accent: #ff4f00;
    --accent-dark: #e64600;
    --soon: #b42318;
    --radius: 10px;
    --wrap: 1312px;
    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::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 { max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.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;
    min-height: 44px; padding: 10px 20px;
    border-radius: var(--radius); border: 2px solid transparent;
    font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.2;
    text-decoration: none; cursor: pointer; text-align: center;
}
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #333; color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-num { font-size: 52px; font-weight: 900; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-link { font-weight: 600; text-decoration: none; }
.header-search { background: none; border: 0; padding: 10px 0; font-family: var(--font); font-size: 18px; color: var(--ink); cursor: pointer; }

.section-nav { border-top: 1px solid var(--rule); }
.section-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.section-row::-webkit-scrollbar { display: none; }
.section-row a { flex-shrink: 0; padding: 10px 14px; border-radius: var(--radius); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-row a:hover { background: var(--soft); color: var(--ink); }
.section-row a:first-child { padding-left: 0; }
.section-row a:first-child:hover { background: none; text-decoration: underline; }
.section-row a.section-gulf { margin-left: auto; padding-left: 20px; padding-right: 20px; background: var(--accent); color: var(--ink); font-weight: 800; }
.section-row a.section-gulf:hover { background: var(--accent-dark); }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: end; }
.hero-title { margin: 0; font-size: clamp(40px, 4.8vw, 68px); font-weight: 850; font-stretch: 112%; line-height: 0.98; letter-spacing: -0.035em; max-width: 18ch; }
.hero-sub { margin: 22px 0 0; font-size: 22px; line-height: 1.45; color: #1f1f1f; max-width: 34em; }
.subscribe-box { border: 2px solid var(--ink); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.subscribe-lead { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.subscribe-price { margin: 0; font-size: 44px; font-weight: 850; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; }
.subscribe-note { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }

/* Blocks */
.block { padding: 72px 0 0; }
.block-tight { padding-top: 24px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 26px; }
.block-head h1, .block-head h2 { margin: 0; font-size: clamp(32px, 3.4vw, 46px); font-weight: 850; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1.05; }
.block-meta { margin: 0; font-size: 17px; color: var(--muted); }
.block-link { font-weight: 700; }

/* Opportunity cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cards-loading, .empty { margin: 0; color: var(--muted); }
.opp {
    border: 2px solid var(--ink); border-radius: 14px; padding: 22px;
    display: flex; flex-direction: column; gap: 12px; background: var(--paper);
}
.opp[hidden] { display: none; }
.opp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.tag-gulf { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.opp h3, .opp-title { margin: 0; font-size: 24px; font-weight: 750; line-height: 1.18; letter-spacing: -0.015em; }
.opp p { margin: 0; font-size: 17px; }
.opp .opp-org { color: var(--muted); }
.opp-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.opp-place { font-weight: 600; }
.opp-due { font-weight: 800; }
.opp-due.is-soon { color: var(--soon); }
.opp .kg-button-card { margin: 4px 0 0; justify-content: flex-start; }
.opp .kg-btn { min-height: 44px; border-radius: var(--radius); background: var(--ink) !important; color: var(--paper) !important; font-weight: 700; }

/* Lock panel */
.lock-panel { margin-top: 22px; border-radius: 14px; background: var(--soft); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lock-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.lock-text { margin: 6px 0 0; color: var(--muted); }
.lock-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Events */
.events .block-head { border-top-width: 1px; }
.events .block-head h2 { font-size: 26px; font-stretch: 100%; letter-spacing: -0.015em; }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.event { border-top: 4px solid var(--ink); padding-top: 16px; }
.event-when { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--muted); }
.event-title { margin: 0; font-size: 23px; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
.event-title a { text-decoration: none; }
.tag-text { max-width: 40em; color: var(--muted); }

/* Gulf 22 */
.gulf { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.gulf-title { margin: 0; font-size: clamp(56px, 7vw, 104px); font-weight: 900; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.045em; }
.gulf-text { margin: 18px 0 26px; font-size: 21px; color: #e6e6e6; max-width: 30em; }
.gulf-list { list-style: none; margin: 0; padding: 0; font-size: 22px; font-weight: 700; }
.gulf-list li { padding: 10px 0; border-bottom: 1px solid #3d3d3d; }

/* Organizations band */
.org-band { border: 2px solid var(--ink); border-radius: 18px; padding: 40px 48px; 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: 850; letter-spacing: -0.025em; line-height: 1.1; max-width: 22ch; }
.org-text { margin: 10px 0 0; color: #1f1f1f; }

/* Browse */
.browse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 2px solid var(--ink); padding-top: 28px; }
.browse-grid > div { display: flex; flex-direction: column; gap: 10px; }
.browse-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; }

/* Footer */
.site-footer { margin-top: 96px; border-top: 2px solid var(--ink); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 40px; font-size: 16px; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Articles */
.article-head { padding-top: 56px; padding-bottom: 28px; }
.article-date { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.article-title { margin: 0; font-size: clamp(38px, 5vw, 72px); font-weight: 850; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1.02; max-width: 20ch; }
.article-dek { margin: 18px 0 0; font-size: 22px; line-height: 1.45; color: #1f1f1f; 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: 850; 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); 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(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.is-issue > h2, .is-issue > p, .is-issue > .paywall, .is-issue > .issue-note, .is-issue > figure { grid-column: 1 / -1; }
.is-issue > h2 { margin: 36px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.is-issue > h2:first-child { margin-top: 0; }

.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.filters[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-weight: 700; margin-right: 6px; min-width: 52px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-empty { grid-column: 1 / -1; color: var(--muted); }

/* Paywall */
.paywall { border-radius: 16px; background: var(--ink); color: var(--paper); padding: 44px; margin: 28px 0 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.paywall-title { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 850; letter-spacing: -0.025em; line-height: 1.1; }
.paywall-text { margin: 0; max-width: 34em; color: #e6e6e6; }
.paywall-small { margin: 0; font-size: 16px; color: #e6e6e6; }
.paywall a:not(.btn) { color: var(--paper); }

/* Organizations page */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.plan { border: 2px solid var(--ink); border-radius: 16px; 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; font-stretch: 112%; 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: 1.5px solid var(--rule); border-radius: 16px; 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); }
.post-row-date { margin: 0; color: var(--muted); }
.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; font-stretch: 125%; margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
    .cards, .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .is-issue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .subscribe-box { max-width: 460px; }
    .gulf { grid-template-columns: minmax(0, 1fr); }
    .plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
    body { font-size: 17px; }
    .wrap { padding: 0 20px; }
    .header-row { padding-top: 14px; padding-bottom: 14px; }
    .brand-num { font-size: 40px; }
    .brand-name { font-size: 15px; max-width: 9em; line-height: 1.15; }
    .header-actions { gap: 14px; }
    .header-actions a.header-link[href*="for-organizations"] { display: none; }
    .hero { padding: 36px 0 28px; }
    .hero-sub { font-size: 18px; }
    .block { padding-top: 48px; }
    .cards, .event-grid, .is-issue, .browse-grid { grid-template-columns: minmax(0, 1fr); }
    .gulf, .org-band, .paywall { padding: 28px 22px; }
    .lock-panel { padding: 22px; }
    .lock-actions, .lock-actions .btn { width: 100%; }
    .site-footer { margin-top: 64px; }
}

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