/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* :root {
  --main-bg-color: #fff;
  --font-color: #362F4F;
  --secondary-font-color: #008BFF;
  --border-color: #E4FF30;
  --link-underline-color: #5B23FF;
} */

/* :root {
  --main-bg-color: #fff;
  --font-color: #362F4F;
  --secondary-font-color: #059212;
  --border-color: #9BEC00;
  --link-underline-color: #06D001;
} */

:root {
  --main-bg-color: #fafafa;
  --font-color: #362F4F;
  --secondary-font-color: #5200ff;
  --link-underline-color: #3cffd0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5em;
  font-size: 1em;
  color: var(--font-color);
  max-width: 80rem;
  margin: auto;
  background: var(--main-bg-color);
  padding: 0 1em;
}

header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0.5em 0;
  font-size: 1.2em;
  box-shadow: 0 3px #aaa, 0 5px #ddd;
  padding: 0.3em 0.0 0.6em 0;
}

header .nav-links {
  margin-left: auto;
  text-align: right;
  gap: 1em;
  display: flex;
}

header .nav-links a {
  color: var(--secondary-font-color);
  text-decoration: none;
  font-size: 0.7em;
  font-weight: 600;
  padding: 0 0.5em;
}

header .nav-links a:hover {
  background: var(--link-underline-color);
}

header .admin-dropdown {
  position: relative;
  font-size: 0.7em;
  font-weight: 600;
}

header .admin-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--secondary-font-color);
  padding: 0 0.5em;
}

header .admin-dropdown summary::-webkit-details-marker {
  display: none;
}

header .admin-dropdown summary:hover {
  background: var(--link-underline-color);
}

header .admin-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--main-bg-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 0.4em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  min-width: 8em;
}

header .admin-dropdown-menu a {
  color: var(--secondary-font-color);
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  padding: 0.4em 1em;
  white-space: nowrap;
}

header .admin-dropdown-menu a:hover {
  background: var(--link-underline-color);
}

header .nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary-font-color);
  padding: 0 0.5em;
  display: flex;
  align-items: center;
}

header .nav-search-btn:hover {
  background: var(--link-underline-color);
}

header .nav-search {
  display: flex;
  align-items: center;
}

.nav-search.hidden {
  display: none;
}

header .nav-search-input {
  font-size: 0.7em;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid var(--secondary-font-color);
  background: transparent;
  color: var(--font-color);
  outline: none;
  padding: 0 0.3em;
  width: 12em;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary-font-color);
  padding: 0 0.5em;
  align-items: center;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.drawer-backdrop.open {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #fff;
}

.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary-font-color);
  padding: 0.25em;
  display: flex;
  align-items: center;
  font-size: 0.8em;
  column-gap: 0.25em;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.drawer-nav a {
  color: var(--font-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.drawer-sidebar {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

header .title {
  color: var(--font-color);
  font-weight: bold;
  font-family: monospace;
  font-size: 1.3em;
  box-shadow: none;
  text-decoration: none;
}

header .title:hover {
  text-decoration: none;
  box-shadow: none;
  background: var(--border-color);
}

p a {
  color: var(--font-color);
  text-decoration: none;
  border-bottom: 2px var(--link-underline-color) solid;
  transition: border-color 0.3s ease;
}

main {
  clear: both;
  padding: 0.0 0 0 0;
  display: flex;
  gap: 8rem;
}

main .left-content {
  max-width: 50rem;
}

main .right-sidebar {
  max-width: 30rem;
  margin-top: 1rem;
}

.article-container {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

footer {
  margin: 1rem 0;
  font-size: 0.8em;
}

img {
  max-width: 100%;
}

article img {
  border: 6px solid #eee;
}

h1 {
  color: var(--secondary-font-color);
  font-family: monospace;
  margin: 1rem 0 0 -.25rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

h1 a {
  color: var(--secondary-font-color);
  text-decoration: none;
}

h1 a:hover {
  background: var(--link-underline-color);
}

h1 .post-star-link {
  color: #aaa;
  font-size: 0.9em;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -0.12em;
  /* tweak between -0.05em and -0.12em */
}

h1 .post-star-link:hover {
  background: none;
}

h2,
h3 {
  font-size: 1.3em;
  margin-top: 1.3em;
  margin-bottom: 0.2em;
}

h3 {
  font-size: 1.1em;
  font-style: italic;
}

date {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--font-color);
}

p {
  margin-top: 0.5em;
  margin-bottom: 1em;
}

li {
  margin-top: 0.5em;
  margin-bottom: 0.66em;
}

hr {
  border: 0px;
  border-top: 1px solid #eee;
}

blockquote {
  display: block;
  margin: 1.5em 0 1.5em 0;
  padding-left: 1em;
  border-left: 0.3em solid var(--link-underline-color);
  font-size: 1em;
  line-height: 1.5;
}

blockquote::selection {
  background: rgba(50, 50, 50, .5);
  color: #FFF;
}

.sign-in-form {
  max-width: 20rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  font-family: sans-serif;
}

.sign-in-form h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0;
}

input {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 0;
}

input:focus {
  outline: none;
}

input[type="submit"] {
  padding: 0.5rem;
  font-size: 1rem;
  background: var(--secondary-font-color);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 2px 2px #000;
}

input[type="submit"]:hover {
  box-shadow: 3px 3px #000;
}

.post-form input[type="text"] {
  width: 100%;
  height: 2.5rem;
  margin: 0.5rem 0;
  box-sizing: border-box;
  font-size: 1rem;
}

.bsky-button {
  padding: 0.5rem;
  font-size: 1rem;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  border: 1px #000 solid;
  box-shadow: 2px 2px #000;
}

.bsky-button:hover {
  box-shadow: 3px 3px #000;
}