@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Change the palette and page width here. */
:root {
  --page-width: 1140px;
  --background: #f6f8fa;
  --text: #758398;
  --heading: #000;
  --accent: #009bdf;
  --hover-blue: #084088;
  --card-hover: #bfd1ff;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 400;
  line-height: 1.65;
}
a { color: var(--heading); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
p { margin: 0 0 1.6em; }
ul { margin: 0 0 1.5em 3em; padding: 0; }
strong { font-weight: 700; }
h1, h2, h3, .hero-subtitle { margin: 0; color: var(--heading); }
h1, .section-title, .hero-subtitle { font-family: "Playfair Display", serif; font-weight: 800; }
h1 { font-size: 83px; line-height: 1.4; }
.section-title, .hero-subtitle { font-size: 35px; line-height: 1.3; }
h3 { font: 500 22px/1.2 "Barlow Semi Condensed", sans-serif; }
.item-title { font-size: 20px; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
::selection { background: var(--accent); color: #fff; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 15px; top: 15px; z-index: 10; background: #fff; padding: 10px; }

/* Header logo. */
.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 2; padding: 0 20px; }
.header-inner { max-width: 1200px; margin: auto; padding: 17px 0; line-height: 1; }
.header-inner a { display: inline-block; }
.header-inner img { width: 120px; height: 120px; }

/* Simple reusable layout classes. */
.section { padding: 0 10px; }
.inner { width: 100%; max-width: var(--page-width); margin: auto; padding: 10px 0; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.inset { padding: 10px; }
.grid { display: grid; gap: 20px; min-width: 0; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Hero layout and background. */
.hero { position: relative; padding: 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-background.png") no-repeat top right;
  opacity: .3;
  pointer-events: none;
}
.hero > .inner { position: relative; min-height: 100vh; padding: 0; flex-direction: row; gap: 0; align-items: stretch; }
.hero-copy, .hero-photo { display: flex; flex-direction: column; justify-content: center; width: 50%; min-width: 0; }
.hero-divider { padding: 5px 0 55px; }
.hero-divider::before { content: ""; display: block; width: 50px; border-top: 2px solid var(--text); }
.hero-subtitle { padding-bottom: 100px; color: var(--text); }
.hero-photo { padding: 150px 0; }
.portrait { margin: -50px; text-align: center; line-height: 0; }
.portrait img { border-radius: 500px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.availability { text-align: center; color: var(--accent); }
.profile-links > .inner { display: grid; grid-template-columns: 1fr; gap: 20px; }
.button-wrap { text-align: center; }
.button { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 16px; line-height: 1; text-transform: uppercase; letter-spacing: 2px; }
.button:hover, .button:focus { color: #fff; background: var(--hover-blue); }
.intro-space { height: 20px; }

/* Services, biography, and skills. */
.service-card { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.box-icon { color: var(--accent); line-height: 0; }
.service-card .icon { font-size: 35px; }
.service-card h3 { margin-bottom: 2px; }
.box-content { min-width: 0; flex-grow: 1; }
.box-content p { margin: 0; }
.facts { line-height: 66px; }
.skill-grid { grid-template-rows: repeat(2, 1fr); }
.skill-first { margin-bottom: 30px; }
.skill-last { margin-top: -47px; margin-bottom: 49px; }
.language { display: flex; align-items: center; gap: 11px; }
.language .icon { font-size: 26px; }
.language h3 { font-size: 18px; line-height: 1.25; }
.language p { font-size: 18px; line-height: 28.05px; }

/* Experience and achievements. */
.hover-card { transition: background-color .3s; }
.hover-card:hover { background-color: var(--card-hover); }
.metadata, .summary { display: flow-root; }
.card-text-spacing { display: flow-root; margin: -7px 0 -25px; }
.achievement-tags { text-decoration: underline; }
.achievement-description p { margin-bottom: 0; }
.achievement-grid { grid-template-rows: repeat(2, 1fr); }

/* Education and certificate cards. */
.education-grid { grid-template-rows: repeat(2, 1fr); }
.education-card { display: flex; flex-direction: column; gap: 15px; }
.education-card .icon { font-size: 50px; }
.education-card h3 { margin-bottom: 20px; }

/* Contact details. */
.contact-space { height: 70px; }
.contact > .inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.contact .section-title, .contact-intro { text-align: center; }
.contact-intro p { margin-bottom: calc(1.6em - 17px); }
.contact-list-wrap { align-items: center; }
.contact-links { list-style: none; margin: 0; padding: 0; }
.contact-links li + li { margin-top: 18px; }
.contact-links a { display: flex; align-items: center; font-size: 14px; line-height: 1; text-transform: uppercase; }
.contact-links .icon { color: var(--accent); font-size: 25px; margin-right: 7px; }
.bottom-space { height: 132px; }

/* Tablet and phone layouts. */
@media (max-width: 1024px) {
  :root { --page-width: 1024px; }
  .hero { padding: 0 25px; }
  .hero::before { background-size: 450px auto; }
  .hero > .inner { min-height: 80vh; }
  .hero-subtitle { padding-bottom: 65px; }
  .portrait { margin: 0; }
}
@media (max-width: 921px) {
  html { font-size: 15.504px; }
  h1 { font-size: 60px; }
  .section-title, .hero-subtitle { font-size: 30px; }
  h3 { font-size: 1.2941176471rem; }
  .item-title { font-size: 1.1764705882rem; }
  .button { font-size: .9411764706rem; }
  .header-inner { padding: 15.504px 0; }
}
@media (max-width: 767px) {
  :root { --page-width: 767px; }
  .hero { padding: 0 20px 60px; }
  .hero::before { background-size: 360px auto; }
  .hero > .inner { flex-direction: column-reverse; }
  .hero-copy, .hero-photo { width: 100%; }
  .hero-copy { padding-top: 25px; }
  .hero-photo { padding: 120px 0 0; }
  .portrait { margin-left: 24px; }
  .hero-divider { padding-bottom: 25px; }
  .hero-subtitle { padding-bottom: 30px; }
  .grid-two, .grid-three { grid-template-columns: minmax(0, 1fr); }
  .language { flex-direction: column; align-items: flex-start; }
  .language h3, .language p { font-size: 18px; }
  .language p { line-height: 25.5816px; }
  .contact-links a { font-size: 17px; }
  .contact > .inner { grid-template-rows: repeat(2, 1fr); }
}
@media (max-width: 544px) {
  h1 { font-size: 45px; }
  .section-title, .hero-subtitle { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
