:root {
    --ink: #161616;
    --ink-soft: #55534f;
    --paper: #ffffff;
    --canvas: #f8f7f4;
    --line: #dedbd4;
    --line-dark: #bbb7af;
    --accent: #8f1832;
    --success: #245b3a;
    --error: #8a2e2e;
    --info: #31536b;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-soft: 0 24px 70px rgba(28, 25, 20, 0.08);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-wrap: anywhere;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

button,
input,
textarea {
    border-radius: 0;
}

button {
    color: inherit;
}

::selection {
    color: var(--paper);
    background: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(143, 24, 50, 0.38);
    outline-offset: 4px;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--paper);
    background: var(--ink);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 19px;
    border: 1px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.button:hover {
    color: var(--ink);
    background: transparent;
    transform: translateY(-2px);
}

.button-full {
    width: 100%;
}

.button-light {
    border-color: var(--paper);
    color: var(--ink);
    background: var(--paper);
}

.button-light:hover {
    color: var(--paper);
    background: transparent;
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.48);
    color: var(--paper);
    background: transparent;
}

.button-outline-light:hover {
    color: var(--ink);
    background: var(--paper);
}

.text-link {
    font-size: 0.82rem;
    font-weight: 700;
}

/* Header */
.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(260px, 390px) 1fr;
    gap: 36px;
    align-items: center;
    width: min(1280px, calc(100% - 48px));
    min-height: 86px;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 230px;
    text-decoration: none;
}

.brand span {
    display: grid;
    line-height: 1.1;
}

.brand strong {
    font-family: var(--serif);
    font-size: 1.14rem;
}

.brand small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-form {
    display: flex;
    min-width: 0;
    border-bottom: 1px solid var(--line-dark);
}

.search-form:focus-within {
    border-color: var(--ink);
}

.search-form input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.82rem;
}

.search-form input::placeholder {
    color: #88847d;
}

.search-form button {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    place-items: center;
    background: transparent;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--canvas);
}

.search-form svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.site-nav {
    display: flex;
    gap: 23px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav form {
    display: flex;
    margin: 0;
}

.nav-link {
    position: relative;
    padding: 10px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-button {
    padding-inline: 0;
}

.user-chip {
    max-width: 220px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip strong {
    color: var(--ink);
}

.menu-toggle {
    display: none;
}

/* Home */
.home-intro {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding-block: clamp(44px, 6vw, 76px) clamp(52px, 7vw, 88px);
    text-align: center;
}

.home-intro .eyebrow {
    margin-bottom: 4px;
}

.home-intro > p {
    max-width: 780px;
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    line-height: 1.45;
    text-wrap: balance;
    font-size: 0.95rem;
}

.posts-section {
    padding-bottom: 60px;
}

.section-heading {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 28px 0 23px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.post-list {
    display: grid;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: center;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
}

.post-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eceae6;
    aspect-ratio: 3 / 2;
}

.post-card-media::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.07);
    content: "";
    pointer-events: none;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78);
    transition:
        filter 450ms ease,
        transform 650ms cubic-bezier(0.2, 0.7, 0, 1);
}

.post-card:hover .post-card-media img {
    filter: saturate(1);
    transform: scale(1.025);
}

.post-number {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    place-items: center;
    color: var(--paper);
    background: rgba(16, 16, 16, 0.66);
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}

.post-card-content {
    max-width: 510px;
}

.post-card-content h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.2vw, 3.3rem);
    font-weight: 500;
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.post-card-content h3 a {
    text-decoration: none;
}

.post-card-content h3 a:hover {
    color: var(--accent);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 17px;
    color: #77736c;
    font-size: 0.73rem;
    line-height: 1.4;
}

.post-meta a {
    text-decoration: none;
}

.post-excerpt {
    margin: 20px 0 24px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.empty-state {
    display: grid;
    justify-items: start;
    padding: clamp(58px, 9vw, 110px);
    background: var(--canvas);
}

.empty-state h1,
.empty-state h3 {
    max-width: 700px;
    margin: 0 0 15px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.empty-state p:not(.eyebrow) {
    max-width: 620px;
    color: var(--ink-soft);
}

.empty-state .button,
.empty-state form {
    margin-top: 20px;
}

.page-shell {
    min-height: 62vh;
    padding-block: 80px;
}

/* Alerts */
.alert {
    margin: 0 0 26px;
    padding: 15px 18px;
    border: 1px solid;
    font-size: 0.86rem;
    line-height: 1.5;
}

.alert p,
.alert ul {
    margin: 0;
}

.alert p + p {
    margin-top: 5px;
}

.alert ul {
    padding-left: 20px;
}

.alert-success {
    border-color: rgba(36, 91, 58, 0.28);
    color: var(--success);
    background: #f1f7f3;
}

.alert-error {
    border-color: rgba(138, 46, 46, 0.26);
    color: var(--error);
    background: #fbf2f2;
}

.alert-info {
    border-color: rgba(49, 83, 107, 0.25);
    color: var(--info);
    background: #f2f7fa;
}

/* Post detail */
.post-page {
    padding: 52px 24px 55px;
}

.post-article {
    width: min(1060px, 100%);
    margin-inline: auto;
}

.post-hero-wrap {
    overflow: hidden;
    background: #eceae6;
    aspect-ratio: 16 / 9;
}

.post-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-heading {
    width: min(820px, calc(100% - 40px));
    margin: clamp(42px, 7vw, 78px) auto 42px;
    text-align: center;
}

.post-heading h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.post-heading .post-meta {
    justify-content: center;
    margin-top: 24px;
}

.post-body {
    width: min(750px, calc(100% - 40px));
    margin-inline: auto;
    color: #292826;
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    line-height: 1.82;
}

.post-body > *:first-child {
    margin-top: 0;
}

.post-body p {
    margin: 0 0 1.45em;
}

.post-body .post-lead {
    margin-bottom: 1.8em;
    color: var(--ink);
    font-size: 1.28em;
    line-height: 1.55;
}

.post-body .post-lead::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    color: var(--accent);
    font-size: 3.3em;
    line-height: 0.8;
}

.post-body h2,
.post-body h3 {
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.post-body h2 {
    margin: 2.1em 0 0.65em;
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.post-body h3 {
    margin: 1.8em 0 0.6em;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.6em;
    padding-left: 1.4em;
}

.post-body li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
}

.post-body blockquote {
    margin: 2.6em 0;
    padding: 7px 0 7px 28px;
    border-left: 2px solid var(--accent);
    color: var(--ink);
    font-size: 1.28em;
    font-style: italic;
    line-height: 1.55;
}

.post-body blockquote p {
    margin: 0;
}

.post-body a {
    color: var(--accent);
}

.post-body img {
    width: min(960px, 125%);
    max-width: none;
    height: auto;
    margin: 2.6em 0 2.6em -12.5%;
    object-fit: cover;
}

.post-body figure {
    width: min(960px, 125%);
    max-width: none;
    margin: 2.8em 0 2.8em -12.5%;
}

.post-body figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 2px;
}

.post-body figcaption {
    margin-top: 10px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.post-body figcaption:empty {
    display: none;
}

.comments-section {
    width: min(860px, calc(100% - 48px));
    margin: 95px auto 0;
    padding-top: 38px;
    border-top: 1px solid var(--ink);
}

.comments-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.comments-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.comments-heading h2 span {
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.85rem;
    vertical-align: top;
}

.comments-empty {
    padding: 28px;
    color: var(--ink-soft);
    background: var(--canvas);
}

.comment-list {
    display: grid;
    gap: 0;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.comment {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.comment-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    place-items: center;
    color: var(--paper);
    background: var(--ink);
    font-family: var(--serif);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.comment-author {
    display: flex;
    gap: 14px;
    align-items: baseline;
    justify-content: space-between;
}

.comment-author strong {
    font-family: var(--serif);
    font-size: 1.05rem;
}

.comment-author time {
    color: #77736c;
    font-size: 0.7rem;
}

.comment-content p {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.comment-form {
    margin-top: 35px;
    padding: clamp(25px, 5vw, 44px);
    background: var(--canvas);
}

.login-prompt {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
    margin-top: 35px;
    padding: 28px 30px;
    color: var(--paper);
    background: var(--ink);
}

.login-prompt strong {
    font-family: var(--serif);
    font-size: 1.3rem;
}

.login-prompt p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.login-prompt .button {
    border-color: var(--paper);
    color: var(--ink);
    background: var(--paper);
}

/* Forms */
.field {
    display: grid;
    gap: 8px;
}

.field + .field,
.form-row + .field,
.field + .form-row {
    margin-top: 20px;
}

.field label {
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 750;
}

.field input,
.field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line-dark);
    outline: 0;
    color: var(--ink);
    background: var(--paper);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.field input {
    height: 50px;
    padding: 0 14px;
}

.field textarea {
    min-height: 135px;
    padding: 13px 14px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(22, 22, 22, 0.06);
}

.field small {
    color: #77736c;
    font-size: 0.7rem;
}

.comment-form .button {
    margin-top: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    margin-top: 20px;
}

/* About */
.about-page {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: clamp(34px, 4vw, 54px) 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(202, 173, 146, 0.42), transparent 32%),
        radial-gradient(circle at 89% 20%, rgba(161, 179, 181, 0.38), transparent 29%),
        linear-gradient(145deg, #eeeae3 0%, #f8f7f5 46%, #e7e8e5 100%);
}

.about-page::before,
.about-page::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    filter: blur(3px);
    pointer-events: none;
}

.about-page::before {
    top: -130px;
    right: 17%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.about-page::after {
    bottom: -200px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.32);
}

.about-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    width: min(1500px, calc(100% - 48px));
}

.glass-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
}

.profile-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 1000px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.profile-image-wrap {
    position: relative;
    overflow: hidden;
    min-height: 0;
    aspect-ratio: 5 / 3.25;
    border-radius: 18px;
    background: #d9d5ce;
}

.profile-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

.profile-image-wrap > span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 99px;
    color: var(--paper);
    background: rgba(12, 12, 12, 0.42);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}

.profile-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 720px);
    margin-inline: auto;
    padding: clamp(24px, 2.5vw, 34px) clamp(22px, 2.5vw, 32px);
}

.profile-copy h1 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: clamp(2.55rem, 3.2vw, 3.7rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.05em;
    overflow-wrap: normal;
}

.about-lead {
    margin: 0;
    color: #47443f;
    font-size: 1.05rem;
}

.contact-links {
    display: grid;
    margin-top: 24px;
    border-top: 1px solid rgba(22, 22, 22, 0.18);
}

.contact-links a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(22, 22, 22, 0.18);
    font-size: 0.76rem;
    text-decoration: none;
}

.contact-icon {
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(22, 22, 22, 0.2);
    border-radius: 50%;
    color: var(--accent);
    place-items: center;
}

.contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.contact-icon svg.contact-icon-fill {
    fill: currentColor;
    stroke: none;
}

.contact-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.contact-copy small {
    color: var(--ink-soft);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-links strong {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contact-links a:hover strong {
    color: var(--accent);
}

.contact-links a:hover .contact-icon {
    color: var(--paper);
    background: var(--accent);
}

.contact-arrow {
    color: var(--ink-soft);
}

.cv-panel {
    position: relative;
    display: flex;
    isolation: isolate;
    min-height: 1000px;
    padding: 0;
    color: var(--paper);
    background:
        radial-gradient(circle at 82% 8%, rgba(205, 92, 118, 0.22), transparent 28%),
        radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1), transparent 30%),
        linear-gradient(155deg, #27272b 0%, #111113 52%, #080809 100%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.cv-panel::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.13), transparent 28%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.04), transparent 34%);
    content: "";
    pointer-events: none;
}

.cv-panel-authenticated {
    min-height: 1000px;
}

.cv-panel > .alert {
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 18px;
    left: 18px;
}

.cv-gate {
    position: relative;
    display: flex;
    flex: 1;
    overflow: hidden;
    min-width: 0;
    min-height: 526px;
    border-radius: inherit;
    transition:
        opacity 850ms ease,
        filter 850ms ease,
        transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cv-gate::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 10, 0.06) 0%, rgba(8, 8, 10, 0.18) 38%, rgba(8, 8, 10, 0.9) 100%);
    content: "";
    pointer-events: none;
}

.cv-panel.is-cv-open .cv-gate {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-14px) scale(0.975);
    pointer-events: none;
}

[data-cv-open] {
    display: none;
}

.js [data-cv-open] {
    display: inline-flex;
}

.cv-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: inherit;
    opacity: 0.86;
}

.cv-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.cv-content {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    width: auto;
    margin: 18px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(28px) saturate(145%);
}

.cv-viewer {
    position: absolute;
    z-index: 3;
    inset: 12px;
    display: grid;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    opacity: 0;
    background: rgba(27, 27, 30, 0.88);
    box-shadow:
        0 32px 85px rgba(0, 0, 0, 0.46),
        inset 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(28px) saturate(145%);
    transform: translateY(16px) scale(0.985);
    pointer-events: none;
    transition:
        opacity 900ms ease 180ms,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.cv-viewer[hidden] {
    display: none;
}

.cv-panel.is-cv-open .cv-viewer {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cv-viewer-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 9px 14px 9px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--paper);
    background: rgba(20, 20, 23, 0.74);
    backdrop-filter: blur(22px) saturate(140%);
}

.cv-viewer-toolbar > div {
    display: grid;
    min-width: 0;
}

.cv-viewer-toolbar strong {
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-viewer-toolbar span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
}

.cv-viewer-toolbar button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.cv-viewer-toolbar button:hover {
    color: var(--ink);
    background: var(--paper);
}

.cv-loading {
    position: absolute;
    z-index: 1;
    inset: 58px 0 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(27, 27, 30, 0.94);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    transition: opacity 260ms ease;
}

.cv-viewer.is-loaded .cv-loading {
    opacity: 0;
    pointer-events: none;
}

.cv-image-scroll {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: clamp(8px, 2vw, 18px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    opacity: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 180px),
        #1c1c1f;
    scroll-behavior: smooth;
    transition: opacity 300ms ease;
}

.cv-viewer.is-loaded .cv-image-scroll {
    opacity: 1;
}

.cv-image-page {
    position: relative;
    width: min(100%, 909px);
    margin: 0 auto clamp(12px, 2vw, 20px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.cv-image-page:last-child {
    margin-bottom: 0;
}

.cv-image-page img {
    display: block;
    width: 100%;
    height: auto;
}

.cv-image-page figcaption {
    position: absolute;
    right: 10px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(20, 20, 22, 0.58);
    font-size: 0.62rem;
    backdrop-filter: blur(10px);
}

.standalone-cv {
    display: grid;
    gap: 18px;
    max-width: 909px;
    margin-inline: auto;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.standalone-cv > header {
    padding: 22px 0 8px;
}

.standalone-cv > header h1 {
    margin-block: 6px 8px;
    font-family: inherit;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.standalone-cv > header p:last-child {
    color: var(--muted);
}

.standalone-cv > img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: var(--shadow);
}

.cv-content .eyebrow {
    color: #f28aa0;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.cv-content h2 {
    max-width: 460px;
    margin: 0 0 18px;
    font-family: inherit;
    font-size: clamp(2.35rem, 3.7vw, 3.8rem);
    font-weight: 650;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.cv-content > p {
    max-width: 450px;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    line-height: 1.55;
}

.cv-content .button {
    min-height: 44px;
    padding-inline: 20px;
    border-color: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.55);
}

.cv-login-message {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(18px);
}

.cv-login-message p {
    margin: 0 0 13px;
    font-size: 0.84rem;
}

.noscript-message {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

/* Authentication */
.auth-page {
    min-height: 720px;
    padding: clamp(55px, 8vw, 100px) 24px;
    background: var(--canvas);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
    width: min(980px, 100%);
    margin-inline: auto;
    box-shadow: var(--shadow-soft);
}

.auth-intro {
    display: flex;
    flex-direction: column;
    min-height: 585px;
    padding: clamp(38px, 6vw, 70px);
    color: var(--paper);
    background:
        linear-gradient(rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.91)),
        url("../images/posts/post-3.jpg") center / cover;
}

.auth-intro .eyebrow {
    color: #df7185;
}

.auth-intro h1 {
    margin: 0 0 26px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.auth-intro p {
    max-width: 370px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.auth-intro > span {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(38px, 7vw, 76px);
    background: var(--paper);
}

.auth-form .button {
    margin-top: 26px;
}

.auth-switch {
    margin: 25px 0 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    text-align: center;
}

.auth-switch a {
    color: var(--ink);
    font-weight: 750;
}

/* SuperAdmin */
.admin-page {
    min-height: 75vh;
    padding: clamp(58px, 7vw, 100px) 0 clamp(70px, 8vw, 120px);
    background:
        radial-gradient(circle at 8% 4%, rgba(202, 173, 146, 0.25), transparent 27%),
        var(--canvas);
}

.admin-shell {
    width: min(1880px, calc(100% - 48px));
    margin-inline: auto;
}

.admin-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(38px, 8vw, 120px);
    align-items: end;
    margin-bottom: 44px;
}

.admin-heading h1 {
    max-width: 850px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.admin-heading > p {
    max-width: 470px;
    margin: 0 0 8px;
    padding-top: 22px;
    border-top: 1px solid var(--ink);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.admin-shell > .alert {
    margin-bottom: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(620px, 1.25fr) minmax(340px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.cv-admin-panel,
.admin-form-panel,
.admin-posts-panel {
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.cv-admin-panel {
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.cv-admin-heading {
    padding: 25px 22px 20px;
    border-bottom: 1px solid var(--line);
}

.cv-admin-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.cv-admin-heading > p:last-child {
    margin: 13px 0 0;
    color: var(--ink-soft);
    font-size: 0.69rem;
    line-height: 1.5;
}

.cv-admin-slots {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #f6f3ed;
}

.cv-admin-slot {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    overflow: hidden;
    min-height: 112px;
    border: 1px solid var(--line);
    background: var(--paper);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.cv-admin-slot:hover,
.cv-admin-slot:focus-within {
    border-color: rgba(143, 24, 50, 0.55);
    box-shadow: 0 10px 28px rgba(38, 27, 20, 0.1);
}

.cv-admin-slot.is-uploading {
    opacity: 0.62;
    pointer-events: none;
}

.cv-admin-upload {
    display: grid;
    min-width: 0;
}

.cv-admin-picker {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 112px;
    color: var(--accent);
    background:
        linear-gradient(145deg, rgba(143, 24, 50, 0.08), transparent),
        #eeebe4;
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    place-content: center;
}

.cv-admin-picker img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.cv-admin-empty-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0 auto 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.15rem;
    place-items: center;
}

.cv-admin-replace {
    position: absolute;
    inset: auto 5px 5px;
    z-index: 1;
    padding: 6px 4px;
    color: var(--paper);
    background: rgba(19, 17, 16, 0.78);
    font-size: 0.54rem;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

.cv-admin-slot-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 15px 13px 12px;
}

.cv-admin-slot-footer > span {
    display: grid;
    gap: 4px;
}

.cv-admin-slot-footer strong {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
}

.cv-admin-slot-footer small {
    color: var(--ink-soft);
    font-size: 0.62rem;
}

.cv-admin-slot-footer form {
    display: flex;
}

.cv-admin-slot-footer button,
.cv-admin-noscript-upload {
    padding: 6px 0;
    border: 0;
    color: var(--error);
    background: transparent;
    font-size: 0.58rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.cv-admin-slot-footer button:hover {
    text-decoration: underline;
}

.cv-admin-noscript-upload {
    margin: 6px;
    color: var(--accent);
}

.cv-admin-note {
    margin: 0;
    padding: 14px 18px 17px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.63rem;
    line-height: 1.55;
}

.admin-form-panel {
    overflow: hidden;
    padding: 0;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form input[type="file"] {
    padding: 11px;
    background: #f6f5f2;
}

.admin-form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 12px;
    border: 1px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 0.68rem;
    font-weight: 750;
    cursor: pointer;
}

.admin-form code {
    padding: 2px 5px;
    color: var(--ink);
    background: #ece9e3;
}

.editor-cover-field {
    padding: 18px;
    background: #1b1b1a;
}

.editor-cover-drop {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 16 / 6;
    border: 1px dashed rgba(255, 255, 255, 0.34);
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
        #232321;
    cursor: pointer;
    place-items: center;
    transition:
        border-color 180ms ease,
        background 180ms ease;
}

.editor-cover-drop:hover,
.editor-cover-drop.is-dragging {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: #292927;
}

.editor-cover-drop > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-cover-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    justify-items: center;
    padding: 30px;
    text-align: center;
}

.editor-cover-copy strong {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 500;
}

.editor-cover-copy small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
}

.editor-cover-icon {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    font-size: 1.45rem;
    place-items: center;
}

.editor-cover-change {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    display: none;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: var(--paper);
    background: rgba(15, 15, 15, 0.62);
    font-size: 0.64rem;
    font-weight: 750;
    backdrop-filter: blur(9px);
}

.editor-cover-drop.has-cover .editor-cover-copy {
    opacity: 0;
}

.editor-cover-drop.has-cover .editor-cover-change {
    display: block;
}

.editor-document {
    border-top: 1px solid var(--line);
}

.editor-title-row {
    display: grid;
    grid-template-columns: minmax(155px, 0.25fr) minmax(0, 1.75fr);
    border-bottom: 1px solid var(--line);
}

.editor-category-field {
    position: relative;
    border-right: 1px solid var(--line);
}

.editor-category-field select,
.editor-title-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: var(--paper);
}

.editor-category-field select {
    height: 76px;
    padding: 0 38px 0 22px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 750;
    appearance: none;
    cursor: pointer;
}

.editor-category-field > span {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--accent);
    pointer-events: none;
    transform: translateY(-50%);
}

.editor-title-input {
    height: 76px;
    padding: 0 24px;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.editor-title-input::placeholder {
    color: #aaa69f;
}

.editor-category-field select:focus,
.editor-title-input:focus {
    background: #fbfaf7;
}

.editor-new-category {
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
    background: #f1eee8;
}

.editor-new-category[hidden] {
    display: none;
}

.editor-new-category > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 750;
}

.editor-new-category > div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 8px;
}

.editor-new-category input {
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    outline: 0;
    background: var(--paper);
}

.editor-new-category input:focus {
    border-color: var(--ink);
}

.editor-new-category button {
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 0.67rem;
    font-weight: 750;
    cursor: pointer;
}

.editor-new-category [data-category-cancel] {
    color: var(--ink);
    background: transparent;
}

.editor-new-category > span {
    display: block;
    min-height: 1em;
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.65rem;
}

.editor-new-category > span[data-state="success"] {
    color: var(--success);
}

.editor-new-category > span[data-state="error"] {
    color: var(--error);
}

.editor-new-category > span[data-state="loading"] {
    color: var(--info);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    align-items: center;
    min-height: 64px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--line);
    background: #f7f6f3;
}

.editor-tool-group {
    display: flex;
    gap: 3px;
    align-items: center;
    padding-right: 13px;
    border-right: 1px solid var(--line);
}

.editor-tool-group:last-child {
    padding-right: 0;
    border-right: 0;
}

.editor-tool-group-secondary {
    margin-left: auto;
}

.editor-toolbar button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid transparent;
    color: #373633;
    background: transparent;
    font-size: 0.72rem;
    cursor: pointer;
}

.editor-toolbar button:hover,
.editor-toolbar button[aria-pressed="true"] {
    border-color: var(--line-dark);
    color: var(--accent);
    background: var(--paper);
}

.editor-alignment-tools button {
    display: grid;
    padding-inline: 7px;
    place-items: center;
}

.editor-alignment-tools svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.editor-toolbar .editor-image-button {
    color: var(--paper);
    background: var(--ink);
}

.rich-editor {
    min-height: 570px;
    padding: clamp(38px, 6vw, 72px);
    outline: 0;
    color: #292826;
    background: var(--paper);
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.82;
}

.rich-editor:empty::before {
    color: #aaa69f;
    content: attr(data-placeholder);
    pointer-events: none;
}

.rich-editor.is-preview {
    background: #fbfaf7;
    cursor: default;
}

.rich-editor p,
.rich-editor div {
    margin: 0 0 1.3em;
}

.rich-editor h2,
.rich-editor h3 {
    margin: 1.7em 0 0.55em;
    font-weight: 500;
    line-height: 1.1;
}

.rich-editor h2 {
    font-size: 2.25rem;
}

.rich-editor h3 {
    font-size: 1.65rem;
}

.rich-editor blockquote {
    margin: 2em 0;
    padding: 5px 0 5px 23px;
    border-left: 2px solid var(--accent);
    color: var(--ink-soft);
    font-style: italic;
}

.rich-editor figure {
    margin: 2.2em 0;
}

.rich-editor figure img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    background: #efede8;
}

.rich-editor figcaption {
    min-height: 30px;
    padding: 8px 10px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.7rem;
    text-align: center;
}

.rich-editor figcaption:empty::before {
    color: #aaa69f;
    content: "Görsel açıklaması ekleyin…";
}

.editor-statusbar {
    display: flex;
    justify-content: space-between;
    padding: 9px 16px;
    border-top: 1px solid var(--line);
    color: #77736c;
    background: #f7f6f3;
    font-size: 0.66rem;
}

.editor-statusbar [data-state="success"] {
    color: var(--success);
}

.editor-statusbar [data-state="error"] {
    color: var(--error);
}

.editor-statusbar [data-state="loading"] {
    color: var(--info);
}

.editor-publish-options {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 4vw, 42px);
    border-top: 1px solid var(--line);
    background: #fbfaf7;
}

.editor-publish-options details {
    border: 1px solid var(--line);
    background: var(--paper);
}

.editor-publish-options summary {
    padding: 13px 15px;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.editor-publish-options summary span {
    color: var(--ink-soft);
    font-weight: 400;
}

.editor-publish-options details .field {
    padding: 0 15px 15px;
}

.editor-publish-row {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
}

.editor-publish-row .field {
    width: min(220px, 100%);
}

.editor-publish-row .button {
    min-width: 210px;
    margin-top: 0;
}

.editor-cancel-link {
    align-self: center;
    margin-left: auto;
}

.admin-posts-panel {
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.admin-posts-heading {
    position: relative;
    padding: 30px;
    border-bottom: 1px solid var(--line);
}

.admin-posts-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 2.15rem;
    font-weight: 500;
    line-height: 1;
}

.admin-posts-heading > span {
    position: absolute;
    top: 32px;
    right: 30px;
    color: var(--ink-soft);
    font-size: 0.7rem;
}

.admin-posts-help {
    max-width: 330px;
    margin: 15px 0 0;
    color: var(--ink-soft);
    font-size: 0.7rem;
    line-height: 1.55;
}

.admin-empty {
    margin: 0;
    padding: 34px 30px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.admin-post-list {
    display: grid;
}

.admin-post-order-status {
    min-height: 0;
    margin: 0;
    padding: 0 30px;
    color: var(--ink-soft);
    background: #f8f6f2;
    font-size: 0.68rem;
    line-height: 0;
    transition:
        min-height 180ms ease,
        padding 180ms ease,
        line-height 180ms ease;
}

.admin-post-order-status:not(:empty) {
    min-height: 38px;
    padding-block: 10px;
    line-height: 1.4;
}

.admin-post-order-status[data-state="success"] {
    color: #23633d;
}

.admin-post-order-status[data-state="error"] {
    color: var(--error);
}

.admin-post-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    transition:
        opacity 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

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

.admin-post-item.is-pinned {
    background: linear-gradient(90deg, rgba(143, 24, 50, 0.055), var(--paper) 42%);
}

.admin-post-item.is-dragging {
    z-index: 3;
    opacity: 0.72;
    box-shadow: 0 18px 46px rgba(24, 20, 16, 0.18);
    transform: scale(1.01);
}

.admin-post-item.is-saving {
    pointer-events: none;
}

.admin-post-list.is-sorting {
    user-select: none;
}

.admin-post-drag {
    display: grid;
    grid-row: 1 / span 2;
    min-width: 42px;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--ink-soft);
    background: #f4f1eb;
    font-size: 1.2rem;
    cursor: grab;
    touch-action: none;
    place-items: center;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.admin-post-drag:hover,
.admin-post-drag:focus-visible,
.admin-post-drag.is-active {
    color: var(--paper);
    background: var(--accent);
}

.admin-post-drag:active,
.admin-post-drag.is-active {
    cursor: grabbing;
}

.admin-post-link {
    display: grid;
    grid-column: 2;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 16px;
    text-decoration: none;
}

.admin-post-link:hover {
    background: #f7f5f1;
}

.admin-post-list img {
    width: 92px;
    height: 68px;
    object-fit: cover;
}

.admin-post-link > span:nth-child(2) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-post-list small {
    overflow: hidden;
    color: var(--accent);
    font-size: 0.61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-post-pinned-badge {
    display: inline-block;
    margin-right: 5px;
    padding: 3px 5px 2px;
    border-radius: 999px;
    color: var(--paper);
    background: var(--accent);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    vertical-align: 1px;
}

.admin-post-list strong {
    font-family: var(--serif);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
}

.admin-post-visit {
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.admin-post-actions {
    display: grid;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 42px;
    border-top: 1px solid var(--line);
}

.admin-post-pin,
.admin-post-edit,
.admin-post-delete {
    display: grid;
}

.admin-post-pin {
    padding: 8px 6px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--accent);
    background: #fff8fa;
    font-size: 0.57rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    place-items: center;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.admin-post-pin:hover,
.admin-post-pin.is-active {
    color: var(--paper);
    background: var(--accent);
}

.admin-post-pin:disabled {
    opacity: 0.55;
    cursor: wait;
}

.admin-post-edit {
    border-right: 1px solid var(--line);
    color: var(--ink);
    background: #f5f3ee;
    font-size: 0.61rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    place-items: center;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.admin-post-edit:hover {
    color: var(--paper);
    background: var(--ink);
}

.admin-post-delete button {
    width: 100%;
    min-height: 100%;
    padding: 8px 5px;
    border: 0;
    color: var(--error);
    background: #fffafa;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.admin-post-delete button:hover {
    color: var(--paper);
    background: var(--error);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 42px;
    align-items: end;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    padding-block: 25px;
}

.about-page + .site-footer .footer-inner {
    padding-block: 13px;
}

.footer-inner strong {
    font-family: var(--serif);
    font-size: 1.45rem;
}

.footer-inner p {
    max-width: 390px;
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.footer-inner nav {
    display: flex;
    gap: 23px;
}

.footer-inner nav a,
.footer-inner small {
    color: var(--ink-soft);
    font-size: 0.7rem;
}

.footer-inner nav a:hover {
    color: var(--ink);
}

@media (max-width: 1550px) {
    .admin-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    }

    .cv-admin-panel {
        position: static;
        grid-column: 1 / -1;
    }

    .cv-admin-slots {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1240px) {
    .about-shell {
        width: min(1040px, calc(100% - 32px));
    }

    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-posts-panel {
        position: static;
    }
}

@media (max-width: 1040px) {
    .header-inner {
        grid-template-columns: auto minmax(220px, 1fr) auto;
        gap: 22px;
    }

    .brand {
        min-width: 0;
    }

    .brand small {
        display: none;
    }

    .site-nav {
        gap: 16px;
    }

    .user-chip {
        max-width: 130px;
    }

    .cv-panel {
        min-height: 820px;
    }

    .cv-panel-authenticated {
        min-height: 820px;
    }
}

@media (max-width: 900px) {
    .about-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 680px;
    }

    .profile-image-wrap {
        aspect-ratio: 4 / 4.55;
    }

    .cv-panel,
    .cv-panel-authenticated {
        min-height: 900px;
    }
}

@media (max-width: 820px) {
    .container,
    .footer-inner {
        width: min(100% - 32px, 680px);
    }

    .site-header {
        background: var(--paper);
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 12px 18px;
        width: calc(100% - 32px);
        padding: 12px 0 14px;
    }

    .search-form {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .menu-toggle {
        display: grid;
        grid-template-rows: repeat(2, 1px);
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 15px 11px;
        border: 1px solid var(--line);
        place-content: center;
        background: var(--paper);
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 1px;
        background: var(--ink);
        transition: transform 180ms ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 3;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: 11px;
        border-top: 1px solid var(--line);
    }

    .js .site-nav {
        display: none;
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .user-chip {
        max-width: min(100%, 250px);
    }

    .home-intro {
        gap: 8px;
        padding-block: 46px 58px;
    }

    .home-intro > p {
        max-width: 620px;
    }

    .admin-shell {
        width: min(100% - 32px, 680px);
    }

    .admin-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .cv-admin-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-tool-group-secondary {
        margin-left: 0;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0 45px;
    }

    .post-card-content {
        max-width: 650px;
    }

    .post-card-content h3 {
        font-size: clamp(2.15rem, 8vw, 3.2rem);
    }

    .profile-panel {
        grid-template-columns: 1fr;
    }

    .profile-image-wrap {
        min-height: 0;
        aspect-ratio: 4 / 4.55;
    }

    .profile-copy {
        padding: 42px 25px 35px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .auth-intro {
        min-height: 390px;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-inner small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .post-page {
        padding: 24px 0 38px;
    }

    .post-hero-wrap {
        aspect-ratio: 4 / 3;
    }

    .post-heading {
        width: calc(100% - 32px);
        margin-block: 38px 34px;
        text-align: left;
    }

    .post-heading .post-meta {
        justify-content: flex-start;
    }

    .post-body {
        width: calc(100% - 32px);
        font-size: 1.03rem;
    }

    .post-body .post-lead {
        font-size: 1.18em;
    }

    .post-body img {
        width: 100%;
        margin-inline: 0;
    }

    .post-body figure {
        width: 100%;
        margin-inline: 0;
    }

    .comments-section {
        width: calc(100% - 32px);
        margin-top: 65px;
    }

    .comment {
        grid-template-columns: 38px 1fr;
        gap: 12px;
    }

    .comment-avatar {
        width: 38px;
        height: 38px;
    }

    .comment-author {
        display: grid;
        gap: 2px;
    }

    .login-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .about-page {
        padding-block: 35px;
    }

    .admin-page {
        padding-block: 42px 65px;
    }

    .admin-heading h1 {
        font-size: 3.5rem;
    }

    .admin-form-panel {
        padding: 0;
    }

    .cv-admin-slots {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-cover-field {
        padding: 10px;
    }

    .editor-cover-drop {
        aspect-ratio: 4 / 3;
    }

    .editor-title-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-category-field {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .editor-category-field select {
        height: 56px;
    }

    .editor-new-category > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-title-input {
        height: 82px;
        font-size: 1.75rem;
    }

    .editor-toolbar {
        gap: 7px;
        padding: 9px;
    }

    .editor-tool-group {
        padding-right: 7px;
    }

    .rich-editor {
        min-height: 480px;
        padding: 32px 20px;
    }

    .editor-publish-options {
        padding: 20px 14px;
    }

    .editor-publish-row {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-publish-row .field,
    .editor-publish-row .button {
        width: 100%;
        min-width: 0;
    }

    .editor-cancel-link {
        align-self: flex-start;
        margin-left: 0;
    }

    .admin-post-link {
        grid-template-columns: 74px minmax(0, 1fr) auto;
    }

    .admin-post-list img {
        width: 74px;
        height: 58px;
    }

    .admin-post-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .admin-post-drag {
        grid-row: 1 / span 2;
        min-width: 40px;
    }

    .admin-post-link {
        grid-column: 2;
    }

    .admin-post-actions {
        grid-column: 2;
        grid-template-columns: 64px 54px 46px;
        min-height: 42px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .admin-post-pin,
    .admin-post-edit,
    .admin-post-delete button {
        font-size: 0.55rem;
    }

    .admin-post-delete button {
        width: 100%;
    }

    .about-shell {
        width: calc(100% - 24px);
    }

    .glass-panel {
        border-radius: 20px;
    }

    .profile-panel {
        padding: 10px;
    }

    .profile-image-wrap {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .profile-copy h1 {
        font-size: clamp(2.65rem, 12vw, 3.65rem);
    }

    .contact-links a {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .cv-panel {
        min-height: 540px;
        padding: 0;
    }

    .cv-panel-authenticated {
        min-height: 630px;
        padding: 0;
    }

    .cv-gate {
        min-height: 540px;
    }

    .cv-panel-authenticated .cv-gate {
        min-height: 630px;
    }

    .cv-viewer {
        inset: 8px;
        border-radius: 15px;
    }

    .cv-viewer-toolbar {
        padding-inline: 13px 10px;
    }

    .cv-viewer-toolbar span {
        display: none;
    }

    .cv-preview {
        width: 100%;
    }

    .cv-content {
        margin: 14px;
        padding: 22px;
    }

    .cv-content h2 {
        font-size: 2.8rem;
    }

    .auth-page {
        padding: 24px 12px 55px;
    }

    .auth-intro {
        min-height: 330px;
        padding: 38px 28px;
    }

    .auth-intro h1 {
        font-size: 3.4rem;
    }

    .auth-form-panel {
        padding: 38px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row .field + .field {
        margin-top: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
        padding-block: 20px;
    }

    .footer-inner nav,
    .footer-inner small {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
