@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/archivo-govde.woff2") format("woff2");
}

@font-face {
    font-family: "Archivo Expanded";
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url("../fonts/archivo-genis.woff2") format("woff2");
}

:root {
    --paper: #fff;
    --mist: #eef3f1;
    --ink: #0e2a2f;
    --jade: #0a7b5c;
    --line: #d5e0dc;
    --muted: #4e6266;
    --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
    --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
}

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

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

/* Kısa sayfada footer ekranın altında kalır */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--text);
}

main { flex: 1 0 auto; }

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

a { color: inherit; text-underline-offset: .2em; }

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

.wrap {
    width: 100%;
    max-width: calc(1200px + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 0;
    left: var(--gutter);
    z-index: 10;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-120%);
}

.skip-link:focus { transform: none; }

/* Header: logo ve bölüm bağlantıları */
.site-header { border-bottom: 1px solid var(--line); }

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}

.site-logo { flex-shrink: 0; color: var(--ink); }

.brand { width: auto; height: 22px; fill: currentColor; }

.brand-mark { fill: var(--jade); }

.site-nav { display: flex; gap: 28px; font-weight: 500; }

.site-nav a { padding-block: 10px; text-decoration: none; }

.site-nav a:hover { text-decoration: underline 2px; text-underline-offset: 6px; }

/* Dar ekranda tek bağlantı: listenin sonuncusu (İletişim) */
@media (max-width: 599px) {
    .site-nav a:not(:last-child) { display: none; }
}

/* Giriş: başlığın son kelimesinden ekranın kenarına uzanan yarık, logodaki "e"nin açıklığıdır */
.intro {
    overflow: hidden;
    padding-block: clamp(56px, 9vw, 128px) clamp(48px, 7vw, 104px);
}

/* Son satır sağ kenara dayanmaz: yarık her genişlikte en az .8em görünür */
.intro-title {
    max-width: calc(100% - .8em);
    margin: 0;
    font: 800 clamp(2.25rem, 7.2vw, 5.25rem)/1.02 var(--display);
    letter-spacing: -.015em;
    text-wrap: balance;
}

.intro-end { white-space: nowrap; }

.intro-end::after {
    content: "";
    display: inline-block;
    width: 100vw;
    height: .09em;
    margin: 0 calc(-100vw - .25em) 0 .25em;
    vertical-align: .218em;
    background: var(--jade);
}

.intro-lead {
    max-width: 34em;
    margin: clamp(24px, 3vw, 40px) 0 0;
    font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
    line-height: 1.5;
    color: var(--muted);
}

.section-title {
    margin: 0;
    font: 700 clamp(1.75rem, 1.2rem + 2vw, 2.5rem)/1.1 var(--display);
    letter-spacing: -.01em;
}

/* Projeler: her proje kendi sitesinin renkleriyle */
.project {
    padding-block: clamp(48px, 7vw, 88px);
    color: #fff;
}

.project-inner { display: grid; gap: 32px; }

.project-name { margin: 0; }

.project-name img { width: 400px; }

.project-summary {
    margin: 0;
    font: 700 clamp(1.375rem, 1rem + 1.2vw, 1.875rem)/1.25 var(--display);
}

.project-facts {
    display: grid;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: var(--soft);
}

.project-facts li { position: relative; padding-left: 22px; }

.project-facts li::before {
    content: "";
    position: absolute;
    top: .78em;
    left: 0;
    width: 12px;
    height: 2px;
    background: var(--accent);
}

.project-link {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 20px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.project-link:hover { background: var(--accent-hover); }

.project-soon { margin: 32px 0 0; font-weight: 700; color: var(--accent); }

.project :focus-visible { outline-color: #fff; }

.project--afacanoyuncu {
    --soft: rgba(255, 255, 255, .84);
    --accent: #efbf1a;
    --accent-hover: #f6cd3c;
    --on-accent: #3b1046;
    border-top: 5px solid #efbf1a;
    background: linear-gradient(180deg, #8e2bb2 0%, #64156f 100%);
}

.project--depremistatistik {
    --soft: #a9bccf;
    --accent: #ff5a36;
    --accent-hover: #ff7655;
    --on-accent: #0b1f33;
    border-top: 2px solid #ff5a36;
    background: #0b1f33;
}

/* Hakkında */
.about { padding-block: clamp(64px, 9vw, 128px); }

.about-inner { display: grid; gap: 24px; }

.about-text p {
    max-width: 34em;
    margin: 0 0 1em;
    font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
}

.about-text p:last-child { margin-bottom: 0; }

/* İletişim: adres, sütun genişliğine sığacak boyutta */
.contact {
    padding-block: clamp(64px, 9vw, 120px);
    background: var(--mist);
}

.contact-text { margin: 16px 0 24px; color: var(--muted); }

.contact-mail {
    font: 700 min(3rem, calc((100vw - 2 * var(--gutter)) / 17))/1.2 var(--display);
    text-decoration: underline .08em var(--jade);
    text-underline-offset: .2em;
    overflow-wrap: anywhere;
}

.contact-mail:hover { color: var(--jade); }

/* Footer */
.site-footer {
    padding-block: 32px;
    background: var(--ink);
    color: #c6d6d2;
    font-size: .9375rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin: 0; }

.brand-tile { width: 28px; fill: #fff; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.footer-links a { color: #fff; text-decoration: none; }

.footer-links a:hover { text-decoration: underline; }

.site-footer :focus-visible { outline-color: #fff; }

/* Sayfa, arşiv ve 404 */
.text-page { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 128px); }

.page-title {
    margin: 0 0 32px;
    font: 800 clamp(2rem, 1.4rem + 3vw, 3.5rem)/1.05 var(--display);
    letter-spacing: -.01em;
    text-wrap: balance;
}

.prose { max-width: 44em; }

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

.prose h2, .prose h3 { margin: 2em 0 .6em; font-family: var(--display); line-height: 1.25; }

.prose h2 { font-size: 1.5rem; }

.prose h3 { font-size: 1.25rem; }

.prose a, .listing a { color: var(--jade); }

.prose img { height: auto; }

.listing { margin: 0; padding-left: 1.2em; }

.listing li + li { margin-top: 8px; }

@media (min-width: 600px) {
    .site-header-inner { min-height: 72px; }

    .brand { height: 26px; }
}

@media (min-width: 768px) {
    body { font-size: 1.125rem; }
}

@media (min-width: 900px) {
    .project-inner, .about-inner {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
        align-items: start;
    }
}

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

    .intro-end::after {
        transform-origin: left;
        animation: slot 900ms cubic-bezier(.2, .7, .1, 1) 250ms both;
    }

    @keyframes slot {
        from { transform: scaleX(0); }
    }
}
