@import url("variables.css");
@import url("header.css");
@import url("footer.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.65;
}

.navbar {
  display: flex;
  min-height: 64px;
  justify-content: flex-end;
  align-items: center;
  background-color: var(--secondary);
  color: var(--text);
  padding: 0 clamp(1rem, 5vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(131 118 80 / 45%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.navbar a {
  text-decoration: none;
}

.navbar a:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: -2px;
}

.section {
  width: min(1100px, calc(100% - 2rem));
  margin: 3rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--secondary);
  border: 1px solid rgb(131 118 80 / 62%);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgb(0 0 0 / 16%);
  scroll-margin-top: 5rem;
}

.section h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.section h2,
.section h3 {
  color: var(--text);
  line-height: 1.3;
}

.section h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.section hr {
  height: 1px;
  margin: 1.25rem 0 1.75rem;
  border: 0;
  background: rgb(131 118 80 / 65%);
}

.section-block {
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgb(250 250 250 / 10%);
}

.flex {
  display: flex;
}

.section-block:last-child {
  border-bottom: 0;
}

.position {
  flex: 0 0 25%;
  min-width: 180px;
}

.position p:first-child {
  margin-top: 0;
  color: var(--text);
  font-weight: 700;
}

.sectionItem {
  margin: 0;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.sectionItem:hover {
  color: #d8c797;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(1100px, calc(100% - 2rem));
  margin: 1.75rem auto 2rem;
  scroll-margin-top: 5rem;
}

.intro-portrait {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 480px;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center 35%;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding-left: clamp(2rem, 5vw, 4.5rem);
  border-left: 1px solid var(--border);
}

.intro-role {
  margin: 0 0 1rem;
  color: #d8c797;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin: 0;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.95;
}

.intro-copy h1 span {
  display: block;
}

.intro-summary {
  margin: 1rem 0;
  color: rgb(250 250 250 / 78%);
  font-size: 1.2rem;
}

.intro-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
}

.intro-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration-color: rgb(250 250 250 / 55%);
  text-underline-offset: 0.3em;
  transition: color 160ms ease;
}

.intro-socials a:hover {
  color: #d8c797;
}

.intro-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.home-container {
  text-align: center;
}

#portrait {
  width: min(200px, 55vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
}

.header {
  text-align: center;
  margin: 4rem auto 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

#summary {
  border: 1px solid rgb(131 118 80 / 62%);
  background-color: var(--secondary);
  max-width: 34rem;
  border-radius: 12px;
  font-size: 1.05rem;
  padding: 1.5rem;
}

#images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.image {
  border: 1px solid rgb(131 118 80 / 62%);
  border-radius: 12px;
  background: var(--primary);
  text-align: center;
  padding: 0.75rem;
}

.image > p {
  margin: 0.5rem 0 0;
}

.project {
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.5rem 0;
  border-top: 1px solid rgb(250 250 250 / 10%);
}

.project-item1 {
  flex: 0 1 34%;
}

.project-item2 {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.project,
.section-block img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.project-item2 img {
  width: calc(50% - 0.5rem);
}

.projects-section .section-block {
  padding: 0.5rem 0 0;
  border-bottom: 0;
}

.projects-section .flex {
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.projects-section .position {
  flex: 0 0 30%;
  min-width: 0;
}

.projects-section .position h2 {
  margin-bottom: 1rem;
}

.projects-section .position > img {
  display: block;
  width: min(100%, 160px);
  margin-bottom: 1rem;
}

.projects-section .position > a {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0.5rem 0 0;
}

.projects-section .position > a img {
  display: block;
  width: auto;
  height: 40px;
}

.section a {
  color: #d8c797;
  text-underline-offset: 0.2em;
}

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

.section li + li {
  margin-top: 0.65rem;
}

.experience-item {
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid rgb(131 118 80 / 62%);
  background-color: var(--secondary);
  border-radius: 12px;
}

.subText {
  color: #f7f7f782;
  padding: 0;
}

@media (max-width: 700px) {
  .navbar {
    justify-content: center;
    padding: 0 0.25rem;
  }

  .section {
    width: calc(100% - 1.25rem);
    margin: 1.25rem auto;
    padding: 1.25rem;
    border-radius: 12px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: calc(100% - 1.25rem);
    margin: 1.25rem auto 1.5rem;
  }

  .intro-portrait {
    width: 100%;
    max-height: 300px;
    aspect-ratio: 1.45;
  }

  .intro-copy {
    padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .intro-copy h1 {
    font-size: 3.5rem;
  }

  .section-block,
  .project,
  .about {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .position,
  .project-item1 {
    flex-basis: auto;
    min-width: 0;
  }

  .projects-section .flex {
    flex-direction: column;
  }

  .projects-section .project-item2 {
    width: 100%;
  }

  .position p:last-child {
    margin-bottom: 0;
  }

  .project-item2 {
    padding: 0;
  }

  #summary {
    max-width: none;
  }

  #images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .intro-copy h1 {
    font-size: 3.25rem;
  }

  .intro-socials {
    gap: 0.75rem 1rem;
  }

  .sectionItem {
    padding: 0.6rem 0.45rem;
    font-size: 0.82rem;
  }

  .project-item2 {
    flex-direction: column;
  }

  .project-item2 img {
    width: 100%;
  }

  .projects-section .project-item2 {
    grid-template-columns: 1fr;
  }
}

.section-block > ul {
  padding-left: 0;
}

.tags {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  min-height: 28px;

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #dfdfdf;
  letter-spacing: 0.2px;

  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.9),
    0 -1px 0 rgba(0, 0, 0, 0.4);

  border-radius: 9999px;
  border: 1px solid #141414;
  outline: none;
  cursor: pointer;
  user-select: none;

  background: linear-gradient(
    to bottom,
    #5c5c5c 0%,
    #4a4a4a 45%,
    #323232 50%,
    #3d3d3d 100%
  );

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);

  transition: all 0.1s ease-in-out;
}
