/* serdarli.com — tasarım sistemi */

:root {
  --paper: #fbf9f4;
  --paper-2: #f3eee3;
  --ink: #1d2a23;
  --ink-2: #43544a;
  --muted: #6f7d73;
  --green: #2f6b4f;
  --green-dk: #234e3a;
  --green-lt: #e6efe8;
  --fruit: #c2603a;
  --fruit-lt: #f7e6dc;
  --line: #e2dbcc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 42, 35, .05), 0 10px 30px -18px rgba(29, 42, 35, .25);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fruit); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 99; display: block; }
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--fruit); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); }
.band { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.band + .band { border-top: 1px solid var(--line); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(251, 249, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

.nav { display: flex; gap: 1.15rem; margin-left: auto; font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--green-dk); border-bottom-color: var(--fruit); font-weight: 600; }

.head-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn:hover { border-color: var(--green); }
.menu-btn { display: none; }
.mobile-nav { display: none; padding: .5rem 1.25rem 1rem; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: .55rem 0; color: var(--ink-2); text-decoration: none; }

.mobile-nav[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .68rem 1.15rem; border-radius: 999px; border: 1px solid var(--green); background: var(--green); color: #fff; font: 600 .92rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--green-dk); border-color: var(--green-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-dk); }
.btn-ghost:hover { background: var(--green-lt); color: var(--green-dk); }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 400px at 80% -10%, var(--green-lt), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; color: var(--fruit); margin-bottom: .8rem; }
.hero h1 em { font-style: italic; color: var(--green); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 1.6rem; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); width: fit-content; }
.hero-stats dt { font-family: var(--serif); font-size: 1.7rem; color: var(--green-dk); }
.hero-stats dd { margin: 0; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-art svg { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.art-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .8rem; }

/* ---------- sections ---------- */
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.band-head h2 { margin: 0; }
.more { font-size: .88rem; font-weight: 600; color: var(--green-dk); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--fruit); }
.sub { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--sans); font-weight: 600; }

.page-head { padding-block: clamp(2rem, 4vw, 3rem) 1.2rem; }
.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-head.center { text-align: center; }
.page-head.center .lede { margin-inline: auto; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: block; padding: 1.15rem; color: inherit; text-decoration: none; height: 100%; }
.card h3 { margin: .6rem 0 .4rem; }
.card p { font-size: .92rem; color: var(--ink-2); margin-bottom: .7rem; }
.card-img { width: calc(100% + 2.3rem); margin: -1.15rem -1.15rem 1rem; aspect-ratio: 16 / 9; object-fit: cover; }
.tag { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fruit); background: var(--fruit-lt); padding: .22rem .55rem; border-radius: 999px; }
.meta { font-size: .82rem; color: var(--muted); }

/* ---------- vefat ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.obit-list { display: grid; gap: .6rem; }
.obit { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .8rem; align-items: baseline; padding: .85rem 1rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 8px; text-decoration: none; color: inherit; }
.obit:hover { border-left-color: var(--fruit); }
.obit-date { font-size: .8rem; color: var(--muted); }
.obit-name { font-family: var(--serif); font-size: 1.05rem; }
.obit-place { font-size: .78rem; color: var(--muted); }
.obit-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.obit-card { display: flex; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: inherit; }
.obit-card:hover { box-shadow: var(--shadow); }
.obit-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.obit-card h2 { font-size: 1.2rem; margin-bottom: .15rem; }
.obit-family { font-size: .86rem; color: var(--ink-2); margin: 0; }
.obit-detail .obit-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.obit-block h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--sans); }
.obit-block.ceremony { border-left: 4px solid var(--green); }
.obit-photo { max-width: 320px; border-radius: 10px; }
.condolence { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--green-dk); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; }

/* ---------- etkinlik ---------- */
.event-list { display: grid; gap: .9rem; }
.event { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.event time { display: flex; flex-direction: column; }
.ev-day { font-size: .82rem; color: var(--ink-2); }
.ev-time { font-family: var(--serif); font-size: 1.4rem; color: var(--green-dk); }
.event h3 { margin: 0; }
.timeline { display: grid; gap: 1.2rem; }
.tl-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.tl-item time { display: flex; flex-direction: column; }
.tl-day { font-size: .85rem; color: var(--ink-2); }
.tl-hour { font-family: var(--serif); font-size: 1.8rem; color: var(--green-dk); }
.tl-img { margin-top: .8rem; border-radius: 10px; max-height: 420px; object-fit: cover; }
.past-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.past-list li { padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.past-list span { display: inline-block; width: 9rem; color: var(--muted); font-size: .82rem; }

/* ---------- ilan ---------- */
.listing-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.listing { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.listing:hover { border-color: var(--green); }
.price { font-family: var(--serif); font-size: 1.1rem; color: var(--green-dk); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.listing-card { display: flex; flex-direction: column; gap: .4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: inherit; }
.listing-card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.listing-card h3 { margin: 0; font-size: 1.05rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .85rem; text-decoration: none; color: var(--ink-2); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.big-price { font-family: var(--serif); font-size: 1.8rem; color: var(--green-dk); }
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-top: 1.8rem; }
.contact-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--sans); }
.contact-box .btn { margin-right: .5rem; }

/* ---------- rehber ---------- */
.dir-group { margin-bottom: 2.2rem; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dir-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.dir-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.dir-card > p { font-size: .88rem; color: var(--ink-2); }
.dir-card dl { margin: .6rem 0 0; font-size: .86rem; }
.dir-card dl div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .4rem; padding: .3rem 0; border-top: 1px dashed var(--line); }
.dir-card dt { color: var(--muted); }
.dir-card dd { margin: 0; }

/* ---------- paneller ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel { display: block; padding: 2rem; border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); transition: transform .15s ease; }
.panel:hover { transform: translateY(-3px); }
.panel h2 { margin-bottom: .4rem; }
.panel p { color: var(--ink-2); }
.panel-dark { background: var(--green-dk); color: #f4efe4; border-color: var(--green-dk); }
.panel-dark p { color: #cfdcd3; }
.panel-dark .more, .panel-dark .eyebrow { color: #f0b48f; }

/* ---------- article ---------- */
.article { padding-block: clamp(1.5rem, 4vw, 3rem); max-width: 780px; }
.crumb { font-size: .82rem; color: var(--muted); }
.article h1 { margin-top: .3rem; }
.article-meta { margin-bottom: 1.6rem; }
.article-img { width: 100%; border-radius: var(--radius); margin: 1rem 0 1.6rem; }
.article-lede { font-size: 1.18rem; color: var(--ink-2); font-family: var(--serif); }
.prose { white-space: pre-line; font-size: 1.02rem; }
.prose a { color: var(--green-dk); }
.source-box { margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--green-lt); border-radius: 8px; font-size: .9rem; }
.share { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; }
.fineprint { font-size: .82rem; color: var(--muted); }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- hakkında ---------- */
.about h2 { margin-top: 2.2rem; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 0 0 1.5rem; }
.fact-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fact-grid dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.timeline-simple { padding-left: 1.1rem; }
.timeline-simple li { margin-bottom: .6rem; }
.source-list { font-size: .9rem; color: var(--ink-2); }

/* ---------- form ---------- */
.form { display: grid; gap: 1rem; }
.form label, .field { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); font: inherit; font-weight: 400; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-lt); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: .78rem; font-weight: 400; color: var(--muted); }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.check input { width: auto; }
.form-actions { display: flex; gap: .6rem; padding-top: .5rem; }
.thumb { width: 120px; border-radius: 8px; border: 1px solid var(--line); }
.search-form { display: flex; gap: .6rem; margin-top: 1rem; }
.search-form input { flex: 1; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--white); }
.done-box { text-align: center; padding: 2rem; background: var(--green-lt); border-radius: var(--radius); }

/* ---------- arama ---------- */
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.result-list li { display: flex; align-items: baseline; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.result-list a { font-weight: 500; }

/* ---------- pager ---------- */
.pager { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 2rem; font-size: .9rem; }
.pager a { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--white); }

/* ---------- flash ---------- */
.flash-wrap { padding-top: 1rem; }
.flash { padding: .7rem 1rem; border-radius: 8px; font-size: .9rem; }
.flash.error { background: #fbe9e4; color: #8a2f14; }
.flash.ok { background: var(--green-lt); color: var(--green-dk); }

/* ---------- admin ---------- */
.admin .site-head { position: static; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.admin-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.admin-card-head h2 { font-size: 1.1rem; margin: 0; }
.count { font-family: var(--serif); font-size: 1.5rem; color: var(--green-dk); }
.admin-card-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.callout { display: block; padding: 1rem 1.2rem; background: var(--fruit-lt); border: 1px solid #edcdbd; border-radius: 10px; margin-bottom: 1.4rem; color: #7c3317; text-decoration: none; }
.admin-note { margin-top: 2.5rem; }
.admin-note ol { color: var(--ink-2); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.row-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.mini { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font: 500 .78rem var(--sans); cursor: pointer; color: var(--ink-2); text-decoration: none; }
.mini.ok { background: var(--green); border-color: var(--green); color: #fff; }
.mini.danger { color: #9a3412; }
.mini:hover { border-color: var(--green); }
.admin-form { max-width: 720px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--paper-2); padding-block: 2.5rem 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot-grid a { display: block; font-size: .9rem; color: var(--ink-2); text-decoration: none; padding: .18rem 0; }
.foot-grid a:hover { color: var(--fruit); }
.foot-brand { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .4rem; }
.foot-brand span { color: var(--muted); font-size: .9rem; }
.foot-note { font-size: .88rem; color: var(--ink-2); max-width: 40ch; }
.foot-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6rem; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav.open { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .card-grid, .listing-grid, .dir-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-strip { grid-template-columns: repeat(2, 1fr); }
  .split, .two-up { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .card-grid, .listing-grid, .dir-grid, .admin-grid, .obit-cards,
  .listing-strip, .form-row, .fact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .obit { grid-template-columns: 1fr; gap: .2rem; }
  .event, .tl-item { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .head-inner { gap: .8rem; }
  .wrap { width: min(1120px, 100% - 1.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
