@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
    --site-content-width: 1120px;
    --site-text-width: 760px;
    --site-horizontal-padding: 1.5rem;

    --site-text: #29283d;
    --site-text-secondary: #68657a;

    --site-accent: #5146c7;
    --site-accent-hover: #3730a3;
    --site-status-accent: #d97706;

    --site-border: rgb(67 56 202 / 16%);
    --site-border-hover: rgb(67 56 202 / 34%);

    --site-background: #ffffff;
    --site-surface: #ffffff;
    --site-surface-subtle: #f8f7fc;
    --site-surface-deep: #f3f2f8;

    --site-card-surface: var(--site-surface);
    --site-card-surface-hover: var(--site-surface);
    --site-card-muted: var(--site-text-secondary);
    --site-card-border: var(--site-border);
    --site-card-border-hover: var(--site-border-hover);
    --site-card-shadow: none;

    --site-accent-contrast: #ffffff;
    --site-focus-shadow: rgb(81 70 199 / 18%);

    --site-success: #137333;
    --site-danger: #9d4650;
    --site-danger-strong: #8e3f49;
    --site-danger-hover: #79353e;
    --site-danger-surface: #fff2f3;
    --site-danger-border: #efc3c7;
    --site-pin: #b3261e;
    --site-pin-outline: #ffffff;

    --site-radius: 0.65rem;

    --site-shadow-hover:
        0 0.55rem 1.4rem rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] {
    color-scheme: dark;

    --site-text: #adbac7;
    --site-text-secondary: #909ca9;

    --site-accent: #a89bff;
    --site-accent-hover: #c1b7ff;
    --site-status-accent: #dcb67a;

    --site-border: #444c56;
    --site-border-hover: #636e7b;

    --site-background: #22272e;
    --site-surface: #2d333b;
    --site-surface-subtle: #2d333b;
    --site-surface-deep: #1c2128;

    --site-card-surface: #343b44;
    --site-card-surface-hover: #38404a;
    --site-card-muted: #9da8b3;
    --site-card-border: #636e7b;
    --site-card-border-hover: #768390;
    --site-card-shadow:
        0 0.25rem 0.8rem rgb(0 0 0 / 24%);

    --site-accent-contrast: #1c2128;
    --site-focus-shadow: rgb(168 155 255 / 28%);

    --site-success: #79c0a1;
    --site-danger: #ff938a;
    --site-danger-strong: #ff938a;
    --site-danger-hover: #ffb3ad;
    --site-danger-surface: #3a292e;
    --site-danger-border: #8e4b52;
    --site-pin: #ff938a;
    --site-pin-outline: #1c2128;

    --site-shadow-hover:
        0 0.55rem 1.4rem rgb(0 0 0 / 35%);
}

/* ==========================================================================
   Typography
   ========================================================================== */

html,
body,
button,
input,
textarea,
select,
option,
code,
pre,
kbd,
samp,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
li,
dt,
dd,
label,
table,
th,
td,
blockquote {
    font-family: "JetBrains Mono", monospace !important;
}

html {
    min-height: 100%;
    font-size: 16px;

    color-scheme: light;

    background: var(--site-background);
}

body {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background: var(--site-background);
    color: var(--site-text);
}

p,
li,
dt,
dd {
    line-height: 1.65;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.25;
}

h2 {
    font-size: 1.35rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.1rem;
    line-height: 1.35;
}

a {
    color: var(--site-accent);
}

a:hover {
    color: var(--site-accent-hover);
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 0.2rem;
}

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

.sidebar {
    display: none !important;
}

.initial-content {
    flex: 1 1 auto;
}

#main {
    box-sizing: border-box;

    width: 100%;
    max-width: var(--site-content-width);

    margin-left: auto;
    margin-right: auto;

    padding:
        2rem
        var(--site-horizontal-padding)
        3rem;
}

.page,
.archive {
    float: none !important;

    width: 100% !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page__inner-wrap,
.page__content {
    width: 100%;
}

.page__title {
    margin-top: 0;
    margin-bottom: 1.75rem;

    font-size: 1.8rem;
    line-height: 1.25;
}

.page__content > :first-child {
    margin-top: 0;
}

.page__content > * + * {
    margin-top: 1.25rem;
}

.page__content > p,
.page__content > ul,
.page__content > ol,
.page__content > blockquote {
    max-width: var(--site-text-width);
}

.page__content p,
.page__content li,
.page__content blockquote,
.page__content td,
.page__content th,
.page__content figcaption {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    overflow-wrap: break-word;
}

.page__content > h2 {
    margin-top: 2.5rem;
}

.page__content > h3 {
    margin-top: 2rem;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.masthead {
    border-bottom: 1px solid var(--site-border);

    background: var(--site-surface);
}

.masthead__inner-wrap {
    box-sizing: border-box;

    min-height: 48px;
    max-width: var(--site-content-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: var(--site-horizontal-padding);
    padding-right: var(--site-horizontal-padding);
    padding-top: 0;
    padding-bottom: 0;
}

.greedy-nav {
    min-height: 48px;

    align-items: center;

    background: transparent;
}

.greedy-nav .site-title {
    min-width: 0;
    flex: 0 1 auto;

    margin-right: auto;
    padding: 0;

    overflow: hidden;

    color: var(--site-text-secondary);

    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;

    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.greedy-nav a {
    text-decoration: none;
}

.greedy-nav .visible-links {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 0;
}

.greedy-nav .search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;

    /* Includes the pinned theme control so greedy-nav measures both actions. */
    margin: 0 0 0 4.6rem;
    padding: 0;

    border: 1px solid transparent;
    border-radius: 50%;

    color: var(--site-text-secondary);

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.greedy-nav .visible-links li {
    margin: 0;
}

.greedy-nav .visible-links .masthead__menu-item--nav-link +
.masthead__menu-item--nav-link {
    margin-left: 1.25rem;
}

.greedy-nav .visible-links a {
    position: relative;

    margin: 0;
    padding: 0.25rem 0 0.4rem;

    color: var(--site-text-secondary);

    font-size: 1rem;
    font-weight: 400;

    transition: color 0.15s ease;
}

.greedy-nav .visible-links a:hover {
    color: var(--site-accent);
}

.greedy-nav .visible-links a::before {
    display: none;
}

.greedy-nav .visible-links a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    background: var(--site-accent);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.15s ease;
}

.greedy-nav .visible-links a:hover::after,
.greedy-nav .visible-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.greedy-nav .visible-links a[aria-current="page"] {
    color: var(--site-text);

    font-weight: 500;
}

.theme-toggle {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;

    /* Search's margin reserves this same space for greedy-nav calculations. */
    margin-left: 2rem;
    margin-right: -4.25rem;
    padding: 0;

    border: 1px solid transparent;
    border-radius: 50%;

    background: transparent;
    color: var(--site-text-secondary);

    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.theme-toggle::before {
    content: "";

    position: absolute;
    top: 0.45rem;
    bottom: 0.45rem;
    left: -1rem;

    width: 1px;

    background: var(--site-border);
}

.theme-toggle:hover,
.greedy-nav .search__toggle:hover {
    border-color: var(--site-border-hover);

    background: var(--site-surface-subtle);
    color: var(--site-accent);
}

.theme-toggle:focus-visible {
    outline-offset: 0.15rem;
}

.theme-toggle:focus-visible,
.greedy-nav .search__toggle:focus-visible,
.greedy-nav__toggle:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 0.15rem;
}

.theme-toggle__icon--sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
    display: inline-block;
}

.greedy-nav .hidden-links .masthead__menu-item--nav-link {
    margin-left: 0;
}

.greedy-nav__toggle {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;

    margin-left: 0.35rem;
    padding: 0;

    border-radius: 50%;
}

/* ==========================================================================
   Reusable buttons
   ========================================================================== */

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0.65rem 1rem;

    border: 1px solid var(--site-border);
    border-radius: 0.4rem;

    color: var(--site-text);
    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 600;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.site-button:hover {
    transform: translateY(-1px);

    border-color: var(--site-border-hover);

    background: var(--site-surface-subtle);

    color: var(--site-accent-hover);
    text-decoration: none;
}

.site-button-primary {
    border-color: var(--site-accent);

    color: var(--site-accent);
}

.site-button-primary:hover {
    border-color: var(--site-accent-hover);

    color: var(--site-accent-hover);
}

/* ==========================================================================
   Reusable cards
   ========================================================================== */

.site-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--site-card-border);
    border-radius: var(--site-radius);

    background: var(--site-card-surface);

    color: inherit;
    text-decoration: none;

    box-shadow: var(--site-card-shadow);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.site-card:hover {
    transform: translateY(-2px);

    border-color: var(--site-card-border-hover);

    background: var(--site-card-surface-hover);
    box-shadow: var(--site-shadow-hover);

    color: inherit;
    text-decoration: none;
}

.site-card-image {
    width: 100%;
    overflow: hidden;

    border-bottom: 1px solid var(--site-card-border);

    background: var(--site-surface-subtle);
}

.site-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
}

.site-card-image-placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color: var(--site-text-secondary);

    font-size: 0.9rem;
}

.site-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 1.35rem 1.5rem;
}

.site-card-title {
    margin: 0 0 0.75rem;
    padding: 0 0 0.7rem;

    border-bottom: 1px solid var(--site-card-border);

    font-size: 1.25rem;
    line-height: 1.3;
}

.site-card-description {
    margin: 0;

    color: var(--site-card-muted);

    line-height: 1.6;
}

.site-card-meta {
    

    color: var(--site-accent);

    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

.site-card:hover .site-card-meta {
    color: var(--site-accent-hover);
}

.site-card-image-placeholder,
.project-card-date {
    color: var(--site-card-muted);
}

/* ==========================================================================
   Project grids
   ========================================================================== */

.publication-section + .publication-section {
    margin-top: 3rem;
}

.publication-section-title {
    margin: 0;
    padding-bottom: 0.65rem;

    border-bottom: 1px solid var(--site-border);

    font-size: 1.35rem;
    line-height: 1.3;
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 520px));

    justify-content: center;

    gap: 1.5rem;

    margin-top: 2rem;
}

.project-card-cover {
    position: relative;

    aspect-ratio: 16 / 7;
}

.project-card-cover img {
    object-position: center;
}

.project-card-featured {
    border-color: var(--site-accent);
}

.project-card-featured:hover {
    border-color: var(--site-accent-hover);
}

.project-card-pin {
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    right: 0.75rem;

    color: var(--site-pin);

    font-size: 1.35rem;

    filter:
        drop-shadow(0 0 1px var(--site-pin-outline))
        drop-shadow(0 0.2rem 0.25rem rgb(41 40 61 / 35%));
    transform: rotate(35deg);
}

.project-card-date {
    display: block;

    margin-top: auto;
    padding-top: 1rem;

    color: var(--site-text-secondary);

    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

.project-card .site-card-description {
    font-size: 0.95rem;
    text-align: justify;
}

.publication-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.75rem;

    margin-top: 3rem;
}

.publication-pagination-pages {
    display: flex;

    gap: 0.4rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.publication-pagination-page,
.publication-pagination-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 2.5rem;
    min-height: 2.5rem;

    padding: 0.4rem 0.7rem;

    border: 1px solid var(--site-border);
    border-radius: 0.4rem;

    color: var(--site-text-secondary);

    font-size: 0.9rem;
    text-decoration: none;
}

.publication-pagination a:hover {
    border-color: var(--site-accent);

    color: var(--site-accent);
}

.publication-pagination-page.is-current {
    border-color: var(--site-accent);

    color: var(--site-accent-contrast);
    background: var(--site-accent);
}

.publication-pagination-direction.is-disabled {
    opacity: 0.45;
}

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

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
    align-items: stretch;

    gap: clamp(2.5rem, 5vw, 4.5rem);

    padding: 1.5rem 0 2.75rem;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    max-width: 660px;

    padding: 1rem 0;
}

.home-hero-eyebrow {
    margin: 0.45rem 0 0;

    color: inherit;

    font-size: 0.68rem;
    font-weight: 500;

    letter-spacing: 0.12em;
    text-align: right;
}

.home-hero-tagline {
    
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    margin-left: 0;

    max-width: 100%;

    color: var(--site-text);

    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: 0.12em;
    text-align: center;
}

.home-hero-description {
    margin: 2.5rem auto 0;

    max-width: 58ch;

    color: var(--site-text-secondary);

    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
}

.home-interests-section {
    margin-top: 2rem;

    padding-top: 1.25rem;

    border-top: 1px solid var(--site-border);
}

.home-section-label {
    margin: 0 0 0.85rem;

    color: var(--site-text-secondary);

    font-size: 0.68rem;
    font-weight: 400;

    letter-spacing: 0.1em;
    text-align: center;
}

.home-interests {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 1.0rem 0.45rem;

    width: 100%;
}

.home-interests span {
    display: inline-flex;
    align-items: center;

    padding: 0.25rem 0.45rem;

    border: 0;
    border-radius: 0.3rem;

    background: var(--site-surface-subtle);

    color: var(--site-text-secondary);

    font-size: 0.8rem;
    line-height: 1.3;
}

.home-profile-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;

    gap: 0;

    margin-top: 2rem;

    padding-top: 1.15rem;

    border-top: 1px solid var(--site-border);

    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.home-profile-links a {
    color: var(--site-accent);
    text-decoration: none;
}

.home-profile-links a:hover {
    color: var(--site-accent-hover);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.home-profile-separator {
    margin: 0 0.55rem;

    color: var(--site-border-hover);

    user-select: none;
}

.newsletter-section {
    margin-top: 1.5rem;

    padding: 1.25rem;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: var(--site-surface);

    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
}

.newsletter-summary {
    display: block;

    cursor: pointer;
    list-style: none;
}

.newsletter-summary::marker {
    content: "";
}

.newsletter-summary::-webkit-details-marker {
    display: none;
}

.newsletter-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
}

.newsletter-summary:focus-visible {
    border-radius: 0.25rem;
    outline: 2px solid var(--site-accent);
    outline-offset: 0.35rem;
}

.newsletter-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--site-accent);

    transition: transform 0.2s ease;
}

.newsletter-section[open] .newsletter-expand-icon {
    transform: rotate(180deg);
}

.newsletter-copy > p:last-child {
    margin: 0;

    color: var(--site-text-secondary);

    font-size: inherit;
    hyphens: auto;
    line-height: 1.6;
    text-align: justify;
}

.newsletter-eyebrow {
    display: flex;
    align-items: center;

    gap: 0.45rem;

    margin: 0;

    color: var(--site-accent);

    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.newsletter-form {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "copy"
        "label"
        "controls"
        "privacy"
        "status";
    align-items: start;

    row-gap: 0.45rem;

    margin-top: 1rem;
    padding-top: 1rem;

    border-top: 1px solid var(--site-border);

    background: transparent;
}

.newsletter-fields {
    display: contents;
}

.newsletter-copy {
    grid-area: copy;
}

.newsletter-fields > label {
    display: block;
    grid-area: label;

    margin: 0;

    font-size: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.newsletter-form-row {
    display: flex;
    grid-area: controls;
    align-items: stretch;

    gap: 0.6rem;

    --newsletter-control-height: 2.9rem;
}

.newsletter-form-row input {
    box-sizing: border-box;

    min-width: 0;
    height: var(--newsletter-control-height);
    flex: 1 1 auto;

    padding: 0.7rem 0.8rem;

    border: 1px solid var(--site-border-hover);
    border-radius: 0.4rem;

    background: var(--site-surface);
    color: var(--site-text);

    font-size: inherit;
    line-height: 1.3;
}

.newsletter-form-row input:focus {
    border-color: var(--site-accent);
    outline: 2px solid var(--site-focus-shadow);
    outline-offset: 1px;
}

.newsletter-form-row button {
    box-sizing: border-box;

    height: var(--newsletter-control-height);
    flex: 0 0 auto;

    padding: 0.7rem 1rem;

    border: 1px solid var(--site-accent);
    border-radius: 0.4rem;

    background: var(--site-accent);
    color: var(--site-accent-contrast);

    cursor: pointer;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.newsletter-form-row button:hover {
    border-color: var(--site-accent-hover);
    background: var(--site-accent-hover);
}

.newsletter-form-row button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.newsletter-honeypot {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

.newsletter-privacy,
.newsletter-status {
    margin-top: 1.0rem;
    margin-bottom: 0;

    font-size: inherit;
    line-height: 1.45;
}

.newsletter-privacy {
    grid-area: privacy;

    color: var(--site-text-secondary);
}

.newsletter-privacy > span,
.newsletter-privacy > a {
    display: inline;
}

.newsletter-privacy > a {
    width: fit-content;
}

.newsletter-status {
    grid-area: status;

    color: var(--site-text-secondary);
}

.newsletter-status:empty {
    display: none;
}

.newsletter-status[data-state="success"] {
    color: var(--site-success);
}

.newsletter-status[data-state="error"] {
    color: var(--site-danger);
}

.home-hero-visual {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.home-hero-image {
    position: relative;

    flex: 1;

    width: 100%;
    min-height: 420px;
    overflow: hidden;

    border-radius: 1rem;

    background-image:
        url("/assets/home/cosmic-cliffs-1600.jpg");
    background-image:
        image-set(
            url("/assets/home/cosmic-cliffs-800.webp") 1x,
            url("/assets/home/cosmic-cliffs-1600.webp") 2x
        );
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
    background-color: #090d24;
}

.home-hero-image-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.08) 34%,
            rgba(0, 0, 0, 0) 60%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.08) 30%,
            rgba(0, 0, 0, 0) 50%
        );
}

.home-hero-credit,
.home-hero-credit:visited {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;

    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    color: rgb(255 255 255 / 82%);

    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;

    text-align: right;
    text-decoration: none;

    transition: color 0.15s ease;
}

.home-hero-credit:hover,
.home-hero-credit:focus-visible {
    color: #fff;
    text-decoration: none;
}

.home-hero-credit span {
    color: inherit;
}

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

.about-page .page__title,
.publications-page .page__title {
    position: absolute;

    width: 1px;
    height: 1px;
    overflow: hidden;

    margin: -1px;
    padding: 0;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;

    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.about-portrait {
    position: sticky;
    top: 1.5rem;

    margin: 0;
    overflow: hidden;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: var(--site-surface-subtle);
}

.about-portrait picture {
    display: block;
}

.about-portrait img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 5;

    margin: 0;

    object-fit: cover;
    object-position: center;
}

.about-portrait figcaption {
    box-sizing: border-box;

    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;

    border-top: 1px solid var(--site-border);

    color: var(--site-text-secondary);

    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.about-copy {
    max-width: 680px;
}

.about-copy p {
    margin: 0;

    color: var(--site-text-secondary);

    font-size: 0.95rem;
    line-height: 1.8;

    text-align: justify;
}

.about-copy p + p {
    margin-top: 1.35rem;
}

.about-copy .about-intro {
    color: var(--site-text);

    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.4;
}

.about-copy h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1.25rem;

    border-top: 1px solid var(--site-border);

    color: var(--site-text);

    font-size: 1.15rem;
    line-height: 1.4;
}

/* ==========================================================================
   My IoT Hub
   ========================================================================== */

.iot-hub-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: 2rem;
}

.iot-hub-intro {
    flex: 1;
}

.iot-hub-intro p {
    margin: 0;

    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
}

.iot-hub-intro p + p {
    margin-top: 0.85rem;
}

.project-page .page__content > p,
.project-page .page__content > ul,
.project-page .page__content > ol,
.project-page .page__content > blockquote {
    max-width: none;
}

.project-page .page__content > p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

.project-page .page__content > ul,
.project-page .page__content > ol {
    font-size: 1rem;
    line-height: 1.75;
}

.project-page .page__content table {
    width: 100%;

    font-size: 0.95rem;
}

.project-page .page__content table code {
    font-size: 1em;
}

.project-page .page__content > .project-publication-meta {
    margin: 0 0 1.75rem;

    color: var(--site-text-secondary);

    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.project-page .page__content > .project-publication-meta + * {
    margin-top: 0;
}

.project-page .page__content pre {
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-page .page__content pre,
.project-page .page__content code {
    font-family: "JetBrains Mono", monospace;
}

.iot-hub-private-note {

    box-sizing: border-box;

    padding-top: 0.5rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;

    border: 1px solid var(--site-danger-border);
    border-radius: 0.45rem;

    background: var(--site-danger-surface);

    color: var(--site-danger);

    font-weight: 500;
    text-align: left !important;
}

.project-page .page__content > .conventional-commits-breaking-note {
    box-sizing: border-box;

    margin-top: 1.5rem;

    padding: 0.5rem 1rem;

    border: 1px solid var(--site-danger-border);
    border-radius: 0.45rem;

    background: var(--site-danger-surface);

    color: var(--site-danger);

    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: left !important;
}

.project-page .page__content .conventional-commits-breaking-note code {
    font-size: 1.1em;
    line-height: inherit;
}

.iot-hub-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.25rem;

    margin-top: 2rem;
}

.iot-hub-card-image {
    aspect-ratio: 1;
}

.iot-hub-card-image img {
    object-fit: contain;
}

.iot-hub-card-image-mqtt img {
    transform: translateX(1%) scale(1.125);
}

.iot-hub-card .site-card-content {
    align-items: center;

    text-align: center;
}

.iot-hub-card .site-card-title {
    width: 100%;

    font-size: 1.2rem;

    text-transform: uppercase;
}

.iot-hub-card .site-card-description {
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
}

.iot-hub-card .site-card-meta {
    width: 100%;

    color: var(--site-card-muted);

    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.iot-hub-card .site-card-meta span {
    display: block;
}

.iot-hub-card .iot-hub-private-label {
    color: var(--site-danger-strong);

    font-weight: 600;
}

.iot-hub-card:hover .site-card-meta {
    color: var(--site-text);
}

.iot-hub-card:hover .iot-hub-private-label {
    color: var(--site-danger-hover);
}

/* ==========================================================================
   Not found
   ========================================================================== */

.not-found {
    max-width: 44rem;
}

.not-found-code {
    margin: 0;

    color: var(--site-accent);

    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
}

.site-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 0.75rem;

    margin-top: 1.5rem;
}

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

.page__footer {
    flex-shrink: 0;

    margin-top: 0;

    border-top: 1px solid var(--site-border);

    background: var(--site-surface-subtle);
}

.page__footer footer {
    box-sizing: border-box;

    max-width: var(--site-content-width);

    margin-left: auto;
    margin-right: auto;
    margin-top: 0;

    padding:
        0.7rem
        var(--site-horizontal-padding);
}

.page__footer-follow {
    display: none;
}

.page__footer-copyright {
    margin: 0;

    color: var(--site-text-secondary);

    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
}

/* ==========================================================================
   Minimal Mistakes dark-mode integration
   ========================================================================== */

html[data-theme="dark"] ::selection {
    background: rgb(168 155 255 / 30%);
}

html[data-theme="dark"] a:visited {
    color: var(--site-accent);
}

html[data-theme="dark"] .home-hero-credit,
html[data-theme="dark"] .home-hero-credit:visited {
    color: rgb(255 255 255 / 82%);
}

html[data-theme="dark"] .home-hero-credit:hover,
html[data-theme="dark"] .home-hero-credit:focus-visible {
    color: #ffffff;
}

html[data-theme="dark"] .site-card:visited {
    color: inherit;
}

html[data-theme="dark"] .site-button:visited {
    color: var(--site-text);
}

html[data-theme="dark"] .site-button-primary:visited {
    color: var(--site-accent);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] label,
html[data-theme="dark"] .page__title a,
html[data-theme="dark"] .archive__item-title a {
    color: var(--site-text);
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .page__content h2,
html[data-theme="dark"] .page__content + .pagination,
html[data-theme="dark"] .page__meta + .pagination,
html[data-theme="dark"] .comment__date + .pagination,
html[data-theme="dark"] .page__share + .pagination,
html[data-theme="dark"] .page__comments + .pagination {
    border-color: var(--site-border);
}

html[data-theme="dark"] u,
html[data-theme="dark"] ins,
html[data-theme="dark"] abbr[title],
html[data-theme="dark"] abbr[data-original-title] {
    border-color: var(--site-text-secondary);
}

html[data-theme="dark"] blockquote {
    border-inline-start-color: var(--site-border-hover);
}

html[data-theme="dark"] figcaption,
html[data-theme="dark"] .page__meta,
html[data-theme="dark"] .comment__date,
html[data-theme="dark"] .footnote,
html[data-theme="dark"] .footnotes,
html[data-theme="dark"] a.reversefootnote,
html[data-theme="dark"] .results__found,
html[data-theme="dark"] .archive__item-excerpt {
    color: var(--site-text-secondary);
}

html[data-theme="dark"] .greedy-nav,
html[data-theme="dark"] .greedy-nav .hidden-links {
    background: var(--site-surface);
}

html[data-theme="dark"] .greedy-nav .hidden-links {
    border-color: var(--site-border);
    box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 35%);
}

html[data-theme="dark"] .greedy-nav .hidden-links li {
    border-color: var(--site-border);
}

html[data-theme="dark"] .greedy-nav .hidden-links a {
    color: var(--site-text-secondary);
}

html[data-theme="dark"] .greedy-nav .hidden-links a:hover {
    background: var(--site-surface-deep);
    color: var(--site-accent-hover);
}

html[data-theme="dark"] .greedy-nav .hidden-links::before {
    border-color: var(--site-border) transparent;
}

html[data-theme="dark"] .greedy-nav .hidden-links::after {
    border-color: var(--site-surface) transparent;
}

html[data-theme="dark"] .search__toggle,
html[data-theme="dark"] .greedy-nav__toggle {
    color: var(--site-text-secondary);
}

html[data-theme="dark"] .navicon,
html[data-theme="dark"] .navicon::before,
html[data-theme="dark"] .navicon::after,
html[data-theme="dark"] .greedy-nav__toggle:hover .navicon,
html[data-theme="dark"] .greedy-nav__toggle:hover .navicon::before,
html[data-theme="dark"] .greedy-nav__toggle:hover .navicon::after {
    background: var(--site-text-secondary);
}

html[data-theme="dark"] .greedy-nav__toggle.close .navicon,
html[data-theme="dark"] .greedy-nav__toggle:hover.close .navicon {
    background: transparent;
}

html[data-theme="dark"] .search__toggle:hover,
html[data-theme="dark"] .search__toggle:focus-visible {
    color: var(--site-accent-hover);
}

html[data-theme="dark"] .search-content {
    background: var(--site-background);
    color: var(--site-text);
}

html[data-theme="dark"] .search-content__form {
    padding: 0.75rem;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: var(--site-surface-deep);
}

html[data-theme="dark"] .search-content .search-input {
    margin: 0;

    background: transparent;
    color: var(--site-text);
}

html[data-theme="dark"] .search-content .search-input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--site-text-secondary);
    opacity: 1;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    border: 1px solid var(--site-border-hover);

    background: var(--site-surface-deep);
    color: var(--site-text);

    box-shadow: none;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    border-color: var(--site-accent);
    outline: 2px solid var(--site-focus-shadow);
    outline-offset: 1px;
    box-shadow: none;
}

html[data-theme="dark"] input[disabled],
html[data-theme="dark"] select[disabled],
html[data-theme="dark"] textarea[disabled],
html[data-theme="dark"] input[readonly],
html[data-theme="dark"] select[readonly],
html[data-theme="dark"] textarea[readonly] {
    background: var(--site-surface);
}

html[data-theme="dark"] table {
    color: var(--site-text);
}

html[data-theme="dark"] thead {
    border-bottom-color: var(--site-border-hover);

    background: var(--site-surface);
}

html[data-theme="dark"] td {
    border-bottom-color: var(--site-border);
}

html[data-theme="dark"] tbody tr:hover {
    background: rgb(45 51 59 / 65%);
}

html[data-theme="dark"] .page__content :not(pre) > code,
html[data-theme="dark"] .page__content kbd,
html[data-theme="dark"] .page__content samp {
    border: 1px solid var(--site-border);
    border-radius: 0.25rem;

    background: var(--site-surface-deep);
    color: var(--site-text);
}

html[data-theme="dark"] div.highlighter-rouge,
html[data-theme="dark"] figure.highlight {
    border: 1px solid var(--site-border);

    background: var(--site-surface-deep);
    color: var(--site-text);
}

html[data-theme="dark"] .highlight .hll {
    background: var(--site-surface);
}

html[data-theme="dark"] .highlight .c,
html[data-theme="dark"] .highlight .cm,
html[data-theme="dark"] .highlight .cp,
html[data-theme="dark"] .highlight .c1,
html[data-theme="dark"] .highlight .cs,
html[data-theme="dark"] .highlight .sd,
html[data-theme="dark"] .highlight .gp {
    color: var(--site-text-secondary);
}

html[data-theme="dark"] .highlight .n,
html[data-theme="dark"] .highlight .p,
html[data-theme="dark"] .highlight .nb,
html[data-theme="dark"] .highlight .ni,
html[data-theme="dark"] .highlight .nl,
html[data-theme="dark"] .highlight .py,
html[data-theme="dark"] .highlight .w,
html[data-theme="dark"] .highlight .bp,
html[data-theme="dark"] .highlight .sc {
    color: var(--site-text);
}

html[data-theme="dark"] .highlight .k,
html[data-theme="dark"] .highlight .kc,
html[data-theme="dark"] .highlight .kd,
html[data-theme="dark"] .highlight .kp,
html[data-theme="dark"] .highlight .kr,
html[data-theme="dark"] .highlight .kt {
    color: #f47067;
}

html[data-theme="dark"] .highlight .s,
html[data-theme="dark"] .highlight .ld,
html[data-theme="dark"] .highlight .sb,
html[data-theme="dark"] .highlight .s2,
html[data-theme="dark"] .highlight .sh,
html[data-theme="dark"] .highlight .sx,
html[data-theme="dark"] .highlight .sr,
html[data-theme="dark"] .highlight .s1,
html[data-theme="dark"] .highlight .ss {
    color: #96d0ff;
}

html[data-theme="dark"] .highlight .na,
html[data-theme="dark"] .highlight .nc,
html[data-theme="dark"] .highlight .nd,
html[data-theme="dark"] .highlight .nf,
html[data-theme="dark"] .highlight .nn,
html[data-theme="dark"] .highlight .nx {
    color: #dcbdfb;
}

html[data-theme="dark"] .highlight .l,
html[data-theme="dark"] .highlight .m,
html[data-theme="dark"] .highlight .no,
html[data-theme="dark"] .highlight .nv,
html[data-theme="dark"] .highlight .mf,
html[data-theme="dark"] .highlight .mh,
html[data-theme="dark"] .highlight .mi,
html[data-theme="dark"] .highlight .mo,
html[data-theme="dark"] .highlight .vc,
html[data-theme="dark"] .highlight .vg,
html[data-theme="dark"] .highlight .vi,
html[data-theme="dark"] .highlight .il,
html[data-theme="dark"] .highlight .se,
html[data-theme="dark"] .highlight .si {
    color: #f69d50;
}

html[data-theme="dark"] .highlight .o,
html[data-theme="dark"] .highlight .kn,
html[data-theme="dark"] .highlight .nt,
html[data-theme="dark"] .highlight .ow,
html[data-theme="dark"] .highlight .gu {
    color: #6cb6ff;
}

html[data-theme="dark"] .highlight .err,
html[data-theme="dark"] .highlight .gd,
html[data-theme="dark"] .highlight .ne {
    color: #ff938a;
}

html[data-theme="dark"] .highlight .gi {
    color: #8ddb8c;
}

html[data-theme="dark"] .highlight .gh {
    color: var(--site-text);
}

html[data-theme="dark"] .highlight table td.gutter,
html[data-theme="dark"] .highlight table td.rouge-gutter {
    border-inline-end-color: var(--site-border);
    color: var(--site-text-secondary);
}

html[data-theme="dark"] .notice,
html[data-theme="dark"] .notice--primary,
html[data-theme="dark"] .notice--info,
html[data-theme="dark"] .notice--warning,
html[data-theme="dark"] .notice--success,
html[data-theme="dark"] .notice--danger,
html[data-theme="dark"] .markdown-alert,
html[data-theme="dark"] .markdown-alert-important,
html[data-theme="dark"] .markdown-alert-note,
html[data-theme="dark"] .markdown-alert-warning,
html[data-theme="dark"] .markdown-alert-tip,
html[data-theme="dark"] .markdown-alert-caution {
    border: 1px solid var(--site-border);

    background: var(--site-surface);
    color: var(--site-text);

    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

html[data-theme="dark"] :is(
    .notice,
    .notice--primary,
    .notice--info,
    .notice--warning,
    .notice--success,
    .notice--danger,
    .markdown-alert,
    .markdown-alert-important,
    .markdown-alert-note,
    .markdown-alert-warning,
    .markdown-alert-tip,
    .markdown-alert-caution
) a {
    color: var(--site-accent);
}

html[data-theme="dark"] :is(
    .notice,
    .notice--primary,
    .notice--info,
    .notice--warning,
    .notice--success,
    .notice--danger,
    .markdown-alert,
    .markdown-alert-important,
    .markdown-alert-note,
    .markdown-alert-warning,
    .markdown-alert-tip,
    .markdown-alert-caution
) code {
    background: var(--site-surface-deep);
}

html[data-theme="dark"] :is(.notice--info, .markdown-alert-note) {
    border-inline-start-color: #6cb6d9;
}

html[data-theme="dark"] :is(.notice--warning, .markdown-alert-warning) {
    border-inline-start-color: var(--site-status-accent);
}

html[data-theme="dark"] :is(.notice--success, .markdown-alert-tip) {
    border-inline-start-color: var(--site-success);
}

html[data-theme="dark"] :is(.notice--danger, .markdown-alert-caution) {
    border-inline-start-color: var(--site-danger);
}

html[data-theme="dark"] .btn--primary,
html[data-theme="dark"] .btn--primary:visited {
    background: var(--site-accent);
    color: var(--site-accent-contrast);
}

html[data-theme="dark"] .btn--primary:hover {
    background: var(--site-accent-hover);
    color: var(--site-accent-contrast);
}

html[data-theme="dark"] .btn--inverse,
html[data-theme="dark"] .btn--inverse:visited {
    border-color: var(--site-border);

    background: var(--site-surface);
    color: var(--site-text);
}

html[data-theme="dark"] .btn--inverse:hover {
    background: var(--site-surface-deep);
    color: var(--site-accent-hover);
}

html[data-theme="dark"] .pagination--pager {
    border-color: var(--site-border);

    background: var(--site-surface);
    color: var(--site-text-secondary);
}

html[data-theme="dark"] .pagination--pager:hover {
    background: var(--site-accent);
    color: var(--site-accent-contrast);
}

html[data-theme="dark"] .pagination--pager.disabled {
    color: var(--site-text-secondary);
    opacity: 0.45;
}

html[data-theme="dark"] .screen-reader-shortcut:focus {
    background: var(--site-surface-deep);
    color: var(--site-text);
    box-shadow: 0 0 0 2px var(--site-accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 701px) and (max-width: 1100px) {
    #main {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .home-hero {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 0.9fr);

        gap: 2rem;

        padding: 0.75rem 0 1.5rem;
    }

    .home-hero-content {
        max-width: var(--site-text-width);
    }

    .home-hero-tagline {
        font-size: clamp(1.7rem, 3.2vw, 2.25rem);
    }

    .home-hero-description {
        line-height: 1.65;
    }

    .home-interests-section {
        margin-top: 1.5rem;
    }

    .home-profile-links {
        margin-top: 1.25rem;
    }

    .home-hero-image {
        min-height: 400px;
        background-position: 62% center;
    }
}

@media (max-width: 800px) {
    :root {
        --site-horizontal-padding: 1.25rem;
    }

    #main {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .page__title {
        margin-bottom: 1.25rem;

        font-size: 1.65rem;
    }

    .iot-hub-header {
        gap: 1rem;
    }

    .iot-hub-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);

        gap: 2rem;
    }

}

@media (min-width: 701px) and (max-width: 1100px) and (max-height: 1050px) {
    #main {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .home-hero {
        padding-top: 0.25rem;
        padding-bottom: 0.75rem;
    }

    .home-hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .home-hero-tagline {
        font-size: clamp(1.6rem, 2.8vw, 1.95rem);
    }

    .home-hero-description {
        margin-top: 1rem;

        line-height: 1.55;
    }

    .home-interests-section {
        margin-top: 1rem;

        padding-top: 0.75rem;
    }

    .home-section-label {
        margin-bottom: 0.65rem;

        font-size: 0.75rem;
        text-align: center;
    }

    .home-interests span {
        padding: 0.2rem 0.4rem;
    }

    .home-profile-links {
        margin-top: 1rem;

        padding-top: 0.75rem;
    }

    .home-hero-image {
        min-height: 280px;
    }

    .page__footer footer {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
}

@media (min-width: 601px) and (max-width: 700px) {
    .home-hero {
        grid-template-columns: 1fr;

        gap: 2rem;

        padding: 1rem 0 2rem;
    }

    .home-hero-content {
        max-width: var(--site-text-width);
    }

    .home-hero-visual {
        width: 100%;
    }

    .home-hero-image {
        min-height: 420px;

        background-position: 62% center;
    }
}

@media (max-width: 600px) {
    .greedy-nav .site-title {
        min-width: 0;

        /* Reserve the right side for theme, search, and the greedy menu. */
        flex: 0 0 calc(100% - 8.5rem);

        margin-right: 0;

        overflow: visible;

        text-overflow: clip;
    }

    .greedy-nav .visible-links .masthead__menu-item--nav-link +
    .masthead__menu-item--nav-link {
        margin-left: 0.8rem;
    }

    .theme-toggle {
        margin-left: 0.75rem;
        margin-right: -3rem;
    }

    .theme-toggle::before {
        display: none;
    }

    .greedy-nav .search__toggle {
        margin-left: 3.5rem;
    }

    .greedy-nav__toggle {
        margin-left: 0.5rem;
    }

    .iot-hub-intro p,
    .project-page .page__content > p {
        text-align: left;
    }

    .project-grid {
        grid-template-columns: 1fr;

        gap: 1.25rem;
    }

    .project-card-cover {
        aspect-ratio: 16 / 8;
    }

    .site-card-content {
        padding: 1.15rem 1.25rem;
    }

    .site-card-title {
        font-size: 1.15rem;
    }

    .home-hero {
        display: flex;
        flex-direction: column;

        gap: 1.75rem;

        padding: 0.5rem 0 2.25rem;
    }

    .home-hero-visual {
        order: 1;
    }

    .home-hero-content {
        order: 2;

        padding: 0;
    }

    .home-hero-image {
        min-height: clamp(360px, 52vh, 460px);

        background-position: 64% center;
    }

    .home-hero-tagline {
        max-width: 100%;

        font-size: clamp(1.65rem, 7vw, 2.1rem);
        letter-spacing: 0.025em;
    }

    .home-hero-description {
        margin-top: 1.25rem;
    }

    .home-interests-section {
        margin-top: 1.75rem;

        padding-top: 1rem;
    }

    .home-profile-links {
        margin-top: 1.75rem;

        font-size: clamp(0.5rem, 2.4vw, 0.875rem);
    }

    .home-profile-separator {
        margin-right: clamp(0.1rem, 0.5vw, 0.55rem);
        margin-left: clamp(0.1rem, 0.5vw, 0.55rem);
    }

    .newsletter-section {
        margin-top: 1rem;

        padding: 1rem;
    }

    .newsletter-form-row {
        flex-direction: column;
    }

    .newsletter-form-row button {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .newsletter-privacy {
        margin-top: 0;
    }

    .home-hero-credit {
        right: 0.8rem;
        bottom: 0.75rem;

        font-size: 0.75rem;
    }

    .about-layout {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .about-portrait {
        position: static;

        width: 100%;
        max-width: 32rem;
    }

    .about-portrait img {
        aspect-ratio: 4 / 5;
    }

    .about-copy {
        max-width: var(--site-text-width);
    }
}

@media (max-width: 360px) {
    .masthead__inner-wrap {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .greedy-nav .site-title {
        margin-right: 0.4rem;

        font-size: 0.875rem;
    }
}

@media (max-width: 520px) {
    :root {
        --site-horizontal-padding: 1rem;
    }

    #main {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    .page__title {
        margin-bottom: 1.25rem;

        font-size: 1.5rem;
    }

    .iot-hub-header {
        flex-direction: column;
    }

}
