/* ============================================================================
   Livaneli Vakfı — kurumsal-vakur kimlik
   Parşömen zemin · derin bordo kurumsal bölümler · antik pirinç altın aksan
   Fraunces (serif başlık) · Archivo (sans gövde/UI) · Newsreader italic (alıntı)
   ========================================================================== */

:root {
  --paper:   #f4efe3;
  --paper-2: #ede5d5;
  --card:    #faf6ec;
  --ink:     #221f18;
  --ink-2:   #4c4636;
  --ink-3:   #726a56;
  --red:     #8f2b23;
  --red-2:   #7a241d;
  --red-deep:#5e1813;
  --brass:   #a97d34;
  --brass-d: #8a6425;
  --line:    rgba(34,31,24,.14);
  --line-2:  rgba(34,31,24,.08);
  --paper-line: rgba(244,239,227,.16);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --quote: 'Newsreader', Georgia, serif;

  --wrap: 1120px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-d); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.14;
  color: var(--ink); letter-spacing: -.01em; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter); }

.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass-d); }

/* --- compass mark ------------------------------------------------------- */
.compass { width: 1em; height: 1em; flex: none; }
.compass .rose { fill: none; stroke: currentColor; stroke-width: 4; }
.compass .needle-n { fill: var(--brass); }
.compass .needle-s { fill: currentColor; opacity: .55; }

/* ============================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 1.25rem;
  min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); font-family: var(--serif); font-weight: 500;
  font-size: 1.28rem; letter-spacing: -.015em; line-height: 1; }
.brand .compass { width: 1.55rem; height: 1.55rem; color: var(--red); }
.brand b { font-weight: 600; }
.brand span.sub { display: block; font-family: var(--sans); font-weight: 600;
  font-size: .58rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .18rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem;
  flex-wrap: wrap; }
.nav a { font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink-2); padding: .5rem .72rem;
  border-radius: 2px; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after { content: ""; position: absolute;
  left: .72rem; right: .72rem; bottom: .28rem; height: 1.5px;
  background: var(--brass); }

.nav-toggle, .nav-btn { display: none; }

/* ============================================================================
   Hero (ana sayfa)
   ========================================================================== */
.hero { position: relative; background: var(--red); color: #ece6d5;
  overflow: hidden; }
.hero::before { /* faint compass watermark */
  content: ""; position: absolute; right: -8%; top: 50%; translate: 0 -50%;
  width: min(46vw, 560px); aspect-ratio: 1;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23a97d34' stroke-width='.6' opacity='.5'%3E%3Ccircle cx='50' cy='50' r='47'/%3E%3Ccircle cx='50' cy='50' r='38'/%3E%3Cpath d='M50 3v94M3 50h94M22 22l56 56M78 22 22 78'/%3E%3C/g%3E%3Cpath d='M50 8 57 50 50 92 43 50Z' fill='%23a97d34' opacity='.35'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; padding-block: clamp(3.4rem, 8vw, 6.5rem); }
.hero-inner { max-width: 720px; }
.hero .eyebrow { color: #d9b877; }
.hero-motto { font-family: var(--quote); font-style: italic; font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.06; color: #f6f1e2;
  letter-spacing: -.01em; margin: .7rem 0 .3rem; }
.hero-motto-src { font-family: var(--sans); font-style: normal; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: #e6bda6; }
.hero-intro { font-size: 1.14rem; line-height: 1.62; color: #eeddcd;
  margin-top: 1.5rem; max-width: 46ch; }
.hero-intro p { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .86rem;
  letter-spacing: .03em; padding: .72rem 1.3rem; border-radius: 2px;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brass); color: #1c150a; }
.btn-primary:hover { background: #c0913f; color: #1c150a; }
.btn-ghost { border-color: rgba(236,230,213,.35); color: #ece6d5; }
.btn-ghost:hover { border-color: #ece6d5; color: #fff; }
.btn-dark { background: var(--red); color: #ece6d5; }
.btn-dark:hover { background: var(--red-deep); color: #fff; }

/* ============================================================================
   Sections (paper)
   ========================================================================== */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line-2); }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: .35rem; }
.section-head .lede { font-size: 1.12rem; color: var(--ink-2); margin: .4rem 0 0;
  line-height: 1.6; }

.rule-brass { width: 46px; height: 2px; background: var(--brass); border: 0;
  margin: 0 0 1.1rem; }

/* mission split */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 5vw, 4rem);
  align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 0.92fr 1.08fr; } }
.split .prose { font-size: 1.08rem; }

/* section grid of cards */
.cards { display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 2.2rem; }
.card { background: var(--card); border: 1px solid var(--line);
  border-radius: 3px; padding: 1.6rem 1.5rem; display: flex; flex-direction: column;
  gap: .5rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--brass); transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(94,24,19,.45); }
.card h3 { font-size: 1.28rem; margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.card .more { margin-top: auto; font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; color: var(--brass-d); }
.card .more::after { content: " →"; }
.card .kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; }

/* ============================================================================
   Prose (rich text)
   ========================================================================== */
.prose { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.32rem; margin: 1.7em 0 .45em; color: var(--red); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(169,125,52,.5); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em;
  border-left: 3px solid var(--brass); font-family: var(--quote);
  font-style: italic; font-size: 1.3rem; color: var(--ink-2); }

/* ============================================================================
   Page header (iç sayfalar)
   ========================================================================== */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding-block: clamp(2.4rem, 5vw, 4rem); }
.page-head .crumb { font-size: .78rem; letter-spacing: .04em; color: var(--ink-3);
  font-weight: 600; margin-bottom: .9rem; }
.page-head .crumb a { color: var(--ink-3); }
.page-head .crumb a:hover { color: var(--brass-d); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page-head .lede { font-size: 1.16rem; color: var(--ink-2); max-width: 60ch;
  margin: .6rem 0 0; line-height: 1.55; }

.page-body { padding-block: clamp(2.4rem, 5vw, 4rem); }
.measure { max-width: 68ch; }

/* ============================================================================
   Yönetim — kurullar
   ========================================================================== */
.boards { display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.board { background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--red); border-radius: 3px; padding: 1.5rem 1.6rem; }
.board h2 { font-size: 1.24rem; margin: 0 0 .2rem; }
.board .note { font-size: .82rem; color: var(--ink-3); margin: 0 0 1rem; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { padding: .5rem 0; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.board li:first-child { border-top: 0; }
.board .m-name { font-weight: 500; font-family: var(--serif); font-size: 1.06rem; }
.board .m-role { font-size: .78rem; color: var(--ink-3); text-align: right; }

/* ============================================================================
   Müze
   ========================================================================== */
.museum-hero { position: relative; }
.museum-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.museum-meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem;
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.museum-meta .item .k { font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass-d); font-weight: 600; }
.museum-meta .item .v { font-family: var(--serif); font-size: 1.14rem; }
.gallery { display: grid; gap: .9rem; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--line); }
.gallery figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .4rem; }

/* ============================================================================
   Etkinlikler
   ========================================================================== */
.events { display: grid; gap: 1.5rem; }
.event { display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; }
@media (min-width: 640px) { .event.has-img { grid-template-columns: 260px 1fr; } }
.event .thumb { background: var(--paper-2); }
.event .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.event .body { padding: 1.5rem 1.6rem; }
.event .date { font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brass-d); }
.event h2, .event h3 { font-size: 1.4rem; margin: .3rem 0 .4rem; }
.event .loc { font-size: .86rem; color: var(--ink-3); }
.event p { color: var(--ink-2); margin: .6rem 0 0; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3);
  font-family: var(--quote); font-style: italic; font-size: 1.3rem; }

/* ============================================================================
   Burslar ve Ödüller
   ========================================================================== */
.duo { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 780px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line);
  border-radius: 3px; padding: 1.8rem 1.7rem; }
.panel.dark { background: var(--red); color: #e8e2d1; border-color: transparent; }
.panel.dark h2 { color: #f4efe1; }
.panel.dark .eyebrow { color: #d9b877; }
.panel.dark .prose, .panel.dark .prose p { color: #e2ddcc; }
.panel.dark .prose li::marker { color: #d9b877; }
.panel.dark a { color: #e6c88a; }
.panel h2 { font-size: 1.5rem; margin: .4rem 0 .7rem; }
.apply-note { margin-top: 2rem; padding: 1.4rem 1.6rem; border: 1px dashed var(--brass);
  border-radius: 3px; background: color-mix(in srgb, var(--brass) 7%, var(--paper)); }

/* ============================================================================
   İletişim + form
   ========================================================================== */
.contact-grid { display: grid; gap: clamp(1.6rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-info .info-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-info .info-item:first-of-type { border-top: 0; }
.contact-info .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-d); font-weight: 600; margin-bottom: .2rem; }
.contact-info .v { font-family: var(--serif); font-size: 1.14rem; }

form.vk-form { background: var(--card); border: 1px solid var(--line);
  border-radius: 3px; padding: clamp(1.4rem, 4vw, 2.2rem); }
form.vk-form p, form.vk-form .field { margin: 0 0 1.15rem; }
form.vk-form label { display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: .4rem; }
form.vk-form input, form.vk-form textarea, form.vk-form select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 2px; padding: .72rem .85rem; }
form.vk-form textarea { min-height: 150px; resize: vertical; }
form.vk-form input:focus, form.vk-form textarea:focus, form.vk-form select:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169,125,52,.15); }
form.vk-form .helptext { font-size: .78rem; color: var(--ink-3); }
form.vk-form ul.errorlist { list-style: none; margin: .3rem 0 0; padding: 0;
  color: #a4322a; font-size: .82rem; }
form.vk-form button[type="submit"] { background: var(--red); color: #ece6d5;
  border: 0; border-radius: 2px; font-family: var(--sans); font-weight: 600;
  letter-spacing: .04em; font-size: .9rem; padding: .8rem 1.6rem; cursor: pointer; }
form.vk-form button[type="submit"]:hover { background: var(--red-deep); }

/* ============================================================================
   Footer
   ========================================================================== */
.foot { background: var(--red-deep); color: #e3cfc4; margin-top: 0; }
.foot .wrap { padding-block: clamp(2.6rem, 5vw, 3.6rem); }
.foot-grid { display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-brand .brand { color: #f2ecdc; }
.foot-brand .brand .compass { color: var(--brass); }
.foot-brand .brand .sub { color: #c99a8a; }
.foot-motto { font-family: var(--quote); font-style: italic; font-size: 1.15rem;
  color: #ecdccf; margin: 1rem 0 0; max-width: 30ch; }
.foot-nav { display: flex; flex-direction: column; gap: .55rem; }
.foot-h { font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #cf9a80;
  margin-bottom: .5rem; }
.foot-nav a { color: #e3cfc4; font-size: .92rem; }
.foot-nav a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .6rem; margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--paper-line); font-size: .8rem; color: #c19d8f; }

/* ============================================================================
   Responsive nav
   ========================================================================== */
@media (max-width: 780px) {
  .nav-btn { display: inline-flex; margin-left: auto; width: 42px; height: 42px;
    align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid var(--line); border-radius: 3px; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after { content: "";
    display: block; width: 20px; height: 2px; background: var(--ink);
    position: relative; transition: .2s; }
  .nav-btn span::before { position: absolute; top: -6px; }
  .nav-btn span::after { position: absolute; top: 6px; }
  .nav { position: fixed; inset: 74px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem; max-height: 0; overflow: hidden;
    transition: max-height .25s ease; }
  .nav a { padding: .85rem .2rem; border-top: 1px solid var(--line-2); font-size: .95rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle:checked ~ .nav { max-height: 80vh; }
}
