@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-20vh) scale(1.2);
    opacity: 0;
  }
}

/* Kill browser default 8px body margin (flush to viewport). */
html,
body {
  margin: 0;
  padding: 0;
}

.floating-image {
  position: fixed;
  bottom: -150px;
  width: 80px;
  height: auto;
  transform: translateX(-50%);
  animation: floatUp 8s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(0px);
}

/* Add some randomness to each image */
.floating-image:nth-child(2n) {
  animation-duration: 10s;
  width: 70px;
}

.floating-image:nth-child(3n) {
  animation-duration: 12s;
  width: 90px;
}

.floating-image:nth-child(4n) {
  animation-duration: 15s;
  width: 60px;
}

/* Terminal Grotesque font for nav */
@font-face {
    font-family: 'terminal_grotesque';
    src: url('/fonts/terminal-grotesque-webfont.woff2') format('woff2'),
         url('/fonts/terminal-grotesque-webfont.woff') format('woff'),
         url('/fonts/terminal-grotesque-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Paper shader (dither) - nav only */
.main-nav {
  position: relative; /* anchor shader */
  color: #ffffff; /* Always white for contrast against green shader background */
}

/* Pull the whole layout to the top of viewport */
.page {
  margin: 0 auto 1rem;
}

/* Full-bleed header/nav (no left/right gutters) */
/* (keep header normal; make the nav itself full-bleed) */
.page__header {
  width: 100%;
}

/* Create a container that matches .page width for logo and nav text */
.main-nav-content {
  width: 100%;
  max-width: 64rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

/* Avoid horizontal scroll from 100vw math */
html,
body {
  overflow-x: clip;
}

/*
  Nav height is responsive but capped:
  - grows with viewport height
  - stops growing past a max (so big screens don’t get a giant green slab)
*/
.main-nav {
  box-sizing: border-box;
  padding: 0.75rem 0.75rem clamp(2.5rem, 18vh, 12rem);
}

/* Add flex centering to nav content */
.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav a:link,
.main-nav a:visited {
  color: #ffffff; /* Always white for contrast against green shader background */
}

/* 1px halo for legibility over dithering */
.main-nav .page__logo,
.main-nav .page__logo a,
.main-nav a.nav-main-item {
  font-family: 'terminal_grotesque', monospace;
  font-weight: normal;
  text-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.9),
    1px 0 0 rgba(0, 0, 0, 0.9),
    0 -1px 0 rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(0, 0, 0, 0.9);
}

/* Don’t show typography heading prefixes in nav */
.main-nav h1:before,
.main-nav h2:before,
.main-nav h3:before,
.main-nav h4:before,
.main-nav h5:before,
.main-nav h6:before {
  content: "";
}

/* Optional: remove default underline for nav links (keep hover/active separate if desired) */
.main-nav a.nav-main-item {
  text-decoration: none;
}

#paper-dither-nav {
  /* Keep the dither effect concentrated behind the header instead of
     stretching under the white content card. This makes the shader
     visible behind the nav/logo while avoiding the "white pixel"
     overlap from the body section. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 220px; /* slightly taller than nav to keep dither visible */
  opacity: 0.55; /* tune strength in nav */
  pointer-events: none;
  z-index: -1; /* Place behind everything */
  overflow: hidden; /* clip shader canvas, not text */
}

.main-nav .logo-section,
.main-nav .text-section {
  position: relative;
  z-index: 1;
}

.page__body {
  background-color: transparent;
  box-shadow: none;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Readability: hugo code fences (chroma) */
.highlight pre {
  background-color: var(--inner-bg) !important;
  color: var(--fg) !important;
}

/* Keep the code background transparent inside the green block */
.highlight pre code {
  background: transparent !important;
  color: inherit !important;
}

/* Ensure token spans don't go low-contrast on green */
.highlight pre code span {
  color: inherit !important;
}

/* Two-column grid layout for branespltr section */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 0; /* No gap between rows */
    width: 100%;
    position: relative; /* For positioning the fixed character headers */
}

/* Scene rows */
.scene-row {
    display: contents; /* This allows child elements to be placed directly in the grid */
}

/* Individual scenes */
.scene {
    padding: 1em;
    text-align: justify;
    border-bottom: none; /* Remove horizontal divider bars */
}

/* Calloway's scenes */
.calloway-scene {
    border-right: 1px solid #ccc;
    padding-right: 1.5em;
}

/* Grayson's scenes */
.grayson-scene {
    padding-left: 1.5em;
}

/* Fixed POV labels for the entire column using data attributes */
.two-column-grid::before,
.two-column-grid::after {
    position: absolute;
    font-size: 0.8em;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    writing-mode: vertical-lr; /* Vertical text */
    text-orientation: mixed;
    z-index: 50;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicking through the labels */
}

/* Calloway label on the left */
.two-column-grid::before {
    content: attr(data-calloway);
    left: -1em;
    transform: translateY(-50%) rotate(180deg); /* Flip text to read from bottom to top */
}

/* Grayson label on the right */
.two-column-grid::after {
    content: attr(data-grayson);
    right: -1em;
}

/* Optional: Style the character names stronger in each scene */
.scene strong:first-child {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Remove the old styles since we're using a new grid approach */
/* .two-column-body, .pov-column styles can be removed if not used elsewhere */

/* Style for square bracket references */
span:has(> a[href^="#fn:"]),  /* footnote references */
span:has(> a[href^="#fnref:"]), /* footnote back-references */
a[href^="#fn:"],
a[href^="#fnref:"] {
    color: #a1b56c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

span:has(> a[href^="#fn:"]):hover,
span:has(> a[href^="#fnref:"]):hover,
a[href^="#fn:"]:hover,
a[href^="#fnref:"]:hover {
    color: #b8c98d; /* slightly lighter version for hover */
    text-decoration: underline;
}

/* remove previous square bracket styles that weren't working */
[href^="["],
[href^="["]:hover,
a[href^="["]::before,
a[href^="["]::after {
    content: none;
    color: inherit;
}

/* Photography Tab Navigation */
.photography-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border, #333);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--color-text-muted, #888);
    font-family: monospace;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    outline: none;
}

.tab-button:hover {
    color: var(--color-link, #a1b56c);
}

.tab-button.active {
    color: var(--color-link, #a1b56c);
    font-weight: bold;
}

.tab-button:focus-visible {
    text-decoration: underline;
}

/* Tab Panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Tumblr Loading Message */
.tumblr-loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted, #888);
    font-family: monospace;
}

/* Photography Gallery Styles - CSS Columns Masonry Layout */
.photography-gallery {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Canon Sure Shot (Tumblr) gallery - 2 columns max */
#tumblr-gallery {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

@media (max-width: 768px) {
    .photography-gallery {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
    
    #tumblr-gallery {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    overflow: hidden;
}

.gallery-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    line-height: 0; /* Remove inline spacing */
}

.gallery-thumbnail {
    display: block;
    width: 100%;
    height: auto !important; /* Override any inline styles */
    min-height: 0 !important; /* Override any inline styles */
    margin: 0;
    padding: 0;
    border: none;
    object-fit: contain;
    transition: filter 0.4s ease;
    /* Default: out of focus - grayscale and pixelated */
    filter: grayscale(100%) contrast(1.1);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* In-focus state: full color, smooth rendering */
.gallery-item.in-focus .gallery-thumbnail {
    filter: none;
    image-rendering: auto;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem 0.5rem 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.3; /* Restore line-height for text */
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-no-link {
    cursor: default;
}

.gallery-link-disabled {
    cursor: default;
    pointer-events: none;
}

.gallery-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 1);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

/* Single Photo Viewer */
.photo-viewer {
    margin-top: 2rem;
}

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

.photo-fullsize {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    max-width: 100%;
}

.photo-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.photo-description {
    margin-top: 0.5rem;
    opacity: 0.9;
}

.photo-content {
    margin-top: 2rem;
}

/* Photo Navigation */
.photo-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #333);
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-link, #a1b56c);
    transition: color 0.2s ease;
    flex: 1;
}

.nav-link:hover {
    color: var(--color-link-hover, #b8c98d);
    text-decoration: underline;
}

.nav-prev {
    text-align: left;
}

.nav-index {
    text-align: center;
    flex: 0 0 auto;
}

.nav-next {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .photography-gallery {
        column-count: 3;
        column-gap: 0;
    }
}

@media (max-width: 768px) {
    .photography-gallery {
        column-count: 2;
        column-gap: 0;
    }

    .photography-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .photo-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        text-align: center;
    }
}

/* Music Chart Styles */
.music-chart {
    margin: 2rem 0;
    width: 100%;
}

.music-chart h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-text, #ddd);
}

.music-chart h2.toggleable {
    cursor: pointer;
    user-select: none;
}

.music-chart h2.toggleable:hover {
    opacity: 0.75;
}

.cache-info {
    display: none; /* Hide cache info */
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--color-bg-secondary, #2a2a2a);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-muted, #888);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted, #888);
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border, #333);
    border-radius: 50%;
    border-top-color: var(--color-link, #a1b56c);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.music-chart-grid {
    display: grid;
    gap: 0;
    width: 100%;
    border: 1px solid var(--color-border, #333);
    background: var(--color-bg, #1a1a1a);
    /* Layout properties set dynamically by JavaScript for responsive sizing */
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.album-cover:hover {
    opacity: 0.8;
}

.album-cover-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.chart-error {
    text-align: center;
    padding: 2rem;
    color: var(--color-error, #ff6b6b);
    background: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
}

/* Mascot Drag Overlay */
.mascot-drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 10001;
    cursor: not-allowed;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    flex-direction: column;
}

.mascot-overlay-content {
    text-align: center;
    color: white;
    animation: mascotPulse 2s ease-in-out infinite;
}

.mascot-image {
    width: 120px;
    height: 120px;
    opacity: 0.7;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.mascot-text {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

@keyframes mascotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Syntax highlighting improvements for better contrast */
.highlight pre,
.highlight code {
    background: var(--inner-bg) !important;
    color: var(--base01) !important; /* Override inline color styles */
}

/* Override Chroma syntax highlighting colors for better contrast */
.highlight .chroma {
    color: var(--base01) !important; /* Use the main text color instead of off-fg */
}

/* Force override inline styles from Hugo/Chroma */
.highlight pre[style*="color:"],
.highlight code[style*="color:"] {
    color: var(--base05) !important;
}

.highlight pre[style*="background-color:"],
.highlight code[style*="background-color:"] {
    background-color: var(--inner-bg) !important;
}

/* Specific overrides for common syntax highlighting elements */
.highlight .chroma .kd,  /* keywords */
.highlight .chroma .nb,  /* built-ins */
.highlight .chroma .nf {  /* function names */
    color: var(--base0D) !important; /* Use link color for better visibility */
}

.highlight .chroma .s,   /* strings */
.highlight .chroma .s1,  /* single quoted strings */
.highlight .chroma .s2 { /* double quoted strings */
    color: var(--base0B) !important; /* Use logo color (green) for strings */
}

.highlight .chroma .n,   /* numbers */
.highlight .chroma .mi { /* integer literals */
    color: var(--base09) !important; /* Use orange for numbers */
}

.highlight .chroma .c,   /* comments */
.highlight .chroma .c1 { /* single-line comments */
    color: var(--base03) !important; /* Use muted color for comments */
}

/* Additional drag prevention for protected images */
.gallery-item img,
.photography-gallery img,
.modal-image,
.photo-fullsize,
.album-cover {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: auto; /* Allow click events but prevent drag */
}

/* GitHub Calendar */
.github-calendar-container {
    margin-top: 1rem;
}

.calendar {
    font-family: inherit;
}

/* Hide summary text only */
.calendar .position-relative,
.calendar .float-left.text-gray {
    display: none !important;
}

/* Tighten legend margins */
.contrib-footer {
    padding: 0 !important;
    margin-top: 4px !important;
}

.contrib-legend {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.contrib-legend li {
    margin: 0 2px !important;
}

/* Tighten heatmap spacing */
.js-calendar-graph-svg {
    overflow: visible !important;
}

.day {
    stroke: var(--color-border, #333) !important;
    stroke-width: 0.5px !important;
}

/* Responsive calendar scaling */
.calendar .js-calendar-graph-svg,
.calendar .contrib-details {
    width: 100% !important;
}

/* Scroll to right and hide scrollbar */
.js-calendar-graph-table-wrapper {
    direction: rtl;
    scroll-behavior: smooth;
}

.js-calendar-graph-table-wrapper::-webkit-scrollbar {
    display: none;
}

.js-calendar-graph-table-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Supplementary Media Links for Entries */
.supplementary-media {
    float: right;
    max-width: 300px;
    width: 100%;
    margin: 0 0 1rem 1.5rem;
    clear: right;
}

.supplementary-media img,
.supplementary-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.supplementary-media video {
    background: var(--color-bg-secondary, #2a2a2a);
}

.supplementary-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Responsive: full width on smaller screens */
@media (max-width: 768px) {
    .supplementary-media {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
        clear: both;
    }
}

/* Ensure content wraps around supplementary media */
.content__body {
    overflow: hidden; /* Contains floats */
}

/* Mascot images - force consistent size */
img.site-logo,
canvas.site-logo {
    width: 128px !important;
    height: 128px !important;
    max-width: 128px !important;
    max-height: 128px !important;
    min-width: 128px !important;
    min-height: 128px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Canvas logo specific positioning */
canvas.site-logo {
    opacity: 1;
    position: relative;
    z-index: 9999;
    image-rendering: pixelated;
}

/* /stuff/projects — coding project gallery */
.projects-gallery {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.5rem 1.25rem;
}

.projects-gallery__item {
    margin: 0;
    padding: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
}

/* Same language as bandgraph `.bg-viewport`: hairline box, no radius */
.project-card__frame {
    display: block;
    height: 10.5rem;
    border: 1px solid var(--base03, #8a8a8a);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    background: var(--base00, #fff);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

a.project-card__frame:hover,
a.project-card__frame:focus-visible {
    border-color: var(--base04, #1f1f1f);
    box-shadow: none;
    outline: none;
}

a.project-card__frame:active {
    transform: scale(0.99);
}

.project-card__frame-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem 1.1rem;
    box-sizing: border-box;
}

.project-card__frame-inner--bandgraph {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    height: 100%;
}

.project-card__frame-inner--nimslo {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    height: 100%;
}

.project-card__frame-inner--questionnaire {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    height: 100%;
}

.project-card__mini-graph {
    flex: 1 0 auto;
    min-height: 7rem;
    height: 7rem;
    width: 100%;
    display: block;
    pointer-events: none;
    box-sizing: border-box;
    background-color: var(--base00, #fff);
    background-image:
        linear-gradient(
            color-mix(in srgb, var(--base03, #8a8a8a) 22%, transparent) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--base03, #8a8a8a) 22%, transparent) 1px,
            transparent 1px
        );
    background-size: 16px 16px;
    background-position: center;
}

.project-card__nimslo-media {
    flex: 1 0 auto;
    min-height: 7rem;
    height: 7rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    overflow: hidden;
    box-sizing: border-box;
    background-color: var(--base00, #fff);
    background-image:
        linear-gradient(
            color-mix(in srgb, var(--base03, #8a8a8a) 22%, transparent) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--base03, #8a8a8a) 22%, transparent) 1px,
            transparent 1px
        );
    background-size: 16px 16px;
    background-position: center;
}

.project-card__nimslo-media img {
    display: block;
    max-width: min(26%, 4.85rem);
    max-height: 5.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-card__questionnaire-media {
    flex: 1 0 auto;
    min-height: 6.2rem;
    height: 6.2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: var(--base00, #fff);
    background-image:
        linear-gradient(
            color-mix(in srgb, var(--base03, #8a8a8a) 22%, transparent) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--base03, #8a8a8a) 22%, transparent) 1px,
            transparent 1px
        );
    background-size: 16px 16px;
    background-position: center;
}

.project-card__questionnaire-icon {
    width: 4.25rem;
    height: 4.25rem;
    color: var(--base04, #1f1f1f);
    filter: drop-shadow(0.25rem 0.25rem 0 color-mix(in srgb, var(--base03, #8a8a8a) 35%, transparent));
}

.project-card__questionnaire-page {
    fill: var(--base00, #fff);
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.project-card__questionnaire-mark {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.project-card__label {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.25;
}

.project-card__label--bandgraph {
    flex: 0 0 auto;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    border-top: 1px solid var(--base03, #8a8a8a);
    background: var(--base00, #fff);
}

.project-card__label--nimslo {
    flex: 0 0 auto;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    border-top: 1px solid var(--base03, #8a8a8a);
    background: var(--base00, #fff);
}

.project-card__label--questionnaire {
    flex: 0 0 auto;
    font-size: 1rem;
    padding: 0.35rem 0.5rem 0.1rem;
    border-top: 1px solid var(--base03, #8a8a8a);
    background: var(--base00, #fff);
}

.project-card__subtitle {
    display: block;
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--off-fg, inherit);
}

.project-card__subtitle--questionnaire {
    flex: 0 0 auto;
    padding: 0 0.5rem 0.35rem;
    background: var(--base00, #fff);
}

.project-card__blurb {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--off-fg, inherit);
}
