/* Kalyn blog (#603): server-rendered pages in the "Gün Işığı" set of the web app (light theme,
   tokens of web-next/src/styles/index.css). No JavaScript; system fonts close to the app's. */
:root {
  --bg: #eef1ec;
  --surface: #ffffff;
  --surface-2: #f3f6f1;
  --fg: #0e2a1e;
  --muted: #5b6b62;
  --line: #dce2da;
  --green: #16734a; /* 5.9:1 on white, 5.1:1 on --bg (WCAG AA) */
  --primary: #0e2a1e;
  --accent: #c6f26e;
  --radius: 14px;
  --ff-text: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--ff-text);
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--fg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}

/* Header and footer */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font: 700 22px/1 var(--ff-display);
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}
.site-nav {
  display: flex;
  gap: 4px 18px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
}
.site-nav a[aria-current="page"] {
  color: var(--green);
}
/* The call-to-action keeps its pill padding (.site-nav a is more specific than .button). */
.site-nav a.button {
  padding: 0 18px;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  opacity: 0.92;
}
.site-footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}
.site-footer a {
  color: var(--muted);
}

/* Index */
.page-head {
  padding: 40px 0 16px;
}
h1,
h2,
h3 {
  font-family: var(--ff-display);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 12px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.chips a[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h2,
.card h3 {
  font-size: 20px;
  margin: 0;
}
.card h2 a,
.card h3 a {
  color: var(--fg);
  text-decoration: none;
}
.card h2 a:hover,
.card h3 a:hover {
  text-decoration: underline;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.featured {
  grid-column: 1 / -1;
}
@media (min-width: 800px) {
  .featured .card {
    flex-direction: row;
  }
  .featured .card img {
    width: 55%;
    aspect-ratio: auto;
  }
  .featured h2 {
    font-size: 28px;
  }
}
.meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.tag {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 0;
}
.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}

/* Post */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
}
.crumbs a {
  color: var(--muted);
}
.post-cover {
  border-radius: var(--radius);
  margin: 24px 0 0;
  width: 100%;
}
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}
.summary strong {
  display: block;
  font-family: var(--ff-display);
  margin-bottom: 4px;
}
.summary p {
  margin: 0;
}
.toc {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}
.toc h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc .sub {
  padding-left: 16px;
  list-style: circle;
}
.prose h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  scroll-margin-top: 16px;
}
.prose h3 {
  font-size: 20px;
  margin: 28px 0 8px;
  scroll-margin-top: 16px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}
.prose li {
  margin: 4px 0;
}
.prose blockquote {
  margin: 20px 0;
  padding: 4px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose code {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.section {
  margin: 40px 0 0;
}
.section > h2 {
  font-size: 24px;
  margin: 0 0 12px;
}
.faq dt {
  font-weight: 700;
  margin-top: 16px;
}
.faq dd {
  margin: 4px 0 0;
}
.sources {
  padding-left: 20px;
  font-size: 15px;
}
.sources li {
  margin: 6px 0;
}
.author {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 40px 0 0;
}
.avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: grid;
  place-items: center;
  font: 700 18px/1 var(--ff-display);
}
.author p {
  margin: 4px 0 0;
  color: var(--muted);
}
.review {
  font-size: 14px;
}
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 24px 0 0;
  font-size: 15px;
}
.cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0 0;
}
.cta h2 {
  margin: 0 0 8px;
  color: var(--accent);
}
.cta p {
  margin: 0 0 16px;
}
.cta .button {
  background: var(--accent);
  color: var(--primary) !important;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.store {
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
}
.related h3 {
  font-size: 18px;
}
@media (max-width: 600px) {
  .site-nav {
    margin-left: 0;
    width: 100%;
  }
}
