:root {
  --ink: #262523;
  --ink-faded: #6a655f;
  --accent-blue: #7189a6;
  --accent-wood: #a07a55;
  --paper: #fffdfa;
  --paper-warm: #f4efe8;
  --paper-dust: #e7e1d8;
  --shadow-deep: 0 14px 38px rgba(0,0,0,0.12);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
  --radius: 12px;
}

body {
  margin: 0 auto;
  color: var(--ink);
  font-family:
    ui-serif,
    Georgia,
    "Times New Roman",
    Times,
    serif;
  background:
    radial-gradient(1200px 400px at top, #ede7dd 0%, #d9d2c7 70%);
  line-height: 1.75;
  font-variant-numeric: oldstyle-nums;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,253,250,0.92);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(160,122,85,0.35);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  z-index: 10;
}

#logo {
  float: left;
  margin-left: 2em;
}

#logo h1 {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1.5em;
  line-height: 56px;
  margin: 0;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--ink);
}

h1, h2, h3 {
  font-weight: 400;
}

nav {
  float: right;
  margin-right: 2em;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14.5px;
  line-height: 56px;
  letter-spacing: 0.14em;
}

nav ul {
  margin: 0;
  padding: 0;
}

nav li {
  display: inline;
  margin-left: 1.2em;
}

nav a {
  color: var(--ink-faded);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-wood),
    transparent
  );
  opacity: 0;
  transform: scaleX(0.6);
  transition: all 0.35s ease;
}

nav a:hover {
  color: var(--ink);
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

nav li.current a {
  color: var(--ink);
}

nav li.current a::after {
  opacity: 1;
  transform: scaleX(1);
}

section {
  margin: 6em auto 0;
  padding: 0 1.5em;
  max-width: 860px;
  position: relative;
}

section::before {
  content: "❦";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-wood);
  font-size: 0.9em;
  padding: 0 0.6em;
}

p {
  margin: 1.25em 0;
}

h2, h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  margin-top: 2.2em;
  color: var(--ink);
}

h2 {
  font-size: 1.4em;
}

h3 {
  font-size: 1.15em;
}

h2 a, h3 a {
  border: none;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px dotted rgba(113,137,166,0.6);
  transition: all 0.35s ease;
}

a:hover {
  color: var(--accent-wood);
  border-bottom-color: transparent;
}

code {
  padding: 0.25em 0.45em;
  background: var(--paper-warm);
  border: 1px solid var(--paper-dust);
  border-radius: 7px;
  font-size: 0.92em;
}

pre {
  background: var(--paper-warm);
  padding: 1.3em;
  margin: 1em 1.2em 1.6em 0;
  border-left: 6px solid var(--accent-wood);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
}

img {
  border: none;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.h-mirror {
  transform: scaleX(-1);
}

footer {
  color: var(--ink-faded);
  margin: 2.5em;
  text-align: center;
  font-size: 0.85em;
}

footer a {
  color: var(--ink-faded);
  border-bottom: none;
}

footer a:hover {
  color: var(--accent-wood);
}

footer::after{
    content: " ✦";
    opacity: 0.7;
    font-size: 0.9em;
}
