/**
 * ============================================================================
 * WEBSTYLES.CSS - Main Site Stylesheet (Optimized)
 * ============================================================================
 * @author Vu Nguyen
 * ============================================================================
 */

@charset "UTF-8";

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */

:root {
  --color-text: #828282;
  --color-text-dark: #505050;
  --color-accent: #0e0e7b;
  --color-accent-hover: #003087;
  --font-base: 'Helvetica Neue', Helvetica, sans-serif;
  --font-size-base: 18px;
  --font-size-small: 14px;
  --line-height: 1.3em;
  --content-width: 500px;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: var(--font-base);
}

/* =============================================================================
   LAYOUT
   ============================================================================= */

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.intro {
  text-align: justify;
  text-justify: inter-word;
  margin: 1.5rem 0;
}

.intro p { display: block; }

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

p, ul {
  font: 300 var(--font-size-base)/var(--line-height) var(--font-base);
  color: var(--color-text);
  margin: 0;
}

h1, h2 {
  display: inline;
  font-family: var(--font-base);
  margin: 0;
}

h1 {
  font-weight: 700;
  font-stretch: condensed;
  font-size: 30px;
  color: var(--color-accent);
}

h2 {
  font-weight: 200;
  font-size: 24px;
  line-height: 1.2em;
  color: var(--color-text);
}

/* =============================================================================
   LINKS
   ============================================================================= */

a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

a:hover { text-decoration: none; }

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.nav-links {
  margin-bottom: 1rem;
}

.nav-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--font-size-small);
}

.nav-links a:hover {
  color: var(--color-accent-hover);
}

.nav-sep {
  color: var(--color-text);
  font-size: var(--font-size-small);
  margin: 0 0.25rem;
}

/* =============================================================================
   CONTACT
   ============================================================================= */

.contact-line {
  font-size: var(--font-size-small);
  color: var(--color-text);
}

.contact-line a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--color-accent-hover);
}

/* =============================================================================
   POLYHEDRON HINT
   ============================================================================= */

.polyhedron-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: -10px;
}

.polyhedron-hint span {
  font-size: 10px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 600px) {
  :root {
    --font-size-base: 19px;
    --font-size-small: 14px;
  }
  
  .site-container { padding: 1rem 0.5rem; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
}