/* ================================================================
   QUICK EDITS: BACKGROUND, COLOURS, AND SIDEBAR WIDTH
   All page text and links are in index.html.
   ================================================================ */
:root {
  --background-image: url("assets/images/background.jpg");
  --sidebar-background: #222222;
  --sidebar-text: #777777;
  --sidebar-heading: #cccccc;
  --sidebar-link-hover: #999999;
  --social-colour: #555555;
  --hero-text: #ffffff;
  --button-colour: #dddddd;
  --sidebar-width: 300px;
  --slide-duration: 0.7s;
  --slide-easing: cubic-bezier(0.16, 0.68, 0.43, 0.99);
}

/* Original typefaces, stored locally. No online font services needed. */
@font-face {
  font-family: Lato;
  src: url("assets/fonts/lato-hairline.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("assets/fonts/lato-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("assets/fonts/lato-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("assets/fonts/montserrat-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Base */
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--sidebar-background);
  font-family: Lato, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 14px;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, p, ul { margin: 0; padding: 0; }
h1, h2 { font-weight: 400; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
[hidden] { display: none !important; }

/* Full-screen background and the original header spacing. */
.site-frame { position: relative; height: 100%; }
.page-background {
  position: absolute;
  inset: 0;
  background-color: #f8f8f8;
  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.site-header { height: 90px; padding-top: 50px; }
.menu-toggle {
  display: block;
  width: 200px;
  height: 40px;
  margin-left: 50px;
  padding: 0;
  border: 0;
  color: var(--hero-text);
  background: transparent;
  text-align: left;
}
.menu-toggle img { display: block; margin-bottom: 23px; }

/* Hero: proportions, line heights, and spacing match the 2020 page. */
.hero {
  display: table;
  width: 100%;
  height: 100%;
  color: var(--hero-text);
}
.hero-content {
  display: table-cell;
  padding: 50px 0;
  text-align: center;
  vertical-align: middle;
  animation: fade-in 4s;
}
.logo, .name, .description, .button-wrap {
  max-width: 80%;
  margin-right: auto;
  margin-left: auto;
}
.logo { margin-bottom: 35px; }
.logo img { max-width: 80%; height: auto; vertical-align: baseline; }
.name {
  margin-bottom: 30px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 120px;
  line-height: 110px;
  letter-spacing: -4px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(0 0 0 / 20%);
}
.description {
  margin-bottom: 55px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 100;
  text-shadow: 0 1px 0 rgb(0 0 0 / 20%);
}
.button-wrap { margin-bottom: 50px; }
.learn-more {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--button-colour);
  border-radius: 21px;
  background: transparent;
  color: var(--button-colour);
  line-height: 14px;
  text-transform: uppercase;
}
.learn-more:hover { border-color: var(--hero-text); color: var(--hero-text); }

/* Slide-out about panel */
.sidebar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--sidebar-background);
  color: var(--sidebar-text);
  transform: translate3d(-100%, 0, 0);
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-inner { padding: 47px 50px 50px; }
.widget { padding-bottom: 44px; font-size: 14px; line-height: 18px; }
.widget-title {
  margin-bottom: 19px;
  color: var(--sidebar-heading);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
}
.project-list {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
}
.project-list li { margin-bottom: 10px; }
.project-list li:last-child { margin-bottom: 0; }
.project-list a { display: block; transition: color 1s; }
.project-list a:hover { color: var(--sidebar-link-hover); transition-duration: 0.1s; }
.social-links { display: flex; align-items: baseline; gap: 2.7px; padding-bottom: 45px; }
.social-link {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  background-color: var(--social-colour);
  mask-repeat: no-repeat;
  mask-size: contain;
  transition: background-color 1s;
}
.social-link:hover { background-color: var(--sidebar-link-hover); transition-duration: 0.1s; }
.social-facebook { mask-image: url("assets/icons/facebook.svg"); }
.social-linkedin { mask-image: url("assets/icons/linkedin.svg"); }
.social-email { width: 22px; height: 22px; margin-left: 1px; mask-image: url("assets/icons/email.svg"); }

.sidebar, .site-frame { transition: transform var(--slide-duration) var(--slide-easing); }
.sidebar-open .sidebar { transform: translate3d(0, 0, 0); }
.sidebar-open .site-frame { transform: translate3d(var(--sidebar-width), 0, 0); }
.site-overlay {
  position: fixed;
  z-index: 10;
  inset: 0 0 0 var(--sidebar-width);
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Original responsive breakpoints */
@media (max-width: 1280px) {
  .page-background { overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
  .page-background::-webkit-scrollbar { display: none; }
  .hero-content { padding: 35px 0; }
  .name { letter-spacing: -3px; }
  .description { font-size: 28px; line-height: 32px; font-weight: 300; }
}
@media (max-width: 720px) {
  .hero-content { padding: 25px 0; }
  .name { font-size: 90px; line-height: 80px; letter-spacing: -2px; }
  .description { font-size: 24px; line-height: 28px; }
}
@media (max-width: 500px) {
  .site-header { height: 65px; padding-top: 25px; }
  .menu-toggle { margin-left: 25px; }
  .hero-content { padding: 20px 0; }
  .logo, .name, .description, .button-wrap { max-width: 90%; }
  .name { font-size: 70px; line-height: 60px; letter-spacing: -1px; }
  .description { font-size: 20px; line-height: 24px; }
  .sidebar-inner { padding: 22px 25px 25px; }
  .widget, .social-links { padding-bottom: 34px; }
}
@media (max-width: 400px) {
  :root { --sidebar-width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  .sidebar, .site-frame, .project-list a, .social-link { transition: none; }
}
