/* tysoncaly.com — one screen, dark, editorial */

:root {
  --bg: #111114;
  --text: #e8e6e1;
  --text-secondary: #b5b2aa;
  --muted: #8a877f;
  --faint: #8a877f; /* ≥4.5:1 on --bg (WCAG AA); labels stay visually lighter via size/tracking */
  --hairline: #2a2a2e;
  --pink: #E1306C;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s ease; }

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

main { display: flex; min-height: 100dvh; }

/* ---- Left column: identity ---- */

.identity {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 6vh, 72px) clamp(28px, 4.5vw, 80px);
  border-right: 1px solid var(--hairline);
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
}

h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.005em;
  margin-top: clamp(16px, 3.5vh, 30px);
  margin-left: -8px;
}

.role {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 14px;
}

.location {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 10px;
}

.contact {
  margin-top: auto;
  padding-top: 40px;
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}

.contact a { padding: 8px 0; margin: -4px 0; } /* grows tap target without changing the visual line spacing much */

.contact a:hover { color: var(--text); }

.instagram svg { vertical-align: -3px; margin-right: 2px; }
.instagram rect, .instagram circle { stroke: var(--pink); transition: stroke .15s ease; }
.instagram .dot { fill: var(--pink); stroke: none; transition: fill .15s ease; }
.instagram:hover rect, .instagram:hover circle { stroke: var(--text); }
.instagram:hover .dot { fill: var(--text); }

.cat-icon { font-size: 13px; margin-right: 2px; font-style: normal; }

/* ---- Right column: the work ---- */

.work {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 6vh, 72px) clamp(28px, 4.5vw, 80px);
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}

.projects { list-style: none; display: flex; flex-direction: column; gap: 28px; }

.projects a { display: flex; align-items: center; gap: 18px; }

.tile {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
  flex: none;
}

.project-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 29px;
  line-height: 1.1;
  transition: color .15s ease;
}

.projects a:hover .project-name { color: #fff; }

.tagline { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---- Writing (dormant until first post) ---- */

.writing-label { margin-top: clamp(48px, 8vh, 80px); margin-bottom: 18px; }

.posts { list-style: none; display: flex; flex-direction: column; gap: 13px; }

.post-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  transition: color .15s ease;
}

.posts a:hover .post-title { color: #fff; }

.post-date { font-size: 12px; color: var(--muted); margin-left: 10px; }

/* ---- The talks ---- */

.talks-label { margin-top: clamp(48px, 8vh, 80px); margin-bottom: 18px; }

.talks { list-style: none; display: flex; flex-direction: column; gap: 18px; }

.talk-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
}

.talk-meta {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
}

.talk-show { font-size: 12px; color: var(--muted); margin-top: 4px; }

.talk-show a { text-decoration: underline; text-underline-offset: 3px; }

.talk-show a:hover { color: var(--text); }

.talk-platforms { font-size: 12px; color: var(--muted); margin-top: 4px; }

.talk-platforms a { text-decoration: underline; text-underline-offset: 3px; }

.talk-platforms a:hover { color: var(--text); }

/* ---- Footer ---- */

footer { margin-top: auto; padding-top: 40px; text-align: right; }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--text-secondary);
}

.copyright { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---- Post pages (writing/*.html) ---- */

.post-page { display: block; min-height: 100dvh; padding: clamp(40px, 8vh, 88px) 24px; }

.post-inner { max-width: 640px; margin: 0 auto; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 40px; display: block; }
.breadcrumb:hover { color: var(--text); }

.post-inner h1 {
  font-size: clamp(34px, 5vw, 46px);
  margin-left: 0;
  margin-top: 0;
}

.post-meta {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 12px;
}

.post-body { margin-top: 34px; }

.post-body p { font-size: 16px; line-height: 1.75; color: #c9c6bf; margin-top: 18px; }

.post-body p:first-child { margin-top: 0; }

.post-body figure { margin: 30px 50px; }

.post-body figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.post-body figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.post-body a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

.post-body a:hover { color: var(--text); }

.byline { display: flex; align-items: center; gap: 12px; margin-top: 44px; }

.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; }

.byline span { font-size: 13px; color: var(--muted); }

/* ---- Mobile ---- */

@media (max-width: 767px) {
  main { flex-direction: column; min-height: auto; }

  .identity {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .contact { margin-top: 36px; padding-top: 0; }

  h1 { font-size: 44px; }

  footer { margin-top: 64px; padding-top: 0; text-align: left; }

  .post-body figure { margin: 26px 0; }
}
