@charset "UTF-8";

/*
Theme Name: wnmu
Theme URI: NA
Author: NA
Author URI: NA
Description: NA
Requires at least: 5.3
Tested up to: 6.8
Requires PHP: 5.6
Version: 0.0.0
License: GNU NA
License URI: NA
Text Domain: NA
Tags: NA
*/

/* NOTES
   Wordpress body-content tag hierarchy goes as such:
       body > #page > #content > #primary > #main
*/

/* Assets */
@font-face { font-family: "Outfit"; src: url("/wp-content/themes/wnmu/assets/fonts/Outfit/static/Outfit-Regular.ttf") format("opentype"); font-style: normal; font-weight: normal; }
@font-face { font-family: "Outfit"; src: url("/wp-content/themes/wnmu/assets/fonts/Outfit/static/Outfit-Bold.ttf")    format("opentype"); font-style: normal; font-weight: bold; }
/* @font-face { font-family: "Crimson Text"; src: url("/wp-content/themes/wnmu/assets/fonts/crimson-text/CrimsonText-Regular.ttf") format("opentype"); font-style: normal; font-weight: normal; } */
/* @font-face { font-family: "Crimson Text"; src: url("/wp-content/themes/wnmu/assets/fonts/crimson-text/CrimsonText-Bold.ttf")    format("opentype"); font-style: normal; font-weight: bold; } */

/* Site config */
:root {
  /* Layout*/
  --content-max-width: 1400px;
  --mobile-content-edge-padding: 20px;
  --mobile-content-max-width: min(var(--content-max-width), calc(100% - var(--mobile-content-edge-padding) * 2));

  /* Typography */
  --font-family: Outfit, Helvetica, Arial, sans-serif;
  --font-size-root: 17px;
  --line-height-root: 1.4;
  /* --font-size-root-mobile: 17px; */
  /* --line-height-root-mobile: 27px; */
  /* --max-width: 100%; */

  /* Colors */
  --color-text-color            : hsl(0 0% 0% / 1);
  --color-primary-blue          : hsl(225 59% 35% / 1);
  --color-primary-teal          : hsl(176deg 81% 36% / 1);
  --color-primary-orange        : hsl(19deg 89% 54% / 1);
  --color-primary-purple        : hsl(269deg 53% 27% / 1);
  --color-primary-yellow        : hsl(41deg 97% 59% / 1);
  --color-link                  : hsl(210 100% 48% / 1);
  --color-heading               : hsl(0 0% 20%);

  /* Element styles */
  --p-margin: 1rem;
  --ul-margin: 1.25rem;

  /* Post/page content */
  --post-content-max-width: 780px;
}

html {
  /* WP sets this to a weird margin in an attempt to position the admin bar. Reset it to 0. */
  margin-top: 0 !important;
}

html, body {
  position: relative;
  font-family: var(--font-family);
  font-size: var(--font-size-root);
  line-height: var(--line-height-root);
}

/* All sizes are relative root font size. */
h1, h2, h3, h4, h5, h6 { color: var(--color-heading); }
h1 { font-size: 2.50rem;  line-height: 1.2;  margin: 2.50rem 0 1.10rem; }
h2 { font-size: 2.00rem;  line-height: 1.3;  margin: 2.50rem 0 0.80rem; }
h3 { font-size: 1.75rem;  line-height: 1.4;  margin: 2.50rem 0 0.60rem; }
h4 { font-size: 1.50rem;  line-height: 1.4;  margin: 2.50rem 0 0.50rem; }
h5 { font-size: 1.25rem;  line-height: 1.5;  margin: 1.50rem 0 0.30rem; }
h6 { font-size: 1.00rem;  line-height: 1.5;  margin: 1.50rem 0 0.30rem; }

p { margin: 0 0 var(--p-margin); line-height: inherit; color: var(--color-text-color); }
ol, ul { margin: 0 0 var(--ul-margin); padding: 0; line-height: inherit; color: var(--color-text-color); }
li { list-style-position: inside; }

.w-badge {
  display: inline-block; padding: 8px 16px;
  font-weight: bold; text-decoration: none;
  color: hsl(0 0% 100% / 1);
  background: hsl(0 0% 0% / 1); border-radius: 7px;
  transition: filter ease-in-out 200ms;
}

a { color: var(--color-link); }

a.w-badge:hover { filter: brightness(0.8); }

.w-badge-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  --color-1: var(--color-primary-blue);
  --color-2: var(--color-primary-teal);
  --color-3: var(--color-primary-orange);
  --color-4: var(--color-primary-yellow);
  --color-5: var(--color-primary-purple);
  .w-badge:nth-of-type(1)    { background: var(--color-1); }
  .w-badge:nth-of-type(2)    { background: var(--color-2); }
  .w-badge:nth-of-type(3)    { background: var(--color-3); }
  .w-badge:nth-of-type(4)    { background: var(--color-4); }
  .w-badge:nth-of-type(5)    { background: var(--color-5); }
  .w-badge:nth-of-type(5n+1) { background: var(--color-1); }
  .w-badge:nth-of-type(5n+2) { background: var(--color-2); }
  .w-badge:nth-of-type(5n+3) { background: var(--color-3); }
  .w-badge:nth-of-type(5n+4) { background: var(--color-4); }
  .w-badge:nth-of-type(5n+5) { background: var(--color-5); }
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td {
  padding: 0.5rem;
  border: solid black 1px;
}


/* ============================================================
   Pages, posts
   ============================================================ */

.entry-header {
  max-width: var(--content-max-width);
  margin-inline: auto;
}

/* Single post/page container */
.single #main > article,
.page #main > article {
  max-width: var(--post-content-max-width);
  margin-inline: auto;
  padding: 2.5rem var(--mobile-content-edge-padding) 5rem;
}

.entry-title { margin-top: 0; }

/* Featured image */
.post-thumbnail img {
  width: 100%; height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Post body */
.entry-content { line-height: 1.75; }

/* Fix list indentation (global styles reset padding to 0) */
.entry-content ul,
.entry-content ol { padding-left: 1.75rem; }
.entry-content li { list-style-position: outside; }
.entry-content ul > li { list-style-type: disc; }
.entry-content ol > li { list-style-type: decimal; }
.entry-content ul ul > li { list-style-type: circle; }
.entry-content ul ul ul > li { list-style-type: square; }

/* Blockquote */
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-primary-teal);
  background: hsl(0 0% 97%);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* Code */
.entry-content code {
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  padding: 2px 5px;
  background: hsl(0 0% 93%);
  border-radius: 4px;
}
.entry-content pre {
  padding: 1.25rem 1.5rem;
  background: hsl(220 16% 18%);
  color: hsl(0 0% 93%);
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.6;
}
.entry-content pre code { background: none; padding: 0; color: inherit; font-size: 1em; }

/* Images */
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: hsl(0 0% 45%);
  text-align: center;
}

/* Horizontal rule */
.entry-content hr { border: none; border-top: 1px solid hsl(0 0% 85%); margin: 2rem 0; }

/* Entry footer: categories, tags */
.entry-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(0 0% 88%);
  font-size: 0.875rem;
  color: hsl(0 0% 45%);
}

/* Separate "Published …", "By …", and "Edit" with dots */
.posted-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
}
.posted-by .posted-on::after,
.posted-by .byline::after {
  content: '·';
  margin: 0 0.5rem;
  color: hsl(0 0% 70%);
}

.post-taxonomies { margin-top: 0.4rem; }
.post-taxonomies .cat-links,
.post-taxonomies .tags-links { display: block; }

/* Post meta (date, author) */
.entry-meta {
  font-size: 0.875rem;
  color: hsl(0 0% 45%);
  margin-bottom: 0.5rem;
}

/* Prev/next post navigation */
.post-navigation {
  max-width: var(--post-content-max-width);
  margin-inline: auto;
  padding: 2rem var(--mobile-content-edge-padding);
  border-top: 1px solid hsl(0 0% 88%);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.post-navigation .nav-previous,
.post-navigation .nav-next { flex: 1; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; }
.post-navigation .meta-nav {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(0 0% 55%);
  margin-bottom: 0.25rem;
}
.post-navigation .post-title { font-weight: 600; color: var(--color-link); }

/* Archive / blog / search listing */
.blog #main,
.archive #main,
.search #main {
  max-width: var(--post-content-max-width);
  margin-inline: auto;
  padding: 2rem var(--mobile-content-edge-padding);
}
.blog article,
.archive article,
.search article { padding: 2rem 0; border-bottom: 1px solid hsl(0 0% 88%); }
.blog article:last-of-type,
.archive article:last-of-type,
.search article:last-of-type { border-bottom: none; }
.blog .entry-title,
.archive .entry-title,
.search .entry-title { margin-top: 0.25rem; font-size: 1.5rem; }
.blog .entry-title a,
.archive .entry-title a,
.search .entry-title a { text-decoration: none; color: var(--color-heading); }
.blog .entry-title a:hover,
.archive .entry-title a:hover,
.search .entry-title a:hover { color: var(--color-link); }


/* ============================================================
   Comments
   ============================================================ */

.comments-area {
  max-width: var(--post-content-max-width);
  margin-inline: auto;
  padding: 2rem var(--mobile-content-edge-padding) 4rem;
  border-top: 1px solid hsl(0 0% 88%);
}

.comments-title,
.comment-reply-title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Comment list */
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding: 0; list-style: none; }

.comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid hsl(0 0% 92%);
}
.comment-list > li:last-child > .comment-body { border-bottom: none; }

/* Nested replies */
.comment-list .children {
  padding-left: 1.5rem;
  border-left: 2px solid hsl(0 0% 90%);
  margin-top: 0.5rem;
}

/* Avatar floated left so author name + date + content wrap around it */
.comment-author .avatar {
  float: left;
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.85rem;
  margin-top: 2px;
}

/* Author name + metadata sit to the right of the avatar */
.comment-meta { overflow: hidden; margin-bottom: 0.75rem; }
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-author a { text-decoration: none; color: inherit; }
.comment-metadata {
  font-size: 0.8rem;
  color: hsl(0 0% 50%);
}
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-metadata a:hover { text-decoration: underline; }

/* Comment text */
.comment-content { clear: both; }
.comment-content p:last-child { margin-bottom: 0; }

/* Reply link */
.comment-body .reply { margin-top: 0.5rem; }
.comment-reply-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: hsl(0 0% 50%);
}
.comment-reply-link:hover { color: var(--color-link); }

/* Awaiting moderation notice */
.comment-awaiting-moderation {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: hsl(0 0% 55%);
  font-style: italic;
}

/* Comment form */
.comment-respond { margin-top: 2.5rem; }

.comment-form p { margin-bottom: 1rem; }

.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid hsl(0 0% 75%);
  border-radius: 6px;
  background: hsl(0 0% 99%);
  transition: border-color ease-out 150ms;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-teal);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .submit {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(0 0% 100%);
  background: var(--color-primary-purple);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background ease-out 150ms;
}
.comment-form .submit:hover { background: var(--color-primary-teal); }

.comment-notes, .logged-in-as {
  font-size: 0.875rem;
  color: hsl(0 0% 50%);
}

/* Pagination */
.comments-pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

/* Plugins */
/* Events manager plugin */
.em {
  max-width: var(--content-max-width);
  margin-inline: auto;
}
