/* Apple-inspired portfolio styles */
:root {
  --color-dark: #1d1d1f;
  --color-light: #f5f5f7;
  --color-white: #ffffff;
  --color-gray: #86868b;
  --color-link: #0066cc;
  --color-link-hover: #0077ed;
  --color-border: #d2d2d7;
  --color-text: #1d1d1f;
  --globalnav-height: 44px;
  --localnav-height: 52px;
  --max-content-width: 1024px;
  --section-padding: 80px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.skiplink {
  position: absolute;
  left: -9999px;
}

.skiplink:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20000;
  padding: 0.75rem 1rem;
  background: var(--color-link);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  outline: none;
}

/* Global navigation */
.globalnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--globalnav-height);
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.globalnav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
}

.globalnav-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.021em;
  color: var(--color-white);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.globalnav-brand:hover {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
}

.globalnav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 32px;
}

.globalnav-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: var(--globalnav-height);
  transition: color 0.2s ease;
}

.globalnav-link:hover {
  color: var(--color-white);
  text-decoration: none;
}

/* Main layout */
.main {
  padding-top: var(--globalnav-height);
}

.section {
  padding: var(--section-padding) 0;
}

.section-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 22px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.14286;
  margin: 0 0 40px;
  color: var(--color-dark);
}

/* Hero */
.section-hero {
  padding-top: 60px;
  padding-bottom: 60px;
  background: var(--color-light);
}

.section-hero .section-content {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}

.image-hero-container {
  display: flex;
  justify-content: center;
}

.image-hero {
  width: 320px;
  height: 320px;
  margin: 0;
  background-image: url("profile-hero.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.headlines {
  max-width: 600px;
}

.typography-section-headline {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.07143;
  margin: 0 0 12px;
  color: var(--color-dark);
}

.typography-subsection-subhead {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.021em;
  line-height: 1.14286;
  margin: 0 0 16px;
  color: var(--color-dark);
}

.typography-hero-tagline {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.021em;
  line-height: 1.4211;
  margin: 0 0 12px;
  color: var(--color-gray);
}

.typography-location {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0;
}

/* Two-column bio */
.row-logical {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.column {
  grid-column: span 12;
}

.column.large-5 {
  grid-column: span 5;
}

.column.large-offset-1 {
  grid-column-start: 7;
  grid-column-end: span 5;
}

.section-bio p,
.section-education p {
  font-size: 19px;
  line-height: 1.4211;
  letter-spacing: -0.021em;
  margin: 0 0 1em;
  color: var(--color-text);
}

/* Skills */
.section-skills {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-list li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--color-text);
}

.skills-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-gray);
}

/* Experience */
.section-experience {
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
}

.experience-item {
  margin-bottom: 48px;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-header {
  margin-bottom: 16px;
}

.experience-org {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.16667;
  margin: 0 0 4px;
  color: var(--color-dark);
}

.experience-role {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0;
}

.experience-date {
  display: inline-block;
  margin-left: 8px;
  color: var(--color-gray);
}

.experience-date::before {
  content: "·";
  margin-right: 8px;
}

.experience-item ul {
  margin: 0;
  padding-left: 20px;
}

.experience-item li {
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
  color: var(--color-text);
}

/* Education */
.section-education {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.education-item h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.021em;
  margin: 0 0 6px;
  color: var(--color-dark);
}

.education-item p {
  margin: 0;
}

.education-date {
  display: block;
  margin-top: 4px;
  color: var(--color-gray);
}

/* Footer */
.globalfooter {
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
}

.globalfooter-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 22px;
}

.footer-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--color-gray);
}

.footer-breadcrumb-home {
  color: var(--color-link);
}

.footer-breadcrumb-home:hover {
  text-decoration: underline;
}

.footer-breadcrumb-current {
  color: var(--color-text);
}

.footer-contact {
  margin-bottom: 32px;
}

.footer-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  margin: 0 0 12px;
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--color-text);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.footer-contact .sep {
  margin: 0 8px;
  color: var(--color-gray);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-gray);
}

.footer-legal p {
  margin: 0;
}

.footer-note {
  color: var(--color-gray);
}

/* Responsive */
@media only screen and (max-width: 1068px) {
  :root {
    --section-padding: 64px;
  }

  .section-hero .section-content {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }

  .image-hero {
    width: 260px;
    height: 260px;
  }

  .typography-section-headline {
    font-size: 48px;
  }

  .typography-subsection-subhead {
    font-size: 24px;
  }

  .section-bio p,
  .section-education p {
    font-size: 17px;
  }
}

@media only screen and (max-width: 735px) {
  :root {
    --section-padding: 48px;
  }

  .globalnav-content {
    padding: 0 16px;
  }

  .globalnav-list {
    gap: 10px;
  }

  .globalnav-link {
    font-size: 10px;
  }

  .globalnav-brand {
    font-size: 15px;
  }

  .section-hero .section-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .image-hero {
    width: 220px;
    height: 220px;
  }

  .headlines {
    max-width: 100%;
  }

  .typography-section-headline {
    font-size: 40px;
  }

  .typography-subsection-subhead {
    font-size: 21px;
  }

  .row-logical {
    grid-template-columns: 1fr;
  }

  .column.large-5,
  .column.large-offset-1 {
    grid-column: span 1;
    grid-column-start: auto;
    grid-column-end: auto;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
  }
}

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