/*
 *  ___
 * /\_ \
 * \//\ \      __      ___   __  __    ___     ___
 *   \ \ \   /'__`\  /' _ `\/\ \/\ \  / __`\ /' _ `\
 *    \_\ \_/\ \_\.\_/\ \/\ \ \ \_\ \/\ \_\ \/\ \/\ \
 *    /\____\ \__/.\_\ \_\ \_\/`____ \ \____/\ \_\ \_\
 *    \/____/\/__/\/_/\/_/\/_/`/___/> \/___/  \/_/\/_/
 *                               /\___/
 *                               \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/lanyon.
 */


/*
 * Contents
 *
 * Global resets
 * Masthead
 * Sidebar
 * Slide effect
 * Posts and pages
 * Pagination
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

/* Prevent scroll on narrow devices - but allow nested scroll */
html {
  overflow-x: hidden;
}

body {
  overflow-x: visible;
}

/*
 * Responsive Tables
 */

.table-wrapper {
  display: block;
  width: 100%;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  position: relative;
}

.table-wrapper table {
  margin-bottom: 0;
  min-width: 700px;
  width: max-content;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 48em) {
  .table-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    width: calc(100% + 2rem);
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }
}

html {
  font-family: Athelas, Palatino, Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Athelas, Palatino, Georgia, serif;
  font-weight: 700;
  color: #303030;
  letter-spacing: 0;
}


/*
 * Wrapper
 *
 * The wrapper is used to position site content when the sidebar is toggled. We
 * use an outter wrap to position the sidebar without interferring with the
 * regular page content.
 */

.wrap {
  position: relative;
  width: 100%;
}


/*
 * Container
 *
 * Center the page content.
 */

.container {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 48em) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/*
 * Site Header
 *
 * Full-width black header with name on left and navigation on right.
 */

.site-header {
  background-color: #000;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: Athelas, Palatino, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  letter-spacing: 0;
}

.site-title:hover {
  color: #ccc;
  border-bottom: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: Athelas, Palatino, Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ccc;
  border-bottom: none;
}

@media (max-width: 48em) {
  .site-header {
    padding: 1rem;
  }
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .site-nav {
    gap: 1rem;
  }

  /* Mobile typography improvements */
  .post-content,
  .page-content,
  .note-body {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .post-title,
  .page-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}


/*
 * Sidebar
 *
 * The sidebar is the drawer, the item we are toggling with our handy hamburger
 * button in the corner of the page.
 *
 * This particular sidebar implementation was inspired by Chris Coyier's
 * "Offcanvas Menu with CSS Target" article, and the checkbox variation from the
 * comments by a reader. It modifies both implementations to continue using the
 * checkbox (no change in URL means no polluted browser history), but this uses
 * `position` for the menu to avoid some potential content reflow issues.
 *
 * Source: http://css-tricks.com/off-canvas-menu-with-css-target/#comment-207504
 */

/* Style and "hide" the sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -14rem;
  width: 14rem;
  visibility: hidden;
  overflow-y: auto;
  font-family: Athelas, Palatino, Georgia, serif;
  font-size: .875rem; /* 15px */
  color: rgba(255,255,255,.6);
  background-color: #202020;
  -webkit-transition: all .3s ease-in-out;
          transition: all .3s ease-in-out;
}
@media (min-width: 30em) {
  .sidebar {
    font-size: .75rem; /* 14px */
  }
}

/* Sidebar content */
.sidebar a {
  font-weight: normal;
  color: #fff;
}
.sidebar-item {
  padding: 1rem;
}
.sidebar-item p:last-child {
  margin-bottom: 0;
}

/* Sidebar nav */
.sidebar-nav {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-nav-item {
  display: block;
  padding: .5rem 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-nav-item.active,
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: none;
  background-color: rgba(255,255,255,.1);
  border-color: transparent;
}

@media (min-width: 48em) {
  .sidebar-item {
    padding: 1.5rem;
  }
  .sidebar-nav-item {
    padding-left:  1.5rem;
    padding-right: 1.5rem;
  }
}

/* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */
.sidebar-checkbox {
  position: absolute;
  opacity: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Style the `label` that we use to target the `.sidebar-checkbox` */
.sidebar-toggle {
  position: absolute;
  top:  .8rem;
  left: 1rem;
  display: flex;
  align-items: center;
  padding: .25rem .75rem;
  color: #505050;
  background-color: #fff;
  border-radius: .25rem;
  cursor: pointer;
}

.sidebar-toggle::before {
  display: inline-block;
  width: 32px;
  height: 32px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23555' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2.5 11.5A.5.5 0 013 11h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 7h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 3h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat;
}

.sidebar-toggle:active,
#sidebar-checkbox:focus ~ .sidebar-toggle,
#sidebar-checkbox:checked ~ .sidebar-toggle {
  color: #fff;
  background-color: #555;
}

.sidebar-toggle:active:before,
#sidebar-checkbox:focus ~ .sidebar-toggle::before,
#sidebar-checkbox:checked ~ .sidebar-toggle::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2.5 11.5A.5.5 0 013 11h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 7h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 3h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat;
}

@media (min-width: 30.1em) {
  .sidebar-toggle {
    position: fixed;
  }
}

@media print {
  .sidebar-toggle {
    display: none;
  }
}

/* Slide effect
 *
 * Handle the sliding effects of the sidebar and content in one spot, seperate
 * from the default styles.
 *
 * As an a heads up, we don't use `transform: translate3d()` here because when
 * mixed with `position: fixed;` for the sidebar toggle, it creates a new
 * containing block. Put simply, the fixed sidebar toggle behaves like
 * `position: absolute;` when transformed.
 *
 * Read more about it at http://meyerweb.com/eric/thoughts/2011/09/12/.
 */

.wrap,
.sidebar,
.sidebar-toggle {
  -webkit-backface-visibility: hidden;
      -ms-backface-visibility: hidden;
          backface-visibility: hidden;
}
.wrap,
.sidebar-toggle {
  -webkit-transition: -webkit-transform .3s ease-in-out;
          transition: transform .3s ease-in-out;
}

#sidebar-checkbox:checked + .sidebar {
  z-index: 10;
  visibility: visible;
}
#sidebar-checkbox:checked ~ .sidebar,
#sidebar-checkbox:checked ~ .wrap,
#sidebar-checkbox:checked ~ .sidebar-toggle {
  -webkit-transform: translateX(14rem);
      -ms-transform: translateX(14rem);
          transform: translateX(14rem);
}


/*
 * Posts and pages
 *
 * Each post is wrapped in `.post` and is used on default and post layouts. Each
 * page is wrapped in `.page` and is only used on the page layout.
 */

.page,
.post {
  margin-bottom: 4em;
}

/* Blog post or page title */
.page-title,
.post-title,
.post-title a {
  color: #303030;
}
.page-title,
.post-title {
  margin-top: 0;
}

/* Meta data line below post title */
.post-date {
  display: block;
  margin-top: -.5rem;
  margin-bottom: 1rem;
  color: #9a9a9a;
}

/* Related posts */
.related {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #eee;
}
.related-posts {
  padding-left: 0;
  list-style: none;
}
.related-posts h3 {
  margin-top: 0;
}
.related-posts li small {
  font-size: 75%;
  color: #999;
}
.related-posts li a:hover {
  color: #268bd2;
  text-decoration: none;
}
.related-posts li a:hover small {
  color: inherit;
}


/*
 * Pagination
 *
 * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
 * there are no more previous or next posts to show.
 */

.pagination {
  overflow: hidden; /* clearfix */
  margin-left: -1rem;
  margin-right: -1rem;
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  color: #ccc;
  text-align: center;
}

/* Pagination items can be `span`s or `a`s */
.pagination-item {
  display: block;
  padding: 1rem;
  border: 1px solid #eee;
}
.pagination-item:first-child {
  margin-bottom: -1px;
}

/* Only provide a hover state for linked pagination items */
a.pagination-item:hover {
  background-color: #f5f5f5;
}

@media (min-width: 30em) {
  .pagination {
    margin: 3rem 0;
  }
  .pagination-item {
    float: left;
    width: 50%;
  }
  .pagination-item:first-child {
    margin-bottom: 0;
    border-top-left-radius:    4px;
    border-bottom-left-radius: 4px;
  }
  .pagination-item:last-child {
    margin-left: -1px;
    border-top-right-radius:    4px;
    border-bottom-right-radius: 4px;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` and sidebar toggle
 * on the right side.
 */

.layout-reverse .sidebar {
  left: auto;
  right: -14rem;
}
.layout-reverse .sidebar-toggle {
  left: auto;
  right: 1rem;
}

.layout-reverse #sidebar-checkbox:checked ~ .sidebar,
.layout-reverse #sidebar-checkbox:checked ~ .wrap,
.layout-reverse #sidebar-checkbox:checked ~ .sidebar-toggle {
  -webkit-transform: translateX(-14rem);
      -ms-transform: translateX(-14rem);
          transform: translateX(-14rem);
}


/*
 * Themes
 *
 * Apply custom color schemes by adding the appropriate class to the `body`.
 * Based on colors from Base16: http://chriskempson.github.io/base16/#default.
 */

/* Red */
.theme-base-08 .sidebar,
.theme-base-08 .sidebar-toggle:active,
.theme-base-08 #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #ac4142;
}
.theme-base-08 .container a,
.theme-base-08 .sidebar-toggle,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar,
.theme-base-09 .sidebar-toggle:active,
.theme-base-09 #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #d28445;
}
.theme-base-09 .container a,
.theme-base-09 .sidebar-toggle,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar,
.theme-base-0a .sidebar-toggle:active,
.theme-base-0a #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #f4bf75;
}
.theme-base-0a .container a,
.theme-base-0a .sidebar-toggle,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar,
.theme-base-0b .sidebar-toggle:active,
.theme-base-0b #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #90a959;
}
.theme-base-0b .container a,
.theme-base-0b .sidebar-toggle,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar,
.theme-base-0c .sidebar-toggle:active,
.theme-base-0c #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #75b5aa;
}
.theme-base-0c .container a,
.theme-base-0c .sidebar-toggle,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar,
.theme-base-0d .sidebar-toggle:active,
.theme-base-0d #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #6a9fb5;
}
.theme-base-0d .container a,
.theme-base-0d .sidebar-toggle,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar,
.theme-base-0e .sidebar-toggle:active,
.theme-base-0e #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #aa759f;
}
.theme-base-0e .container a,
.theme-base-0e .sidebar-toggle,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar,
.theme-base-0f .sidebar-toggle:active,
.theme-base-0f #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #8f5536;
}
.theme-base-0f .container a,
.theme-base-0f .sidebar-toggle,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}


/*
 * Overlay sidebar
 *
 * Make the sidebar content overlay the viewport content instead of pushing it
 * aside when toggled.
 */

.sidebar-overlay #sidebar-checkbox:checked ~ .wrap {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}
.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar-toggle {
  box-shadow: 0 0 0 .25rem #fff;
}
.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
  box-shadow: .25rem 0 .5rem rgba(0,0,0,.1);
}

/* Only one tweak for a reverse layout */
.layout-reverse.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
  box-shadow: -.25rem 0 .5rem rgba(0,0,0,.1);
}


/*
 * Articles Page
 *
 * Topic filters and archive styling
 */

.articles-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.archive-link {
  margin-bottom: 1rem;
}

.archive-link a {
  font-weight: 700;
}

.topic-filters {
  line-height: 1.8;
}

.filter-label {
  color: #999;
  margin-right: 0.5rem;
}

.topic-filters a {
  border-bottom: none;
  color: #303030;
}

.topic-filters a:hover {
  color: #000;
  border-bottom: 1px solid #303030;
}

.category-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.category-title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.article-list li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-list a {
  border-bottom: none;
}

.article-list a:hover {
  border-bottom: 1px solid currentColor;
}

.article-date {
  color: #999;
  font-size: 0.875rem;
  white-space: nowrap;
}

.see-more {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.see-more a {
  font-size: 0.875rem;
  color: #666;
  border-bottom: none;
}

.see-more a:hover {
  color: #303030;
}

#complete-archive {
  border-bottom: none;
}

.archive-list li {
  padding: 0.25rem 0;
}

@media (max-width: 48em) {
  .article-list li {
    flex-direction: column;
    gap: 0.1rem;
  }

  .topic-filters a {
    display: inline-block;
    margin: 0.25rem 0;
  }
}

/*
 * Category Pages
 */

.category-description {
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.back-link {
  margin-bottom: 2rem;
}

.back-link a {
  font-size: 0.875rem;
  color: #666;
  border-bottom: none;
}

.back-link a:hover {
  color: #303030;
  border-bottom: 1px solid currentColor;
}

.article-count {
  margin-top: 2rem;
  color: #999;
  font-size: 0.875rem;
}

/*
 * About Page
 */

.about-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.about-photo-container {
  flex-shrink: 0;
}

.about-photo {
  max-width: 200px;
  border-radius: 4px;
  margin: 0;
}

.about-content {
  flex: 1;
}

.about-content p {
  margin-top: 0;
}

@media (max-width: 48em) {
  .about-container {
    flex-direction: column;
  }

  .about-photo {
    max-width: 180px;
  }
}

/*
 * Notes - Static Sidebar Layout
 */

.notes-layout {
  display: block;
  min-height: calc(100vh - 80px);
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

.notes-sidebar {
  /* Base styles - overridden by media queries below */
}

.notes-nav {
  display: flex;
  flex-direction: column;
}

.notes-folder {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  padding: 1.25rem 1.25rem 0.5rem;
}

.notes-nav-item {
  display: block;
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  border-bottom: none;
}

.notes-nav-item:hover {
  color: #000;
  background: #f0f0f0;
}

.notes-nav-item.active {
  color: #000;
  font-weight: 600;
  background: #eee;
}

.notes-nav-child {
  padding-left: 2rem;
}

.notes-content {
  width: 100%;
  padding: 2rem 3rem;
  max-width: 60rem;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}

.note-date {
  display: block;
  color: #999;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.note-body {
  line-height: 1.7;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.note-body h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.note-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e5e5;
  line-height: 1.3;
}

.note-body h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #4a4a4a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.note-body blockquote {
  font-size: 0.9rem;
}

.note-body ul {
  margin-left: 1rem;
  padding-left: 0.5rem;
}

.note-body ul ul {
  margin-left: 0.75rem;
  padding-left: 0.5rem;
  font-size: 0.9rem;
}

.note-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.note-body table th {
  background: #f8f8f8;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #ddd;
}

.note-body table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.note-body table tr:last-child td {
  border-bottom: none;
}

.note-body table tr:hover {
  background: #fafafa;
}

/*
 * Notes TOC Sidebar (right side)
 */

.notes-toc-sidebar {
  position: fixed;
  top: 6rem;
  right: 2rem;
  width: 320px;
}

.notes-toc-sidebar .toc {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1rem;
  border-left: 1px solid #eee;
}

.notes-toc-sidebar .toc h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.notes-toc-sidebar .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-toc-sidebar .toc li {
  margin-bottom: 0.4rem;
}

.notes-toc-sidebar .toc li.toc-h3 {
  padding-left: 1rem;
}

.notes-toc-sidebar .toc a {
  font-size: 0.7rem;
  color: #666;
  text-decoration: none;
  border-bottom: none;
  display: block;
  line-height: 1.4;
  transition: color 0.15s;
  -webkit-text-size-adjust: 100%;
}

.notes-toc-sidebar .toc a:hover {
  color: #303030;
}

.notes-toc-sidebar .toc a.active {
  color: #303030;
  font-weight: 600;
}

@media (max-width: 100em) {
  .notes-toc-sidebar {
    display: none;
  }
}

/* Hide the checkbox visually - Lanyon style */
.notes-sidebar-checkbox {
  position: absolute;
  opacity: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Sidebar - Lanyon style */
.notes-sidebar {
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  width: 280px;
  visibility: hidden;
  overflow-y: auto;
  background: #fafafa;
  border-right: 1px solid #eee;
  padding: 1.5rem 0;
  -webkit-transition: all .3s ease-in-out;
          transition: all .3s ease-in-out;
  z-index: 100;
}

/* Wrapper for content */
.notes-wrap {
  position: relative;
  width: 100%;
  -webkit-transition: -webkit-transform .3s ease-in-out;
          transition: transform .3s ease-in-out;
  -webkit-backface-visibility: hidden;
      -ms-backface-visibility: hidden;
          backface-visibility: hidden;
}

/* Toggle button - label for checkbox */
.notes-sidebar-toggle {
  display: flex;
  align-items: center;
  position: fixed;
  top: 6.5rem;
  left: 1rem;
  background: #fff;
  color: #505050;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  z-index: 1000;
}

.notes-sidebar-toggle:hover,
.notes-sidebar-toggle:active,
#notes-sidebar-checkbox:checked ~ .notes-sidebar-toggle {
  background: #555;
  color: #fff;
}

.notes-sidebar-toggle span {
  margin-right: 5px;
  font-size: 1.2rem;
}

/* The "Push" Effect - when checkbox is checked */
#notes-sidebar-checkbox:checked ~ .notes-wrap {
  -webkit-transform: translateX(280px);
      -ms-transform: translateX(280px);
          transform: translateX(280px);
}

/* Make sidebar visible only when toggled */
#notes-sidebar-checkbox:checked ~ .notes-sidebar {
  visibility: visible;
}

/* Desktop and Mobile - same behavior */
@media (max-width: 48em) {
  .notes-content {
    padding: 1.5rem 1rem;
  }
}

/*
 * Homepage - Minimal Design
 */

.home-minimal {
  max-width: 36rem;
}

.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #303030;
}

.hero p {
  font-size: 1.35rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.hero p:last-child {
  margin-bottom: 0;
}

.home-nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.home-nav a {
  font-size: 1.1rem;
  color: #303030;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
}

.home-nav a:hover {
  color: #000;
  border-bottom-color: #000;
}

@media (max-width: 48em) {
  .home-nav {
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}

.home-section {
  margin-bottom: 2.5rem;
}

.home-section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 1rem;
  font-weight: 600;
}

.featured-list,
.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.featured-list li:last-child {
  border-bottom: none;
}

.featured-list a {
  color: #303030;
  text-decoration: none;
  border-bottom: none;
  font-weight: 500;
}

.featured-list a:hover {
  color: #000;
}

.item-meta {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.2rem;
}

.latest-list {
  column-count: 2;
  column-gap: 2rem;
}

.latest-list li {
  padding: 0.35rem 0;
  break-inside: avoid;
}

.latest-list a {
  color: #555;
  text-decoration: none;
  border-bottom: none;
  font-size: 0.95rem;
}

.latest-list a:hover {
  color: #000;
}

.more-link {
  margin-top: 1rem;
  margin-bottom: 0;
}

.more-link a {
  font-size: 0.875rem;
  color: #666;
  border-bottom: none;
}

.more-link a:hover {
  color: #303030;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.topics a {
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: 0.95rem;
}

.topics a:hover {
  color: #000;
  border-bottom-color: #000;
}

.colophon {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.colophon p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.colophon a {
  color: #303030;
}

@media (max-width: 48em) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.15rem;
  }
}

/*
 * Photography - Coming Soon
 */

.photography-coming-soon {
  text-align: center;
}

.photography-coming-soon h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: #303030;
}

.photography-coming-soon p {
  color: #999;
  font-size: 1rem;
  font-style: italic;
  margin: 0 0 2rem 0;
}

.coming-soon-image {
  margin-top: 1.5rem;
}

.coming-soon-image img {
  max-width: 100%;
  border-radius: 4px;
}

/*
 * Photo Album - Thumbnail Grid with Lightbox
 */

.photo-album {
  max-width: 100%;
}

.album-header {
  text-align: center;
  margin-bottom: 2rem;
}

.album-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  color: #303030;
}

.album-meta {
  color: #666;
  font-size: 0.9rem;
}

.album-date {
  margin-right: 1rem;
}

.album-location {
  font-style: italic;
}

/* Thumbnail Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.grid-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  position: absolute;
  top: 60px;
  bottom: 120px;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: calc(100vh - 250px);
  object-fit: contain;
}

.lightbox-caption {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  font-style: italic;
  max-width: 600px;
  width: 90%;
  padding: 0 1rem;
  z-index: 1002;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: fixed;
  bottom: 30px;
  background: #fff;
  border: none;
  color: #000;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1001;
}

.lightbox-nav:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.lightbox-prev {
  left: calc(50% - 80px);
}

.lightbox-next {
  right: calc(50% - 80px);
}

@media (max-width: 48em) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
  }

  .lightbox-nav {
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: calc(50% - 60px);
  }

  .lightbox-next {
    right: calc(50% - 60px);
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }

  .lightbox-caption {
    bottom: 90px;
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}

/*
 * Photography List Page
 */

.photography-page h1 {
  margin-bottom: 2rem;
}

.photo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.photo-item-link {
  display: block;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.photo-item-link:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.photo-item-link h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #303030;
}

.photo-list .photo-date {
  color: #999;
  font-size: 0.875rem;
  margin-right: 1rem;
}

.photo-list .photo-location {
  color: #666;
  font-size: 0.875rem;
  font-style: italic;
}

/*
 * Article TOC Sidebar
 */

.article-container {
  position: relative;
}

.article-container .post {
  max-width: 48rem;
}

.toc-sidebar {
  position: fixed;
  top: 6rem;
  right: calc((100vw - 48rem) / 2 - 240px);
  width: 200px;
}

.toc {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1rem;
  border-left: 1px solid #eee;
}

.toc h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc li.toc-h3 {
  padding-left: 1rem;
}

.toc a {
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
  border-bottom: none;
  display: block;
  line-height: 1.4;
  transition: color 0.15s;
}

.toc a:hover {
  color: #303030;
}

.toc a.active {
  color: #303030;
  font-weight: 600;
}

@media (max-width: 80em) {
  .toc-sidebar {
    display: none;
  }
}
