@import url('https://googledonts.private.coffee/css2?family=Mochiy+Pop+P+One&display=swap');

/* Base colors for Catppuccin Macchiato Lavender */
:root {
  --base: #24273A;
  --surface: #363A4F;
  --overlay: #494D64;
  --text: #CAD3F5;
  --lavender: #B7BDF8;
  --subtext: #A5ADCB;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* Page Layout */
body {
  background: var(--base);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: var(--surface);
  padding: 1rem;
  border-right: 2px solid var(--overlay);
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--lavender);
}

.sidebar a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar a:hover {
  color: var(--lavender);
}

/* Main content */
.content {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
}

.content h1,
.content h2,
.content h3 {
  color: var(--lavender);
  margin: 1rem 0 0.5rem;
  /* custom font */
    font-family: "Mochiy Pop P One", sans-serif;
  font-weight: 400;
  font-style: normal;
  
}


.content p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.6;
}

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

.content a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--subtext);
  border-top: 1px solid var(--overlay);
  padding-top: 1rem;
}


/* some adds */

.article-image {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 250px;
  width: 100%;
  border: 1px solid var(--overlay);
  padding: 4px;
  background: var(--surface);
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.caption {
  font-size: 0.85rem;
  color: var(--subtext);
  text-align: center;
  margin-top: 0.25rem;
  max-width: 250px;
  float: right;
  margin-left: 1rem;
  clear: right;
}

/* new updatos... */

/* === Code Styling === */

/* Inline code */
code {
  background: var(--surface);
  color: var(--lavender);
  font-family: "Fira Code", monospace;
  font-size: 0.9em;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--overlay);
}

/* Code blocks */
pre {
  background: var(--surface);
  color: var(--text);
  font-family: "Fira Code", monospace;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--overlay);
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.5;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.95em;
}

/* Optional: highlight selection inside code */
pre code::selection,
code::selection {
  background: var(--lavender);
  color: var(--base);
}


/* === Notices === */

.notice {
  border: 2px solid var(--lavender);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--surface);
  color: var(--text);
}

.notice strong {
  color: var(--lavender);
}

.notice.info {
  border-color: #8AADF4; /* Blue tint */
}

.notice.warning {
  border-color: #EED49F; /* Yellow tint */
}

.notice.danger {
  border-color: #ED8796; /* Red tint */
}


/* === List Styling === */

ul,
ol {
  margin: 1rem 0 1rem 1.5rem; /* spacing around lists */
  padding-left: 1.25rem;
  line-height: 1.6;
  color: var(--text);
}

li {
  margin: 0.4rem 0;
}

/* Unordered list bullets */
ul li {
  list-style-type: disc;
  list-style-position: outside;
}

/* Ordered list numbers */
ol li {
  list-style-type: decimal;
  list-style-position: outside;
}

/* Nested lists */
ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  margin-left: 1.25rem;
  font-size: 0.95em;
  color: var(--subtext);
}

/* Fancy Lavender bullets for ul */
ul li::marker {
  color: var(--lavender);
}

/* For ordered lists - softer subtext numbers */
ol li::marker {
  color: var(--subtext);
  font-weight: bold;
}
