/* ============================================================
   theme.css — Librabooks tasarım tokenları
   Renkler, fontlar, tipografi, base reset
   Tüm sayfalar bu dosyayı yükler.
   ============================================================ */

:root {
  /* Marka renkleri */
  --burgundy:        #6B1E2E;
  --burgundy-dark:   #4A1020;
  --burgundy-light:  #8B2A3E;
  --burgundy-pale:   #F5EAEC;

  /* Nötr renkler */
  --cream:           #FAF7F2;
  --ink:             #1A1208;
  --muted:           #6B6057;
  --border:          #D9C9C4;
  --white:           #FFFFFF;

  /* Vurgu renkleri */
  --gold:            #D4B8BE;
  --gold-light:      #EDD8DC;

  /* Durum renkleri */
  --green:           #2D6A4F;
  --green-light:     #E8F5EE;
  --red:             #B83232;
  --red-light:       #FBEAEA;

  /* Tipografi */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-serif:      'Source Serif 4', Georgia, serif;
  --font-sans:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Boyutlar */
  --container-width: 1100px;
  --header-height:   80px;
  --topbar-height:   28px;

  /* Spacing */
  --space-xs:        4px;
  --space-sm:        8px;
  --space-md:        16px;
  --space-lg:        24px;
  --space-xl:        40px;
  --space-2xl:       64px;

  /* Radius */
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;

  /* Shadow */
  --shadow-sm:       0 2px 8px rgba(74,16,32,0.08);
  --shadow-md:       0 4px 16px rgba(74,16,32,0.12);
  --shadow-lg:       0 8px 32px rgba(74,16,32,0.18);

  /* Transition */
  --t-fast:          0.15s ease;
  --t-base:          0.2s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografi */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

p { margin-bottom: var(--space-md); }

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--burgundy-dark); }

small { font-size: 12px; color: var(--muted); }

em { font-style: italic; }
strong { font-weight: 600; }

ul, ol { list-style-position: inside; }

/* Lists default (sıkça override edilir) */
ul.menu, nav ul { list-style: none; }

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

/* Buttons base */
button { cursor: pointer; font-family: inherit; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--burgundy);
  color: var(--white);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .container { padding: 0 var(--space-md); }
}
