/*
 * Düzen: yapışkan, ince çizgili üst nav. Girişte solda isim + metin + iki buton, sağda kare
 * portre ve altında küçük ikonlu iletişim linkleri. Bölümler (projeler, deneyim, iletişim) aynı
 * kolon genişliğinde, satırlar arasında ince çizgiler. Nötr gri taban, vurgu rengi petrol.
 */
@font-face {
    font-family: "Mona Sans";
    src: url("/assets/fonts/mona-sans-latin.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Mona Sans";
    src: url("/assets/fonts/mona-sans-latin-ext.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #f4f5f7;
    --placeholder: #e4e7eb;
    --fg: #17191e;
    --text: #2f343d;
    --muted: #5f6672;
    --rule: #dde0e5;
    --accent: #0f6e6e;
    --btn-bg: #0f6e6e;
    --btn-fg: #ffffff;
    --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --nav-height: 72px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #15171c;
        --placeholder: #22252c;
        --fg: #e8eaee;
        --text: #cdd1d8;
        --muted: #9ba2ae;
        --rule: #2a2e36;
        --accent: #6cc4bd;
        --btn-bg: #6cc4bd;
        --btn-fg: #10201f;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #15171c;
    --placeholder: #22252c;
    --fg: #e8eaee;
    --text: #cdd1d8;
    --muted: #9ba2ae;
    --rule: #2a2e36;
    --accent: #6cc4bd;
    --btn-bg: #6cc4bd;
    --btn-fg: #10201f;
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    max-width: 1080px;
    margin-inline: auto;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 50;
    padding: 8px 12px;
    background: var(--fg);
    color: var(--bg);
}

.skip-link:focus {
    top: 12px;
}

/* Nav */

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: 21;
    height: env(safe-area-inset-top, 0px);
    background: var(--bg);
}

.site-nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}

.site-nav .container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 36px;
    height: var(--nav-height);
}

.brand {
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.menu {
    display: flex;
    gap: 30px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding-block: 24px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
}

.menu a:hover,
.menu a[aria-current] {
    color: var(--fg);
    border-bottom-color: var(--accent);
}

.nav-aside {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
}

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

.nav-aside a:hover {
    color: var(--fg);
}

.nav-aside .on {
    color: var(--fg);
}

.nav-aside .cv {
    color: var(--accent);
    font-weight: 600;
}

.theme-toggle,
.menu-toggle {
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: none;
    color: var(--fg);
    font: inherit;
    cursor: pointer;
}

.theme-toggle:hover,
.menu-toggle:hover {
    border-color: var(--muted);
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

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

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun {
        display: block;
    }

    :root:not([data-theme="light"]) .theme-toggle .moon {
        display: none;
    }
}

:root[data-theme="dark"] .theme-toggle .sun {
    display: block;
}

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

.menu-toggle {
    display: none;
    padding: 6px 12px;
}

/* Giriş */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
        "text photo"
        "text contact";
    column-gap: 64px;
    row-gap: 16px;
    padding-block: 80px;
}

.hero-text {
    grid-area: text;
    align-self: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 1.8rem + 2.8vw, 3.75rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.role {
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 1.3rem;
}

.intro {
    margin: 0;
    max-width: 34em;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--btn-bg) 85%, var(--fg));
}

.btn-secondary {
    border-color: color-mix(in srgb, var(--fg) 30%, transparent);
    color: var(--fg);
}

.btn-secondary:hover {
    border-color: var(--fg);
}

.portrait {
    grid-area: photo;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 12px;
    background: var(--placeholder);
}

.portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

/* Koyu temada fotoğrafın beyaz zemini parlamasın */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .portrait img {
        filter: brightness(0.88);
    }
}

:root[data-theme="dark"] .portrait img {
    filter: brightness(0.88);
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.hero .social {
    grid-area: contact;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    text-decoration: none;
}

.social .place {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.social a:hover {
    color: var(--fg);
}

.social svg {
    width: 15px;
    height: 15px;
    flex: none;
}

/* Bölümler */

.section {
    padding-block: 24px 72px;
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.section h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 600;
}

.section .note {
    margin: 0 0 24px;
    max-width: 40em;
    color: var(--muted);
}

.hero {
    scroll-margin-top: var(--nav-height);
}

/* Projeler */

.project {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    padding-block: 32px;
    border-top: 1px solid var(--rule);
}

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

.shot {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--placeholder);
    color: var(--muted);
    font-size: 0.9rem;
    object-fit: cover;
}

.project h3,
.job h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 600;
}

.project p,
.job p {
    margin: 0 0 14px;
    max-width: 40em;
    color: var(--muted);
}

.tech {
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 500;
}

.soon,
.live {
    margin-left: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.live {
    color: var(--fg);
    font-weight: 600;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

/* Deneyim */

.subhead {
    margin: 48px 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
}


.job {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    padding-block: 28px;
    border-top: 1px solid var(--rule);
}

.job .when {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.job .company {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 500;
}

.job .transfer {
    margin: -6px 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.job p:last-child,
.project p:last-child {
    margin-bottom: 0;
}

.cv-note {
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
}

.cv-note a {
    color: var(--accent);
    font-weight: 600;
}

/* Yetenekler */

.skills {
    margin: 0;
}

.skill-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    padding-block: 18px;
    border-top: 1px solid var(--rule);
}

.skill-row dt {
    color: var(--muted);
}

.skill-row dd {
    margin: 0;
    color: var(--text);
}

/* İletişim */

.contact {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}

.contact p {
    margin: 0 0 20px;
    max-width: 34em;
    color: var(--text);
}

.email-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 24px;
}

.email {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
    font-weight: 600;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    overflow-wrap: anywhere;
}

.copy {
    padding: 5px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: none;
    color: var(--fg);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.copy:hover {
    border-color: var(--muted);
}

/* Alt bilgi */

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 28px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    text-decoration-color: var(--rule);
    text-underline-offset: 4px;
}

/* 404 */

.notfound {
    padding-block: 96px;
}

.notfound h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    font-weight: 600;
}

.notfound p {
    margin: 0 0 8px;
    max-width: 36em;
    color: var(--text);
}

/* Tablet ve telefon */

@media (max-width: 860px) {
    .menu {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

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

    .menu.is-open {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 max(24px, env(safe-area-inset-left, 0px)) 12px;
        background: var(--bg);
        border-bottom: 1px solid var(--rule);
    }

    .menu.is-open a {
        padding-block: 12px;
        border-bottom: 0;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "photo"
            "text"
            "contact";
        row-gap: 28px;
        padding-block: 40px 48px;
    }

    .portrait {
        width: 160px;
    }

    .project,
    .job,
    .contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .skill-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .project {
        gap: 18px;
    }
}

@media (max-width: 460px) {
    .nav-aside .lang-switch {
        display: none;
    }

    .site-nav .container {
        gap: 12px;
    }
}
