/* Tailwind tabanlı üretim paketi — Yazar Portfolyo 1.0 */
:root {
    --paper: #e6ded3;
    --paper-light: #fbf7ee;
    --ink: #171613;
    --muted: #6f685d;
    --line: rgba(23, 22, 19, .88);
    --sidebar: 320px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E")
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 100
}

.skip-link:focus {
    top: 16px
}

.site-shell {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    background: #e7decc;
    border-right: 2px solid var(--line)
}

.sidebar-inner {
    min-height: 100%;
    padding: 48px 38px 32px;
    display: flex;
    flex-direction: column
}

.profile-link {
    text-align: center;
    display: block
}

.profile-frame {
    display: block;
    width: 144px;
    height: 144px;
    margin: 0 auto 24px;
    padding: 7px;
    border: 1px solid var(--ink);
    transform: rotate(-1.5deg);
    background: var(--paper-light)
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transform: rotate(1.5deg)
}

.author-name {
    display: block;
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 28px;
    line-height: 1.15
}

.author-role {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.ink-rule {
    display: block;
    height: 1px;
    background: var(--ink);
    margin: 32px 0;
    position: relative
}

.ink-rule:after {
    content: "◆";
    font-size: 8px;
    background: #e7decc;
    padding: 0 8px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0
}

.menu li {
    border-bottom: 1px solid rgba(23, 22, 19, .22)
}

.menu a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 8px 4px;
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 18px
}

.menu a:before {
    content: "—";
    width: 0;
    opacity: 0;
    transition: .2s
}

.menu a:hover:before,
.menu .current-menu-item a:before {
    width: 24px;
    opacity: 1
}

.menu a:focus-visible,
.text-link:focus-visible,
.back-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 36px;
    color: var(--muted);
    font-size: 13px
}

.sidebar-foot p {
    margin: 0 0 16px
}

.sidebar-foot small {
    letter-spacing: .08em
}

.main-content {
    margin-left: var(--sidebar);
    min-height: 100vh
}

.page-wrap {
    width: min(1120px, calc(100% - 96px));
    margin: 0 auto;
    padding: 82px 0 72px
}

.hero {
    max-width: 760px
}

.hero.compact {
    max-width: 900px
}

.eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted)
}

h1,
h2,
h3 {
    font-family: "Libre Caslon Text", Georgia, serif
}

.hero h1,
.single-header h1,
.error-page h1 {
    font-size: clamp(52px, 7vw, 96px);
    line-height: .98;
    letter-spacing: -.045em;
    margin: 0;
    font-weight: 400
}

.hero-lead {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-style: italic;
    font-size: 19px;
    margin: 28px 0 0;
    color: #4f4a42
}

.ornament {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 54px 0
}

.ornament span {
    height: 1px;
    background: var(--ink);
    flex: 1
}

.ornament i {
    font-style: normal;
    font-size: 11px
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 44px
}

.work-card {
    min-width: 0
}

.work-card:nth-child(even) {
}

.work-image {
    display: block;
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #d7cdb9;
    border: 1px solid var(--ink)
}

.work-image:after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, .5);
    pointer-events: none
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
    filter: saturate(.78)
}

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

.cover-placeholder {
    display: flex;
    position: absolute;
    inset: 0;
    padding: 48px 32px;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    background: linear-gradient(135deg, #211e19, #504636);
    color: #f7f0df
}

.cover-placeholder:before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(247, 240, 223, .5)
}

.cover-placeholder b {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    max-width: 280px;
    line-height: 1.2
}

.cover-placeholder i {
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 10px
}

.work-copy {
    padding: 24px 2px 0
}

.work-meta {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(23, 22, 19, .35);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 10px;
    color: var(--muted)
}

.work-copy h2 {
    font-size: 32px;
    line-height: 1.18;
    font-weight: 400;
    margin: 18px 0 12px
}

.work-copy h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px
}

.work-copy p {
    color: #575147;
    margin: 0 0 18px
}

.text-link,
.back-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    font-size: 11px
}

.text-link span {
    transition: transform .2s
}

.text-link:hover span {
    transform: translateX(5px)
}

.navigation.pagination {
    margin-top: 72px
}

.nav-links {
    display: flex;
    gap: 8px
}

.page-numbers {
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--ink);
    display: grid;
    place-items: center
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--ink);
    color: var(--paper)
}

.empty-state {
    border: 1px solid var(--ink);
    padding: 64px;
    text-align: center
}

.single-header {
    max-width: 900px;
    margin: 46px 0 56px
}

.single-header h1 {
    font-size: clamp(48px, 6vw, 82px)
}

.single-layout {
    display: grid;
    gap: 72px;
    align-items: start
}

.single-cover {
    margin: 0;
    position: sticky;
    top: 48px
}

.single-cover img {
    width: 100%;
    border: 1px solid var(--ink)
}

.prose {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 18px;
    line-height: 1.85
}

.prose > *:first-child {
    margin-top: 0
}

.prose h2 {
    font-size: 34px;
    line-height: 1.2;
    margin: 48px 0 20px
}

.prose h3 {
    font-size: 26px
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 4px
}

.prose blockquote {
    margin: 40px 0;
    padding: 8px 0 8px 28px;
    border-left: 3px solid var(--ink);
    font-size: 24px;
    font-style: italic
}

.prose img {
    border: 1px solid var(--ink)
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--ink);
    font-family: "Libre Caslon Text", Georgia, serif
}

.about-layout {
    align-items: start
}

.about-image {
    margin: 0;
    transform: rotate(-1deg);
    border: 1px solid var(--ink);
    padding: 8px;
    background: var(--paper-light)
}

.site-footer {
    border-top: 1px solid var(--ink);
    margin: 0 48px;
    padding: 24px 0 30px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start
}

.error-page > p:not(.eyebrow) {
    font-size: 18px;
    max-width: 520px
}

.button-link {
    margin-top: 24px;
    background: var(--ink);
    color: var(--paper);
    padding: 13px 20px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px
}

.mobile-header,
.sidebar-overlay {
    display: none
}

@media(max-width:1100px) {
    :root {
        --sidebar: 280px
    }

    .sidebar-inner {
        padding-left: 28px;
        padding-right: 28px
    }

    .page-wrap {
        width: min(100% - 64px, 960px)
    }

    .works-grid {
        gap: 48px 28px
    }

    .single-layout {
        gap: 44px
    }
}

@media(max-width:900px) {
    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 50;
        height: 68px;
        padding: 0 20px;
        background: rgba(243, 237, 223, .95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--ink);
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .mobile-brand {
        font-family: "Libre Caslon Text", Georgia, serif;
        font-size: 20px
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px
    }

    .menu-toggle span {
        height: 1px;
        background: var(--ink);
        width: 24px;
        transition: .2s
    }

    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg)
    }

    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0
    }

    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg)
    }

    .sidebar {
        transform: translateX(-102%);
        transition: transform .28s ease;
        width: min(340px, 88vw);
        box-shadow: 12px 0 30px rgba(0, 0, 0, .12)
    }

    .menu-open {
        overflow: hidden
    }

    .menu-open .sidebar {
        transform: translateX(0)
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 35;
        inset: 0;
        background: rgba(23, 22, 19, .48);
        border: 0
    }

    .menu-open .sidebar-overlay {
        display: block
    }

    .main-content {
        margin-left: 0
    }

    .page-wrap {
        width: min(100% - 48px, 760px);
        padding-top: 56px
    }

    .hero h1,
    .single-header h1,
    .error-page h1 {
        font-size: clamp(46px, 11vw, 72px)
    }

    .single-layout,
    .about-layout {
        grid-template-columns: 1fr
    }

    .single-cover {
        position: static;
        max-width: 520px
    }

    .site-footer {
        margin: 0 24px
    }
}

@media(max-width:600px) {
    .page-wrap {
        width: calc(100% - 32px);
        padding: 42px 0 56px
    }

    .hero h1,
    .single-header h1,
    .error-page h1 {
        font-size: 44px
    }

    .hero-lead {
        font-size: 17px
    }

    .ornament {
        margin: 36px 0
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .work-card:nth-child(even) {
        padding-top: 0
    }

    .work-image {
        aspect-ratio: 4/5
    }

    .work-copy h2 {
        font-size: 28px
    }

    .single-header {
        margin: 34px 0 36px
    }

    .single-layout,
    .about-layout {
        gap: 36px
    }

    .prose {
        font-size: 17px;
        line-height: 1.75
    }

    .prose blockquote {
        font-size: 21px
    }

    .post-nav {
        flex-direction: column
    }

    .site-footer {
        margin: 0 16px;
        flex-direction: column;
        gap: 6px
    }

    .empty-state {
        padding: 40px 20px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important
    }
}
