:root {
  --color-background: #f7f7f9;
  --color-surface: #ffffff;
  --color-surface-muted: #f2f2f6;
  --color-border: #e2e2e6;
  --color-text: #1e1e1e;
  --color-muted: #6c6c74;
  --color-accent: #6f4ccf;
  --color-accent-hover: #5b37b6;
  --color-accent-visited: #5f3fb8;
  --color-code-bg: #f2f2f6;
  --color-code-border: #e0e0ea;
  --content-width: 800px;
  --card-radius: 10px;
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 30px rgba(0,0,0,0.14);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

a:visited {
  color: var(--color-accent-visited);
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 10000;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
  left: 0;
  width: auto;
  height: auto;
}

.date {
  font-size: 75%;
  color: var(--color-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quattrocento', serif;
}

h1, .headline{
  text-align: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.subtitle{
  text-align: center;
  margin-bottom: var(--space-2);
  margin-top: var(--space-2);
}

.post-properties li {
  margin-left: 0em;
  padding-left: 0em;
}

h2, h3, h4, h5, h6 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

h3, h4, h5, h6 {
  margin-bottom: var(--space-1);
}

.page-header {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 var(--space-3) 0;
}

p {
  text-align: left;
  margin: 0 0 1em 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-4) 0;
}

img {
  max-width: 100%;
  height: auto;
}

li {
  margin-left: 1.2em;
  padding-left: 0.2em;
  line-height: 1.6;
}

code {
  font-family: Monaco, monospace;
  font-size: 85%;
  margin: 0 0.15em;
  padding: 0.15em 0.35em;
  border-radius: 6px;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
}

pre {
  margin: 0 0 var(--space-3) 0;
  padding: var(--space-2);
  border-radius: 10px;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  overflow: auto;
  line-height: 1.6;
  font-size: 0.92em;
}

pre code {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Custom container */
.container-narrow {
  margin: 0 auto;
  max-width: var(--content-width);
  width: 100%;
  padding: 0 var(--space-2);
}

.container-narrow > hr {
  margin: var(--space-3) 0;
}

#main-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-5);
}

#main-content .content {
  max-width: 100%;
  padding: 0;
}

.navbar {
  background-color: var(--color-surface);
}

.navbar-inner {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-2);
  width: 100%;
  max-width: none;
  margin: 0;
}

.navbar .brand {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.navbar a {
  text-decoration: none;
  color: var(--color-text);
}

.navbar a:hover,
.navbar a:focus {
  color: var(--color-accent);
}

.navbar ul {
	padding-top: 10px;
	list-style-type: none;
  margin: 0;
  padding-left: 0;
}

.posts {
	list-style-type: none;
	margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.posts li {
  margin-left: 0;
  padding-left: 0;
}

.posts h2 {
  text-align: left;
}

.posts .raised {
  margin: 0;
}

.raised {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
}

ul.raised {
  padding: var(--space-2) var(--space-3);
}

.post-card {
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: var(--space-3);
}

.post-card-link:visited {
  color: inherit;
}

.post-card-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--card-radius);
}

.post-card-link:hover .post-card-title {
  color: var(--color-accent);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  color: var(--color-muted);
  font-size: 0.9em;
}

.post-card-meta span + span::before {
  content: "|";
  margin: 0 6px;
  color: var(--color-muted);
}

.post-card-title {
  margin: var(--space-2) 0 var(--space-1) 0;
  line-height: 1.25;
}

.post-card-excerpt {
  margin: 0;
  color: var(--color-muted);
}

.post-card-cta {
  display: inline-flex;
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--color-accent);
}

/* posts index */
.post > h3.title {
  position: relative;
  padding-top: 10px; }

.post > h3.title span.date {
  position: absolute;
  right: 0;
  font-size: 0.9em; }

.post > .more {
  margin: 5pt 0;
  text-align: left; }

/* post-full*/
.post-full .date {
  margin-bottom: 10pt;
  font-weight: bold;
}

.post-hero {
  --hero-bleed: min(calc(var(--space-5) * 1.5), max(0px, calc((100vw - var(--content-width)) / 2)));
  padding: var(--space-4) max(var(--space-2), var(--hero-bleed));
  margin: var(--space-3) calc(-1 * var(--hero-bleed)) var(--space-4);
  text-align: center;
}

.post-hero > * {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.post-hero h1 small {
  color: var(--color-muted);
  font-weight: 400;
}

.post-hero h1 {
  line-height: 1.18;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  color: var(--color-muted);
  font-size: 1em;
}

.post-meta span + span::before {
  content: "|";
  margin: 0 6px;
  color: var(--color-muted);
}

.post-properties {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  align-items: center;
}

/* tag_box */
.tag_box {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag_box li {
  margin-left: 0;
  padding-left: 0;
}

.tag_box.inline li {
  float: none;
}

.tag_box a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.85em;
  border-radius: 999px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.post-hero .tag_box a {
  font-size: 1em;
}

.tag_box a span {
  font-size: 0.75em;
  opacity: 0.7;
}

.tag_box a.active {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #FFF; }

.tag_box a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface);
}

.bio ul{
  list-style: none;
}

.feeds {
  text-align: center;
}

.sharing-buttons ul {
	list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.sharing-buttons li {
	display:inline;
	margin-left: 0;
}

.sharing-buttons a,
.sharing-buttons button {
  text-decoration: none;
  color: var(--color-accent);
}

.sharing-buttons a:hover,
.sharing-buttons a:focus,
.sharing-buttons button:hover,
.sharing-buttons button:focus {
  color: var(--color-accent-hover);
}

.comments-area {
  margin: var(--space-4) 0;
  padding: var(--space-3);
}

.comments-title {
  margin-top: 0;
  font-size: 1.3em;
}

#disqus_thread {
  margin-top: var(--space-2);
  background: transparent;
}

.post-footer {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: 0.95em;
}

.strikethrough {
  text-decoration: line-through;
}


a.dark-light-mode-toggle {
  background-image:url("/assets/themes/surface/img/dark_mode_24px.png");
  display: inline-block;
  text-decoration: none;
  width: 24px;
  height: 24px;
}

.icon-menny {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon-menny::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.dark-mode-toggle-icon::before {
  background-image: url("/assets/themes/surface/img/dark_mode_24px.png");
}

.share-icon::before {
  background-image: url("/assets/themes/surface/img/share_24px_light.svg");
}

.rss-icon::before {
  background-image: url("/assets/themes/surface/img/rss_feed_24px_light.svg");
}

.categories-icon::before {
  background-image: url("/assets/themes/surface/img/categories_24px_light.svg");
}

.tags-icon::before {
  background-image: url("/assets/themes/surface/img/tag_24px_light.svg");
}

.archive-icon::before {
  background-image: url("/assets/themes/surface/img/content_copy_24px_light.svg");
}

.hacker-news-icon::before {
  background-image: url("/assets/themes/surface/img/hacker_news_24px_light.svg");
}

.twitter-icon::before {
  background-image: url("/assets/themes/surface/img/twitter-3-logo-svgrepo-com.svg");
}

.threads-icon::before {
  background-image: url("/assets/themes/surface/img/threads_24px_light.svg");
}

.person-icon::before {
  background-image: url("/assets/themes/surface/img/person_24px_light.svg");
}

.github-icon::before {
  background-image: url("/assets/themes/surface/img/github_24px_light.svg");
}

.mastodon-icon::before {
  background-image: url("/assets/themes/surface/img/mastodon_24px_light.svg");
}

.linkedin-icon::before {
  background-image: url("/assets/themes/surface/img/linkedin_24px_light.svg");
}

.copy-clipboard-icon::before {
  background-image: url("/assets/themes/surface/img/content_copy_24px_light.svg");
}

/* Copy Code Button */
.copy-code-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.2s, background-color 0.2s;
}

.copy-code-button:hover, .copy-code-button:focus {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

.copy-code-button .copy-clipboard-icon::before {
  width: 18px;
  height: 18px;
}

.copy-code-button.copied::after {
  content: "Copied!";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 8px;
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* Header Anchors */
.header-anchor {
  margin-left: 10px;
  text-decoration: none;
  color: var(--color-muted);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.8em;
  vertical-align: middle;
}

.content h2:hover .header-anchor,
.content h3:hover .header-anchor,
.content h4:hover .header-anchor,
.content h5:hover .header-anchor,
.content h6:hover .header-anchor,
.header-anchor:focus {
  opacity: 1;
}

/* Button that looks like a link for copy-clipboard */
button.js-copy-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-accent);
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
}

button.js-copy-link:hover,
button.js-copy-link:focus {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

button.js-copy-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

.blog-navigation {
  text-align: center;
  margin: var(--space-3) 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
