/* === font-face.css === */
@font-face {
  font-family: "neue-montreal";
  src: url("/fonts/neue-montreal-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "neue-montreal";
  src: url("/fonts/neue-montreal-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* === base.css === */
/* Tokens */
:root {
  --color-primary: oklch(58% 0.047 46);
  --color-primary-light: oklch(58.034% 0.04755 45.596 / 0.439);
  --color-gray-dark: oklch(23% 0.005 247);
  --color-gray-medium: oklch(40% 0.015 247);
  --color-gray-light: oklch(84% 0.005 247);
  --color-page-bg: oklch(98% 0.003 86);
  --font-sans: "neue-montreal", system-ui, sans-serif;
}

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

/* Page */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--color-gray-medium);
  background-color: var(--color-page-bg);
}

main {
  max-width: 740px;
  margin-inline: auto;
  padding: 60px 20px 80px;
}

/* Elements */
h2 {
  margin-block: 20px 23px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

h3 {
  margin-block: 1.2em 15px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--color-gray-dark);
}

strong {
  font-weight: 500;
  color: var(--color-gray-dark);
}

a {
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  color: inherit;

  &:hover,
  &:focus-visible {
    color: var(--color-primary);
  }
}

ul {
  margin-top: 1.2em;
  margin-bottom: 48px;
  list-style: none;
}

li {
  margin-bottom: 2.6em;
  padding-left: 2em;
  font-size: 15px;
  line-height: 1.6;
  border-left: 1px solid var(--color-primary-light);

  strong {
    display: block;
    margin-bottom: 0.5em;
  }
}

hr {
  margin-block: 48px;
  border: 0;
  border: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.text-oversized :is(h1, p) {
  max-width: 46ch;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-gray-dark);
}


/* === home.css === */
/* Hero */
.hero {
  margin-bottom: 64px;

  .image-container {
    width: 124px;
    margin-top: 60px;

    img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 50%;
    }
  }
}

/* Career chapters */
.career-chapters {
  p {
    margin-bottom: 40px;
  }
}

/* Contact */
.contact p {
  max-width: 46ch;
}
