/*

Project:        chrisgriffin.org v4 master stylesheet
Last Changed:   2009-07-11

*/
                
/*##################################################################################
  =table of contents
  ##################################################################################

	1.	colors
	2.	stylesheet imports
	  A. global reset
	3.	general styles
  4.  helper styles
  5.  layout structure
  6.  view components
  7.  overrides

####################################################################################
=1) colors
####################################################################################

	Dark Grays:       #242421  (form element bg, footer text)
	                  #3d3d38  (bg)
	                  #4a4a44  (form element border)
	                  #575750  (link underline)
	                  #707067  (borders)
	                  #8a8a7f  (copyright text)
  Light Grays:      #a3a396  (mute text)
                    #bdbdae  (site description)
                    #e3e3d1  (footer section border)
                    #f0f0dd  (main nav link)
  Dark Green:       #3b7e17  (button text shadow)
                    #479905  (footer link hover)
                    #699942  (footer link)
	Green:            #9ee663  (muted link)
	Med Green:        #7bb34d  (logo bg)
  Light Green:      #afff6e  (defaut link)
                    #cbffa1  (logo hover)
                    #e3e3d1  (copyright footer border)
  Saturated Green:  #85ff21  (hover link)
                    #8ccc58  (logo border)
  Dark Red          #240a04  (error bg)
  Red               #57170a  (error border)
  Light Red         #ff9985  (error message)
	White:            #fff     (body text) 

*/

/*##################################################################################
=3) general styles
##################################################################################*/

/* body styles, links headings, other elements, tags go here. */

#grid { /* Diagnostic only */
	background: transparent url(/wp-content/themes/chrisgriffin_v4/images/grid.png) repeat-y;
	height: 6000px;
	position: absolute;
	width: 100%;
	z-index: 999;
}

/*----------------------------------------------------------------------------------
=HTML tags
----------------------------------------------------------------------------------*/

/* body */

body {
  font: 13px/20px Helvetica, Arial, sans-serif;
}

/* end */

/* tags */

abbr {
  font-size: 85%;
  letter-spacing: .08em;
}

blockquote {
  margin-bottom: 20px;
  padding: 0 20px 0 19px;
}

ol {
  list-style: decimal outside;
}

p,ul {
  margin-bottom: 20px;
}

sup {
  font-size: 11px;
  vertical-align: super;
}

.section sup a {
  border-bottom: none;
}

ul {
  list-style: outside square;
}

li {
  margin-bottom: 10px;
}

/* end */

/*----------------------------------------------------------------------------------
=headings
----------------------------------------------------------------------------------*/

/* default */

h1 { /* entry titles */
  font-size: 27px;
  font-weight: bold;
  line-height: 40px;
  margin-bottom: 20px;
}

h2 { /* sidebar sections */
  font-size: 17px;
  font-weight: normal;
  margin-bottom: 10px;
}

h3 { /* entry subheadings */
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 10px;
}

h4 { 
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 10px;
}

/* end */

/* heading links */

.section h1 a {
  border-bottom: none;
  text-decoration: none;
}

.section h1 a.permalink {
  font-weight: normal;
  margin-left: 5px;
}

/* end */

/* heading precision */

.ancillary h3,
.main h2 {
  margin-bottom: 0;
}

#sidebar h3 {
  font-size: 13px;
  font-weight: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* end */

/*----------------------------------------------------------------------------------
=links
----------------------------------------------------------------------------------*/

a:focus {
  outline: 1px dotted invert;
}

a {
  text-decoration: none;
}

/* end */

/* link classes */

.permalink {
  margin-left: 5px;
}

.rss {
  border-bottom: none !important;
  padding-left: 18px;
}

/* end */

/* link icons */

/*#site_description p a {
  padding-right: 10px;
}*/

#site_description p a:hover {
  background-position: right -18px;
  border-bottom: none;
}

.section .comments_link {
  border-bottom: none;
  padding-left: 18px;
}

#entry_nav .prev a,
#entry_nav .next a {
  border-bottom: none;
}

#entry_nav .prev a {
  padding-left: 10px;
}

#entry_nav .prev a:hover {
  background-position: left -20px;
}

#entry_nav .next a {
  padding-right: 10px;
}

#entry_nav .next a:hover {
  background-position: right -20px;
}

.section a.more-link {
  border-bottom: none;
  padding-right: 10px;
}

.section a.more-link:hover {
  background-position: right -20px;
}

/* end */

/*----------------------------------------------------------------------------------
=clear fix
----------------------------------------------------------------------------------*/

.clear:after {
	clear: both;
	content: '.';
	display: block;
	visibility: hidden;
	height: 0;
}

.clear {
	display: inline-block;
}

* html .clear {
	height: 1%;
}

.clear {
	display: block;
}

/* end */

/*##################################################################################
=4) helper styles
##################################################################################*/

/* forms, cosistent items with just one class go here */


/*----------------------------------------------------------------------------------
=form elements
----------------------------------------------------------------------------------*/

label {
  line-height: 39px;
}

input[type=text] {
  font-size: 16px;
  padding: 9px;
  width: 300px;
}

input[type=submit] {
  font-weight: bold;
  height: 50px;
  text-transform: uppercase;
}

textarea {
  font: 13px Helvetica, Arial, sans-serif;
  height: 140px;
  margin-bottom: 20px;
  padding: 9px;
  width: 400px;
}

/* end */

/* form layout */

fieldset .ancillary {
  border-top: none;
  margin-bottom: 10px;
  padding-top: 9px;
}

fieldset .main {
  margin-bottom: 10px;
  margin-top: 9px;
}

fieldset .form_submit {
  margin-bottom: -10px;
}

/* end */

/* =form classes */

.form_submit {
  margin: 0;
  clear: both;
}

/* search */

#search input[type=text] {
  background: none;
  border: none;
  float: left;
  font-size: 16px;
  padding: 8px;
  width: 190px;
}

#search input[type=submit] {
  display: block;
  float: left;
  font-weight: bold;
  height: 32px;
  text-indent: -9999px;
  text-transform: uppercase;
  width: 76px;
}

/* end */

/* graphics for buttons */

input.add_your_reply,
input.send_message {
  text-indent: -9999px;
  width: 155px;
}

/* end */

/* form validation */

.req {
  padding-left: 15px;
}

/* end */

/*----------------------------------------------------------------------------------
=utility classes
----------------------------------------------------------------------------------*/

/* margin adjustments */

.double {
  margin-bottom: 40px !important;
}

.half {
  margin-bottom: 10px !important;
}

.zero {
  margin-bottom: 0 !important;
}

/* end */

/* right alignment */

p.right {
  float: right;
}

/* end */

/*##################################################################################
=5) layout structure
##################################################################################*/

/* skeleton and page furniture goes here */

.wrapper {
  margin-top: 10px;
  width: 960px;
}

#upper {
  min-height: 600px;
  overflow: hidden;
  padding-bottom: 20px;
}

/*----------------------------------------------------------------------------------
=grid
----------------------------------------------------------------------------------*/

.grid_2,
.grid_4,
.grid_8,
.grid_10,
.grid_12,
.grid_16,
.grid_20 {
  float: left;
  margin-left: 20px;
}

.grid_2 {
  width: 60px;
}

.grid_4 {
  width: 140px; 
}

.grid_8 {
  width: 300px;
}

.grid_10 {
  width: 380px;
}

.grid_12 {
  width: 460px;
}

.grid_16 {
  width: 620px;
}

.grid_20 {
  width: 780px;
}

.grid_2.full,
.grid_4.full,
.grid_8.full,
.grid_12.full,
.grid_16.full,
.grid_20.full {
  margin-left: 0;
}

.grid_2.full {
  width: 80px;
}

.grid_4.full {
  width: 160px;
}

.grid_8.full {
  width: 320px
}

.grid_10.full {
  width: 400px;
}

.grid_12.full {
  width: 480px
}

.grid_16.full {
  width: 640px
}

.grid_20.full {
  width: 800px;
}

.alpha {
  margin-left: 0;
}

.push_4 {
  margin-left: 180px;
}

.push_4.alpha {
  margin-left: 160px;
}

/* end */

/*----------------------------------------------------------------------------------
=header
----------------------------------------------------------------------------------*/

#switcher {
  float: right;
  margin-bottom: 0;
  margin-right: 15px;
}

#switcher li {
  font-size: 11px;
  display: inline-block;
  margin-bottom: 9px;
  margin-right: 5px;
}

#switcher li a {
  display: block;
  line-height: 11px;
  padding: 3px;
}

#header {
  border-left: none;
  border-right: none;
  clear: both;
  padding: 9px 0;
}

#logo a {
  border-left: none;
  display: block;
  line-height: 38px;
  text-indent: -9999px;
}

#logo a:hover {
  border-left: none;
}

#main_nav {
  border-left: none;
  padding-right: 3px;
}

#main_nav ul {
  float: right;
  list-style: none;
  margin-bottom: 0;
}

#main_nav ul li {
  float: left;
  margin-bottom: 0;
}

#main_nav ul li a {
  font-weight: bold;
  line-height: 38px;
  padding: 9px 20px;
  text-decoration: none;
  text-transform: uppercase;
}

#main_nav ul li a:hover {
  border-bottom: none;
}

#search {
  float: right;
  height: 32px;
  margin-left: 10px;
  margin-right: 20px;
  padding: 3px;
  width: auto;
}

#site_description {
  font-size: 32px;
  line-height: 48px;
  /*line-height: 80px;*/  
  /*margin-left: 20px;*/
}

#site_description p {
  margin-bottom: 0;
}

/* end */

/*----------------------------------------------------------------------------------
=footer
----------------------------------------------------------------------------------*/

#footer {
  clear: both;
  overflow: auto;
}

#footer .wrapper {
  margin-left: 160px;
  margin-top: 0;
  width: 800px;
}

#footer a span {
  display: block;
  float: right;
}

#copyright {
  clear: both;
  padding: 19px 20px 20px;
}

/* end */

/*##################################################################################
=6) view components
##################################################################################*/

/* view components that are used globally go here */

/*----------------------------------------------------------------------------------
=comments
----------------------------------------------------------------------------------*/

/* commentary */

#comments {
  clear: both;
}

#comments li .ancillary {
  border-top: none;
  padding-top: 19px;
}

#comments li .ancillary cite {
  font-style: normal;
}

#comments li .ancillary cite span {
  display: block;
}

#comments li div.avatar {
  margin-top: 19px;
}

#comments li div.avatar img {
  padding: 1px;
}

/* end */

/*----------------------------------------------------------------------------------
=entry
----------------------------------------------------------------------------------*/

.main.entry,
.main.link {
  margin-bottom: 10px;
  margin-top: 10px;
}

.section.sub .ancillary.meta {
  overflow: hidden;
  padding-top: 16px;
  text-align: right;
}

.meta p {
  line-height: 21px;
  padding-left: 9px;
}

.meta p:last-child {
  border-bottom: none;
  line-height: 22px;
}

.section .meta a {
  border-bottom: none;
}

.main h1 {
  margin-bottom: 0;
}

.main.entry h1 {
  letter-spacing: -0.03em;
}

.main.link h1 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.main img {
  padding: 3px;
}

.section.borderless.taxonomy .ancillary {
  padding-top: 0;
}

.section.borderless.taxonomy .main {
  margin-top: 0;
}

.footnotes {
  font-size: 13px;
}

.footnotes a.footnote-back-link {
  border-bottom: 0;
}

/*----------------------------------------------------------------------------------
=link list
----------------------------------------------------------------------------------*/

/* This is kind of hokey, but unless I dug into the Wordpress function for 
permalinks, I couldn't encompass everything into one anchor, so instead I used a 
negative margin to mimick a hover on the link and the date */

ul.link_list li {
  list-style: none;
  margin: 0 -20px 10px;
}

.section ul.link_list li span {
  display: block;
  margin-left: 20px;
}

.section ul.link_list li a {
  border-bottom: none;
  display: block;
  margin-top: -30px;
  padding: 30px 20px 10px;
}

ul.link_list li em {
  font-style: normal;
}

ul.link_list li a:hover em {
  border-bottom: none;
}

/* end */

/*----------------------------------------------------------------------------------
=section
----------------------------------------------------------------------------------*/

/* global (main) */

.section {
  clear: both;
}

.section.borderless {
  border: none;
}

.section.borderless .ancillary {
  border-top: none;
  padding-top: 20px;
}

.section.sub .ancillary {
  border-top: none;
  padding-top: 19px;
}

.ancillary {
  margin-bottom: 20px;
  padding: 16px 0 0 20px;
  text-align: right;
}

.main {
  font-size: 15px;
  line-height: 22px;
  margin: 19px 20px 20px;
}

/* end */

/* sidebar section */

#sidebar .section {
  padding: 19px 20px 20px;
}

#sidebar .section ul {
  list-style: none;
}

#sidebar .section p:last-child {
  margin-bottom: 0;
}

/* end */

/* footer section */

#footer .section {
  padding: 10px 20px 20px;
}

/* end */

/*##################################################################################
=7) overrides
##################################################################################*/

/* Everything that is "one-off" will go here. The goal is using this area as a last resort, any patterns or reusable CSS should not go here */

/*----------------------------------------------------------------------------------
=archives
----------------------------------------------------------------------------------*/

.archives .main {
  font-size: 15px;
}

.archives .main a,
.archives .main span {
  margin-left: 10px;
}

.archives .main a:first-child,
.archives .main span:first-child {
  margin-left: 0;
}

