/* ============================================================
   base.css — Fontlar, reset, tipografi, container ve yardımcılar
   tokens.css'ten SONRA yüklenir.
   ============================================================ */

/* ---------------- Font (self-hosted) ---------------- */
@font-face {
    font-family: 'Arimo';
    src: url('/lib/fonts/Arimo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arimo';
    src: url('/lib/fonts/Arimo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arimo';
    src: url('/lib/fonts/Arimo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arimo';
    src: url('/lib/fonts/Arimo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

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

body {
    margin: 0;
    font-family: var(--od-font);
    font-size: var(--od-fs-base);
    line-height: var(--od-lh);
    color: var(--od-text);
    background: var(--od-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5rem;
    color: var(--od-ink);
    font-weight: 700;
    line-height: var(--od-lh-tight);
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--od-secondary);
    text-decoration: none;
    transition: color var(--od-t-fast);
}

a:hover {
    color: var(--od-primary);
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

ul, ol {
    margin: 0;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--od-primary);
    outline-offset: 2px;
}

::selection {
    background: var(--od-primary);
    color: var(--od-on-primary);
}

/* ---------------- Container ---------------- */
.od-container {
    width: 100%;
    max-width: var(--od-container);
    margin-inline: auto;
    padding-inline: var(--od-gutter);
}

/* ---------------- Bölüm (section) iskeleti ---------------- */
.od-section {
    padding-block: var(--od-section-y);
}

.od-section--tight {
    padding-block: calc(var(--od-section-y) * .6);
}

.od-section--surface {
    background: var(--od-surface);
}

.od-section--alt {
    background: var(--od-surface-2);
}

.od-section--dark {
    background: var(--od-secondary-deep);
    color: var(--od-dark-text);
}

.od-section--dark h2,
.od-section--dark h3 {
    color: #fff;
}

/* ---------------- Bölüm başlığı ---------------- */
.od-section-head {
    max-width: 44rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.od-section-head--start {
    margin-inline: 0;
    text-align: left;
}

.od-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .8rem;
    margin-bottom: .85rem;
    border-radius: var(--od-r-pill);
    background: var(--od-primary-100);
    color: var(--od-primary-active);
    font-size: var(--od-fs-xs);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.od-section--dark .od-eyebrow {
    background: var(--od-primary-soft);
    color: var(--od-primary);
}

.od-title {
    font-size: var(--od-fs-h2);
    margin-bottom: .75rem;
}

.od-title .hl {
    color: var(--od-primary);
}

.od-section--dark .od-title {
    color: #fff;
}

.od-lead {
    margin: 0;
    color: var(--od-muted);
    font-size: var(--od-fs-lg);
    line-height: 1.55;
}

.od-section--dark .od-lead {
    color: var(--od-dark-text);
}

/* ---------------- Yardımcı sınıflar ---------------- */
.od-text-primary { color: var(--od-primary); }
.od-text-secondary { color: var(--od-secondary); }
.od-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------- Scroll-reveal ----------------
   JS (core/reveal.js) görünür olan elemanlara .is-visible ekler. */
.od-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

.od-reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    .od-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

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