/* ========================================
   Global
   ======================================== */

:root {
    --nfo-black: #0b0b0b;
    --nfo-white: #e8e8e8;
    --nfo-muted: #a8a8a8;
    --nfo-dim: #666666;
    --nfo-border: #c8c8c8;
    --nfo-panel: #101010;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--nfo-black);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    margin: 0;
    background: var(--nfo-black);
    color: var(--nfo-white);

    font-family:
        "Lucida Console",
        "Courier New",
        Courier,
        monospace;

    font-size: 15px;
    line-height: 1.55;
}

main {
    flex: 1;
}

a {
    color: var(--nfo-white);
}

a:hover {
    color: #ffffff;
}

::selection {
    background: var(--nfo-white);
    color: var(--nfo-black);
}


/* ========================================
   Bootstrap Overrides
   ======================================== */

.container {
    max-width: 1180px;
}

.text-body-secondary {
    color: var(--nfo-muted) !important;
}

.border-top,
.border-bottom {
    border-color: var(--nfo-border) !important;
}

.btn {
    border-radius: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: normal;
    box-shadow: none !important;
}

.btn-primary,
.btn-outline-primary,
.btn-outline-secondary {
    background: var(--nfo-black);
    border: 1px solid var(--nfo-white);
    color: var(--nfo-white);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
    background: var(--nfo-white);
    border-color: var(--nfo-white);
    color: var(--nfo-black);
}


/* ========================================
   Navbar
   ======================================== */

.site-navbar {
    width: 100%;
    padding: 0;
    background: var(--nfo-panel) !important;
    border-color: var(--nfo-border) !important;
}

.site-navbar-container {
    width: 100%;
    min-height: 58px;
}

.navbar-brand {
    color: var(--nfo-white);
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.navbar-brand::before {
    content: "[ ";
    color: var(--nfo-muted);
}

.navbar-brand::after {
    content: " ]";
    color: var(--nfo-muted);
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffffff;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.65rem;
    color: var(--nfo-muted);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: var(--nfo-white);
}

.navbar-nav .nav-link.active {
    position: relative;
}

.navbar-nav .nav-link.active::before {
    content: ">";
    position: absolute;
    left: -0.35rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nfo-white);
}

.navbar-toggler {
    border: 1px solid var(--nfo-border);
    border-radius: 0;
    color: var(--nfo-white);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu {
    padding: 0.35rem;
    background: var(--nfo-black);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
    font-family: inherit;
}

.dropdown-item {
    color: var(--nfo-muted);
    font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus-visible,
.dropdown-item.active {
    background: var(--nfo-white);
    color: var(--nfo-black);
}

.dropdown-divider {
    border-color: var(--nfo-dim);
}


/* ========================================
   Home
   ======================================== */

.hero {
    padding: 5rem 0 3rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
    color: var(--nfo-white);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: bold;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.hero .lead {
    color: var(--nfo-white);
    font-size: 1.25rem;
}

.hero .lead::before {
    content: "[ ";
    color: var(--nfo-muted);
}

.hero .lead::after {
    content: " ]";
    color: var(--nfo-muted);
}

.hero p:not(.lead) {
    max-width: 700px;
    color: var(--nfo-muted);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}


/* ========================================
   Featured Projects
   ======================================== */

.featured-projects {
    padding: 3rem 0 5rem;
}

.featured-projects-container {
    padding-top: 3rem;
}

.featured-projects-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--nfo-dim);
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-projects-title::before {
    color: var(--nfo-muted);
}

.featured-projects-grid {
    width: auto;
}


/* ========================================
   Footer
   ======================================== */

.site-footer {
    padding: 1.25rem 0;
    background: var(--nfo-panel);
    color: var(--nfo-muted);
    border-color: var(--nfo-border) !important;
    font-size: 0.8rem;
}

.site-footer-container {
    width: 100%;
}


/* ========================================
   Resume
   ======================================== */

.resume-section {
    padding: 3rem 0 5rem;
}

.resume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resume-header h1 {
    font-weight: bold;
    text-transform: uppercase;
}

.resume-header h1::before {
    color: var(--nfo-muted);
}

.resume-viewer {
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 700px;
    padding: 4px;
    background: var(--nfo-black);
    border: 1px solid var(--nfo-border);
}

.resume-viewer object {
    width: 100%;
    height: 100%;
}

.resume-fallback {
    padding: 3rem;
    text-align: center;
    border: 1px dashed var(--nfo-dim);
}


/* ========================================
   About
   ======================================== */

.about-section {
    padding: 3rem 0 5rem;
}

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

.about-title {
    margin-bottom: 0.5rem;
    color: var(--nfo-white);
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.about-title::before {
    color: var(--nfo-muted);
}

.about-subtitle {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--nfo-muted) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.about-content {
    width: 100%;
}

.about-introduction {
    max-width: 850px;
    margin-bottom: 4rem;
}

.about-section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--nfo-dim);
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
}

.about-section-title::before {
    content: "[ ";
    color: var(--nfo-muted);
}

.about-section-title::after {
    content: " ]";
    color: var(--nfo-muted);
}

.about-text {
    color: var(--nfo-white);
    font-size: 1rem;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-technologies {
    width: 100%;
}

.technology-group {
    height: 100%;
    padding: 1.25rem;
    background: var(--nfo-panel);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
}

.technology-group-title {
    margin-bottom: 1rem;
    color: var(--nfo-white);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.technology-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--nfo-muted);
    line-height: 1.8;
}

.technology-list li::marker {
    content: "- ";
    color: var(--nfo-white);
}


/* ========================================
   Contact
   ======================================== */

.contact-page {
    width: 100%;
}

.contact-section {
    padding: 3rem 0 5rem;
}

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

.contact-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-title::before {
    color: var(--nfo-muted);
}

.contact-intro {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--nfo-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
}

.contact-item {
    padding: 1.25rem;
    background: var(--nfo-panel);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
}

.contact-item-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-item-title::before {
    content: "[";
}

.contact-item-title::after {
    content: "]";
}

.contact-link {
    color: var(--nfo-white);
    font-size: 1rem;
}

.contact-link:hover {
    background: var(--nfo-white);
    color: var(--nfo-black);
    text-decoration: none;
}

.contact-email {
    padding: 0;
    border: 0;
    background: none;
    color: var(--nfo-white);
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}


/* ========================================
   Projects
   ======================================== */

.projects-page {
    width: 100%;
}

.projects-section {
    padding: 3rem 0 5rem;
}

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

.projects-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.projects-title::before {
    color: var(--nfo-muted);
}

.projects-intro {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--nfo-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.projects-grid {
    width: auto;
}

.project-column {
    display: flex;
}

.project-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--nfo-black);
    color: var(--nfo-white);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
}

.project-card:hover {
    border-color: #ffffff;
}

.project-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
    border-bottom: 1px solid var(--nfo-border);
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) contrast(1.15);
    transition: filter 120ms linear;
}

.project-card:hover .project-image {
    filter: grayscale(0) contrast(1);
}

.project-card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-title {
    margin-bottom: 0.75rem;
    color: var(--nfo-white);
    font-size: 1.15rem;
    font-weight: bold;
    text-transform: uppercase;
}

.project-title-link {
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
}

.project-title-link:hover {
    color: inherit;
}

.project-description {
    margin-bottom: 1.25rem;
    color: var(--nfo-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-technology {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    background: var(--nfo-panel);
    color: var(--nfo-white);
    border: 1px solid var(--nfo-dim);
    border-radius: 0;
    font-size: 0.75rem;
}

.project-card-footer {
    padding: 0.9rem 1.25rem;
    background: var(--nfo-panel);
    color: var(--nfo-white);
    border-top: 1px solid var(--nfo-border);
}

.project-view-link {
    font-size: 0.85rem;
    font-weight: normal;
}


/* ========================================
   Project Detail
   ======================================== */

.project-page {
    width: 100%;
}

.project-detail-section {
    padding: 3rem 0 5rem;
}

.project-detail-figure {
    margin: 0;
}

.project-detail-image-caption {
    margin-top: 0.5rem;
    color: var(--nfo-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}


/* Header */

.project-detail-header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 1.5rem;
    background: var(--nfo-panel);
    border: 1px solid var(--nfo-border);
}

.project-detail-category {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    color: var(--nfo-white);
    border-bottom: 1px dashed var(--nfo-dim);
    font-size: 0.8rem;
    font-weight: normal;
    letter-spacing: 0.08em;
}

.project-detail-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.project-detail-intro {
    max-width: 750px;
    margin-bottom: 1.5rem;
    color: var(--nfo-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


/* Content */

.project-detail-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* Project Screenshot */

.project-detail-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem;
}

.project-detail-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    padding: 4px;
    background: var(--nfo-black);
}


/* Content Blocks */

.project-detail-block {
    margin-bottom: 3rem;
}

.project-detail-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--nfo-dim);
    font-size: 1.35rem;
    font-weight: bold;
    text-transform: uppercase;
}

.project-detail-heading::before {
    content: "[ ";
    color: var(--nfo-muted);
}

.project-detail-heading::after {
    content: " ]";
    color: var(--nfo-muted);
}

.project-detail-text {
    margin-bottom: 1rem;
    color: var(--nfo-white);
    line-height: 1.7;
}


/* Lists */

.project-detail-list {
    margin-bottom: 0;
    padding-left: 1.5rem;
    color: var(--nfo-white);
    line-height: 1.8;
}

.project-detail-list li::marker {
    content: "> ";
    color: var(--nfo-muted);
}


/* Technologies */

.project-detail-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =========================================================
   Writeups
   ========================================================= */

.writeups-section {
    padding: 3rem 0 5rem;
}

.writeups-container {
    max-width: 900px;
}

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

.writeups-title {
    margin-bottom: 0.5rem;
    color: var(--nfo-white);
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.writeups-intro {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--nfo-muted);
}


/* Directory */

.writeups-directory-separator {
    margin-bottom: 0;
    border-top: 1px dashed var(--nfo-dim);
}

/* Entry */

.writeup-entry {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px dashed var(--nfo-dim);
}

.writeup-date {
    padding-top: 0.15rem;
    color: var(--nfo-dim);
    font-size: 0.8rem;
    white-space: nowrap;
}

.writeup-entry-title {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.writeup-entry-title a {
    position: relative;
    z-index: 1;
    color: var(--nfo-white);
    text-decoration: none;
}

.writeup-entry-title a::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
}

.writeup-category {
    margin-bottom: 0.6rem;
    color: var(--nfo-muted);
    font-size: 0.8rem;
}

.writeup-description {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--nfo-muted);
    font-size: 0.9rem;
}

.writeup-entry-arrow {
    padding-top: 0.1rem;
    color: var(--nfo-muted);
    font-size: 1rem;
}

.writeup-entry:hover .writeup-entry-title a,
.writeup-entry:hover .writeup-entry-arrow {
    color: #ffffff;
}

/* =========================================================
   Writeup Detail
   ========================================================= */

.writeup-detail-page {
    padding: 3rem 0 5rem;
}

.writeup-detail-container {
    max-width: 900px;
}


/* =========================================================
   Writeup Header
   ========================================================= */

.writeup-detail-header {
    margin-bottom: 4rem;
    padding: 1.5rem;
    background: var(--nfo-panel);
    border: 1px solid var(--nfo-border);
}

.writeup-detail-title {
    margin-bottom: 0.5rem;
    color: var(--nfo-white);
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.writeup-detail-category {
    margin-bottom: 1.25rem;
    color: var(--nfo-muted);
    font-size: 0.9rem;
}

.writeup-detail-intro {
    margin-bottom: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--nfo-dim);
    color: var(--nfo-white);
}

.writeup-detail-meta {
    color: var(--nfo-dim);
    font-size: 0.8rem;
}


/* =========================================================
   Writeup Content
   ========================================================= */

.writeup-detail-content {
    width: 100%;
}

.writeup-detail-block {
    margin-bottom: 3.5rem;
}

.writeup-detail-block:last-child {
    margin-bottom: 0;
}

.writeup-detail-heading {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--nfo-dim);
    color: var(--nfo-white);
    font-size: 1.35rem;
    font-weight: bold;
    text-transform: uppercase;
}

.writeup-detail-heading::before {
    content: "[ ";
    color: var(--nfo-muted);
}

.writeup-detail-heading::after {
    content: " ]";
    color: var(--nfo-muted);
}

.writeup-detail-subheading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--nfo-white);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.writeup-detail-block p {
    margin-bottom: 1.25rem;
    color: var(--nfo-white);
    line-height: 1.7;
}

.writeup-detail-block p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Writeup Lists
   ========================================================= */

.writeup-detail-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--nfo-white);
    line-height: 1.8;
}

.writeup-detail-list li::marker {
    content: "> ";
    color: var(--nfo-muted);
}


/* =========================================================
   Writeup Figures
   ========================================================= */

.writeup-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.writeup-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.writeup-image-caption {
    margin-top: 0.65rem;
    color: var(--nfo-dim);
    font-size: 0.75rem;
    text-align: center;
}

.writeup-detail-content .code-block-caption {
    margin-top: 0.65rem;
    color: var(--nfo-dim);
    font-size: 0.75rem;
    text-align: center;
}

.writeup-detail-content .code-block-caption a {
    color: inherit;
}


/* =========================================================
   Inline Code
   ========================================================= */

.writeup-detail-content p code,
.writeup-detail-content li code {
    padding: 0.1rem 0.3rem;
    background: var(--nfo-panel);
    color: var(--nfo-white);
    border: 1px solid var(--nfo-dim);
    font-family: inherit;
    font-size: 0.9em;
}


/* =========================================================
   Code Blocks
   ========================================================= */

.code-block {
    margin: 2rem 0;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.code-block-language {
    color: var(--nfo-muted);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.code-block-language::before {
    content: "[ ";
    color: var(--nfo-dim);
}

.code-block-language::after {
    content: " ]";
    color: var(--nfo-dim);
}

.code-block-copy,
.code-block-toggle {
    min-width: 4.5rem;
    padding: 0.15rem 0.45rem;
    background: transparent;
    color: var(--nfo-muted);
    border: 1px solid var(--nfo-dim);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.code-block-copy:hover,
.code-block-copy:focus-visible,
.code-block-toggle:hover,
.code-block-toggle:focus-visible {
    background: var(--nfo-white);
    color: var(--nfo-black);
    border-color: var(--nfo-white);
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
    background: var(--nfo-panel);
    color: var(--nfo-white);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.6;
    tab-size: 4;
}

.code-block code {
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
    font-family: inherit;
    font-size: inherit;
}


/* =========================================================
   Syntax Highlighting
   ========================================================= */

.syntax-comment {
    color: var(--nfo-muted);
}


/* =========================================================
   Writeup Actions
   ========================================================= */

.writeup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* =========================================================
   Writeup Video
   ========================================================= */

.writeup-video-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.writeup-video {
    display: block;
    width: auto;
    max-width: min(100%, 650px);
    height: auto;
    margin: 0 auto;
    background: var(--nfo-black);
}

/* =========================================================
   Writeup Sources
   ========================================================= */

.writeup-source-list {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.writeup-source-list li {
    color: var(--nfo-muted);
}

.writeup-source-list li::marker {
    content: "> ";
    color: var(--nfo-dim);
}

.writeup-source-list a {
    color: var(--nfo-muted);
    text-decoration: underline;
    text-decoration-color: var(--nfo-dim);
    text-underline-offset: 0.2em;
}

.writeup-source-list a:hover,
.writeup-source-list a:focus-visible {
    color: var(--nfo-white);
    text-decoration-color: var(--nfo-white);
}

/* =========================================================
   Hex Blocks
   ========================================================= */

.hex-block {
    margin: 2rem 0;
}

.hex-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.hex-block-type {
    color: var(--nfo-muted);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.hex-block-type::before {
    content: "[ ";
    color: var(--nfo-dim);
}

.hex-block-type::after {
    content: " ]";
    color: var(--nfo-dim);
}

.hex-block-copy,
.hex-block-toggle {
    min-width: 4.5rem;
    padding: 0.15rem 0.45rem;
    background: transparent;
    color: var(--nfo-muted);
    border: 1px solid var(--nfo-dim);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.hex-block-copy:hover,
.hex-block-copy:focus-visible,
.hex-block-toggle:hover,
.hex-block-toggle:focus-visible {
    background: var(--nfo-white);
    color: var(--nfo-black);
    border-color: var(--nfo-white);
}

.hex-view {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
    background: var(--nfo-panel);
    color: var(--nfo-white);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre;
}

.hex-view-header {
    color: var(--nfo-muted);
}

.hex-offset {
    color: var(--nfo-dim);
}

.hex-bytes {
    color: var(--nfo-white);
}

.hex-ascii {
    color: var(--nfo-muted);
}


/* =========================================================
   Collapsible Blocks
   ========================================================= */

.code-block.collapsed pre,
.hex-block.collapsed .hex-view {
    height: 42px;
    padding: 0;
    font-size: 0;
    overflow: hidden;
}


/* =========================================================
   Writeup Tables
   ========================================================= */

.writeup-table-wrapper {
    width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
    border: 1px solid var(--nfo-border);
    background: var(--nfo-panel);
}

.writeup-table {
    width: 100%;
    min-width: 650px;
    margin: 0;
    border-collapse: collapse;
    color: var(--nfo-white);
    font-size: 0.85rem;
}

.writeup-table th,
.writeup-table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.writeup-table thead {
    border-bottom: 1px solid var(--nfo-border);
}

.writeup-table tbody tr {
    border-bottom: 1px dashed var(--nfo-dim);
}

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

.writeup-table th {
    color: var(--nfo-white);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.writeup-table td {
    color: var(--nfo-muted);
}

.writeup-table-code {
    color: var(--nfo-white);
    white-space: nowrap;
}

/* Compact Writeup Tables */

.writeup-table-wrapper.compact {
    width: 100%;
    max-width: 350px;
}

.writeup-table-wrapper.compact .writeup-table {
    min-width: 0;
}

/* =========================================================
   Project Binaries Modal
   ========================================================= */

.project-binaries-dialog {
    max-width: 600px;
}

.project-binaries-modal {
    background: var(--nfo-panel);
    color: var(--nfo-white);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
    box-shadow: none;
}


/* Header */

.project-binaries-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--nfo-panel);
    border-bottom: 1px solid var(--nfo-border);
}

.project-binaries-title {
    margin: 0;
    color: var(--nfo-white);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.project-binaries-close {
    padding: 0.1rem 0.4rem;
    background: transparent;
    color: var(--nfo-muted);
    border: 0;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1;
}

.project-binaries-close:hover,
.project-binaries-close:focus-visible {
    background: var(--nfo-white);
    color: var(--nfo-black);
}


/* Body */

.project-binaries-body {
    padding: 1.25rem;
    background: var(--nfo-black);
}

.project-binaries-intro {
    margin-bottom: 1.25rem;
    color: var(--nfo-muted);
    font-size: 0.85rem;
}


/* Binary Rows */

.binary-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px dashed var(--nfo-dim);
}

.binary-download-item:last-child {
    padding-bottom: 0;
}

.binary-download-info {
    min-width: 0;
}

.binary-download-name {
    margin-bottom: 0.2rem;
    color: var(--nfo-white);
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
}

.binary-download-meta {
    margin-bottom: 0.4rem;
    color: var(--nfo-dim);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.binary-download-description {
    color: var(--nfo-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}


/* Download Controls */

.binary-download-button,
.project-binaries-footer-close {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    background: transparent;
    color: var(--nfo-white);
    border: 1px solid var(--nfo-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
}

.binary-download-button:hover,
.binary-download-button:focus-visible,
.project-binaries-footer-close:hover,
.project-binaries-footer-close:focus-visible {
    background: var(--nfo-white);
    color: var(--nfo-black);
    border-color: var(--nfo-white);
}


/* Footer */

.project-binaries-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.8rem 1rem;
    background: var(--nfo-panel);
    border-top: 1px solid var(--nfo-border);
}


/* Bootstrap Backdrop */

.modal-backdrop.show {
    opacity: 0.8;
}


/* =========================
   404
========================= */

.error-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    text-align: center;
    padding: 64px 0;
}

.error-skull {
    display: block;
    width: 128px;
    height: auto;
    margin: 0 auto 28px;
}

.error-code {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.error-message {
    margin-bottom: 28px;
    color: var(--nfo-muted);
}


/* ========================================
   Mobile
   ======================================== */

@media (max-width: 767.98px) {

    body {
        font-size: 14px;
    }

    .site-navbar-container {
        width: 100%;
        max-width: 100%;
        padding: 5px 0.75rem;
        align-items: center;
    }

    .navbar-collapse {
        flex-basis: 100%;
    }

    .navbar-nav {
        gap: 0.15rem;
        padding: 0.75rem 0;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .resume-section,
    .about-section,
    .contact-section,
    .projects-section,
    .project-detail-section {
        padding: 2rem 0 3rem;
    }

    .resume-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resume-viewer {
        display: none;
    }

    .about-header,
    .contact-header,
    .projects-header {
        margin-bottom: 2rem;
    }

    .about-title,
    .contact-title,
    .projects-title,
    .project-detail-title {
        font-size: 2rem;
    }

    .about-subtitle,
    .contact-intro,
    .projects-intro,
    .project-detail-intro {
        font-size: 0.95rem;
    }

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

    .about-section-title,
    .project-detail-heading {
        font-size: 1.25rem;
    }

    .technology-group,
    .contact-item,
    .project-card-body {
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .project-card-footer {
        padding: 0.875rem 1rem;
    }

    .project-detail-image-container {
        margin-bottom: 2.5rem;
    }

    .project-detail-image {
        width: 100%;
        max-height: none;
        padding: 2px;
    }

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

    .project-detail-block {
        margin-bottom: 2.5rem;
    }

    .project-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    /* Writeups */

    .writeups-section {
        padding: 2.5rem 0 4rem;
    }

    .writeups-header {
        margin-bottom: 2.5rem;
    }

    .writeup-entry {
        grid-template-columns: 1fr auto;
        gap: 0.5rem 1rem;
        padding: 1.25rem 0;
    }

    .writeup-date {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .writeup-entry-content {
        grid-column: 1;
    }

    .writeup-entry-arrow {
        grid-column: 2;
        grid-row: 2;
    }

    .writeup-detail-page {
        padding: 2.5rem 0 4rem;
    }

    .writeup-detail-header {
        margin-bottom: 3rem;
        padding: 1.25rem;
    }

    .writeup-detail-title {
        font-size: 1.6rem;
    }

    .writeup-detail-block {
        margin-bottom: 3rem;
    }

    .writeup-figure {
        margin: 2rem 0;
    }

    .code-block pre {
        padding: 1rem;
        font-size: 0.8rem;
    }

    /* Hex Blocks */

    .hex-view {
        padding: 1rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   Small Mobile
   ======================================== */

@media (max-width: 575.98px) {

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Project Binaries Modal */

    .project-binaries-dialog {
        margin: 1rem;
    }

    .binary-download-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .binary-download-button {
        align-self: flex-start;
    }
}