/* zeeshan-shaikh.com — single stylesheet. No JavaScript anywhere. */

:root {
  --bg: #f5f4f2;
  --ink: #111111;
  --muted: #595855;      /* ~6.6:1 on --bg, passes WCAG AA */
  --rule: #d6d4d0;
  --sidebar-w: 336px;
  --col-w: 680px;
  --font-head: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

/* Links and focus */
a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Headings */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
}
h1 { font-size: 64px; margin-top: 28px; }
h2 { font-size: 40px; margin-top: 0; }
h3 { font-size: 28px; font-weight: 700; margin-top: 36px; }

p { margin: 0 0 1em; }

/* Menu (shared) */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: menu;
  font-family: var(--font-head);
  font-weight: 700;
}
.menu li { counter-increment: menu; }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 0;
  text-decoration: none;
}
.menu a::before {
  content: counter(menu) ". ";
  white-space: pre;
}
.menu a:hover { text-decoration: underline; }

/* Desktop sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  padding: 64px 40px;
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}
.sidebar .menu { font-size: 26px; line-height: 1.25; }
.sidebar .menu li + li { margin-top: 6px; }

.mobile-nav { display: none; }

/* Main column */
main {
  margin-left: var(--sidebar-w);
  padding: 64px 56px 24px;
}
main > * { max-width: var(--col-w); }

.masthead { padding-bottom: 24px; }

.portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.byline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}
.byline a { color: var(--ink); }

.lede {
  font-size: 21px;
  line-height: 1.55;
}
.byline + .lede { margin-top: 32px; }

section {
  padding-top: 56px;
  scroll-margin-top: 16px;
}

.dateline {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
h2 + p:not(.dateline):not(.notice) { margin-top: 20px; }
h2 + ul, h2 + ul.facts { margin-top: 20px; }
h3 + .facts { margin-top: 14px; }

/* Bullets: bold lead-in, then the sentence */
.facts {
  margin: 0 0 1em;
  padding-left: 1.15em;
}
.facts li { margin-bottom: 0.7em; padding-left: 0.2em; }
.facts li::marker { color: var(--muted); }
.facts strong { font-weight: 700; }

/* Legal notice */
.notice {
  margin: 20px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

/* Quote (draft placeholder styling) */
.quote {
  margin: 40px 0 12px;
  padding: 0;
}
.quote blockquote {
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--ink);
  font-size: 21px;
  line-height: 1.5;
}
.quote blockquote p { margin: 0; }
.quote figcaption {
  margin-top: 10px;
  padding-left: 25px;
  color: var(--muted);
  font-size: 15px;
}
.quote--draft {
  padding: 16px 18px 18px;
  border: 2px dashed var(--muted);
}
.quote--draft blockquote {
  border-left-style: dashed;
  border-left-color: var(--muted);
  color: var(--muted);
  font-style: italic;
}
.draft-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 8px;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reference { font-size: 16px; }

/* Logos: decoration beside text that already names the organisation */
.logo-row img,
.head-row img,
.edu-row img,
.card-logo { object-fit: contain; flex: none; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 44px;
  margin-top: 28px;
}
.logo-row img { height: 30px; width: auto; }

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.head-row--h3 { margin-top: 36px; }
.head-row--h3 h3 { margin-top: 0; }
.head-row--h3 img { height: 32px; width: auto; }
.head-row + .dateline { margin-top: 6px; }

.wordmark-tile {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.edu-list { margin-top: 20px; }
.edu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.edu-row:last-child { border-bottom: 1px solid var(--rule); }
.edu-row p { margin: 0; }
.edu-row img { height: 44px; width: auto; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title logo" "role logo";
  align-content: start;
  column-gap: 16px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 16px;
}
.card-title {
  grid-area: title;
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
.card-logo {
  grid-area: logo;
  align-self: start;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 120px;
}
.card-role {
  grid-area: role;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Second page: one centred column, no sidebar */
.subpage main,
.subpage .site-footer {
  margin-left: auto;
  margin-right: auto;
  max-width: calc(var(--col-w) + 112px);
}
.subpage main { padding-top: 48px; }
.subpage h1 { margin-top: 24px; }
.subpage h2 { margin-top: 48px; font-size: 34px; }
.subpage h2 + ul { margin-top: 16px; }
.back-link {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.back-link--bottom { margin-top: 24px; }

.contact-lines { margin-top: 20px; }
.contact-lines a {
  display: inline-block;
  min-height: 24px;
}

.site-footer {
  margin-left: var(--sidebar-w);
  padding: 48px 56px 64px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer p { max-width: var(--col-w); margin: 0; }

/* Desktop body size */
@media (min-width: 1000px) {
  body { font-size: 18px; }
}

/* Mobile and tablet */
@media (max-width: 999.98px) {
  .sidebar { display: none; }

  .mobile-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 0 16px;
  }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after {
    content: "+";
    margin-left: 10px;
    font-weight: 700;
  }
  .mobile-nav details[open] summary::after { content: "\2212"; }
  .mobile-nav .menu {
    font-size: 22px;
    line-height: 1.2;
    padding: 0 0 14px;
  }

  main {
    margin-left: 0;
    padding: 32px 16px 16px;
  }
  .site-footer {
    margin-left: 0;
    padding: 40px 16px 48px;
  }

  .portrait { width: 110px; height: 110px; }
  h1 { font-size: 48px; margin-top: 20px; }
  h2 { font-size: 34px; }
  h3 { font-size: 25px; }
  .lede { font-size: 19px; }
  .quote blockquote { font-size: 19px; }
  section { padding-top: 44px; scroll-margin-top: 60px; }

  .logo-row { gap: 16px 32px; }
  .logo-row img { height: 28px; }
  .cards { grid-template-columns: 1fr; }
  .card-title { font-size: 22px; }
  .wordmark-tile { font-size: 17px; }
  .edu-row img { height: 36px; }

  .subpage main { padding: 32px 16px 16px; }
  .subpage h2 { font-size: 30px; }
}

/* Print */
@media print {
  @page { margin: 18mm; }

  .sidebar,
  .mobile-nav,
  .skip-link { display: none !important; }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  main,
  .site-footer {
    margin-left: 0;
    padding: 0;
  }
  main > * { max-width: none; }

  .portrait { width: 90px; height: 90px; }
  h1 { font-size: 32pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 15pt; }
  section { padding-top: 18pt; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  li, .notice, .quote, .card, .edu-row { break-inside: avoid; page-break-inside: avoid; }

  /* Logos print small and in their own colours */
  img[src*="logos/"] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .logo-row { margin-top: 10pt; gap: 8pt 24pt; }
  .logo-row img { height: 20px; }
  .head-row--h3 img { height: 22px; }
  .edu-row img { height: 28px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8pt; }
  .card { padding: 10pt; border-radius: 8pt; border-color: #000 !important; }
  .card-logo { max-height: 26px; }
  .wordmark-tile { border-color: #000 !important; font-size: 13pt; }
  .back-link { display: none; }
  .subpage main, .subpage .site-footer { max-width: none; padding: 0; }
  .subpage h2 { font-size: 18pt; margin-top: 18pt; }

  a { text-decoration: none; }

  /* The email is already the link text, so it prints as text. Show any web link targets. */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .notice,
  .quote--draft,
  .draft-label { border-color: #000 !important; }

  .site-footer { margin-top: 18pt; }
}

/* Revision 4: TitanPayAI logo in its heading row; white organiser logo on a dark tile */
.head-row .head-logo { height: 30px; width: auto; }
.card-logo--dark { background: #111; padding: 6px 10px; border-radius: 6px; box-sizing: content-box; }
@media (max-width: 640px) { .head-row .head-logo { height: 22px; } }
@media print { .card-logo--dark { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Revision 5: speaking photos, recognition, writing */
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 20px; }
.photo-strip img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.photo-strip:hover img, .photo-strip:focus-visible img { opacity: 0.9; }
.more-link { margin-top: 18px; font-size: 16px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; align-items: start; }
.photos--card { grid-template-columns: 2fr 3fr; }
.photos figure { margin: 0; }
.photos img { width: 100%; height: auto; border-radius: 10px; display: block; }
.photos figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.writing-list .when { color: var(--muted); font-size: 15px; white-space: nowrap; }
@media (max-width: 640px) {
  .photo-strip img { height: 130px; }
  .photos, .photos--card { grid-template-columns: 1fr; }
}
@media print { .photo-strip img { height: 150px; } }

/* Revision 6: grouped writing list, no dates */
.list-label { font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0; }
.list-label + ul { margin-top: 10px; }
