/* Human Crafted Design System */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&family=Work+Sans:wght@400;500;700&display=swap');

/* CSS Variables - Figma Design Colors */
:root {
  --background: #dfd7c8; /* Tan from Figma */
  --foreground: #333333; /* Almost Black from Figma */
  --accent: #ffff00; /* Yellow from Figma */
  --muted: #999999;
  --muted-foreground: #666666;
}

[data-theme="dark"] {
  --background: #333333;
  --foreground: #dfd7c8;
  --accent: #ffff00;
  --muted: #666666;
  --muted-foreground: #999999;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 18px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 150ms ease;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
}

/* Layout */
.site-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20vh 8% 0 8%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20vh 0 0 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background-color: rgba(223, 215, 200, 0.8);
  padding: 2.5rem 0;
  width: 100%;
}

[data-theme="dark"] .site-header {
  background-color: rgba(51, 51, 51, 0.8);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
  }
}

.site-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: lowercase;
  cursor: pointer;
}

.site-title:hover {
  color: var(--muted);
  transition: color 150ms ease;
}

.site-logo {
  height: 3.5rem;
  width: auto;
  transition: opacity 150ms ease;
  cursor: pointer;
}

.site-title:hover .site-logo {
  opacity: 0.7;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 2.625rem;
  align-items: center;
}

.site-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: text-decoration 150ms ease;
}

.site-nav a:hover {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: wavy;
}

.site-nav a.active {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Co/lab button styling */
.site-nav .colab-btn {
  /* Inherits from .btn base styles - just need overrides for navigation specificity */
  box-sizing: border-box;
  white-space: nowrap;
}

/* Removed - now inherits from .btn:hover */

.site-nav .colab-btn.active {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Removed - now inherits from [data-theme="dark"] .btn:hover */


.site-nav .colab-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  border-radius: 0.375rem;
  transition: color 150ms ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.theme-toggle:hover {
  color: var(--muted);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
}

.theme-icon {
  transition: opacity 150ms ease;
}

/* Show sun icon in light mode, hide moon */
.theme-icon-light {
  display: block;
}

.theme-icon-dark {
  display: none;
}

/* Show moon icon in dark mode, hide sun */
[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: block;
}

/* Dark mode SVG filter */
[data-theme="dark"] .svg-darkmode,
[data-theme="dark"] .page-content img[src$=".svg"],
[data-theme="dark"] .project-image img[src$=".svg"],
[data-theme="dark"] .project-image svg {
  filter: invert(91%) sepia(17%) saturate(166%) hue-rotate(1deg) brightness(94%) contrast(88%);
  will-change: auto;
}

/* Main content */
.page-content {
  flex: 1;
  padding: 0;
}

.page-content a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-style: solid;
  transition: text-decoration 150ms ease;
}

.page-content a:hover {
  font-weight: 500;
  text-decoration-style: wavy;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 10rem;
  margin-top: 0;
  line-height: 1.1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 6rem;
  margin-top: 0;
  line-height: 1.1;
  max-width: 60%;
  height: 40vh;
  display: flex;
  align-items: center;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  margin-top: 2.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--foreground);
  line-height: 1.625;
}

/* Links */
a {
  color: var(--foreground);
  text-decoration: none;
  text-underline-offset: 0.2rem;
  transition: text-decoration 150ms ease;
}

a:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* External links indicator - exclude social media icons */
.page-content a[href^="http"]:not([href*="127.0.0.1"]):not([href*="localhost"]):not([href*="humancrafted"]):not([href*="human-crafted"])::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 0.2em;
  opacity: 0.7;
  vertical-align: super;
  line-height: 1;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--muted);
}

th {
  font-weight: 500;
  color: var(--foreground);
}

td {
  color: var(--muted-foreground);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* Code */
code {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: rgba(153, 153, 153, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--foreground);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--foreground);
  margin: 4rem 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--foreground);
  margin: 0;
  margin-bottom: 2rem;
}

/* Archive section */
.archive-header {
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-top: 0;
}

.archive-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  scroll-margin-top: 200px;
}

.archive-title::after {
  content: "↓";
  font-size: 1rem;
}

/* Tag filtering */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}


.tag-filter {
  background: none;
  border: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: text-decoration 150ms ease;
}

.tag-filter.active {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: wavy;
}

.tag-filter:hover {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem 2rem;
  margin-bottom: 5rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.project-card:hover {
  color: inherit;
}

/* Override page-content link styling for project cards */
.page-content .project-card {
  text-decoration: none;
}

.page-content .project-card:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
  font-weight: 500;
}

.project-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--background);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 150ms ease, background-color 150ms ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
}

.project-image svg {
  max-width: 80%;
  max-height: 80%;
  transform: translateZ(0);
}


.project-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--foreground);
  margin: 0;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  margin-top: auto;
}

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

.site-footer p {
  color: var(--foreground);
  font-size: 14px;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.21px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-links a {
  color: var(--foreground);
  transition: color 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.social-links a:hover {
  color: var(--muted);
}

.social-links svg {
  color: var(--foreground);
  transition: color 150ms ease;
}

.social-links a:hover svg {
  color: var(--muted);
}

/* Utility classes for margin-bottom based on Figma frames */
.margin-bottom-1rem {
  margin-bottom: 1rem;
}

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

.margin-bottom-3rem {
  margin-bottom: 3rem;
}

.margin-bottom-4rem {
  margin-bottom: 4rem;
}

.margin-bottom-6rem {
  margin-bottom: 6rem;
}

.margin-bottom-8rem {
  margin-bottom: 8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-container {
    padding: 0 5%;
    padding-top: 25vh;
  }
  
  .site-header {
    padding: 2rem 0 1rem 0;
  }
  
  .header-content {
    padding: 0 5%;
    align-items: flex-start;
  }
  
  .site-logo {
    height: 2.5rem;
  }
  
  .site-nav {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  
  .colab-link-wrapper {
    display: none; /* Hide Let's co/lab on mobile */
  }
  
  .page-content {
    padding: 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
    margin-top: 0;
    height: 30vh;
    max-width: 100%;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem !important;
  }
  
  .back-link {
    align-self: flex-start;
  }
  
  .project-tags,
  .project-categories {
    flex-direction: row;
    align-items: flex-start;
    align-self: flex-start;
  }
  
  .tags-label,
  .categories-label {
    align-self: flex-start;
  }
  
  .meta-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .project-categories .meta-link {
    align-self: flex-start;
  }
  
  .meta-link {
    padding: 0 !important;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .tag-filter.active::before {
    left: -100px;
    width: 100px;
  }
  
  .archive-header {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Project detail pages */
.project-thumbnail {
  margin-bottom: 1.5rem;
  text-align: left;
}

.project-thumbnail img {
  width: 50%;
  height: 50vh;
  border-radius: 0.5rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.project-gallery h3 {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
  margin-top: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.project-header {
  margin-bottom: 3rem;
}

.project-header h1 {
  margin-bottom: 2rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.project-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-label {
  color: var(--foreground);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.meta-link {
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-style: solid;
  transition: text-decoration 150ms ease;
}

.meta-link:hover {
  font-weight: 500;
  text-decoration-style: wavy;
}

.project-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.categories-label {
  color: var(--foreground);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}


.project-hero {
  margin-bottom: 2rem;
  text-align: center;
}

.project-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.1);
}

.project-content {
  margin-bottom: 3rem;
}

.project-content a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-style: solid;
  transition: text-decoration 150ms ease;
}

.project-content a:hover {
  font-weight: 500;
  text-decoration-style: wavy;
}

.project-footer {
  border-top: 1px solid var(--muted);
  padding-top: 2rem;
}

.back-link {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: text-decoration 150ms ease;
}

.back-link:hover {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Override page-content link styling for back-link */
.page-content .back-link {
  text-decoration: none;
}

.page-content .back-link:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  cursor: pointer;
  animation: fadeIn 150ms ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  animation: scaleIn 150ms ease;
}

.lightbox img[src$=".svg"] {
  filter: invert(91%) sepia(17%) saturate(166%) hue-rotate(1deg) brightness(94%) contrast(88%);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #dfd7c8;
  font-size: 2rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 150ms ease;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Gallery images cursor */
.project-gallery img {
  cursor: pointer;
  transition: transform 150ms ease;
}

.project-gallery img:hover {
  transform: scale(1.02);
}

/* Base Button Style */
.btn {
  background: var(--foreground);
  color: var(--background) !important;
  padding: 0 1.375rem;
  border-radius: 1.875rem;
  text-decoration: none !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: -0.33px;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
}

.btn:hover {
  background: var(--accent);
  color: var(--foreground) !important;
}

[data-theme="dark"] .btn:hover {
  background: rgba(255, 255, 0, 0.3);
  color: var(--foreground) !important;
}

/* Contact button specific */
.contact-btn {
  margin-top: 2rem;
}

/* Wiki/Collapsible Sections */
.wiki-section {
  margin-top: 2rem;
}

.wiki-item {
  margin-bottom: 1.5rem;
  border: none;
}

.wiki-header {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.75rem 0;
  margin: 0;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  transition: color 150ms ease;
}

.wiki-header:hover {
  color: var(--muted);
}

.wiki-header::before {
  content: "▶";
  margin-right: 0.75rem;
  transition: transform 150ms ease;
  font-size: 0.875rem;
}

.wiki-item[open] .wiki-header::before {
  transform: rotate(90deg);
}

.wiki-content {
  padding-left: 1.75rem;
  margin-top: 0.5rem;
}

.wiki-content ul {
  margin: 0;
  padding-left: 1rem;
}

.wiki-content li {
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.wiki-content a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-style: solid;
  transition: text-decoration 150ms ease;
}

.wiki-content a:hover {
  font-weight: 500;
  text-decoration-style: wavy;
}

/* Mobile wiki sections */
@media (max-width: 768px) {
  .wiki-header {
    font-size: 1.125rem;
    padding: 0.5rem 0;
  }
  
  .wiki-content {
    padding-left: 1.25rem;
  }
}

/* Writing/Posts Index */
.post-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(153, 153, 153, 0.2);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-item h3 a {
  color: var(--foreground);
  text-decoration: none;
  transition: text-decoration 150ms ease;
}

.post-item h3 a:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
  font-weight: 500;
}

.post-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Two Column Wiki Layout - Only for wiki sections */
.wiki-section .wiki-two-column,
.page-content .wiki-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wiki-section-title {
  /* Let h3 default styles take precedence */
  margin-top: 0;
}

.wiki-comma-list {
  /* Use default body/p styling */
}

.wiki-comma-list a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-style: solid;
  transition: text-decoration 150ms ease;
}

.wiki-comma-list a:hover {
  font-weight: 500;
  text-decoration-style: wavy;
}

/* Tablet and Mobile two column */
@media (max-width: 1024px) {
  .wiki-two-column {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .wiki-section .wiki-two-column,
  .page-content .wiki-two-column {
    display: block;
  }
  
  .wiki-section-title {
    margin-bottom: 1rem;
  }
  
  .wiki-comma-list {
    margin-bottom: 2rem;
  }
}

/* Coffee Database Table Styling */
.coffee-database {
  margin: 2rem 0;
  overflow-x: auto;
}

.coffee-database table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.coffee-database th,
.coffee-database td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--muted);
}

.coffee-database th {
  font-weight: 700;
  background-color: rgba(223, 215, 200, 0.3);
  border-bottom: 2px solid var(--foreground);
}

[data-theme="dark"] .coffee-database th {
  background-color: rgba(51, 51, 51, 0.3);
}

.coffee-database td img {
  border-radius: 4px;
  object-fit: cover;
}

.coffee-database a {
  color: var(--foreground);
  text-decoration: underline;
}

.coffee-database a:hover {
  text-decoration-style: wavy;
  font-weight: 500;
}

@media (max-width: 768px) {
  .coffee-database {
    font-size: 0.8rem;
  }
  
  .coffee-database th,
  .coffee-database td {
    padding: 0.5rem;
  }
  
  .coffee-database td img {
    width: 30px;
  }
}

/* Footnotes styling */
.footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footnotes::before {
  content: "Footnotes";
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-size: 0.9rem;
}

.footnotes ol {
  padding-left: 1.5rem;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

.footnotes p {
  margin: 0;
  display: inline;
}

/* Footnote reference in text */
sup[role="doc-noteref"],
sup {
  font-size: 0.75rem;
  vertical-align: super;
  line-height: 0;
}

sup[role="doc-noteref"] a,
sup a {
  color: var(--foreground);
  text-decoration: none !important;
  padding: 0 0.1rem;
}

sup[role="doc-noteref"] a:hover,
sup a:hover {
  text-decoration: none !important;
  font-weight: 500;
}

/* Back to reference link */
.reversefootnote {
  text-decoration: none;
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.reversefootnote:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
}
