/* Shared styles for ipeksevvalsaritas.com. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --border: #e4dccf;
  --text: #1b1b1f;
  --muted: #5f5a52;
  --accent: #8a5a2b;
  --on-accent: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131a;
    --surface: #1f1c25;
    --border: #36313f;
    --text: #efe9e0;
    --muted: #b2a99c;
    --accent: #e0b887;
    --on-accent: #15131a;
  }
}

:root[data-theme="dark"] {
  --bg: #15131a;
  --surface: #1f1c25;
  --border: #36313f;
  --text: #efe9e0;
  --muted: #b2a99c;
  --accent: #e0b887;
  --on-accent: #15131a;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  padding: 48px 0 24px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding: 0 0 48px;
  margin: 0;
  list-style: none;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.actions {
  padding: 0 0 48px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}
