﻿@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,200..800;1,200..800&family=Inclusive+Sans:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url(./plugins/features.min.css);
/*
 * Bearming — a personal Bear theme
 * Version 3.1.0 | 2025-12-15
 * Robert Birming | robertbirming.com
 */

/* =========================
   Palette: Into the woods 🌳
   ========================= */

:root {
  color-scheme: light dark;

  /* Light mode colors */
  --bg-light: #fafbfa;
  --txt-light: #3a3f3d;
  --link-light: #2a8573;

  /* Dark mode colors */
  --bg-dark: #1b1f1d;
  --txt-dark: #e6e6e3;
  --link-dark: #8fc7b3;
  
  /* =========================
   Bearming defaults 
   ========================= */

  --bg: var(--bg-light);
  --txt: var(--txt-light);
  --link: var(--link-light);

  --muted: color-mix(in srgb, var(--txt) 62%, var(--bg));
  --visited: color-mix(in srgb, var(--link) 25%, var(--muted));
  --surface: color-mix(in srgb, var(--txt) 9%, var(--bg));
  --border: color-mix(in srgb, var(--txt) 21%, var(--bg));

  --hover-border: color-mix(in srgb, var(--border) 70%, var(--link));
  --hover-surface: color-mix(in srgb, var(--link) 10%, var(--surface));
  --hover-lift: -1px;

  --font-small: 0.95rem;
  --space: 1.5rem;
  --radius: 5px;
  --background-color: var(--bg);
  --text-color: var(--txt);
  --link-color: var(--link);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --txt: var(--txt-dark);
    --link: var(--link-dark);

    --muted: color-mix(in srgb, var(--txt) 72%, var(--bg));
    --visited: color-mix(in srgb, var(--link) 30%, var(--muted));
    --surface: color-mix(in srgb, var(--bg) 93%, var(--txt));
    --border: color-mix(in srgb, var(--bg) 82%, var(--txt));
  }
}

/* =========================
   Base theme
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  list-style: none;
  -webkit-touch-callout: none
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

body {
  max-width: 45rem;
  margin-inline: auto;
  margin-block: 0;
  padding: 1.25rem;
  color: var(--txt);
  font-family: "Atkinson Hyperlegible Next", Inter, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

p {
  margin-block: var(--space);
}

h1, h2, h3, h4 {
  margin-block: 2rem 0.75rem;
  line-height: 1.3;
  font-weight: 600;
  font-family: "Inclusive Sans", Inter, system-ui, sans-serif;
}

:is(h1, h2, h3, h4):first-child {
  margin-block-start: 0;
}


h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

ul,
ol {
  margin-block: var(--space);
  padding-inline-start: 0;
}


li > ul,
li > ol {
  margin-block: 0.25rem;
  margin-inline: 0;
}

blockquote {
  margin-block: calc(var(--space) * 1.25);
  margin-inline: 0;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border-inline-start: 3px solid var(--link);
  border-radius: var(--radius);
  color: var(--muted);
}

blockquote > *:first-child { margin-block-start: 0; }
blockquote > *:last-child  { margin-block-end: 0; }

blockquote cite {
  display: block;
  margin-block-start: 0.6rem;
  font-style: normal;
  font-size: var(--font-small);
  color: color-mix(in srgb, var(--muted) 70%, var(--txt));
}

blockquote cite::before {
  content: "— ";
}

hr {
  margin-block: calc(var(--space) * 1.5);
  margin-inline: 0;
  border: none;
  border-block-start: 1px solid var(--border);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin-block: var(--space);
  margin-inline: 0;
}

figure > p {
  margin: 0;
  padding: 0;
}

figure img {
  margin-block: 0;
}

figcaption {
  margin-block-start: 0.8rem;
  font-size: var(--font-small);
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

time {
  color: var(--muted);
  font-size: var(--font-small);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

code {
  font-family: ui-monospace, monospace;
  background: var(--surface);
  padding: 0.1rem 0.3rem;
  font-size: var(--font-small);
  overflow-wrap: anywhere;
}

pre {
  margin-block: var(--space);
  margin-inline: 0;
  padding: 1rem;
  font-size: 0.85em;
  line-height: 1.5;
  background: var(--surface);
  border-radius: var(--radius);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  margin-block: var(--space);
  border-collapse: collapse;
}

td, th {
  padding: 0.5rem;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--surface);
  font-weight: 600;
  border-block-end: 2px solid var(--border);
}

header {
  margin-block: 1rem 1.8rem;
  margin-inline: 0;
}

header h1 {
  margin-block-end: 0.3rem;
  color: var(--txt);
  font-size: 1.5rem;
}

.title:hover {
  text-decoration: none;
}

nav p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  font-size: var(--font-small);
}

footer {
  margin-block-start: 1rem;
  padding-block: 1rem 2rem !important;
  text-align: center;
  color: var(--muted);
  font-size: var(--font-small);
}

footer p {
  margin-block: 0.5rem;
}

footer > span:last-child {
  display: block;
  margin-block-start: 0.75rem;
}

/* Blog list */
.blog-posts {
  list-style-type: none;
  margin-block: var(--space);
  margin-inline: 0;
  padding: 0;
}

.blog-posts li {
  display: flex;
  align-items: baseline;
  gap: 1.3rem;
  margin-block-end: 0.3rem;
}

.blog-posts li:last-child {
  margin-block-end: 0;
}

.blog-posts time {
  flex-shrink: 0;
}

.blog-posts li a:visited {
  color: var(--visited);
}

/* Posts and pages*/
.post main h1:first-child {
  margin-block-end: 0.3rem;
}

.post main h1 + p {
  margin-block: 0 var(--space);
}

.page main h1:first-child {
  margin-block-end: var(--space);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: var(--space);
  font-size: var(--font-small);
}

.post .tags a:before {
    content: "#";
    font-family: remixicon !important;
    font-style: normal;
}

/* =========================
   Optional add-ons
   ========================= */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  header,
  nav,
  footer,
  .upvote-button {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
  
  a:visited {
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  blockquote,
  pre,
  img {
    page-break-inside: avoid;
  }
}

/* Upvote button: Heart | Version 1.1.0 */
form#upvote-form {
  display: block !important;
  margin-block-start: 1.3em;
}

form#upvote-form > small {
  display: block;
  font-size: 1em;
}

form#upvote-form .upvote-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.1em;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

form#upvote-form .upvote-button svg {
  display: none !important;
}

form#upvote-form .upvote-count {
  font-size: 1em;
  font-variant-numeric: tabular-nums;
}

form#upvote-form .upvote-count::before {
  content: "♡";
  display: inline-block;
  margin-right: 0.1em;
  font-size: 1.4em;
  line-height: 1;
  color: var(--link);
  vertical-align: -0.06em;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  form#upvote-form
  .upvote-button:not(.upvoted):not([disabled]):hover
  .upvote-count::before {
    transform: scale(1.25);
  }
}

form#upvote-form .upvote-button.upvoted .upvote-count::before,
form#upvote-form .upvote-button[disabled] .upvote-count::before {
  content: "♥";
}

form#upvote-form .upvote-button.upvoted,
form#upvote-form .upvote-button[disabled] {
  opacity: 0.7;
  color: inherit !important;
  cursor: default;
}

/* Header with avatar | Version 1.0.0 */
:root {
  /* Replace with your own image */
  --bearming-avatar: none;
  --bearming-avatar-size: 3.5rem;
  --bearming-avatar-radius: 999px; /* Try 999px for a circle */
}

:where(header) {
  display: grid;
  grid-template-columns: var(--bearming-avatar-size) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  min-height: var(--bearming-avatar-size);
  align-content: center;

  padding-block-end: 1.5rem;
  border-block-end: 1px solid var(--border);
}

:where(header)::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;

  width: var(--bearming-avatar-size);
  height: var(--bearming-avatar-size);

  background:
    var(--bearming-avatar) center / cover no-repeat,
    var(--surface);

  border-radius: var(--bearming-avatar-radius);
}

:where(header a.title) {
  grid-column: 2;
  grid-row: 1;
}

:where(header nav) {
  grid-column: 2;
  grid-row: 2;
}

:where(header nav a) {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Status log */
.statuslog {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3em 1em;
  max-width: 34rem;
  margin: 1.6em auto;
  padding: 1em 1.1em;
  color: var(--txt);
}

/* Optional label */
.statuslog-title {
  display: block;
  grid-column: 1 / -1;
  margin: 0.35em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statuslog-item{
  display: flex;
  gap: 1em;
}

.statuslog-emoji {
  font-size: 2.7rem;
  line-height: 1;
  align-self: start;
}

.statuslog-content {
  font-size: 0.95em;
  overflow-wrap: break-word;
}

.statuslog-content > :first-child {
  margin-block-start: 0;
}

.statuslog-content > :last-child {
  margin-block-end: 0;
}

footer .statuslog {
  text-align: start;
}

/* Archive toolkit */
.blog .archive-tools .archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-block: 1.6em 0.9em;
}

.blog .archive-tools :is(input[type="search"], select) {
  padding: 0.65rem 0.85rem;
  font: inherit;
  letter-spacing: inherit;
  appearance: none;
  -webkit-appearance: none;
  color: var(--txt);
  background-color: var(--bg);
  border-top: none;
  border-bottom: 1px solid color-mix(in srgb, var(--txt) 30%, var(--bg));
  border-left: none;
  border-right: none;
  outline: none;
  width: auto;
}

.blog .archive-tools input[type="search"] {
  width: min(30rem, 100%);
  margin: 0;
}

.blog .archive-tools input[type="search"]::placeholder {
  opacity: 0.6;
}

.blog .archive-tools select {
  min-width: 10rem;
  max-width: 100%;
  padding-right: 2.2rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23444' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center / 0.7rem,
    var(--bg);
}

@media (prefers-color-scheme: dark) {
  .blog .archive-tools select {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ddd' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      no-repeat right 0.75rem center / 0.7rem,
      var(--bg);
  }
}

.blog .archive-tools .archive-empty {
  margin-block: 0.6em 1.6em;
  font-size: 0.95em;
  opacity: 0.8;
}

.blog .archive-tools .archive-month {
  margin-block: 2.2rem 0.7rem;
}

.blog .archive-tools .pagination {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  margin-block: 2rem 0;
  text-align: center;
  font-size: 0.95em;
}

.blog .archive-tools .pagination #archiveToolkitInfo {
  opacity: 0.7;
  white-space: nowrap;
}

.blog .archive-tools .pagination button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--txt-light);
  cursor: pointer;
}

.blog .archive-tools .pagination button:disabled,
.blog .archive-tools .pagination button[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.blog .archive-tools .pagination #archiveToolkitPrev::before {
  content: "« ";
}

.blog .archive-tools .pagination #archiveToolkitNext::after {
  content: " »";
}
    .upvote-button {
        padding: 0;
        margin: 0;
        border: 0;
        background-color: inherit;
        color: inherit;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .upvote-button.upvoted {
        color: salmon;
    }
    .upvote-count {
        margin-top: -3px;
    }



nav a.current {
  color: var(--txt);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.page-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block: 2rem 0;
  font-size: var(--font-small);
}

.page-navigator a,
.page-navigator span {
  display: inline-flex;
  align-items: center;
}

.post-near {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 2rem;
  padding-block-start: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--font-small);
}

.post-near span:empty {
  display: none;
}

#GoTop {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--link);
	background: #fff;
	color: #333;
	font-size: 20px;
	line-height: 1;
	border-radius: 0;
  box-shadow: 0 0 0 1px var(--cf-color-shadow), var(--cf-shadow-L);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
	z-index: 1200
}

#GoTop.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0)
}


.secret {
    background: repeating-linear-gradient(145deg, #f2f2f2, #f2f2f2 15px, #fff 0, #fff 30px);
    padding: 5px;
    position: relative;
    border-radius: 5px
}

.secret-textarea {
    background: repeating-linear-gradient(145deg, #f2f2f2, #f2f2f2 15px, #fff 0, #fff 30px) !important;
    position: relative
}

#secret-button {
    display: none
}