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

html,
body {
  margin: 0;
  padding: 0;
}

/* -- Base --------------------------------------------------------------------------- */
body {
  background-color: #faf9f7;
  color: #111;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #111;
  text-decoration: underline;
}

/* -- Landing Page - Business Card --------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.card .avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 1.5rem;
  outline: 1px solid #aaa;
  outline-offset: 3px;
}

.card h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem 0;
  color: #111;
}

.card .title {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  margin: 0 0 1.25rem 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -- vCard link ---------------------------------------------------------------------- */
.card .vcard-link {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  margin-bottom: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.card .vcard-link:hover {
  color: #111;
  border-bottom-color: #333;
  text-decoration: none;
}

/* -- QR code ------------------------------------------------------------------------ */
.card .qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.card .qr a {
  display: block;
  line-height: 0;
}

.card .qr a:hover {
  opacity: 0.75;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.card .qr img {
  display: block;
  width: 80px;
  height: 80px;
}

.card .qr figcaption {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0;
}

/* -- Site nav (fixed top-right) ----------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #777;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: #111;
  border-bottom-color: #111;
  text-decoration: none;
}

/* -- Resume Page -------------------------------------------------------------------- */
.resume {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.resume h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 3rem 0;
  color: #111;
}

.resume-content h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.resume-content h2:first-child {
  margin-top: 0;
}

.resume-content p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: #111;
  margin: 0 0 1rem 0;
}

.resume-content strong {
  font-weight: 700;
  color: #111;
}

.resume-content em {
  font-style: italic;
  color: #555;
}

.resume-content ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.resume-content ul li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 0.25rem;
}

.resume-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2rem 0;
}

/* -- Mobile ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .card h1 {
    font-size: 1.75rem;
  }

  .resume {
    padding: 2.5rem 1.25rem;
  }

  .resume h1 {
    font-size: 1.625rem;
  }
}

/* -- Skip link (WCAG 2.4.1) ------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: #111;
  color: #faf9f7;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* -- Focus appearance (WCAG 2.4.13) ----------------------------------------- */
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* -- Link contrast fix (WCAG 1.4.3 - AA requires 4.5:1) -------------------- */
/* #333 on #faf9f7 yields ~7.8:1 - already passing, but nav links use       */
/* border-bottom as underline substitute which is valid per WCAG 1.4.8      */
/* Ensure hover state also passes: #111 on #faf9f7 ~13.5:1 - passes         */

/* Muted text (#555 on #faf9f7) yields ~5.7:1 for large/bold text           */
/* .card .title is uppercase + font-weight 300 - boost to #444 for safety   */
.card .title {
  color: #444;
}

.resume-content em {
  color: #444;
}

/* Resume section labels (#555) are uppercase bold - ~5.7:1, passes AA      */
/* No change needed for .resume-content h2                                  */
