/* Daniyal Hassan — personal site.
   Visual modeled on sergio.bz (Skeleton CSS + custom overrides).
   Light only. Headings in Avenir Next/Helvetica; body copy in Open Sans. */

/* -------- Skeleton Overrides ---------- */

body {
  font-family: "Avenir Next", "HelveticaNeue", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
h4, h5, h6 { font-weight: 500; margin: 0; }

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { font-size: 14px; }

ul > ul, ul > ol, ol > ol, ol > ul, ol > li, ul > li { margin: 5px 0; }
ul, ol, dl { margin: 10px 0; }
ul { list-style-type: square; }

a { text-decoration: none; }

/* -------- Header ---------- */

header {
  border-top: 5px solid #000;
  padding: 25px 0;
}

/* -------- Sections ---------- */

section {
  vertical-align: middle;
  padding: 24px 0;
}

section.gray {
  border-top: 1px solid #d3d3d3;
  border-bottom: 1px solid #d5d5d5;
  background: #f8f8f8;
  box-shadow: inset 0px 1px 4px 0px rgba(0, 0, 0, 0.125);
}

section.mini, section#bye {
  padding: 10px 0;
}

section#bye {
  text-align: center;
}

/* -------- Who Am I? (photo + bio) ---------- */

.photo {
  position: relative;
}

.photo img {
  padding: 3px;
  border: 1px solid #ccc;
  margin-top: 10px;
}

article#whoami > h5 {
  margin-top: 0;
}

/* -------- Article ---------- */

article, article p {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 30px;
  font-weight: normal;
}

article > p {
  margin: 10px 0;
}

/* Breathing room between bullets, so long entries stay scannable. */
article ul {
  margin: 14px 0;
}

article li {
  margin-bottom: 12px;
}

article a, article a:visited {
  font-weight: 600;
  color: #596db0;
}

article a:hover {
  color: #000;
  cursor: pointer;
  position: relative;
}

article a:hover:after {
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 1px;
  border: 1px dashed #000;
}

article h1, article h2, article h3,
article h4, article h5, article h6 {
  letter-spacing: 0.5px;
  padding: 0;
  font-weight: 600;
  margin: 15px 0 0 0;
}

article h1, article h2, article h3 {
  margin: 10px 0 0 0;
}

/* -------- Footer ---------- */

body > footer {
  padding: 25px 0;
  text-align: center;
}

body > footer .heart {
  display: inline-block;
  line-height: 0;
  color: #000;
  transition: color 0.2s ease;
}

body > footer .heart svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  vertical-align: middle;
}

body > footer .heart:hover {
  color: #cc1111;
}

/* -------- Mobile ---------- */

@media (max-width: 550px) {
  header .column { text-align: center; }
  article { margin-right: 0; }
  article p { margin: 20px 0; }
}
