@import '../../shared/mixins',
        '../../shared/reset',
        '../../shared/about-dark';

/*
 * Copyright (c) 2012-2013 Thibaut Courouble
 * http://www.cssflow.com
 *
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 */

body {
  font: 12px/20px 'Lucida Grande', Tahoma, Verdana, sans-serif;
  color: #404040;
  background: #dce1e1;
}

$noteBackgroundColor: #f2f6c1;
$noteBorderColor: #c3baaa;
$noteLineColor: #efcfad;

.notepaper {
  position: relative;
  margin: 80px auto;
  padding: 29px 20px 20px 45px;
  width: 280px;
  line-height: 30px;
  color: #6a5f49;
  text-shadow: 0 1px 1px white;
  background-color: $noteBackgroundColor;
  $noteLines: top, transparent, transparent 29px, rgba($noteLineColor, .7) 29px, rgba($noteLineColor, .7) 30px;
  $noteGlow: center, cover, rgba(white, .7), rgba(white, .1) 90%;
  background-image: -webkit-radial-gradient($noteGlow), -webkit-repeating-linear-gradient($noteLines);
  background-image:    -moz-radial-gradient($noteGlow),    -moz-repeating-linear-gradient($noteLines);
  background-image:      -o-radial-gradient($noteGlow),      -o-repeating-linear-gradient($noteLines);
  border: 1px solid $noteBorderColor;
  border-color: rgba($noteBorderColor, .9);
  @include box-sizing(border-box);
  @include box-shadow(inset 0 1px rgba(white, .5),
                      inset 0 0 5px desaturate(darken($noteBackgroundColor, 20%), 10%),
                      0 0 1px rgba(black, .1),
                      0 2px rgba(black, .02));

  &:before, &:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
  }

  &:before {
    left: 28px;
    width: 2px;
    border: solid $noteLineColor;
    border-color: rgba($noteLineColor, .9);
    border-width: 0 1px;
  }

  &:after {
    z-index: -1;
    left: 0;
    right: 0;
    background: rgba($noteBackgroundColor, .9);
    border: 1px solid rgba(darken($noteBorderColor, 12%), .7);
    @include transform(rotate(2deg));
  }
}

.quote {
  font-family: Georgia, serif;
  font-size: 14px;
}

.curly-quotes {
  &:before, &:after {
    display: inline-block;
    vertical-align: top;
    height: 30px;
    line-height: 48px;
    font-size: 50px;
    opacity: .2;
  }

  &:before {
    content: '\201C';
    margin-right: 4px;
    margin-left: -8px;
  }

  &:after {
    content: '\201D';
    margin-left: 4px;
    margin-right: -8px;
  }
}

.quote-by {
  display: block;
  padding-right: 10px;
  text-align: right;
  font-size: 13px;
  font-style: italic;
  color: #84775c;
}

.lt-ie8 .notepaper { padding: 15px 25px; }