/* İlyas Avukatlık Bürosu: yazılar ve yasal uyarı sayfaları.
   Ana sayfanın sistemi: Sorts Mill Goudy başlık, Jost metin, siyah/beyaz, logo bordosu tek vurgu. */
:root {
  --black: #0B0B0B;
  --char: #1C1C1C;
  --white: #FFFFFF;
  --smoke: #F2F2F0;
  --grey: #5E5E5B;
  --line: #DADAD6;
  --brand: #8C211B;
  --brass: #8C211B;
  --on-dark: #D35A50;
  --fd: "Sorts Mill Goudy", "Goudy Old Style", Garamond, Georgia, serif;
  --f: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--black); font: 300 18px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--black); }
::selection { background: var(--brand); color: var(--white); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--fd); font-weight: 400; font-synthesis: none; letter-spacing: 0.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sec-mark { color: var(--brass); display: inline-block; margin-right: 0.22em; vertical-align: -0.06em; }
.sec-mark svg { display: block; width: 0.9em; height: 0.74em; fill: currentColor; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; background: var(--white); color: var(--black); padding: 12px 16px; font-weight: 500; }
.skip:focus { top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 16px 24px; font: 500 16px/1 var(--f); text-decoration: none; background: var(--white); color: var(--black); border: 1px solid var(--white); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .2s; }
.btn:hover::after { width: 32px; }
.btn.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn.line { background: transparent; color: var(--black); border-color: var(--black); }
.btn:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* Util bar + header (same as home) */
.util { background: var(--black); color: #CFCFCB; font-size: 14px; font-weight: 400; }
.util .wrap { display: flex; justify-content: flex-end; gap: 24px; height: 40px; align-items: center; flex-wrap: wrap; }
.util a { text-decoration: none; display: inline-block; padding-block: 10px; }
.util a:hover { color: var(--white); }
.util .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--on-dark); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--black); color: var(--white); transition: background .25s, color .25s, box-shadow .25s; }
.top.scrolled { background: var(--white); color: var(--black); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; color: inherit; }
.logo .wsvg { height: 56px; width: auto; flex: none; }
.logo .mk { width: 56px; height: auto; flex: none; }
.top.scrolled .logo { color: var(--brand); }
.nav { display: flex; gap: 32px; font-size: 16px; font-weight: 400; }
.nav a { text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: currentColor; }
.top .btn { padding: 14px 20px; font-size: 15px; }
.top.scrolled .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.top.scrolled .btn:hover { background: var(--brand); border-color: var(--brand); }
.menu-btn { display: none; background: none; border: 0; padding: 14px 8px; min-width: 44px; min-height: 44px; cursor: pointer; color: inherit; }
.menu-btn i { display: block; width: 28px; height: 2px; background: currentColor; }
.menu-btn i + i { margin-top: 8px; }

/* Page head (dark band) */
.phead { background: var(--black); color: var(--white); --brass: var(--on-dark); }
.phead .wrap { padding-block: 56px 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #A9A9A4; margin-bottom: 40px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.crumbs span[aria-hidden] { color: #6B6B67; }
.phead h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; max-width: 20ch; }
.phead .lede { margin-top: 24px; max-width: 58ch; font-size: 20px; color: #CFCFCB; }
.meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: #A9A9A4; font-weight: 400; }
.meta b { color: var(--white); font-weight: 400; }

/* Legal notice (top of every post) */
.notice { border: 1px solid var(--line); background: var(--smoke); padding: 20px 24px; font-size: 15px; line-height: 1.55; font-weight: 400; color: #2B2B29; display: flex; gap: 16px; align-items: flex-start; }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--brand); }
.notice a { color: var(--brand); text-underline-offset: 3px; }

/* Article layout */
.post { padding-block: 64px 96px; }
.post .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: start; }
.prose { max-width: 68ch; min-width: 0; }
.prose > .notice { margin-bottom: 48px; }
.prose { font-size: 19px; line-height: 1.75; font-weight: 400; color: #1F1F1E; }
.prose p { margin: 0 0 20px; }
.prose > p:first-of-type { font-size: 21px; line-height: 1.6; color: var(--black); }
.prose h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; margin: 56px 0 16px; color: var(--black); }
.prose h3 { font-family: var(--f); font-weight: 500; font-size: 20px; line-height: 1.35; margin: 32px 0 8px; letter-spacing: 0; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.3em; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 500; color: var(--black); }
.prose a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 32px; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--black); border-bottom-color: var(--black); }

/* Sidebar contents */
.toc { position: sticky; top: 120px; font-size: 15px; font-weight: 400; }
.toc h2 { font-family: var(--f); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); font-weight: 400; margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 12px 0; text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--brand); }
.toc .call { margin-top: 32px; padding: 24px; background: var(--black); color: var(--white); }
.toc .call p { font-size: 15px; color: #CFCFCB; margin-bottom: 16px; }
.toc .call a { display: block; padding: 4px 0; font-size: 18px; text-decoration: none; }
.toc .call a:hover { color: var(--on-dark); }

/* Post sections after body */
.block { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--black); }
.prose .block > h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 500; font-size: 19px; line-height: 1.4; color: var(--black); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 14px; }
.faq details p { padding-bottom: 20px; margin: 0; }
.sources ol { font-size: 16px; line-height: 1.55; }
.sources a { overflow-wrap: anywhere; }
.legal { margin-top: 64px; padding: 32px; background: var(--smoke); font-size: 15px; line-height: 1.6; color: #2B2B29; }
.legal h2 { font-family: var(--f); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; color: var(--black); }
.legal p { margin: 0 0 12px; font-size: 15px; }
.legal p:last-child { margin-bottom: 0; }

/* Related */
.related { background: var(--smoke); padding-block: 88px; }
.related .title, .listing .title { font-family: var(--fd); font-size: clamp(36px, 4vw, 56px); line-height: 1.06; margin-bottom: 40px; }

/* Post cards: a ruled list, not boxes */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--black); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; gap: 8px; padding: 32px 0; text-decoration: none; height: 100%; }
.posts .cat { font-size: 14px; color: var(--grey); font-weight: 400; }
.posts h2, .posts h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; transition: color .2s; }
.posts p { font-size: 16px; color: #3A3A38; max-width: 52ch; }
.posts .go { margin-top: 8px; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 12px; }
.posts .go::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .2s; }
.posts a:hover h2, .posts a:hover h3 { color: var(--brand); }
.posts a:hover .go::after { width: 36px; }
.listing { padding-block: 72px 112px; }
.listing .notice { margin-bottom: 56px; max-width: 880px; }

/* Legal page */
.doc { padding-block: 64px 112px; }
.doc .prose { margin: 0; }

/* Closing contact + footer (same as home) */
.close { background: var(--black); color: var(--white); --brass: var(--on-dark); }
.close > .wrap { padding-block: 96px 64px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.close .title { font-family: var(--fd); font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.close p { color: #BDBDB8; margin-top: 24px; max-width: 44ch; }
.close .btn { margin-top: 40px; }
.close dl { margin: 0; display: grid; gap: 24px; align-content: end; }
.close dt { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #8F8F8A; }
.close dd { margin: 4px 0 0; font-size: 20px; font-weight: 400; overflow-wrap: anywhere; }
.close dd a { text-decoration: none; display: inline-block; padding-block: 10px; margin-block: -10px; }
.close dd a:hover { color: var(--on-dark); }
.foot { border-top: 1px solid #2C2C2A; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; font-size: 14px; color: #8F8F8A; }
.foot a { color: #D8D8D3; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--white); }

@media (max-width: 1040px) {
  .nav { gap: 24px; font-size: 15px; }
  .post .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .close > .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 880px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 88px; left: 0; right: 0; background: var(--black); color: var(--white);
    padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 8px 24px; }
  .top.scrolled .nav.open { background: var(--white); color: var(--black); box-shadow: 0 1px 0 var(--line); }
  .nav.open a { padding-block: 16px; border-bottom: 1px solid rgba(128,128,128,.3); font-size: 18px; }
  .posts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .util .wrap { justify-content: flex-start; gap: 16px; font-size: 13px; }
  .util .hide-s { display: none; }
  .logo .wsvg { height: 48px; } .logo .mk { width: 68px; }
  .phead .wrap { padding-block: 40px 56px; }
  .crumbs { margin-bottom: 32px; }
  .phead .lede { font-size: 18px; }
  .post { padding-block: 40px 72px; }
  .prose { font-size: 18px; }
  .prose > p:first-of-type { font-size: 19px; }
  .prose h2 { margin-top: 48px; }
  .notice { padding: 16px; font-size: 14px; }
  .legal { padding: 24px; }
  .related { padding-block: 64px; }
  .listing { padding-block: 48px 80px; }
  .close > .wrap { padding-block: 72px 48px; }
}
