/*
 * Larger shared typography enhancement for Handy Scripts
 * Load this file AFTER the existing theme stylesheet on every page.
 * Example:
 * <link rel="stylesheet" href="/css/shared-font-size.css" type="text/css" media="screen">
 */

/* Base text: increases the original 10px site-wide scale to a comfortably larger 14px. */
html {
  font-size: 100%;
}

body {
  font-size: 14px;
  line-height: 1.6;
}

/* Preserve the original hierarchy while giving every heading a modest lift. */
h1 {
  font-size: 3.45em;
  line-height: 1.25;
}

h2 {
  font-size: 2.35em;
  line-height: 1.3;
}

h3 {
  font-size: 1.65em;
  line-height: 1.35;
}

h4 {
  font-size: 1.45em;
  line-height: 1.4;
}

h5 {
  font-size: 1.28em;
  line-height: 1.4;
}

/* Article content and metadata. */
#content,
.narrowcolumn .entry,
.widecolumn .entry,
.post,
.entry,
.entry p,
.entry div,
.postmetadata {
  font-size: 1em;
  line-height: 1.55;
}

.entry h2 {
  line-height: 1.35;
}

.entry h3 {
  font-size: 1.65em;
  line-height: 1.35;
}

.entry h4 {
  font-size: 1.45em;
  line-height: 1.4;
}

.entry h5 {
  font-size: 1.28em;
  line-height: 1.4;
}

small,
.post small,
.tags small,
.commentmetadata,
.commentlist li,
.trackback li {
  font-size: 1em;
  line-height: 1.5;
}

/* Navigation and site utilities. */
ul#nav a,
ul#admin a,
#nav2 a,
#nav2 a:visited,
#dropdown a {
  font-size: 1.55em;
}

#subnav li,
#crumbs,
.description,
.comments-link,
#search {
  font-size: 1.45em;
}

/* Sidebars and footer. */
.sidebar {
  font-size: 1.12em;
  line-height: 1.55;
}

.sidebar h2,
#footer h2,
.widgettitle {
  font-size: 1.95em;
  line-height: 1.3;
}

.sidebar h3 {
  font-size: 1.5em;
}

#footer,
#footer p,
#footer ul,
#footer li {
  font-size: 1em;
  line-height: 1.5;
}

/* Form controls and common secondary text. */
input,
textarea,
select,
button {
  font: inherit;
  font-size: 1em;
}

#loginform,
#wp-calendar #prev a,
#wp-calendar caption,
.wp-caption-text,
.commentlist cite,
.commentlist cite a,
code {
  font-size: 1em;
}

/* Keep content comfortable at narrow viewport widths without changing markup. */
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  ul#nav a,
  ul#admin a,
  #nav2 a,
  #nav2 a:visited,
  #dropdown a {
    font-size: 1.35em;
  }
}

@media print {
  body {
    font-size: 12pt;
  }
}

/* Respect readers who request larger system text. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
