/* ==========================================================================
   Academy İzmir — Temel stiller (v-1)
   Reset, html/body, tipografi temeli, link, focus, görseller, reduced-motion.
   Bileşen stili burada yazılmaz, components.css içindedir.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-5));
}

body {
  min-height: var(--screen-min);
  min-height: var(--screen-min-dynamic);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Başlıklar: display serif ------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-display);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--weight-body-strong);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

address {
  font-style: normal;
}

hr {
  height: 0;
  border: 0;
  border-top: var(--line-width) solid var(--color-line);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* ---- Link --------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Görsel ve medya ---------------------------------------------------- */
img,
picture,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  font-style: italic;
}

/* ---- Form elemanları temel ---------------------------------------------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ---- Focus: her etkileşimli öğede görünür ------------------------------- */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: var(--focus-ring-offset);
}

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

/* ---- Yardımcı: yalnızca ekran okuyucu ----------------------------------- */
.visually-hidden {
  position: absolute;
  width: var(--line-width);
  height: var(--line-width);
  padding: 0;
  margin: calc(var(--line-width) * -1);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: var(--duration-fast) !important;
    animation-iteration-count: 1 !important;
    transition-duration: var(--duration-fast) !important;
    scroll-behavior: auto !important;
  }
}
