@charset "UTF-8";
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers (opinionated).
 */
body {
  margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */
figcaption,
figure,
main { /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */
figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */
mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button; /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-cancel-button,
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */
template {
  display: none;
}

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
  display: none;
}

.highlight {
  background-color: #faf9f9;
  border-radius: 3px;
  margin: 0;
}

.highlighter-rouge {
  color: #ce887b;
  font-weight: 400;
  border: 1px solid #607D8B;
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
}

.highlight .hll {
  background-color: #ffc;
}

.highlight .c {
  color: #999;
} /* Comment */
.highlight .err {
  color: #a00;
  background-color: #faa;
} /* Error */
.highlight .k {
  color: #069;
} /* Keyword */
.highlight .o {
  color: #555;
} /* Operator */
.highlight .cm {
  color: #09f;
  font-style: italic;
} /* Comment.Multiline */
.highlight .cp {
  color: #099;
} /* Comment.Preproc */
.highlight .c1 {
  color: #999;
} /* Comment.Single */
.highlight .cs {
  color: #999;
} /* Comment.Special */
.highlight .gd {
  background-color: #fcc;
  border: 1px solid #c00;
} /* Generic.Deleted */
.highlight .ge {
  font-style: italic;
} /* Generic.Emph */
.highlight .gr {
  color: #f00;
} /* Generic.Error */
.highlight .gh {
  color: #030;
} /* Generic.Heading */
.highlight .gi {
  background-color: #cfc;
  border: 1px solid #0c0;
} /* Generic.Inserted */
.highlight .go {
  color: #aaa;
} /* Generic.Output */
.highlight .gp {
  color: #009;
} /* Generic.Prompt */
/* Generic.Strong */
.highlight .gu {
  color: #030;
} /* Generic.Subheading */
.highlight .gt {
  color: #9c6;
} /* Generic.Traceback */
.highlight .kc {
  color: #069;
} /* Keyword.Constant */
.highlight .kd {
  color: #069;
} /* Keyword.Declaration */
.highlight .kn {
  color: #069;
} /* Keyword.Namespace */
.highlight .kp {
  color: #069;
} /* Keyword.Pseudo */
.highlight .kr {
  color: #069;
} /* Keyword.Reserved */
.highlight .kt {
  color: #078;
} /* Keyword.Type */
.highlight .m {
  color: #f60;
} /* Literal.Number */
.highlight .s {
  color: #d44950;
} /* Literal.String */
.highlight .na {
  color: #4f9fcf;
} /* Name.Attribute */
.highlight .nb {
  color: #366;
} /* Name.Builtin */
.highlight .nc {
  color: #0a8;
} /* Name.Class */
.highlight .no {
  color: #360;
} /* Name.Constant */
.highlight .nd {
  color: #99f;
} /* Name.Decorator */
.highlight .ni {
  color: #999;
} /* Name.Entity */
.highlight .ne {
  color: #c00;
} /* Name.Exception */
.highlight .nf {
  color: #c0f;
} /* Name.Function */
.highlight .nl {
  color: #99f;
} /* Name.Label */
.highlight .nn {
  color: #0cf;
} /* Name.Namespace */
.highlight .nt {
  color: #2f6f9f;
} /* Name.Tag */
.highlight .nv {
  color: #033;
} /* Name.Variable */
.highlight .ow {
  color: #000;
} /* Operator.Word */
.highlight .w {
  color: #bbb;
} /* Text.Whitespace */
.highlight .mf {
  color: #f60;
} /* Literal.Number.Float */
.highlight .mh {
  color: #f60;
} /* Literal.Number.Hex */
.highlight .mi {
  color: #f60;
} /* Literal.Number.Integer */
.highlight .mo {
  color: #f60;
} /* Literal.Number.Oct */
.highlight .sb {
  color: #c30;
} /* Literal.String.Backtick */
.highlight .sc {
  color: #c30;
} /* Literal.String.Char */
.highlight .sd {
  color: #c30;
  font-style: italic;
} /* Literal.String.Doc */
.highlight .s2 {
  color: #c30;
} /* Literal.String.Double */
.highlight .se {
  color: #c30;
} /* Literal.String.Escape */
.highlight .sh {
  color: #c30;
} /* Literal.String.Heredoc */
.highlight .si {
  color: #a00;
} /* Literal.String.Interpol */
.highlight .sx {
  color: #c30;
} /* Literal.String.Other */
.highlight .sr {
  color: #3aa;
} /* Literal.String.Regex */
.highlight .s1 {
  color: #c30;
} /* Literal.String.Single */
.highlight .ss {
  color: #fc3;
} /* Literal.String.Symbol */
.highlight .bp {
  color: #366;
} /* Name.Builtin.Pseudo */
.highlight .vc {
  color: #033;
} /* Name.Variable.Class */
.highlight .vg {
  color: #033;
} /* Name.Variable.Global */
.highlight .vi {
  color: #033;
} /* Name.Variable.Instance */
.highlight .il {
  color: #f60;
} /* Literal.Number.Integer.Long */
.css .o,
.css .o + .nt,
.css .nt + .nt {
  color: #999;
}

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #2a313c;
  --text-muted: #6a7482;
  --heading: #131922;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.10);
  --accent-contrast: #ffffff;
  --border: #e6e8ee;
  --shadow: 0 1px 2px rgba(16, 22, 34, 0.05), 0 10px 26px -14px rgba(16, 22, 34, 0.20);
  --shadow-hover: 0 22px 50px -20px rgba(16, 22, 34, 0.32);
  --selection: rgba(79, 70, 229, 0.18);
  --code-bg: #f3f4f7;
  --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
}

/* - - - - - - - - - - Base - - - - - - - - - - */
*, *::after, *::before {
  box-sizing: border-box;
}

html {
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
  transition: color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

p {
  margin: 0 0 1.1rem;
}

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border-radius: 8px;
}

img + em {
  text-align: center;
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.2rem 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.6rem 1.2rem;
  margin: 1.4rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-muted);
}
blockquote p:last-child {
  margin-bottom: 0;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

pre {
  padding: 1.1rem 1.3rem;
  overflow: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9rem;
}
pre code {
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  margin: 1.4rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

table th, table td {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
}

table thead th {
  background: var(--surface-2);
  color: var(--heading);
  font-weight: 600;
}

table tbody tr:last-child td {
  border-bottom: 0;
}

table tbody tr:hover {
  background: var(--accent-soft);
}

::-moz-selection {
  background: var(--selection);
}

::selection {
  background: var(--selection);
}

.wrapper {
  position: relative;
  min-height: 100vh;
}

.clearfix::before, .clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* - - - - - - - - - - Home Page Styles - - - - - - - - - - */
/* - - - - - - - - - - Sidebar - - - - - - - - - - */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  height: 100%;
  padding: 36px 26px 26px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* - - - - - - - - - - Sidebar toggle - - - - - - - - - - */
.sidebar-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sidebar-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.sidebar-toggle .sidebar-toggle__closed {
  display: none;
}

/* Desktop-only: the slim icon rail. On mobile the sidebar is an off-canvas
   drawer instead (see _media.scss), so these rules must not apply there. */
@media (min-width: 769px) {
  html.sidebar-collapsed {
    /* Toggle icon swaps to "expand" */
  }
  html.sidebar-collapsed .sidebar-toggle__open {
    display: none;
  }
  html.sidebar-collapsed .sidebar-toggle__closed {
    display: inline-block;
  }
  html.sidebar-collapsed .sidebar-toggle {
    left: 20px;
  }
  html.sidebar-collapsed {
    /* Collapse the sidebar into a slim icon rail */
  }
  html.sidebar-collapsed .sidebar {
    width: 78px;
    padding: 62px 9px 16px;
    transform: none;
  }
  html.sidebar-collapsed .content-box {
    padding-left: calc(78px + 30px);
  }
  html.sidebar-collapsed {
    /* Small logo only */
  }
  html.sidebar-collapsed .about {
    margin-bottom: 22px;
  }
  html.sidebar-collapsed .about .cover-author-image {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
  }
  html.sidebar-collapsed .about .author-name,
  html.sidebar-collapsed .about p {
    display: none;
  }
  html.sidebar-collapsed {
    /* Icon-only menu */
  }
  html.sidebar-collapsed .menu {
    margin-bottom: 18px;
  }
  html.sidebar-collapsed .menu a {
    gap: 0;
    padding: 11px 0;
    font-size: 18px;
  }
  html.sidebar-collapsed .menu a i {
    display: inline-block;
    width: auto;
  }
  html.sidebar-collapsed .menu .menu-label {
    display: none;
  }
  html.sidebar-collapsed {
    /* Stacked social icons, hide labels and meta */
  }
  html.sidebar-collapsed .contact .contact-title {
    display: none;
  }
  html.sidebar-collapsed .contact ul {
    margin-bottom: 8px;
  }
  html.sidebar-collapsed .contact li {
    display: block;
    margin: 0 0 6px;
  }
  html.sidebar-collapsed .contact li a {
    margin: 0 auto;
  }
  html.sidebar-collapsed .public-key,
  html.sidebar-collapsed footer .copyright {
    display: none;
  }
}
/* Mobile top bar + drawer backdrop — shown only on small screens (_media.scss) */
.topbar,
.nav-backdrop {
  display: none;
}

.about {
  margin: 0 0 32px;
  text-align: center;
}
.about .cover-author-image {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about img:hover {
  transform: scale(1.04);
}
.about .author-name {
  font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 14px;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--heading);
  font-weight: 600;
}
.about .author-name::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}
.about p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* - - - - - - - - - - Sidebar nav + contact - - - - - - - - - - */
.menu {
  margin-bottom: 26px;
}
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu li {
  margin: 0;
}
.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.menu a i {
  display: none;
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.contact .contact-title {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
  text-align: center;
}
.contact .contact-title::before, .contact .contact-title::after {
  content: "";
  display: block;
  height: 1px;
  width: calc(50% - 52px);
  position: absolute;
  top: 50%;
  background-color: var(--border);
}
.contact .contact-title::before {
  left: 0;
}
.contact .contact-title::after {
  right: 0;
}
.contact ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  text-align: center;
}
.contact ul li {
  display: inline-block;
  margin-left: 4px;
}
.contact ul li:first-child {
  margin-left: 0;
}
.contact ul li a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.contact ul li a:hover {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  text-decoration: none;
}

footer .public-key {
  text-align: center;
  font-size: 12px;
  margin-bottom: 10px;
}
footer .public-key a {
  color: var(--text-muted);
}
footer .public-key a:hover {
  color: var(--accent);
}
footer .copyright {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

/* - - - - - - - - - - Content area - - - - - - - - - - */
.content-box {
  padding: 48px 40px;
  padding-left: calc(290px + 48px);
  max-width: calc(880px + 290px + 96px);
}

/* - - - - - - - - - - Post cards - - - - - - - - - - */
.post {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 11rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow);
}
.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.post .post-thumbnail {
  width: 34%;
  max-width: 100%;
  min-height: 11rem;
  background-size: cover;
  background-position: 50% 50%;
}
.post .post-content {
  padding: 1.6rem 1.8rem;
  width: 66%;
  display: flex;
  flex-direction: column;
}
.post .post-content .post-title {
  margin: 0 0 0.6rem;
  font-size: 25px;
  line-height: 1.25;
}
.post .post-content .post-title a {
  font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--heading);
}
.post .post-content .post-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.post .post-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 15px;
}
.post .post-content .post-date,
.post .post-content .post-words {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* - - - - - - - - - - Pagination - - - - - - - - - - */
.pagination {
  width: 100%;
}
.pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.pagination ul p {
  margin: 0;
}
.pagination .page-number {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.container {
  width: 100%;
}

a.older-posts, a.newer-posts {
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
a.older-posts:hover, a.newer-posts:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* - - - - - - - - - - Post Page Styles - - - - - - - - - - */
.article-page {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-content {
  max-width: 880px;
  margin: 0 auto;
}

.wrap-content {
  padding: 8px 48px 40px;
  font-size: 17px;
  line-height: 1.75;
}
.wrap-content h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 0.9rem;
}
.wrap-content h3 {
  font-size: 1.28rem;
  margin: 1.9rem 0 0.7rem;
}
.wrap-content h4 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.6rem;
}
.wrap-content ul, .wrap-content ol {
  padding-left: 1.4rem;
}
.wrap-content li {
  margin-bottom: 0.35rem;
}
.wrap-content img {
  box-shadow: var(--shadow);
  margin: 0.5rem 0;
}

.header-page {
  text-align: center;
  margin: 38px 0 30px;
  padding: 0 48px;
}
.header-page .page-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.18;
}
.header-page .page-date {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-cover-image {
  position: relative;
  padding: 0;
  margin: 0;
  max-height: 460px;
  background-color: var(--surface-2);
  overflow: hidden;
}
.page-cover-image figure {
  position: relative;
  margin: 0;
}
.page-cover-image figcaption {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}
.page-cover-image .page-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 28px;
  margin: 36px 0;
  border-bottom: 1px solid var(--border);
}
.page-footer .page-share {
  display: flex;
  gap: 8px;
}
.page-footer .page-share a {
  display: inline-block;
  text-decoration: none;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.page-footer .page-share a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.page-footer .page-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-footer .page-tag a {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.page-footer .page-tag a:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
}

/* - - - - - - - - - - Tag Styles - - - - - - - - - - */
.blog-tags {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 40px;
}
.blog-tags h1 {
  font-size: 2.2rem;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 1.4rem;
  color: var(--heading);
}
.blog-tags h2 {
  color: var(--heading);
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tags {
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: center;
}
.tags li {
  display: inline-block;
  margin: 5px;
  list-style: none;
}
.tags li a {
  text-decoration: none;
  color: var(--accent);
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--accent-soft);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tags li a span {
  opacity: 0.7;
  font-size: 12px;
}
.tags li a:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
}
.tags li a:hover span {
  opacity: 0.85;
}

.tag-list {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tag-list span a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.tag-list span a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.tag-list small {
  color: var(--text-muted);
  font-size: 13px;
}

/* - - - - - - - - - - About Page Styles - - - - - - - - - - */
.about-page {
  width: 100%;
}

/* - - - - - - - - - - Parallax hero - - - - - - - - - - */
.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 44px;
  align-items: center;
  padding: 8px 4px 28px;
  margin-bottom: 16px;
}

.about-hero__portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
}

.about-hero__text {
  position: relative;
  z-index: 1;
}

.about-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

.about-hero__name {
  font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--heading);
}

.about-hero__role {
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 48ch;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-hero__actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about-hero__actions a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}
.about-hero__actions a.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.about-hero__actions a.is-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-contrast);
}

/* - - - - - - - - - - Tabs - - - - - - - - - - */
.about-tabs {
  position: sticky;
  top: 16px;
  z-index: 6;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 7px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.about-tabs::-webkit-scrollbar {
  display: none;
}

.about-tab {
  flex: 1 0 auto;
  white-space: nowrap;
  text-align: center;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about-tab:hover {
  color: var(--accent);
}
.about-tab.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* - - - - - - - - - - Panels - - - - - - - - - - */
.about-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 38px 42px;
  font-size: 16px;
  line-height: 1.7;
}
.about-panel.is-active {
  display: block;
  animation: aboutFade 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about-panel > h2:first-child {
  margin-top: 0;
}
.about-panel h2 {
  font-size: 1.5rem;
  margin: 0 0 1.1rem;
}
.about-panel h3 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.9rem;
  color: var(--heading);
}
.about-panel a {
  font-weight: 500;
}

@keyframes aboutFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Timeline (experience) */
.timeline {
  position: relative;
  margin: 0;
  padding: 4px 0 0 30px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 24px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline .role {
  display: block;
  font-weight: 600;
  color: var(--heading);
  font-size: 1.02rem;
}
.timeline .org {
  color: var(--text);
}
.timeline .meta {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Clean lists (teaching, theses, publications) */
.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--border);
}
.about-list li:last-child {
  border-bottom: 0;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.about-list .meta {
  color: var(--text-muted);
  font-size: 14px;
}

/* Projects grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.project-card i {
  color: var(--accent);
}
.project-card a {
  color: var(--text);
}
.project-card a:hover {
  color: var(--accent);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Tag chips (interests) */
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
}

/* - - - - - - - - - - About responsive - - - - - - - - - - */
@media only screen and (max-width: 820px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px;
    text-align: center;
  }
  .about-hero__portrait {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 4/5;
  }
  .about-hero__role {
    margin-left: auto;
    margin-right: auto;
  }
  .about-hero__actions {
    justify-content: center;
  }
  .about-hero__name {
    font-size: 2.3rem;
  }
  .about-panel {
    padding: 26px 20px;
  }
  .about-tab {
    flex: 0 0 auto;
  }
}
/* - - - - - - - - - - Gallery Styles - - - - - - - - - - */
.gallery {
  width: 100%;
}

.gallery-head {
  text-align: center;
  margin: 6px 0 32px;
}
.gallery-head h1 {
  font-size: 2.4rem;
  margin: 0 0 10px;
  color: var(--heading);
}
.gallery-head p {
  color: var(--text-muted);
  margin: 0;
}

.gallery-empty {
  text-align: center;
  color: var(--text-muted);
}

/* - - - - - - - - - - Album grid (Adventures index) - - - - - - - - - - */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.album-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.album-card:hover, .album-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
  outline: none;
}
.album-card:hover .album-card__media img, .album-card:focus-visible .album-card__media img {
  transform: scale(1.05);
}
.album-card:hover .album-card__title, .album-card:focus-visible .album-card__title {
  color: var(--accent);
}
.album-card__media {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.album-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.album-card__count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(8, 11, 16, 0.68);
}
.album-card__count i {
  margin-right: 3px;
}
.album-card__body {
  padding: 16px 18px 18px;
}
.album-card__title {
  font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  margin: 0 0 5px;
  color: var(--heading);
  transition: color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.album-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 9px;
}
.album-card__meta i {
  margin-right: 2px;
}
.album-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* - - - - - - - - - - Album page - - - - - - - - - - */
.album {
  width: 100%;
}

.album-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.album-back:hover {
  color: var(--accent);
  text-decoration: none;
}

.album-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 38px;
  align-items: center;
  margin-bottom: 36px;
}
.album-hero__cover {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.album-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.album-hero__text h1 {
  font-size: 2.5rem;
  margin: 0 0 8px;
  color: var(--heading);
}
.album-hero__meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.album-hero__meta i {
  margin-right: 3px;
}
.album-hero__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.album-hero__desc p:last-child {
  margin-bottom: 0;
}

/* Album photo captions sit below the image (descriptions stay readable) */
.album-photos .gallery-card {
  cursor: pointer;
  margin-bottom: 0;
}
.album-photos {
  /* Fixed-ratio crop keeps every thumbnail short enough to fit with its caption */
}
.album-photos .gallery-card__media {
  aspect-ratio: 4/3;
}
.album-photos .gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-photos .gallery-card__cap {
  position: static;
  background: none;
  padding: 11px 14px 13px;
  color: var(--text);
}
.album-photos {
  /* Crop long captions to two lines; full text shows in the lightbox on click */
}
.album-photos .gallery-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Uniform 3-column grid so each thumbnail + caption stays compact */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-card:hover, .gallery-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  outline: none;
}
.gallery-card:hover .gallery-card__hint, .gallery-card:focus-visible .gallery-card__hint {
  opacity: 1;
  transform: none;
}
.gallery-card:hover img, .gallery-card:focus-visible img {
  transform: scale(1.04);
}
.gallery-card__media {
  overflow: hidden;
}
.gallery-card__media img {
  width: 100%;
  display: block;
  border-radius: 0;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-card__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(8, 11, 16, 0.82) 0%, rgba(8, 11, 16, 0.35) 55%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gallery-card__title {
  font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}
.gallery-card__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.gallery-card__meta i {
  margin-right: 2px;
}
.gallery-card__hint {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-contrast);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* - - - - - - - - - - Lightbox - - - - - - - - - - */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(9, 11, 15, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox.is-open {
  display: flex;
  animation: lbFade 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  width: 100%;
  max-width: 1080px;
  max-height: 88vh;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.lightbox__media {
  background: #0a0c10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.lightbox__media img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0;
}
.lightbox__story {
  padding: 34px 36px;
  overflow-y: auto;
}
.lightbox__story h2 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: var(--heading);
}
.lightbox__meta {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.lightbox__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.lightbox__text p {
  margin: 0 0 1rem;
}
.lightbox__text p:last-child {
  margin-bottom: 0;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox__prev {
  left: 14px;
}
.lightbox__next {
  right: 14px;
}

@keyframes lbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* - - - - - - - - - - Gallery responsive - - - - - - - - - - */
@media only screen and (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (max-width: 820px) {
  .album-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .album-hero__cover {
    max-width: 420px;
    margin: 0 auto;
  }
  .album-hero__desc {
    text-align: left;
  }
  .album-hero__text h1 {
    font-size: 2rem;
  }
  .lightbox {
    padding: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(9, 11, 15, 0.92);
  }
  .lightbox__panel {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    border-radius: 0;
  }
  .lightbox__media {
    max-height: 42vh;
  }
  .lightbox__media img {
    max-height: 42vh;
  }
  .lightbox__story {
    padding: 22px 20px;
  }
  .lightbox__nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .lightbox__close {
    top: 12px;
    right: 14px;
  }
}
@media only screen and (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 460px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* - - - - - - - - - - Media Styles - - - - - - - - - - */
/* Medium Devices, Desktops */
@media only screen and (max-width: 1100px) {
  .content-box {
    padding: 36px 28px;
    padding-left: calc(290px + 28px);
  }
  .post .post-content .post-title {
    font-size: 22px;
  }
  .wrap-content, .header-page {
    padding-left: 28px;
    padding-right: 28px;
  }
}
/* Small Devices, Tablets & Phones */
@media only screen and (max-width: 768px) {
  /* The desktop rail toggle is replaced by the top-bar hamburger */
  .sidebar-toggle {
    display: none;
  }
  /* Sticky compact top bar */
  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 80;
    height: 56px;
    padding: 0 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .topbar__toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
  }
  .topbar__toggle .topbar__icon-close {
    display: none;
  }
  .topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--heading);
    text-decoration: none;
  }
  .topbar__brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }
  .topbar__brand span {
    font-family: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html.nav-open .topbar__toggle .topbar__icon-open {
    display: none;
  }
  html.nav-open .topbar__toggle .topbar__icon-close {
    display: inline-block;
  }
  /* Dim backdrop behind the open drawer */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(8, 11, 16, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }
  /* Sidebar becomes a slide-in off-canvas drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 280px;
    max-width: 84vw;
    flex-direction: column;
    justify-content: flex-start;
    padding: 70px 24px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 70;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.22);
  }
  html.nav-open .sidebar {
    transform: none;
  }
  /* Neutralise the desktop rail state if it lingers from a wider viewport */
  html.sidebar-collapsed .sidebar {
    width: 280px;
    transform: translateX(-100%);
  }
  html.sidebar-collapsed.nav-open .sidebar {
    transform: none;
  }
  .about {
    max-width: 100%;
    margin: 4px 0 22px;
  }
  .about img {
    width: 88px;
    height: 88px;
  }
  .menu ul {
    display: block;
  }
  .menu a {
    margin-bottom: 6px;
  }
  /* Content fills the width below the top bar */
  .content-box,
  html.sidebar-collapsed .content-box {
    padding: 22px 16px;
    max-width: 100%;
  }
  .post {
    flex-direction: column;
  }
  .post .post-thumbnail {
    width: 100%;
    min-height: 9rem;
  }
  .post .post-content {
    width: 100%;
  }
  .post .post-content .post-title a {
    font-size: 20px;
  }
  .header-page {
    padding: 0 16px;
    margin-top: 18px;
  }
  .header-page .page-title {
    font-size: 1.9rem;
  }
  .wrap-content {
    padding: 8px 18px 26px;
  }
  .wrap-content table {
    display: block;
    overflow-x: auto;
  }
  .blog-tags {
    padding: 22px 16px;
  }
  /* Keep the About tab bar below the sticky top bar */
  .about-tabs {
    top: 64px;
  }
  .contact .contact-title::before,
  .contact .contact-title::after {
    display: none;
  }
}
/* Extra Small Devices, Phones */
@media only screen and (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .content-box {
    padding: 18px 12px;
  }
  .post {
    margin-bottom: 1.2rem;
  }
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .gallery-head h1 {
    font-size: 1.9rem;
  }
  .album-hero__text h1 {
    font-size: 1.8rem;
  }
  .header-page .page-title {
    font-size: 1.7rem;
  }
  .about-hero__name {
    font-size: 2rem;
  }
  /* Comfortable tap targets for the social icons */
  .contact ul li a {
    width: 40px;
    height: 40px;
  }
}
