/* guvencem.com — sade, içerik odaklı yerleşim. Harici kütüphane yok. */

:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1180px;
  --header: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Üst menü */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"],
body[data-nav="home"] .nav a[data-nav="home"] {
  color: var(--blue);
}

.search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.2rem 0.2rem 0.85rem;
}

.search input {
  width: 9.5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search input::placeholder {
  color: #94a3b8;
}

.search button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search button:hover {
  background: var(--blue);
}

/* Hero ve yazı ızgarası */

.site-main {
  padding: 2.5rem 0 3rem;
}

.kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 0.55rem;
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.lede {
  margin-top: 0.75rem;
  max-width: 62ch;
  color: var(--muted);
}

.notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 0.92rem;
}

.feature {
  margin-top: 1.75rem;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature:hover .feature-title {
  color: var(--blue);
}

.layout {
  margin-top: 2.75rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: 1.35rem;
}

.section-head p,
.empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.cards > li,
.cards > li > article {
  display: flex;
  min-width: 0;
}

.cards > li > article {
  width: 100%;
}

.card,
.feature {
  color: inherit;
}

.card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card:hover .card-title {
  color: var(--blue);
}

.media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.18), transparent 55%),
    linear-gradient(180deg, #e2e8f0, #f8fafc);
  overflow: hidden;
}

.feature .media {
  aspect-ratio: 16 / 11;
  min-height: 220px;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover img,
.feature:hover img {
  transform: scale(1.03);
}

.card-body,
.feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.feature-body {
  padding: 1.5rem 1.4rem;
  justify-content: center;
}

.tag {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-title,
.feature-title {
  font-size: 1.05rem;
  transition: color 0.15s ease;
}

.feature-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  margin-top: auto;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

.pager {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pager a {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
}

.pager a[aria-current="page"],
.pager a:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Yazı sayfası */

.article-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.article-kicker {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-kicker a {
  color: var(--blue);
  font-weight: 600;
}

.article h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 20ch;
}

.article .meta {
  margin-top: 0.8rem;
}

.article-cover {
  margin-top: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e2e8f0;
}

.article-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.prose {
  margin-top: 1.6rem;
  max-width: 68ch;
  font-size: 1.05rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
  color: var(--muted);
}

.prose pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: var(--navy);
  color: #e2e8f0;
  font-size: 0.9rem;
}

.prose img {
  border-radius: 12px;
}

.related {
  margin-top: 2.5rem;
}

.related h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.related a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
}

.related a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Kenar sütunu */

.sidebar {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
}

.panel h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list a,
.cat-list span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.cat-list li:first-child a,
.cat-list li:first-child span {
  border-top: 0;
}

.cat-list a:hover,
.cat-list a[aria-current="page"] {
  color: var(--blue);
}

.count {
  color: var(--muted);
  font-weight: 500;
}

.newsletter p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.newsletter form {
  display: grid;
  gap: 0.55rem;
}

.newsletter input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  outline: none;
}

.newsletter input:focus,
.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.newsletter button,
.btn {
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.newsletter button:hover,
.btn:hover {
  background: #1d4ed8;
}

.form-note {
  margin-top: 0.7rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Alt bilgi sayfaları */

.info {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.info section {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.info h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.info p {
  color: var(--muted);
  max-width: 68ch;
}

.info a {
  color: var(--blue);
  font-weight: 600;
}

/* Altlık */

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.site-footer a:hover {
  color: #fff;
}

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

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .feature .media {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (min-width: 1280px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-burger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
  }
}

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

  .media img {
    transition: none;
  }
}
