/* ============================================================
   Joe Mertz — static replica of the live WordPress "Twenty Twelve"
   theme. Colors, type sizes, spacing, and layout proportions were
   read directly from the live site's computed styles.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,400&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #e6e6e6;
  color: #444444;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: #21759b;
  text-decoration: none;
}
a:hover, a:focus {
  color: #333333;
  text-decoration: underline;
}

/* ---------- Page shell ---------- */
#page {
  background: #ffffff;
  max-width: 960px;
  margin: 48px auto;
  padding: 0 40px 40px;
  box-shadow: rgba(100, 100, 100, 0.3) 0 2px 6px 0;
}

/* ---------- Header ---------- */
#masthead {
  padding: 24px 0 0;
}

.site-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.site-title a {
  color: #444444;
}
.site-title a:hover {
  color: #21759b;
  text-decoration: none;
}

.site-description {
  margin: 4px 0 0;
  font-size: 14px;
  font-style: italic;
  color: #767676;
}

/* ---------- Nav ---------- */
#site-navigation {
  margin: 24px 0 0;
}
#site-navigation ul.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}
#site-navigation li {
  margin: 0;
}
#site-navigation a {
  display: block;
  padding: 12px 24px 12px 0;
  color: #636363;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
#site-navigation a:hover,
#site-navigation a[aria-current="page"] {
  color: #21759b;
  text-decoration: none;
}

/* ---------- Layout: content column + fixed-width sidebar, floated ---------- */
#main {
  margin-top: 0;
}
#main::after {
  content: "";
  display: table;
  clear: both;
}
#primary {
  float: left;
  width: 65.104166667%;
}
#secondary {
  float: right;
  width: 250px;
  margin-top: 24px;
  font-size: 14px;
}
@media (max-width: 700px) {
  #primary, #secondary { float: none; width: 100%; }
  #secondary { margin-top: 24px; }
}

/* ---------- Sidebar widgets ---------- */
#secondary .widget {
  margin: 0 0 48px;
}
#secondary .widget p {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 24px;
}
#secondary .widget strong {
  font-weight: 700;
}
#secondary .widget a {
  color: #21759b;
}

/* ---------- Entry ---------- */
.entry-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  color: #444444;
  line-height: 1.3;
}

.entry-content p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 24px;
}

.entry-content img.alignright {
  float: right;
  margin: 0 0 12px 24px;
  max-width: 40%;
  height: auto;
}
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* ---------- Course code marker: kept plain/inline, theme has no such element ---------- */
.course-code {
  font-weight: 700;
  color: #767676;
  font-size: 12px;
}

.course-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.course-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ededed;
}
.course-list h3 {
  margin: 0 0 24px 0;
  font-size: 16px;
  font-weight: 700;
  padding-top: 12px;
}
.course-list h3:first-child { padding-top: 0; }

/* ---------- Footer ---------- */
#colophon {
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #ededed;
  font-size: 12px;
  line-height: 24px;
  color: #767676;
}
#colophon a { color: #767676; }
#colophon a:hover { color: #21759b; }

/* screen-reader only text, as in the real theme */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
