:root {
    --ink: #090909;
    --ink-soft: #15120f;
    --muted: #746d63;
    --paper: #f4efe6;
    --surface: #fffaf1;
    --line: #d9cebd;
    --accent: #a8261d;
    --accent-dark: #541611;
    --gold: #c89a46;
    --shadow: 0 26px 80px rgba(18, 12, 8, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 16px clamp(18px, 4vw, 64px);
    background: rgba(9, 9, 9, .92);
    border-bottom: 1px solid rgba(255, 250, 241, .1);
    color: var(--surface);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 250, 241, .32);
    background: var(--accent);
    color: var(--surface);
    font-weight: 800;
}

.brand strong,
.nav,
.admin-link,
.button,
.section-eyebrow,
.text-link,
.category-tabs {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav > a,
.nav-dropdown > a,
.admin-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 12px;
    color: rgba(255, 250, 241, .78);
    transition: color .25s ease, background .25s ease;
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown:hover > a,
.nav-dropdown > a.active,
.admin-link:hover {
    background: rgba(255, 250, 241, .08);
    color: var(--surface);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    padding: 10px;
    background: rgba(9, 9, 9, .96);
    border: 1px solid rgba(255, 250, 241, .12);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    color: rgba(255, 250, 241, .74);
}

.dropdown-menu a:hover {
    background: rgba(255, 250, 241, .08);
    color: var(--surface);
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, .82fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    padding: clamp(44px, 6vw, 76px) clamp(18px, 6vw, 90px);
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 42%, rgba(168, 38, 29, .18), transparent 30%),
        linear-gradient(115deg, #050505, #120f0d 58%, #090909);
    color: var(--surface);
}

.hero-image {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 680px);
    aspect-ratio: 1.08 / 1;
    justify-self: center;
    background: url("ahmet-hasim-guler-hero.jpeg") center/cover no-repeat;
    border: 1px solid rgba(255, 250, 241, .14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .44);
    opacity: .86;
    transform: scale(.98);
    animation: heroZoom 12s ease-out forwards;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, .28)),
        linear-gradient(0deg, rgba(0, 0, 0, .58) 0%, transparent 44%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    width: min(760px, 100%);
    margin: 0;
}

.kicker,
.section-eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.05;
}

h1 {
    max-width: 850px;
    font-size: clamp(58px, 8vw, 112px);
}

.lead {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 250, 241, .84);
    font-size: clamp(19px, 2vw, 28px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(255, 250, 241, .32);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--surface);
    color: var(--ink);
}

.button-ghost {
    color: var(--surface);
}

.button-dark {
    margin-top: 12px;
    background: var(--ink);
    color: var(--surface);
}

.section,
.home-intro,
.page-hero {
    padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 90px);
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(42px, 7vw, 110px);
    min-height: 520px;
    background: var(--ink-soft);
    color: var(--surface);
}

.intro-title {
    grid-column: 2;
}

.home-intro h2,
.section-heading h2,
.about-preview h2,
.contact-section h2 {
    font-size: clamp(34px, 4.4vw, 62px);
}

.home-intro > p:last-child {
    grid-column: 1;
    grid-row: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 250, 241, .72);
    font-size: 18px;
}

.works-section {
    background:
        repeating-linear-gradient(110deg, rgba(9, 9, 9, .04) 0 2px, transparent 2px 8px) 0 0 / 100% 34px no-repeat,
        #fbf8f2;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.text-link {
    color: var(--accent);
}

.text-link:hover {
    color: var(--accent-dark);
}

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

.page-grid {
    margin-top: 28px;
}

.book-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 328px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(60, 49, 37, .1);
    transition: transform .28s ease, box-shadow .28s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.book-cover {
    display: grid;
    min-height: 328px;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(150deg, rgba(84, 22, 17, .92), rgba(168, 38, 29, .84) 62%, rgba(200, 154, 70, .88)),
        #211913;
    color: var(--surface);
    overflow: hidden;
}

.book-cover img {
    width: min(100%, 165px);
    height: auto;
    max-height: 250px;
    object-fit: contain;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .34);
}

.book-cover span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 78px;
    font-weight: 800;
}

.book-body {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.book-body > p,
.media-card > span {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.book-body h3 {
    font-size: 30px;
    line-height: 1.16;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.book-description,
.media-card p,
.page-hero p,
.about-text {
    color: var(--muted);
}

.media-strip,
.gallery-section {
    background: #e8dfd0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.media-card {
    min-height: 220px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .28s ease, box-shadow .28s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.media-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: -8px 0 18px;
    object-fit: cover;
}

.media-card h3 {
    font-size: 28px;
}

.about-preview,
.about-section,
.contact-section {
    display: grid;
    grid-template-columns: .55fr 1fr;
    gap: clamp(28px, 6vw, 86px);
}

.about-preview,
.about-section {
    background: var(--surface);
}

.about-text {
    max-width: 860px;
    font-size: 18px;
}

.about-text p:first-child {
    margin-top: 0;
    color: var(--ink);
    font-size: 22px;
}

.page-hero {
    min-height: 370px;
    display: grid;
    align-content: end;
    background:
        linear-gradient(110deg, rgba(9, 9, 9, .92), rgba(9, 9, 9, .66)),
        url("ahmet-hasim-guler-hero.jpeg") center 42%/cover no-repeat;
    color: var(--surface);
}

.page-hero h1 {
    font-size: clamp(54px, 9vw, 112px);
}

.page-hero p {
    max-width: 680px;
    color: rgba(255, 250, 241, .78);
    font-size: 20px;
}

.author-page-hero {
    min-height: 520px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.category-tabs a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

.category-tabs a.active,
.category-tabs a:hover {
    background: var(--ink);
    color: var(--surface);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-grid figure {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--line);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.06);
}

.gallery-grid figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 9px 11px;
    background: rgba(9, 9, 9, .76);
    color: var(--surface);
    font-size: 13px;
}

.contact-section {
    background: var(--accent-dark);
    color: var(--surface);
}

.contact-list {
    display: grid;
    align-content: start;
    gap: 12px;
    font-size: 20px;
}

.contact-list a,
.contact-list span {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 250, 241, .22);
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 6vw, 90px);
    background: var(--ink);
    color: rgba(255, 250, 241, .72);
    font-size: 14px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.reveal {
    animation: revealUp .7s ease both;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(.98);
    }
}

@media (max-width: 920px) {
    .site-header,
    .section-heading,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        display: none;
        margin-top: 4px;
        box-shadow: none;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .home-hero,
    .home-intro,
    .about-preview,
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero-image,
    .hero-content,
    .intro-title,
    .home-intro > p:last-child {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-image {
        width: min(100%, 560px);
        justify-self: start;
    }

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

    .book-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .home-hero {
        min-height: 620px;
    }

    .hero-content {
        margin-bottom: 42px;
    }

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-cover {
        min-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Polished navigation, editorial sections, and detail pages */
.site-header {
    min-height: 86px;
    padding-block: 18px;
}

.brand strong {
    font-size: 14px;
}

.nav {
    position: absolute;
    left: 50%;
    padding: 7px;
    border: 1px solid rgba(255, 250, 241, .12);
    background: rgba(255, 250, 241, .045);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
    transform: translateX(-50%);
}

.nav > a,
.nav-dropdown > a {
    min-height: 40px;
    padding: 0 16px;
}

.nav > a.active,
.nav-dropdown > a.active,
.nav > a:hover,
.nav-dropdown:hover > a {
    background: var(--surface);
    color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 250, 241, .2);
    background: rgba(255, 250, 241, .06);
    color: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.nav-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.hero-image {
    width: min(100%, 760px);
    aspect-ratio: 1.15 / 1;
}

.home-hero {
    grid-template-columns: minmax(0, .82fr) minmax(480px, 1fr);
}

.home-intro {
    min-height: 600px;
}

.home-intro h2 {
    font-size: clamp(42px, 5vw, 76px);
}

.media-strip {
    background:
        linear-gradient(90deg, rgba(9, 9, 9, .04), transparent 46%),
        #e8dfd0;
}

.media-strip .section-heading,
.works-section .section-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.media-card {
    position: relative;
    min-height: 260px;
    padding: 34px;
    overflow: hidden;
}

.media-card::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 22px;
    width: 70px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(.45);
    transform-origin: right;
    transition: transform .25s ease;
}

.media-card:hover::after {
    transform: scaleX(1);
}

.media-card h3 {
    max-width: 560px;
    font-size: clamp(28px, 3vw, 42px);
}

.about-preview {
    background:
        linear-gradient(90deg, rgba(84, 22, 17, .06), transparent 44%),
        var(--surface);
}

.about-preview .about-text {
    padding-left: clamp(0px, 4vw, 48px);
    border-left: 1px solid var(--line);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(220px, .5fr) minmax(260px, .7fr);
    align-items: start;
    padding-block: clamp(38px, 5vw, 64px);
    border-top: 1px solid rgba(255, 250, 241, .1);
}

.footer-brand {
    display: flex;
    gap: 16px;
}

.footer-brand > span {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    background: var(--accent);
    color: var(--surface);
    font-weight: 800;
}

.footer-brand strong {
    display: block;
    color: var(--surface);
    font-size: 18px;
}

.footer-brand p,
.footer-contact span {
    margin: 6px 0 0;
    color: rgba(255, 250, 241, .58);
}

.site-footer nav,
.footer-contact {
    display: grid;
    gap: 10px;
}

.site-footer nav a,
.footer-contact a {
    color: rgba(255, 250, 241, .78);
}

.site-footer nav a:hover,
.footer-contact a:hover {
    color: var(--surface);
}

.book-detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
    padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 90px);
    background:
        radial-gradient(circle at 25% 35%, rgba(168, 38, 29, .16), transparent 34%),
        linear-gradient(135deg, #090909, #19120f);
    color: var(--surface);
}

.detail-cover {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 34px;
    border: 1px solid rgba(255, 250, 241, .16);
    background: rgba(255, 250, 241, .06);
    box-shadow: var(--shadow);
}

.detail-cover img {
    max-height: 450px;
    object-fit: contain;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

.detail-cover span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 132px;
    font-weight: 800;
}

.detail-copy h1 {
    font-size: clamp(50px, 7vw, 108px);
}

.detail-subtitle {
    max-width: 720px;
    color: rgba(255, 250, 241, .76);
    font-size: 24px;
}

.book-meta {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin: 34px 0 0;
}

.book-meta div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    padding: 13px 16px;
    background: rgba(255, 250, 241, .08);
}

.book-meta dt {
    color: var(--gold);
    font-weight: 800;
}

.book-meta dd {
    margin: 0;
}

.detail-body,
.author-profile,
.media-feature {
    display: grid;
    grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 88px);
    background: var(--surface);
}

.detail-body h2,
.author-profile h2,
.media-feature h2 {
    font-size: clamp(34px, 4.5vw, 64px);
}

.detail-body article,
.author-profile article,
.media-feature > p {
    max-width: 900px;
    color: #4d463e;
    font-size: 20px;
    line-height: 1.9;
}

.author-hero {
    min-height: 560px;
    display: grid;
    align-items: end;
    padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 90px);
    background:
        linear-gradient(110deg, rgba(9, 9, 9, .94), rgba(9, 9, 9, .55)),
        url("ahmet-hasim-guler-hero.jpeg") right center / min(760px, 58vw) auto no-repeat,
        #090909;
    color: var(--surface);
}

.author-hero > div {
    max-width: 760px;
}

.author-hero h1 {
    font-size: clamp(56px, 8vw, 116px);
}

.author-hero p {
    max-width: 680px;
    color: rgba(255, 250, 241, .76);
    font-size: 21px;
}

.media-page-hero {
    background:
        linear-gradient(110deg, rgba(9, 9, 9, .94), rgba(9, 9, 9, .62)),
        url("ahmet-hasim-guler-hero.jpeg") right center / min(720px, 54vw) auto no-repeat,
        #090909;
}

.media-feature {
    background: var(--ink-soft);
    color: var(--surface);
}

.media-feature > p {
    color: rgba(255, 250, 241, .72);
}

.media-page-section {
    background: #fbf8f2;
}

.media-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card-large {
    min-height: 340px;
}

@media (max-width: 1100px) {
    .nav {
        position: static;
        transform: none;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .site-header {
        flex-direction: row;
        align-items: center;
    }

    .menu-toggle {
        display: grid;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        inset: 86px 14px auto 14px;
        display: grid;
        gap: 8px;
        max-height: calc(100vh - 112px);
        overflow: auto;
        padding: 14px;
        background: rgba(9, 9, 9, .98);
        border: 1px solid rgba(255, 250, 241, .12);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .24s ease, transform .24s ease;
    }

    .nav-open .nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav > a,
    .nav-dropdown > a,
    .dropdown-menu a {
        width: 100%;
        justify-content: space-between;
        min-height: 48px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin-top: 8px;
        background: rgba(255, 250, 241, .06);
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .site-footer,
    .book-detail-hero,
    .detail-body,
    .author-profile,
    .media-feature,
    .media-page-grid {
        grid-template-columns: 1fr;
    }

    .author-hero,
    .media-page-hero {
        background:
            linear-gradient(110deg, rgba(9, 9, 9, .94), rgba(9, 9, 9, .72)),
            url("ahmet-hasim-guler-hero.jpeg") center top / cover no-repeat,
            #090909;
    }
}

@media (max-width: 600px) {
    .book-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .detail-cover {
        min-height: 360px;
    }
}
