/* Latinos in Tech Collective
   One stylesheet for every page. Palette and type come from the LiTC flyer:
   warm light grey, charcoal, and one heavy, tightly tracked grotesk. */

:root {
  --bg: #E3E3DF;        /* warm light grey */
  --ink: #2A2A2A;       /* charcoal */
  --soft: #EDEDEA;      /* raised panels */
  --grey: #5A5A57;      /* secondary text */
  --rule: #C6C6C1;      /* hairlines */
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.skip { position: absolute; left: -999px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; margin: 0; }
h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: 22px; }
h3 { font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
p { margin: 0 0 16px; max-width: 62ch; }
.intro { font-size: 1.2rem; color: var(--grey); max-width: 54ch; }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font: inherit; font-weight: 600;
  padding: 14px 22px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Logo tile, as on the flyer */
.tile { display: inline-grid; place-items: center; background: var(--ink); border-radius: 22%; flex: none; color: #F5F5F2; }
.tile svg { width: 100%; height: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1.5px solid var(--ink); padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand .tile { width: 34px; height: 34px; }
.nav-links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-links .btn { padding: 9px 16px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1.5px solid var(--ink);
    padding: 8px clamp(20px, 4vw, 48px) 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 1.2rem; border-bottom: 1px solid var(--rule); }
  .nav-links .btn { margin-top: 16px; }
}

/* Sections */
section { padding: clamp(72px, 10vw, 120px) 0; }
section + section, .page-head + section { border-top: 1.5px solid var(--ink); }
.dark { background: var(--ink); color: var(--bg); }
.dark .intro, .dark p { color: #CFCFCA; }
.dark .btn { border-color: var(--bg); color: var(--bg); }
.dark .btn-solid { background: var(--bg); color: var(--ink); }
.dark .btn-solid:hover { background: transparent; color: var(--bg); }
.dark .btn-line:hover { background: var(--bg); color: var(--ink); }

/* Inner page header */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(3.2rem, 9.5vw, 8.6rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.86; max-width: 12ch; margin-bottom: 28px; }
.page-head .intro { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink); max-width: 46ch; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Home ---------- */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.poster { display: grid; grid-template-columns: 1fr auto; gap: clamp(12px, 2vw, 28px); }
.hero h1 { font-size: clamp(4.2rem, 15.5vw, 15rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.84; margin-left: -0.04em; }
.side { writing-mode: vertical-rl; font-style: italic; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: clamp(.75rem, 1.1vw, .95rem); align-self: start; margin-top: 1rem; }
.hero-foot { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1.5px solid var(--ink); }
.hero-foot .tile { width: clamp(96px, 12vw, 150px); height: clamp(96px, 12vw, 150px); }
.hero-foot p { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; max-width: 32ch; margin-bottom: 20px; }
@media (max-width: 640px) { .side { display: none; } .hero-foot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .mark rect { transform-box: fill-box; }
  .mark .b1 { animation: drop .7s cubic-bezier(.2,.8,.2,1) both .15s; }
  .mark .b2 { animation: slideL .6s cubic-bezier(.2,.8,.2,1) both .5s; }
  .mark .b4 { animation: slideR .6s cubic-bezier(.2,.8,.2,1) both .7s; }
  .mark .b5 { animation: rise .7s cubic-bezier(.2,.8,.2,1) both .9s; }
  .mark .dot { animation: pop .45s cubic-bezier(.3,1.6,.5,1) both 1.35s; }
  @keyframes drop { from { transform: translateY(-140%); opacity: 0; } }
  @keyframes slideL { from { transform: translateX(-120%); opacity: 0; } }
  @keyframes slideR { from { transform: translateX(120%); opacity: 0; } }
  @keyframes rise { from { transform: translateY(120%); opacity: 0; } }
  @keyframes pop { from { transform: scale(0); } }
}

.stat { font-weight: 900; font-size: clamp(6rem, 20vw, 16rem); letter-spacing: -0.05em; line-height: .82; margin-bottom: 28px; }
.stat-line { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 32ch; font-weight: 500; }
.dark .stat-line { color: var(--bg); }
.source { font-size: .9rem; margin-top: 32px; max-width: 80ch; }
.dark .source { color: #A9A9A4; }

/* Column rows: what we do, roles, benefits */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 48px; border-top: 1.5px solid var(--ink); }
.cols.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.col { padding: 26px 24px 26px 0; }
.col + .col { padding-left: 24px; border-left: 1px solid var(--rule); }
.col p { color: var(--grey); font-size: 1rem; }
@media (max-width: 960px) {
  .cols, .cols.three { grid-template-columns: 1fr 1fr; }
  .col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .col:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .cols, .cols.three { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 24px 0; border-left: 0; }
  .col + .col { border-top: 1px solid var(--rule); }
}

/* Numbered steps, only for real sequences */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1.5px solid var(--ink); }
.steps.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.steps li { padding: 24px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps .n { font-weight: 900; font-size: 3.4rem; letter-spacing: -0.05em; line-height: 1; display: block; margin-bottom: 14px; }
.steps p { color: var(--grey); font-size: 1rem; }
.status { display: inline-block; font-size: .85rem; font-weight: 600; padding: 3px 9px; margin-bottom: 12px; border: 1.5px solid var(--ink); border-radius: 6px; }
.status.now { background: var(--ink); color: var(--bg); }
@media (max-width: 960px) {
  .steps.four { grid-template-columns: 1fr 1fr; }
  .steps.four li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps.four li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .steps, .steps.four { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
}

/* Two column layout and cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--soft); padding: clamp(28px, 4vw, 44px); border: 1.5px solid var(--ink); border-radius: 16px; }
.card .label { font-weight: 600; margin-bottom: 10px; }
.card h3 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.card ul { padding-left: 20px; margin: 0 0 24px; }
.card li { margin-bottom: 6px; }
.past { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.past .label { font-weight: 600; color: var(--grey); margin-bottom: 6px; }
.past .event { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 4px; }

.big-close h2 { font-size: clamp(3.4rem, 10vw, 8.5rem); font-weight: 900; letter-spacing: -0.045em; }
.big-close p { font-size: 1.2rem; }

/* Empty states, an invitation rather than a blank */
.empty { border: 1.5px dashed var(--grey); border-radius: 16px; padding: clamp(28px, 4vw, 44px); margin-top: 40px; }
.empty p { color: var(--grey); }

/* ---------- Event list ---------- */
.event-list { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.event-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.event-date { font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; font-size: 2rem; }
.event-date small { display: block; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--grey); margin-top: 6px; }
.event-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.event-row p { color: var(--grey); margin-bottom: 6px; }
.event-row .meta { font-weight: 600; font-size: .95rem; color: var(--ink); }
@media (max-width: 760px) { .event-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- About: charter ---------- */
.goals { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px 32px; margin-top: 48px; }
.goals h3 { font-size: 1.4rem; margin: 18px 0 8px; }
.goals p { color: var(--grey); font-size: 1rem; }
.icon-tile { width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #F5F5F2; display: grid; place-items: center; }
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile .tile-cut { fill: var(--ink); }
@media (max-width: 960px) { .goals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .goals { grid-template-columns: 1fr; } }

.charter { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1.5px solid var(--ink); }
.charter li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; font-weight: 500; }
.charter .mark-tile { width: 30px; height: 30px; border-radius: 7px; flex: none; display: grid; place-items: center; }
.charter .mark-tile svg { width: 16px; height: 16px; }
.charter.yes .mark-tile { background: var(--ink); color: #F5F5F2; }
.charter.no .mark-tile { border: 2px solid var(--ink); color: var(--ink); }
@media (max-width: 760px) { .charter { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1.5px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.8rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--grey); padding-bottom: 20px; }

/* ---------- Forms ---------- */
.form-block + .form-block { margin-top: clamp(64px, 8vw, 96px); padding-top: clamp(64px, 8vw, 96px); border-top: 1.5px solid var(--ink); }
.form-block h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 32px; max-width: 900px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field .hint { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--soft);
  border: 1.5px solid var(--ink); border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { color: var(--grey); font-size: .95rem; margin: 0; }
.form-msg { margin-top: 24px; padding: 20px 24px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--soft); max-width: 900px; }
.form-msg h3 { font-size: 1.5rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Notes ---------- */
.note-list { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.note-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.note-row .when { font-weight: 600; color: var(--grey); }
.note-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.note-row p { color: var(--grey); margin: 0; }
@media (max-width: 760px) { .note-row { grid-template-columns: 1fr; gap: 10px; } }

.prose { max-width: 66ch; font-size: 1.2rem; line-height: 1.7; }
.prose p { margin-bottom: 1.3em; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; margin: 1.6em 0 0.6em; }
.byline { color: var(--grey); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1.5px solid var(--ink); padding: 56px 0 calc(48px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-top p { color: var(--grey); max-width: 34ch; margin-top: 14px; }
.footer-top h4 { font-size: 1rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-top ul a { text-decoration: none; }
.footer-top ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--grey); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Directories ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dir-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.dir-head h2 { margin-bottom: 0; }
.dir-tabs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.dir-tabs button { font: inherit; font-weight: 600; background: transparent; color: var(--ink); border: 0; padding: 10px 16px; cursor: pointer; }
.dir-tabs button + button { border-left: 1.5px solid var(--ink); }
.dir-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.dir-controls { display: grid; gap: 14px; padding: 20px 0; }
.dir-search { position: relative; display: block; }
.dir-search input { width: 100%; font: inherit; font-size: 1.15rem; font-weight: 500; color: var(--ink); background: var(--soft); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px 14px 48px; }
.dir-search input::placeholder { color: var(--grey); }
.dir-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-right: 4px; }
.chip-gap { margin-left: 12px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.dir-count { margin: 0; font-size: .9rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.dir-list { border-top: 1.5px solid var(--ink); }
.dir-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.dir-row > * { min-width: 0; }
.dir-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
.dir-row p { color: var(--grey); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .8rem; font-weight: 600; background: var(--soft); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 8px; }
.dir-side { display: grid; gap: 6px; justify-items: end; align-content: start; text-align: right; font-size: .95rem; }
.dir-kind { font-weight: 700; }
.dir-event { grid-template-columns: 130px 1fr auto; }
.dir-row .dir-date { font-weight: 900; letter-spacing: -0.04em; line-height: .95; font-size: 1.8rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.dir-row .dir-date small { display: block; font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--grey); margin-top: 6px; }
.dir-event.is-past h3, .dir-row.is-past .dir-date { color: var(--grey); }
.dir-empty { padding: 32px 0; color: var(--grey); border-bottom: 1px solid var(--rule); }
@media (max-width: 680px) {
  .dir-row, .dir-event { grid-template-columns: 1fr; }
  .dir-side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 14px; }
}
