html {
  font-family: 'Roboto', sans-serif;
  color: #111111;
  font-size: 16px;
  line-height: 1.6em;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

body .content {
  margin-bottom: 120px;
}

a {
  color: #000000;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Roboto', sans-serif;
  color: #000000;
}

h1 {
  line-height: 1.2em;
}

.clear {
  clear: both;
}

.hidden {
  display: none;
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  overflow: visible;
}

.mono {
  font-family: monospace;
}

.nav {
  margin-top: 15px;
  margin-bottom: 15px;
}

.nav-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 5px 0;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left li {
  display: inline;
  margin-right: 10px;
}

.nav-right li {
  display: inline;
  margin-left: 0px;
}

/* Hide specific links on very small screens */
@media (max-width: 480px) {

  .nav-left li:nth-child(3),
  .nav-left li:nth-child(4),
  .nav-left li:nth-child(5) {
    display: none;
  }
}

.nav a {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  border-bottom: none;
  font-size: 12px;
}

.nav a:hover {
  font-weight: bold;
}

.nav ul {
  list-style-type: none;
  padding: 0;
}

.nav ul li {
  display: inline;
  margin-right: 10px;
}

.front-matter {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.front-matter h4 {
  font-family: 'Roboto', sans-serif;
}

.front-matter .bylines .byline {
  margin-right: 20px;
  float: left;
}

.front-matter .bylines .byline h3,
.front-matter .bylines .byline p {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

.front-matter .bylines .byline h3 {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.front-matter .bylines .byline p {
  font-size: 10px;
  line-height: 1.6em;
}

.article {
  font-size: 16px;
  line-height: 1.6em;
  color: #111111;
  margin-top: 50px;
  margin-bottom: 50px;
}

.article blockquote {
  margin: 0;
  padding: 0 1em;
  color: #777;
  border-left: 0.25em solid #ddd;
}

.article h2 {
  font-size: 26px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 1rem;
  padding-top: 1em;
}

.article .figure {
  border-top: 1px solid hsla(0, 0%, 0%, 0.2);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.2);
  padding: 20px 0;
}

.article .figure .caption {
  padding-top: 15px;
  display: inline-block;
  font-size: 13px;
  line-height: 1.2em;
}

.article .figure .caption-label {
  font-weight: bold;
}

.article .footnote {
  line-height: 0;
}

.article div.highlight pre,
.article pre code {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
}

.article div.highlight,
.article>pre {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin: 15px 0;
  padding: 15px;
  overflow-x: auto;
  overflow-y: hidden;
}

.article div.highlight pre,
.article pre,
.article code {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.5em;
  color: #111111;
}

.article p code,
.article li code {
  background: #f7f7f7;
  padding: 2px 4px;
  border-radius: 3px;
  border: none;
  display: inline;
}

.article div.highlight::-webkit-scrollbar,
.article pre::-webkit-scrollbar {
  height: 5px;
}

.article div.highlight::-webkit-scrollbar-thumb,
.article pre::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

.article div.highlight::-webkit-scrollbar-thumb:hover,
.article pre::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}

.article ul {
  padding: 0 15px;
}

.article hr {
  border-bottom: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 33px auto;
  width: 400px;
}

#bibliography {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#bibliography ol.bibliography {
  padding-left: 15px;
  padding-top: 30px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}

#blog {
  margin-top: 80px;
  margin-bottom: 100px;
}

#blog #intro {
  font-size: 14px;
  font-style: italic;
  line-height: 1.4em;
  margin-bottom: 40px;
}

#blog .quote {
  margin-bottom: 30px;
}

#blog .quote p {
  margin-bottom: 5px;
}

#blog .post-date {
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: bold;
  margin-top: 4px;
  margin-bottom: 4px;
}

#blog .post-title {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 0;
}

#blog .post-title a {
  font-size: 18px;
  text-decoration: none;
}

#blog .post-title a:hover {
  text-decoration: underline;
}

#blog .post-subtitle {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 25px;
  line-height: 1.5em;
}

#blog .year {
  font-size: 18px;
  position: relative;
  right: 100px;
  color: rgba(0, 0, 0, 0.5);
  width: 100px;
  margin-bottom: -24px;
}

hr {
  border-top: #ccc;
}

@media screen and (max-width: 700px) {
  body {
    margin: 0 7px;
  }
}

/* Minimalist Text-Only Buttons */
.nyt-btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  /* Added spacing for a premium feel */
  color: #111111;
  text-transform: uppercase;
  padding: 0 5px;
  transition: color 0.2s ease;
  border: none;
  background: transparent;
}

.nyt-btn:hover {
  border-bottom: 2px solid #111111;
  padding-bottom: 2px;
}

/* Optional: Add a small vertical separator between links if they feel too close */
.nav-right li:not(:last-child) {
  border-right: 1px solid #eeeeee;
  padding-right: 5px;
  margin-right: 5px;
}


/* Logo Section */
.nyt-logo-header {
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.main-logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

@media screen and (max-width: 700px) {
  .nyt-logo-header {
    padding: 5px 0;
  }

  .main-logo {
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

/* The Navigation Bar with the "Sandwich" Lines */
.nyt-category-bar {
  margin-top: 10px;
  padding: 8px 0;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.category-list li {
  margin: 0 15px;
}

.category-list li a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #000;
}

.category-list li a:hover {
  text-decoration: underline;
}

/* Styling the Arrow ↑ "Back to Top" */
#back-to-top .arrow {
  font-size: 16px;
  font-weight: bold;
}

#back-to-top .text {
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 0px;
}

/* Ensure the page takes up at least the full height of the screen */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  /* This pushes the footer down */
}

.site-footer {
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Horizontal Tags List */
.tags-inline {
  display: flex;
  flex-wrap: wrap;
}

.tags-inline li {
  display: inline-block;
}

.tags-inline li:not(:last-child)::after {
  content: "•";
  color: #eee;
  margin-left: 10px;
}