/* elizabethmarquezweb.com · Talavera: glazed white, cobalt, grout lines */
:root {
  --porcelain: #f4f1ea;
  --ink: #17201f;
  --grey: #55605e;
  --cobalt: #235a86;
  --rule: #dcd8cc;
  --panel: #fbf9f3;
  --shell: 1176px;
  --display: 'Gilda Display', 'Times New Roman', serif;
  --body: 'Mulish', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 400;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.008em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* octagram: two squares, one turned 45 degrees, outline only */
.octa { position: relative; width: 34px; height: 34px; display: block; }
.octa::before, .octa::after {
  content: ""; position: absolute; left: 5px; top: 5px;
  width: 24px; height: 24px; border: 1px solid var(--cobalt);
  transform-origin: 50% 50%;
}
.octa::after { transform: rotate(45deg); }

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; min-height: 84px;
}
.wordmark {
  font-family: var(--display); font-size: 21px; line-height: 1.1;
  text-decoration: none; display: inline-flex; align-items: center; gap: 11px;
  white-space: nowrap;
}
.wordmark::before {
  content: ""; width: 7px; height: 7px; background: var(--cobalt);
  transform: rotate(45deg); flex: none;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 6px 0;
  border-bottom: 1px solid transparent; font-weight: 600;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cobalt); color: var(--porcelain);
  border: 1px solid var(--cobalt); padding: 13px 22px;
  font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; font-weight: 600; line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.main-nav a.btn {
  color: var(--porcelain); background: var(--cobalt); border: 1px solid var(--cobalt);
  padding: 11px 17px; font-size: 10.5px;
}
.main-nav a.btn:hover, .main-nav a.btn:focus-visible {
  color: #ffffff; background: var(--ink); border-color: var(--ink);
}

/* hero */
.hero { padding-top: 52px; }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px; align-items: start;
}
.hero-copy { grid-column: 1 / span 6; padding-top: 34px; }
.hero-kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); margin: 0 0 26px;
}
.hero-title {
  font-size: 58px; line-height: 1.06; letter-spacing: 0.008em;
  margin: 0 0 26px;
}
.hero-title span { display: block; }
.hero-lead {
  max-width: 30ch; font-size: 17px; line-height: 1.65; color: var(--grey);
  margin: 0 0 32px;
}
.hero-photo {
  grid-column: 7 / span 6; margin: 0;
  margin-right: calc(-1 * max(0px, (100vw - 1176px) / 2 + 28px));
  justify-self: end; position: relative; width: 540px; max-width: 100%;
}
.hero-photo img {
  width: 540px; height: 888px; max-width: 100%;
  object-fit: cover; object-position: center top;
  border: 1px solid var(--rule); background: var(--panel);
}
.hero-star { position: absolute; top: -46px; left: -46px; }

/* sections */
.section { padding: 66px 0; }
.section-tight { padding: 26px 0 60px; }
.eyebrow {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); margin: 0 0 10px;
}
.eyebrow .num { color: var(--cobalt); font-weight: 600; }
.sec-title { font-size: 34px; line-height: 1.16; margin: 0 0 8px; }
.sec-sub { font-size: 14px; color: var(--grey); max-width: 52ch; margin: 0 0 28px; }

/* 01 partners */
.partner-grid {
  display: grid; grid-template-columns: repeat(3, 356px);
  gap: 8px; justify-content: center; margin: 0 auto;
}
.partner-cell {
  position: relative; height: 186px; border: 1px solid var(--rule);
  background: var(--panel); display: flex; align-items: center;
  justify-content: center; text-decoration: none; overflow: hidden;
}
.partner-cell img {
  width: 250px; height: 150px; object-fit: contain; margin-bottom: 14px;
}
.partner-cell:hover { border-color: var(--cobalt); }
.p-name {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey); line-height: 1.2;
}
.p-num {
  position: absolute; top: 7px; right: 9px; font-size: 9px;
  letter-spacing: 0.08em; color: var(--grey); line-height: 1;
}
.p-num-first { color: var(--cobalt); font-weight: 600; }
.qstar {
  position: absolute; left: -6px; bottom: -6px; width: 12px; height: 12px;
  border: 1px solid var(--rule); transform: rotate(45deg);
}

/* 02 quick profile */
.qp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); width: 720px;
  max-width: 100%;
}
.qp-cell {
  position: relative; background: var(--porcelain); height: 92px;
  padding: 15px 18px 12px 30px; display: flex; flex-direction: column;
  justify-content: center;
}
.qp-dot {
  position: absolute; left: 14px; top: 20px; width: 6px; height: 6px;
  background: var(--grey); transform: rotate(45deg);
}
.qp-dot-first { background: var(--cobalt); }
.qp-k {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); line-height: 1.4;
}
.qp-v { font-size: 15px; line-height: 1.45; }

/* 03 about */
.about-grid {
  display: grid; grid-template-columns: 300px 36px minmax(0, 1fr);
  align-items: start; gap: 0; margin-top: 26px;
}
.about-photo { margin: 0; width: 300px; }
.about-photo img {
  width: 300px; height: 420px; object-fit: cover;
  object-position: center 20%; border: 1px solid var(--rule);
}
.about-star { padding-top: 4px; }
.about-cols { columns: 2; column-gap: 36px; max-width: 760px; }
.about-cols p { break-inside: avoid; margin-bottom: 0; }
.about-text { max-width: 790px; }
.about-note {
  margin: 22px 0 0; font-size: 12px; line-height: 1.6; color: var(--grey);
  border-top: 1px solid var(--rule); padding-top: 10px; max-width: 62ch;
}

/* 04 career */
.brick-band {
  display: grid; grid-template-columns: repeat(10, 64px); gap: 8px;
  width: 712px; max-width: 100%; margin: 4px auto 0; justify-content: center;
}
.brick {
  height: 64px; border: 1px solid var(--rule); display: flex;
  align-items: center; justify-content: center;
  font-family: var(--display); font-size: 15px; line-height: 1;
}
.brick-cobalt { border-color: var(--cobalt); color: var(--cobalt); }
.event-grid {
  list-style: none; margin: 28px auto 0; padding: 0;
  display: grid; grid-template-columns: 340px 340px;
  grid-template-rows: repeat(5, 56px); grid-auto-flow: column;
  column-gap: 40px; width: 720px; max-width: 100%;
}
.event-grid li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px; align-items: baseline; border-top: 1px solid var(--rule);
  padding-top: 9px;
}
.ev-year { font-family: var(--display); font-size: 14px; color: var(--cobalt); }
.ev-text { font-size: 14px; line-height: 1.45; }

/* 05 gallery */
.gallery-walls { margin-top: 8px; }
.wall { display: flex; gap: 8px; }
.wall img { border: 1px solid var(--rule); }
.wall-top img { width: 380px; height: 570px; object-fit: cover; object-position: center top; }
.wall-bottom { margin-top: 8px; margin-left: 120px; }
.wall-bottom img { width: 300px; height: 300px; object-fit: cover; object-position: center 30%; }

/* 06 social */
.social-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto);
  grid-auto-flow: column; column-gap: 60px; border-top: 1px solid var(--rule);
  max-width: 860px;
}
.social-item {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  padding: 16px 0 14px; border-bottom: 1px solid var(--rule);
}
.social-item:nth-last-child(-n+2) { border-bottom: none; }
.s-platform {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); width: 72px; flex: none; line-height: 1.4;
}
.s-handle { font-size: 14px; }
.social-item:hover .s-handle { color: var(--cobalt); }
.social-note { margin: 14px 0 0; font-size: 11px; color: var(--grey); max-width: 60ch; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 10px; padding: 0 0 34px; }
.footer-wrap { position: relative; padding-top: 52px; }
.footer-star { position: absolute; top: 10px; left: 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 30px;
  align-items: start;
}
.f-name { font-family: var(--display); font-size: 19px; display: block; margin-bottom: 4px; }
.f-desc { font-size: 12.5px; color: var(--grey); display: block; max-width: 30ch; }
.lang-nav { font-size: 12px; line-height: 2; }
.lang-nav a { text-decoration: none; color: var(--grey); }
.lang-nav a:hover { color: var(--ink); }
.lang-nav a[aria-current="page"] { color: var(--cobalt); }
.footer-right { margin: 0; font-size: 12px; color: var(--grey); text-align: right; }
.footer-notes { margin-top: 30px; font-size: 11px; line-height: 1.7; color: var(--grey); }
.footer-notes p { margin: 0; }

/* subpages */
.page-top { padding: 62px 0 40px; border-bottom: 1px solid var(--rule); }
.page-top h1 { font-size: 52px; line-height: 1.08; margin: 0 0 18px; }
.lead { max-width: 56ch; font-size: 17px; line-height: 1.66; color: var(--grey); margin: 0; }
.page-body { padding: 52px 0 40px; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 70px; justify-content: space-between; align-items: start; }
.prose { max-width: 720px; }
.prose-narrow { max-width: 720px; margin-top: 56px; }
.prose-block { margin-bottom: 46px; }
.prose-block:last-child { margin-bottom: 0; }
.prose h2 { font-size: 29px; line-height: 1.22; margin: 0 0 14px; }
.prose p { max-width: 68ch; }
.rail { border: 1px solid var(--rule); background: var(--panel); }
.rail-row { padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.rail-row:last-child { border-bottom: none; }
.rail-k { display: block; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); line-height: 1.5; }
.rail-v { display: block; font-size: 15px; line-height: 1.45; }
.band-page { margin-bottom: 36px; }
.timeline-list { list-style: none; margin: 0 0 56px; padding: 0; max-width: 860px; }
.timeline-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--rule); }
.timeline-list li:last-child { border-bottom: 1px solid var(--rule); }
.tl-when { font-family: var(--display); font-size: 16px; color: var(--cobalt); line-height: 1.4; }
.tl-what { font-size: 15.5px; line-height: 1.6; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 50px; }
.stat { background: var(--porcelain); padding: 22px 20px; }
.stat-num { display: block; font-family: var(--display); font-size: 56px; line-height: 1; margin-bottom: 10px; }
.stat-label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.stat-note { display: block; font-size: 11px; color: var(--grey); margin-top: 4px; }
.title-table { border-top: 1px solid var(--rule); margin-top: 6px; }
.title-row { display: grid; grid-template-columns: 110px 240px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.t-year { font-family: var(--display); font-size: 16px; color: var(--cobalt); }
.t-name { font-weight: 600; font-size: 15px; }
.t-note { font-size: 14px; color: var(--grey); }
.faq-list { max-width: 820px; }
.faq-item { padding: 26px 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h2 { font-size: 23px; line-height: 1.3; margin: 0 0 10px; }
.faq-item p { color: var(--grey); max-width: 70ch; }

/* 404 */
.notfound { padding: 110px 0 140px; }
.notfound h1 { font-size: 52px; line-height: 1.1; margin: 0 0 18px; }
.notfound .lead { margin-bottom: 30px; }

/* tablets */
@media (max-width: 1100px) {
  .hero-photo { margin-right: 0; width: 42vw; max-width: 460px; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 540 / 888; }
  .hero-title { font-size: 48px; }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-star { top: -44px; left: -44px; }
  .about-grid { grid-template-columns: 280px 36px minmax(0, 1fr); }
  .about-photo, .about-photo img { width: 280px; }
  .about-photo img { height: 392px; }
  .about-cols { columns: 1; }
  .partner-cell img { width: 100%; max-width: 250px; height: auto; }
  .brick-band { grid-template-columns: repeat(10, minmax(0, 1fr)); width: 100%; }
  .wall-top img { width: calc(50% - 4px); height: auto; aspect-ratio: 2 / 3; }
  .wall-bottom { margin-left: 0; }
  .wall-bottom img { width: calc(33.333% - 5.4px); height: auto; aspect-ratio: 1 / 1; }
  .event-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); width: 100%; }
  .event-grid li { min-height: 56px; }
  .bio-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 14px 0; min-height: 0; }
  .main-nav { gap: 14px; flex-wrap: wrap; }
  .main-nav a { font-size: 10.5px; letter-spacing: 0.06em; }
  .main-nav a.btn { width: 100%; margin-top: 6px; padding: 10px 14px; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-grid { grid-template-columns: 1fr; gap: 34px; }
  .rail { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-right { grid-column: 1 / -1; text-align: left; }
}

/* phones and small tablets */
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 14px 0; min-height: 0; }
  .main-nav { gap: 14px; flex-wrap: wrap; }
  .main-nav a { font-size: 10.5px; letter-spacing: 0.06em; }
  .main-nav a.btn { width: 100%; margin-top: 6px; padding: 10px 14px; }
  .hero { padding-top: 28px; }
  .hero-grid { display: flex; flex-direction: column; gap: 26px; }
  .hero-copy { padding-top: 0; order: 1; }
  .hero-photo { order: 2; width: 100%; margin: 0; }
  .hero-photo img { width: 100%; height: auto; }
  .hero-star { top: -18px; left: -6px; width: 28px; height: 28px; }
  .hero-star::before, .hero-star::after { width: 19px; height: 19px; left: 4px; top: 4px; }
  .hero-kicker { margin-bottom: 16px; font-size: 10px; letter-spacing: 0.14em; }
  .hero-title { font-size: 44px; margin-bottom: 18px; }
  .hero-lead { font-size: 16px; margin-bottom: 24px; }
  .section { padding: 44px 0; }
  .section-tight { padding: 22px 0 40px; }
  .sec-title { font-size: 26px; }
  .sec-sub { margin-bottom: 20px; }
  .partner-grid { grid-template-columns: 1fr; gap: 8px; }
  .partner-cell { height: 170px; }
  .qp { grid-template-columns: 1fr; width: 100%; }
  .qp-cell { height: auto; min-height: 78px; }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-photo, .about-photo img { width: 100%; }
  .about-photo img { height: auto; }
  .about-star { padding: 18px 0 6px; }
  .about-cols { columns: 1; }
  .brick-band { grid-template-columns: repeat(5, 1fr); width: 100%; }
  .brick { height: 52px; }
  .event-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; width: 100%; }
  .event-grid li { border-top: 1px solid var(--rule); padding: 12px 0; min-height: 56px; }
  .wall-top img { width: calc(50% - 4px); height: auto; aspect-ratio: 2 / 3; }
  .wall-bottom { margin-left: 0; flex-wrap: wrap; }
  .wall-bottom img { width: calc(50% - 4px); height: auto; aspect-ratio: 1 / 1; }
  .social-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .social-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .social-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-right { text-align: left; }
  .page-top { padding: 40px 0 28px; }
  .page-top h1 { font-size: 38px; }
  .page-body { padding: 36px 0 28px; }
  .bio-grid { grid-template-columns: 1fr; gap: 34px; }
  .rail { order: 2; }
  .timeline-list li { grid-template-columns: 1fr; gap: 4px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-num { font-size: 44px; }
  .title-row { grid-template-columns: 1fr; gap: 4px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
