/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 20px;
  }
}


/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #202020;
}
.sidebar-profile-img {
  max-width: 12rem;
  margin: 0 auto .5rem;
}
.sidebar-profile-img img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
}
@media (min-width: 48em) and (max-height: 850px) {
  .sidebar-profile-img {
    max-width: 6.75rem;
  }
}

@media (max-width: 768px) {
  .sidebar-profile-img {
    max-width: 140px;
  }
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

.sidebar .lead a {
  color: rgba(255,255,255,.72);
  font-weight: normal;
  text-decoration: none;
}

.sidebar .lead a:hover,
.sidebar .lead a:focus {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Abril Fatface", serif;
  font-size: 2.25rem;
}

/* Sidebar nav */
.sidebar-nav {
  padding-left: 0;
  list-style: none;
}
.sidebar-nav-item {
  display: block;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

.sidebar-legal-links {
  display: flex;
  gap: .35rem;
  align-items: center;
  justify-content: center;
  margin-top: -.65rem;
  font-size: .72rem;
}

.sidebar-legal-links a {
  color: rgba(255,255,255,.62);
  font-weight: normal;
}

.sidebar-legal-links a:hover,
.sidebar-legal-links a:focus {
  color: rgba(255,255,255,.9);
}

@media (min-width: 48em) {
  .sidebar-legal-links {
    justify-content: flex-start;
    margin-top: -.9rem;
  }
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
    max-width: 38rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}



/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (http://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #244b35;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #244b35;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}

.practice-form {
  margin-top: 1.75rem;
  padding: 1.1rem;
  border: 1px solid #dde7df;
  border-radius: 6px;
  background: #fbfcfb;
  box-shadow: 0 .35rem 1.25rem rgba(22, 56, 36, .08);
}

.practice-form label,
.practice-form legend {
  display: block;
  margin: 0 0 .28rem;
  font-size: .82rem;
  font-weight: bold;
  color: #313131;
}

.practice-form-section {
  display: grid;
  gap: .8rem;
}

.practice-field {
  min-width: 0;
}

.practice-form input,
.practice-form textarea {
  width: 100%;
  min-height: 2.25rem;
  padding: .48rem .6rem;
  color: #313131;
  border: 1px solid #cfd9d2;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .15s ease, box-shadow .15s ease, outline-color .15s ease;
}

.practice-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.practice-form input:focus,
.practice-form textarea:focus {
  outline: 2px solid rgba(143, 203, 129, .55);
  outline-offset: 2px;
  border-color: #4f8f45;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03), 0 0 0 3px rgba(143, 203, 129, .15);
}

.practice-form-grid {
  display: grid;
  gap: .8rem;
}

@media (min-width: 36em) {
  .practice-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.practice-form-fieldset {
  margin: 1.1rem 0;
  padding: .9rem;
  border: 1px solid #d8e3db;
  border-radius: 6px;
  background: #f4f8f5;
}

.practice-form-fieldset legend {
  padding: 0 .35rem;
  color: #163824;
}

.practice-fieldset-intro {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .8rem;
}

@media (max-width: 34em) {
  .practice-fieldset-intro {
    display: block;
  }
}

.form-help {
  margin: .1rem 0 0;
  color: #6a6a6a;
  font-size: .85rem;
  line-height: 1.35;
}

.form-help-button,
.practice-dialog button,
.practice-form-submit {
  display: inline-block;
  padding: .45rem .72rem;
  border: 1px solid #163824;
  border-radius: 4px;
  background: #163824;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.form-help-button:hover,
.form-help-button:focus,
.practice-dialog button:hover,
.practice-dialog button:focus,
.practice-form-submit:hover,
.practice-form-submit:focus {
  text-decoration: none;
  box-shadow: 0 .25rem .8rem rgba(22, 56, 36, .16);
}

.form-help-button {
  flex: 0 0 auto;
  background: #fff;
  color: #163824;
  font-size: .8rem;
}

.practice-form-submit {
  min-width: 9rem;
  padding: .55rem .9rem;
}

.practice-form-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.form-checkbox {
  display: flex !important;
  gap: .45rem;
  align-items: flex-start;
  margin: 0 !important;
  font-weight: normal !important;
}

.form-checkbox input {
  width: auto;
  min-height: 0;
  margin-top: .3rem;
}

.form-legal-consent {
  margin-top: .8rem !important;
  color: #5f6862;
  font-size: .8rem;
}

.form-checkbox-row {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: .1rem;
  padding: .65rem .7rem;
  border: 1px solid #d8e3db;
  border-radius: 5px;
  background: #fff;
}

.form-checkbox-row .form-help-button {
  white-space: nowrap;
}

@media (max-width: 34em) {
  .form-checkbox-row {
    display: block;
  }

  .form-checkbox-row .form-help-button {
    margin-top: .65rem;
    white-space: normal;
  }
}

.form-status {
  margin-bottom: .9rem;
  font-size: .9rem;
  font-weight: bold;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: #1f6f37;
}

.form-status.error {
  color: #ac4142;
}

.form-status.pending {
  color: #515151;
}

.practice-form-actions {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid #dde7df;
  text-align: right;
}

.practice-dialog {
  max-width: 28rem;
  padding: 1.1rem;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
}

.practice-dialog::backdrop {
  background: rgba(0, 0, 0, .35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
