/* ==================== Hero ==================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4.5rem;
  background: var(--color-background);
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding: 9rem 0 6rem;
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4.5rem;
  }
}

.hero-content {
  text-align: left;
}

.hero-greeting {
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw + 1rem, 5rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero-title .highlight {
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-family: var(--font-display);
}

.hero-tagline {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 48ch;
  margin: 0 0 2.5rem;
  line-height: var(--line-height-relaxed);
}

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

.hero-image-wrapper {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 4 / 5;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== Section Headers ==================== */
.section-heading {
  margin-bottom: 3rem;
  max-width: 660px;
}

.section-heading .eyebrow {
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-intro {
  max-width: 58ch;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.about,
.contact {
  background-color: var(--color-surface);
}

/* ==================== About ==================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 780px;
}

.about-lede {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  color: var(--color-text);
  line-height: var(--line-height-snug);
  max-width: 54ch;
}

@media (min-width: 768px) {
  .about-lede {
    font-size: 1.4375rem;
  }
}

/* ==================== Skills ==================== */
.skills-rows {
  display: grid;
  grid-template-columns: 1fr;
}

.skills-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.skills-rows > .skills-row:first-child {
  border-top: none;
  padding-top: 0;
}

@media (min-width: 700px) {
  .skills-row {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.skills-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.skills-list li {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
}

.skills-list li:not(:last-child)::after {
  content: ",";
  margin-right: 0.45rem;
  color: var(--color-text-subtle);
}

/* ==================== Education ==================== */
.education-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .education-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.education-content h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.education-school {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.education-option {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.education-program-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.education-period {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  font-variant-numeric: tabular-nums;
}

/* ==================== Contact ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
  }
}

.contact-form {
  max-width: 540px;
  margin: 0;
}

.contact-note {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ==================== Project Detail Pages ==================== */
.project-detail-page {
  padding-top: 5.5rem;
}

.project-detail-page .project-hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.project-detail-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 2.25rem;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.project-detail-page .back-link:hover {
  color: var(--color-text);
}

.project-detail-page .project-hero h1 {
  margin-bottom: 0.65rem;
}

.project-detail-page .project-hero > .container > p {
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.project-detail-page .project-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 4.5rem 0;
}

.project-detail-page .project-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.project-detail-page .project-section:last-of-type {
  border-bottom: none;
}

.project-detail-page .project-section h2 {
  font-size: 1.625rem;
  margin-bottom: 1.35rem;
  color: var(--color-text);
}

.project-detail-page .project-section h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.85rem;
}

.project-detail-page .project-section h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 1.75rem 0 0.65rem;
}

.project-detail-page .project-section p {
  color: var(--color-text-muted);
  margin-bottom: 0.9rem;
}

.project-detail-page .project-section ul {
  list-style: none;
  padding: 0;
}

.project-detail-page .project-section li {
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
  padding-left: 1.25rem;
  position: relative;
}

.project-detail-page .project-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.3rem;
  height: 1px;
  background: var(--color-text-subtle);
}

.project-detail-page .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-detail-page .tech-item {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.project-detail-page .project-footer {
  display: flex;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 1.75rem 0 0;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-wide {
    grid-column: 1 / -1;
  }
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 0.75rem;
}

/* A portrait phone capture is roughly three times the height of the other
   shots; left unconstrained it dominates the grid and strands its neighbour. */
.shot-tall img {
  max-width: 260px;
}

.shot figcaption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-subtle);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

.swatch::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--swatch);
  border: 1px solid var(--color-border);
}

.taskmate-page .screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.taskmate-page .screenshots-grid figure {
  margin: 0;
}

.taskmate-page .screenshots-grid img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: block;
  margin: 0 0 0.75rem;
}

.taskmate-page .screenshots-grid figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .project-detail-page {
    padding-top: 4.75rem;
  }

  .project-detail-page .project-footer {
    flex-direction: column;
  }

  .project-detail-page .project-footer .btn {
    width: 100%;
  }
}





/* ==================== 404 Page ==================== */
.error-page-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-background);
}

.error-page-content {
  text-align: left;
  max-width: 520px;
}

.error-page-code {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: var(--color-text-subtle);
  font-variant-numeric: tabular-nums;
}

.error-page-title {
  margin-bottom: 1.15rem;
}

.error-page-message {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
}

.error-page-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .error-page-code {
    font-size: 5rem;
  }
}
