/* ============================================================
   FONT
   Self-hosted Cutive Mono for reliability on slow connections.
   Download cutive-mono.woff2 from Google Fonts and place it in
   assets/fonts/ — see assets/fonts/README.md for instructions.
   The fallback stack ensures readable monospace even if the
   font file hasn't loaded (important for 2G users).
   ============================================================ */
@font-face {
  font-family: 'Cutive Mono';
  src: url('../fonts/CutiveMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Cutive Mono', 'Courier New', Courier, monospace;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

/* ============================================================
   LINKS
   ============================================================ */
a:link    { color: black; }
a:visited { color: blue; }
a:hover   { color: black; background-color: yellow; }
a:active  { color: #0000FF; }

/* ============================================================
   LAYOUT — DESKTOP (>=1200px)
   ============================================================ */
@media (min-width: 1200px) {
  #pagewrap {
    width: 960px;
    margin: 15px auto;
  }

  header {
    height: auto;
    padding: 5px 10px;
  }

  header > i {
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
  }

  .my-header h1 {
    display: inline;
  }

  .lang-switcher {
    float: right;
    padding: 5px 15px 5px 0;
  }

  #content {
    width: 435px;
    float: left;
    padding: 5px 10px;
    margin: 5px;
  }

  #middle {
    width: 465px;
    float: left;
    padding: 5px 15px 5px 5px;
    margin: 5px;
  }

  footer {
    clear: both;
    padding: 5px 15px;
    text-align: center;
  }

  #smallfooter {
    clear: both;
    padding: 10px;
    text-align: center;
    font-size: 80%;
  }
}

/* ============================================================
   LAYOUT — MOBILE (<1200px)
   ============================================================ */
@media (max-width: 1199px) {
  #pagewrap {
    width: 100%;
  }

  header {
    padding: 2%;
  }

  header > i {
    margin-bottom: 0.5%;
    display: block;
  }

  .lang-switcher {
    display: block;
    margin-top: 0.25rem;
  }

  #content,
  #middle {
    width: 100%;
    padding: 2%;
  }

  footer {
    clear: both;
    padding: 2%;
    text-align: center;
    font-size: 80%;
  }

  #smallfooter {
    clear: both;
    padding: 2%;
    text-align: center;
    font-size: 65%;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.clearfix { clear: both; }

/* ============================================================
   LANGUAGE SWITCHER
   Active language is underlined so users know where they are.
   ============================================================ */
.lang-switcher a {
  text-decoration: none;
}

.lang-switcher a.active {
  text-decoration: underline;
  font-weight: bold;
  color: black;
}

/* ============================================================
   BANNER IMAGE
   ============================================================ */
.one-image img {
  width: 100%;
  display: block;
}

/* ============================================================
   PROJECTS — semantic <dl> styling
   ============================================================ */
.project {
  margin-bottom: 1rem;
}

.project h3 {
  margin-bottom: 0.25rem;
}

.project dl {
  margin: 0;
  padding: 0;
}

.project dt {
  display: inline;
  font-weight: bold;
}

.project dd {
  display: inline;
  margin: 0;
}

.project dd::after {
  content: '';
  display: block;
  margin-bottom: 0.1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer address {
  font-style: normal;
}

.social-links {
  margin: 0.5rem 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.message404 {
  margin-top: 15rem;
  text-align: center;
}

.error-code {
  font-size: 5rem;
  margin: 0;
}
