/* Değişkenler, reset ve tipografi */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #1f1d1a;
  --color-text-muted: #6b665e;
  --color-border: #e6e1d8;
  --color-primary: #c2410c;
  --color-primary-hover: #9a3412;
  --color-primary-soft: #fff1e8;
  --color-danger: #b91c1c;
  --color-danger-soft: #fef2f2;
  --color-success: #15803d;
  --color-success-soft: #f0fdf4;
  --color-focus: #f97316;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(31 29 26 / 6%);
  --shadow-md: 0 4px 16px rgb(31 29 26 / 8%);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --container: 1080px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

[hidden] {
  display: none !important;
}

/* Ekranda gizli, ekran okuyucuda erişilebilir. Bileşen stilleri ezmesin diye !important. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
