/* Hacker/Terminal Theme for xdcyw.net */
:root {
    --bg-color: #f9f6ff;
    --surface-color: #ffffff;
    --text-color: #363636;
    --muted-text: #6f6885;
    --accent-color: #f472d0;
    --accent-strong: #d946aa;
    --accent-border: rgba(217, 70, 170, 0.32);
    --accent-overlay: rgba(244, 114, 208, 0.12);
    --accent-glow-strong: rgba(244, 114, 208, 0.18);
    --accent-glow-soft: rgba(99, 179, 237, 0.12);
    --divider-color: rgba(55, 46, 94, 0.08);
    --glow-color: rgba(244, 114, 208, 0.15);
    --font-display: 'VT323', monospace;
    --font-family: 'Roboto Mono', monospace;
    --font-sans-serif: 'Noto Sans JP', sans-serif;
    --cyan: #5dcff3;
    --red: #e11d48;
    --yellow: #d97706;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Utility class */
.is-hidden {
    display: none !important;
}

/* CRT Scanline Effect */
.crt-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 20% 20%, var(--accent-glow-strong), transparent 60%),
                radial-gradient(circle at 80% 0%, var(--accent-glow-soft), transparent 55%);
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
}
.btn:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn__icon {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.5;
    vertical-align: middle;
}

.btn--header-launch {
    border: 1px solid var(--accent-border);
    padding: 0.75rem 1.5rem;
    align-self: center;
    background-color: transparent;
    font-family: inherit;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}



.btn--header-launch:hover {
    background-color: var(--accent-overlay);
    border-color: var(--accent-strong);
}

/* --- Site Header --- */
.site-header {
    padding: 1.75rem 0 1.25rem;
    border-bottom: 1px solid var(--divider-color);
    position: relative;
    z-index: 3;
}

.site-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-logo {
    font-family: var(--font-display);
    color: var(--text-color);
    font-size: 3.4rem;
    line-height: 1;
    text-align: center;
    margin: 0;
    flex-grow: 1;
}

.site-logo a {
    color: inherit;
    text-decoration: none;
}

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav__item {
    font-family: var(--font-family);
}

.site-nav__link {
    color: var(--muted-text);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
    color: var(--text-color);
    outline: none;
}

.site-nav__link:hover::after,
.site-nav__link:focus::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.site-nav__link.is-active {
    color: var(--text-color);
}

/* Search */
.search-container {
    position: relative;
    margin-left: 1.5rem;
}

#search-input {
    background-color: transparent;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-color);
    width: 220px;
    transition: all 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-strong);
    background-color: var(--accent-overlay);
    box-shadow: 0 0 15px var(--accent-glow-strong);
}

#search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--accent-strong);
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(12, 18, 24, 0.35);
}

#search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#search-results li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--divider-color);
    font-size: 0.9rem;
    font-family: var(--font-sans-serif);
}

#search-results li:last-child a {
    border-bottom: none;
}

#search-results li a:hover {
    background-color: var(--accent-overlay);
    color: var(--accent-strong);
}

#search-results p {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center; /* For mobile view */
    flex-wrap: wrap;
    gap: 1.5rem;
}
/* --- Main Content --- */
main {
    padding: 2rem 0;
}

.crt-container main {
    flex: 1 0 auto;
    width: 100%;
}

section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.6rem;
    font-family: var(--font-sans-serif);
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--accent-strong);
}

.profile-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.profile-list li {
    margin-bottom: 0.5em;
    display: flex;
}

.profile-marker {
    color: var(--accent-color);
    margin-right: 0.75em;
}

.command-highlight {
    background-color: var(--accent-overlay);
    color: var(--accent-color);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-family: var(--font-family);
}

.post {
    background: var(--surface-color);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(12, 18, 24, 0.35);
    margin-bottom: 3rem;
}

.post__header {
    margin-bottom: 1.75rem;
}

.post__title {
    font-size: 2.1rem;
    font-family: var(--font-display);
    margin: 0;
    color: var(--text-color);
}

.post__date {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted-text);
    line-height: 1.7;
}

.post__meta {
    margin-bottom: 1.5rem;
}

.post__categories {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}



.post__footer-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--muted-text);
}

.embed-list {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.responsive-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(47, 38, 68, 0.14);
    background: #000;
}

.responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-figure {
    margin: 2rem auto;
    text-align: center;
}

.post-figure img {
    display: inline-block;
    width: min(100%, 620px);
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(47, 38, 68, 0.12);
}

.post__content {
    font-family: var(--font-sans-serif);
    line-height: 1.85;
    color: var(--text-color);
}

.post__content p {
    margin-bottom: 1.25rem;
}

.post__content h2,
.post__content h3,
.post__content h4 {
    font-family: var(--font-sans-serif);
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.post__content ul,
.post__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.post__content a {
    color: var(--accent-strong);
    text-decoration: underline;
}

.post__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-strong);
    background: var(--accent-overlay);
    color: var(--text-color);
    box-shadow: inset 0 0 0 1px rgba(217, 70, 170, 0.2);
    border-radius: 12px;
}

.post__content blockquote p {
    margin-bottom: 0.8rem;
}

.post__content blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.section-subtitle {
    margin-top: 0.4rem;
    font-size: 1rem;
    color: var(--muted-text);
    line-height: 1.7;
}

.section-intro {
    font-family: var(--font-sans-serif);
    margin-bottom: 3rem;
    line-height: 1.8;
    color: var(--text-color);
}

.section-intro__lead {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.section-intro__note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.7;
}

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

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

.home-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-intro__lead {
    font-family: var(--font-sans-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.home-intro__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-intro__meta li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-family: var(--font-sans-serif);
    color: var(--muted-text);
    line-height: 1.7;
}

.home-intro__label {
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    color: var(--accent-strong);
}

.profile-essay {
    background: var(--surface-color);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(12, 18, 24, 0.25);
    font-family: var(--font-sans-serif);
    line-height: 1.85;
    color: var(--text-color);
}

.profile-essay__heading {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.profile-essay p {
    margin: 0 0 1.25rem;
}

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

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem 1rem;
    padding: 1.05rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(160deg, rgba(244, 114, 208, 0.08), rgba(93, 207, 243, 0.08));
    box-shadow: 0 12px 28px rgba(47, 38, 68, 0.12);
}

.contact-label {
    display: inline-flex;
    align-items: center;
    min-width: 130px;
    font-family: var(--font-family);
    color: var(--accent-strong);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.contact-value {
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-color);
    flex: 1 1 220px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-link {
    color: var(--accent-strong);
    text-decoration: none;
    border-bottom: 1px dashed rgba(217, 70, 170, 0.6);
    flex: 1 1 220px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
    outline: none;
}

.home-posts {
    margin-top: 3rem;
}

.home-posts__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.home-posts__more {
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--accent-strong);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.home-posts__more:hover,
.home-posts__more:focus {
    color: var(--text-color);
    outline: none;
}

.home-posts__list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
}

.home-posts__item {
    background: var(--surface-color);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-posts__item--empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted-text);
    line-height: 1.7;
}

.home-posts__link {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.65rem 1.75rem 1.4rem;
    text-decoration: none;
    color: inherit;
}

.home-posts__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.2rem;
}

.home-posts__date {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted-text);
    text-transform: uppercase;
}

.home-posts__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    letter-spacing: 0.015em;
    font-family: var(--font-sans-serif);
}

.home-posts__summary {
    margin: 0;
}


.home-posts__footer {
    padding: 1.05rem 1.75rem 1.6rem;
}

.home-posts__categories {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.home-posts__footer,
.archive-list__footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    margin-top: 0.3rem;
}

.summary-card {
    display: block;
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(217, 70, 170, 0.28);
    background: linear-gradient(140deg, rgba(244, 114, 208, 0.14), rgba(93, 207, 243, 0.1));
    color: var(--muted-text);
    line-height: 1.7;
    box-shadow: 0 12px 28px rgba(47, 38, 68, 0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 70, 170, 0.28);
    background: rgba(244, 114, 208, 0.12);
    color: var(--text-color);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-family);
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-chip:hover,
.category-chip:focus {
    border-color: var(--accent-strong);
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(217, 70, 170, 0.32);
    transform: translateY(-1px);
    outline: none;
}

.home-posts__item:hover .summary-card,
.archive-list__item:hover .summary-card {
    border-color: var(--accent-strong);
    box-shadow: 0 18px 36px rgba(47, 38, 68, 0.18);
}

.home-posts__item:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(47, 38, 68, 0.18);
}

.archive-list {
    margin-top: 2rem;
}

.archive-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.archive-list__empty {
    margin-top: 2rem;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.taxonomy-terms {
    margin-top: 2rem;
}

.taxonomy-terms__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.taxonomy-terms__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: var(--surface-color);
    box-shadow: 0 8px 20px rgba(47, 38, 68, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.taxonomy-terms__link:hover,
.taxonomy-terms__link:focus {
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(47, 38, 68, 0.18);
    transform: translateY(-4px);
    outline: none;
}

.taxonomy-terms__name {
    font-weight: 600;
    font-size: 1.05rem;
}

.taxonomy-terms__count {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.taxonomy-terms__empty {
    margin-top: 2rem;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.archive-list__item {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(47, 38, 68, 0.08);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.archive-list__link {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.85rem 1.95rem 1.5rem;
    text-decoration: none;
    color: inherit;
}

.archive-list__meta {
    display: grid;
    grid-template-columns: minmax(110px, 140px) 1fr;
    align-items: baseline;
    column-gap: 1.2rem;
    row-gap: 0.4rem;
}

.archive-list__date {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted-text);
    text-transform: uppercase;
}

.archive-list__title {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.45;
    letter-spacing: 0.015em;
    font-family: var(--font-sans-serif);
}

.archive-list__summary {
    margin: 0;
}

.archive-list__footer {
    padding: 1.15rem 1.95rem 1.65rem;
}

.archive-list__categories {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.archive-list__item:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(47, 38, 68, 0.18);
}

.article-share {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-share__label {
    font-family: var(--font-family);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.7;
}

.article-share__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-share__button {
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.article-share__button:hover,
.article-share__button:focus {
    border-color: var(--accent-strong);
    color: var(--text-color);
    background-color: var(--accent-overlay);
    outline: none;
}

.article-share__button--copy {
    background: transparent;
}

.article-share__button--copied {
    border-color: rgba(34, 197, 94, 0.6);
    background-color: rgba(34, 197, 94, 0.15);
}

.article-share__button--shared {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: rgba(59, 130, 246, 0.15);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.about-content {
    margin-bottom: 2rem;
    font-family: var(--font-sans-serif);
}

.about-content p:not(:last-child) {
    margin-bottom: 1em;
}

.hero__quote {
    font-size: 1.5rem;
    color: var(--text-color);
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
    min-height: 1.6em; /* line-heightと合わせる */
    position: relative;
    text-shadow: 0 0 5px var(--text-color), 0 0 15px var(--glow-color), 0 0 25px var(--glow-color);
}
.typing::after {
    content: '█';
    margin-left: 0.2em;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: inherit;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 8px var(--glow-color);
        color: var(--text-color);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 121, 198, 0.8), 0 0 20px var(--glow-color);
        color: #f8f8f2; /* Bright white for pulse effect */
    }
}

/* --- フッター --- */
.footer {
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--divider-color);
    font-family: var(--font-family);
}

.footer__message {
    color: #9a93b4;
    font-size: 0.75rem;
    margin: 0 auto 1rem;
    max-width: 65ch;
    line-height: 1.6;
}

/* --- Animations --- */
@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.54165; }
    15% { opacity: 0.93603; }
    20% { opacity: 0.18312; }
    25% { opacity: 0.80891; }
    30% { opacity: 0.1823; }
    35% { opacity: 0.36988; }
    40% { opacity: 0.58634; }
    45% { opacity: 0.87733; }
    50% { opacity: 0.97282; }
    55% { opacity: 0.07984; }
    60% { opacity: 0.2518; }
    65% { opacity: 0.13872; }
    70% { opacity: 0.98412; }
    75% { opacity: 0.35423; }
    80% { opacity: 0.5978; }
    85% { opacity: 0.85371; }
    90% { opacity: 0.24435; }
    95% { opacity: 0.0864; }
    100% { opacity: 0.9443; }
}

@keyframes intermittent-shake {
    /* 15秒間のうち、最初の数パーセントだけ揺れる */
    0%, 100%, 3% { transform: translate(0, 0); }
    0.5% { transform: translate(1px, -1px); }
    1.0% { transform: translate(-1px, 1px); }
    1.5% { transform: translate(1px, 1px); }
    2.0% { transform: translate(-1px, -1px); }
    2.5% { transform: translate(1px, 0); }
}



/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header__container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-nav {
        margin-left: 0;
        width: 100%;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .site-nav__link::after {
        display: none;
    }

    .site-logo {
        font-size: 3.5rem;
    }

    .neofetch-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal {
        width: 95%; /* Use more horizontal space */
        height: 90%; /* Use more vertical space */
        font-size: 1rem; /* Reduce font size for better fit */
    }

    .footer__keys {
        align-items: flex-start;
    }
    .key-info {
        flex-direction: column;
    }

    .contact-list li {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.5rem 1rem;
        padding: 0.85rem 1.15rem;
    }

    .contact-label {
        min-width: auto;
    }

    .contact-value,
    .contact-link {
        text-align: right;
    }
}

@media (max-width: 600px) {
    .home-posts__link,
    .archive-list__link {
        padding: 1.4rem 1.35rem 1.2rem;
    }

    .home-posts__footer,
    .archive-list__footer {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .archive-list__meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .home-posts__title,
    .archive-list__title {
        font-size: 1.05rem;
    }

    .summary-card {
        padding: 0.9rem 1rem;
    }

