:root {
  --qx-green: #14532d;
  --qx-green-deep: #0c3a1f;
  --qx-green-soft: #e6f1ea;
  --qx-yellow: #fde68a;
  --qx-yellow-deep: #f5cf3f;
  --qx-ink: #1a2420;
  --qx-muted: #55645c;
  --qx-line: #d9e3dc;
  --qx-paper: #fbfdfb;
  --qx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --qx-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.qx-body {
  margin: 0;
  font-family: var(--qx-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--qx-ink);
  background: var(--qx-paper);
}
h1, h2, h3, h4 { font-family: var(--qx-mono); font-weight: 700; line-height: 1.2; color: var(--qx-green); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--qx-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--qx-green-deep); }
:focus-visible { outline: 3px solid var(--qx-yellow-deep); outline-offset: 3px; border-radius: 3px; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .95rem; }
th, td { border: 1px solid var(--qx-line); padding: .55em .7em; text-align: left; }
th { background: var(--qx-green-soft); font-family: var(--qx-mono); font-weight: 500; }

.qx-skip { position: absolute; left: 1rem; top: -4rem; background: var(--qx-yellow); color: var(--qx-green-deep); padding: .6rem 1rem; border-radius: 6px; z-index: 100; font-weight: 600; transition: top .15s; }
.qx-skip:focus { top: 1rem; }

.qx-wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.qx-shell { display: flex; flex-direction: column; min-height: 100vh; }
.qx-main { flex: 1; }

/* header */
.qx-top { background: var(--qx-green); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 var(--qx-yellow); }
.qx-top-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 1rem; flex-wrap: wrap; }
.qx-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--qx-mono); font-weight: 700; font-size: 1.1rem; }
.qx-brand-mark { width: 30px; height: 30px; }
.qx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
.qx-nav a { color: #e9f3ec; text-decoration: none; padding: .45rem .8rem; border-radius: 6px; font-weight: 500; font-size: .95rem; }
.qx-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.qx-nav a[aria-current="page"] { background: var(--qx-yellow); color: var(--qx-green-deep); }
.qx-nav-toggle, .qx-burger { display: none; }

/* hero */
.qx-hero { background: linear-gradient(180deg, var(--qx-green) 0%, var(--qx-green-deep) 100%); color: #fff; padding: clamp(2.5rem, 7vw, 5rem) 0; }
.qx-hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.qx-hero h1 { color: #fff; margin-bottom: .5em; }
.qx-kicker { font-family: var(--qx-mono); color: var(--qx-yellow); font-size: .9rem; letter-spacing: .05em; margin-bottom: .8em; }
.qx-tagline { font-size: 1.15rem; color: #d6e6db; max-width: 48ch; }
.qx-hero-art svg { width: 100%; max-width: 380px; display: block; margin-inline: auto; }
.qx-hero-fig { margin: 0; }
.qx-hero-img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 3px solid var(--qx-yellow); box-shadow: 0 18px 40px rgba(0,0,0,.35); }

.qx-btn { display: inline-block; background: var(--qx-yellow); color: var(--qx-green-deep); font-family: var(--qx-mono); font-weight: 700; text-decoration: none; padding: .8rem 1.5rem; border-radius: 8px; border: 2px solid var(--qx-yellow); cursor: pointer; font-size: .95rem; transition: transform .12s, background .12s; }
.qx-btn:hover { background: var(--qx-yellow-deep); border-color: var(--qx-yellow-deep); color: var(--qx-green-deep); transform: translateY(-1px); }
.qx-btn-ghost { background: transparent; color: var(--qx-green); border-color: var(--qx-green); }
.qx-btn-ghost:hover { background: var(--qx-green); color: #fff; border-color: var(--qx-green); }

/* sayfa başı */
.qx-phead { background: var(--qx-green-soft); border-bottom: 1px solid var(--qx-line); padding: 2rem 0 1.6rem; }
.qx-phead h1 { margin: 0; }
/* görselli sayfa başı: img H1'in arkasında, üstünde gradient perde */
.qx-phead--img { position: relative; isolation: isolate; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; padding: 3.2rem 0 2rem; border-bottom: 4px solid var(--qx-yellow); }
.qx-phead-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; }
.qx-phead-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,58,31,.94) 0%, rgba(20,83,45,.78) 55%, rgba(20,83,45,.35) 100%); }
.qx-phead-in { position: relative; width: min(1120px, 100% - 2.5rem); }
.qx-phead--img h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.qx-phead--img .qx-crumb { color: #d6e6db; }
.qx-phead--img .qx-crumb a { color: var(--qx-yellow); }
.qx-crumb { font-family: var(--qx-mono); font-size: .8rem; color: var(--qx-muted); margin-bottom: .6rem; }
.qx-crumb a { text-decoration: none; }

.qx-content { padding: 2.2rem 0; max-width: 78ch; }
.qx-content h2 { margin-top: 1.6em; }
.qx-content h2:first-child { margin-top: 0; }

/* yatay kaydırmalı kartlar */
.qx-rail-sec { padding: 2.5rem 0 1.5rem; background: #fff; border-block: 1px solid var(--qx-line); }
.qx-rail-hint { color: var(--qx-muted); font-size: .9rem; font-family: var(--qx-mono); }
.qx-rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem calc((100% - min(1120px, 100% - 2.5rem)) / 2) 1.4rem; scrollbar-color: var(--qx-green) var(--qx-green-soft); -webkit-overflow-scrolling: touch; }
.qx-rail::-webkit-scrollbar { height: 8px; }
.qx-rail::-webkit-scrollbar-track { background: var(--qx-green-soft); border-radius: 4px; }
.qx-rail::-webkit-scrollbar-thumb { background: var(--qx-green); border-radius: 4px; }
.qx-card { flex: 0 0 min(290px, 78vw); scroll-snap-align: start; background: var(--qx-paper); border: 1px solid var(--qx-line); border-top: 4px solid var(--qx-yellow); border-radius: 10px; padding: 1.3rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; transition: box-shadow .15s, transform .15s; }
.qx-card:hover { box-shadow: 0 10px 24px rgba(20,83,45,.12); transform: translateY(-2px); }
.qx-card-no { font-family: var(--qx-mono); color: var(--qx-muted); font-size: .8rem; }
.qx-card h3 { margin-bottom: .3em; }
.qx-card p { color: var(--qx-muted); font-size: .93rem; flex: 1; }
.qx-card-link { font-family: var(--qx-mono); font-size: .85rem; text-decoration: none; font-weight: 700; }

/* dikey zaman çizelgesi */
.qx-tl-sec { padding: 2.8rem 0; }
.qx-tl { list-style: none; margin: 0 0 1.5rem; padding: 0; position: relative; }
.qx-tl::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--qx-yellow), var(--qx-green)); border-radius: 2px; }
.qx-tl-item { display: grid; grid-template-columns: 40px 1fr; gap: 1.1rem; margin-bottom: 1.6rem; position: relative; }
.qx-tl-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--qx-green); color: var(--qx-yellow); font-family: var(--qx-mono); font-weight: 700; display: grid; place-items: center; border: 3px solid var(--qx-paper); box-shadow: 0 0 0 2px var(--qx-yellow); }
.qx-tl-item h3 { margin-bottom: .2em; }
.qx-tl-item p { color: var(--qx-muted); margin: 0; }

/* bağlantı blokları */
.qx-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding-bottom: 2.5rem; }
.qx-tile { display: flex; flex-direction: column; gap: .2rem; background: var(--qx-green); color: #fff; text-decoration: none; padding: 1.4rem 1.3rem; border-radius: 10px; border-left: 6px solid var(--qx-yellow); }
.qx-tile strong { font-family: var(--qx-mono); font-size: 1.1rem; }
.qx-tile span { color: #cfe2d5; font-size: .92rem; }
.qx-tile:hover { background: var(--qx-green-deep); color: #fff; }

/* SSS */
.qx-faq-sec { background: #fff; border-top: 1px solid var(--qx-line); padding: 2.6rem 0 3rem; }
.qx-faq-full { padding-bottom: 3rem; }
.qx-faq-list { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.qx-faq { border: 1px solid var(--qx-line); border-radius: 8px; background: var(--qx-paper); }
.qx-faq summary { cursor: pointer; padding: .9rem 1.1rem; font-family: var(--qx-mono); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.qx-faq summary::-webkit-details-marker { display: none; }
.qx-faq summary::after { content: "+"; color: var(--qx-green); font-weight: 700; font-size: 1.2rem; }
.qx-faq[open] summary::after { content: "−"; }
.qx-faq[open] summary { background: var(--qx-green-soft); border-radius: 8px 8px 0 0; }
.qx-faq-a { padding: .8rem 1.1rem 1rem; color: var(--qx-muted); }
.qx-link-more { font-family: var(--qx-mono); font-weight: 700; text-decoration: none; }

/* iletişim */
.qx-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.4rem 0 3rem; }
.qx-channels { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.qx-channels li { display: flex; gap: .8rem; align-items: baseline; }
.qx-ch-label { font-family: var(--qx-mono); font-size: .8rem; color: var(--qx-muted); min-width: 80px; }
.qx-form { display: grid; gap: .45rem; background: #fff; border: 1px solid var(--qx-line); padding: 1.5rem; border-radius: 10px; }
.qx-form label { font-family: var(--qx-mono); font-size: .85rem; font-weight: 500; margin-top: .5rem; }
.qx-form input, .qx-form textarea { font: inherit; padding: .7rem .8rem; border: 1px solid var(--qx-line); border-radius: 6px; background: var(--qx-paper); width: 100%; }
.qx-form input:focus, .qx-form textarea:focus { border-color: var(--qx-green); }
.qx-form .qx-btn { margin-top: 1rem; justify-self: start; }
.qx-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qx-alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 500; }
.qx-alert-ok { background: var(--qx-green-soft); color: var(--qx-green-deep); border: 1px solid #a9cdb6; }
.qx-alert-err { background: #fff4e5; color: #7a3d00; border: 1px solid #f3c68a; }

/* 404 */
.qx-404 { text-align: center; padding: 4rem 0; }
.qx-code { font-family: var(--qx-mono); font-size: 5rem; color: var(--qx-yellow-deep); font-weight: 700; margin: 0; line-height: 1; }

/* footer */
.qx-foot { background: var(--qx-green-deep); color: #c9dccf; padding: 2rem 0 1.6rem; border-top: 4px solid var(--qx-yellow); }
.qx-foot-in { display: grid; gap: .6rem; }
.qx-foot-text { margin: 0; max-width: 70ch; }
.qx-foot-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; }
.qx-foot-links a { color: var(--qx-yellow); text-decoration: none; }
.qx-foot-links a:hover { text-decoration: underline; }
.qx-copy { margin: 0; font-family: var(--qx-mono); font-size: .8rem; color: #93ad9b; }

@media (max-width: 820px) {
  .qx-hero-in, .qx-contact { grid-template-columns: 1fr; }
  .qx-hero-art { order: -1; }
  .qx-hero-art svg { max-width: 240px; }
  .qx-hero-img { border-width: 2px; }
  .qx-phead--img { min-height: 200px; }
  .qx-burger { display: flex; flex-direction: column; gap: 5px; padding: .5rem; cursor: pointer; border-radius: 6px; }
  .qx-burger span { display: block; width: 24px; height: 3px; background: var(--qx-yellow); border-radius: 2px; }
  .qx-nav { display: none; width: 100%; padding-bottom: .8rem; }
  .qx-nav ul { flex-direction: column; }
  .qx-nav a { display: block; padding: .7rem .8rem; }
  .qx-nav-toggle:checked ~ .qx-nav { display: block; }
  .qx-nav-toggle:focus-visible + .qx-burger { outline: 3px solid var(--qx-yellow-deep); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qx-card, .qx-btn { transition: none; }
}

/* ---------- blog ---------- */
.qx-phead-lead { margin: .6rem 0 0; color: var(--qx-muted); max-width: 60ch; }
.qx-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; padding: 2.2rem 0 1rem; }
.qx-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--qx-line); border-radius: 10px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.qx-post-card:hover { box-shadow: 0 10px 24px rgba(20,83,45,.12); transform: translateY(-2px); }
.qx-post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.qx-post-card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.qx-post-card time, .qx-post-meta, .qx-note time { font-family: var(--qx-mono); font-size: .8rem; color: var(--qx-muted); }
.qx-post-card h2 { font-size: 1.15rem; margin: 0; }
.qx-post-card h2 a { text-decoration: none; }
.qx-post-card h2 a:hover { text-decoration: underline; }
.qx-post-card p { color: var(--qx-muted); font-size: .93rem; margin: 0; }
.qx-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0 2.5rem; }
.qx-pager-info { font-family: var(--qx-mono); font-size: .85rem; color: var(--qx-muted); }
.qx-post-meta { margin: .4rem 0 0; }
.qx-post-fig { margin: 1.8rem auto 0; }
.qx-post-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 3px solid var(--qx-yellow); }
.qx-post-body { padding-top: 1.8rem; }
.qx-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 0 2.4rem; }
.qx-post-nav a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; font-weight: 600; border: 1px solid var(--qx-line); border-left: 5px solid var(--qx-yellow); border-radius: 8px; padding: .9rem 1rem; background: #fff; }
.qx-post-nav a small { font-family: var(--qx-mono); font-weight: 500; color: var(--qx-muted); font-size: .78rem; }
.qx-post-nav-next { text-align: right; border-left: 1px solid var(--qx-line) !important; border-right: 5px solid var(--qx-yellow) !important; }
.qx-related-sec { background: #fff; border-top: 1px solid var(--qx-line); padding: 2.4rem 0 3rem; }
.qx-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.qx-related-item { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; background: var(--qx-green-soft); border-radius: 8px; padding: 1rem 1.1rem; border-top: 4px solid var(--qx-green); }
.qx-related-item:hover { background: var(--qx-yellow); }
.qx-related-item span { font-family: var(--qx-mono); font-size: .78rem; color: var(--qx-muted); }
/* ana sayfa notları */
.qx-notes-sec { padding: 2.4rem 0 2.8rem; background: var(--qx-green-soft); border-block: 1px solid var(--qx-line); }
.qx-notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.qx-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: .6rem; }
.qx-note { background: var(--qx-paper); border: 1px solid var(--qx-line); border-radius: 10px; padding: 1.2rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.qx-note-no { font-family: var(--qx-mono); color: var(--qx-yellow-deep); font-weight: 700; font-size: .85rem; }
.qx-note h3 { margin: 0; font-size: 1.05rem; }
.qx-note h3 a { text-decoration: none; }
.qx-note h3 a:hover { text-decoration: underline; }
.qx-note p { margin: 0; color: var(--qx-muted); font-size: .92rem; }
/* içerik sayfası önerileri */
.qx-picks { padding: 0 0 2.8rem; max-width: 78ch; }
.qx-picks h2 { font-size: 1.1rem; }
.qx-picks-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.qx-picks-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .6rem .9rem; background: #fff; border: 1px solid var(--qx-line); border-radius: 8px; }
.qx-picks-list a { font-weight: 600; text-decoration: none; }
.qx-picks-list a:hover { text-decoration: underline; }
.qx-picks-list span { font-family: var(--qx-mono); font-size: .78rem; color: var(--qx-muted); white-space: nowrap; }
@media (max-width: 640px) {
  .qx-post-nav { grid-template-columns: 1fr; }
  .qx-post-nav-next { text-align: left; }
  .qx-pager { flex-wrap: wrap; justify-content: center; }
}
