:root {
  --paper: #F6F1E8;
  --paper-deep: #EDE6D9;
  --card: #FFFDF9;
  --ink: #2E2A26;
  --muted: #5E574F;
  --sage: #4A6660;
  --sage-dark: #354C47;
  --line: #DDD3C2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage-dark); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 14px; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: calc(760px + 2 * var(--pad)); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 66px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.2vw, 42px); }
h3 { font-size: 26px; font-weight: 600; }
p { margin: 0; }
.stack > * + * { margin-top: 20px; }
.lede { font-size: 19px; color: var(--muted); max-width: 32em; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--sage); }
.muted { color: var(--muted); }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 26px; padding-bottom: 26px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.brand-title { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--sage); }
.nav a[aria-current="page"] { color: var(--sage); text-decoration: underline; text-decoration-thickness: 1.5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--sage); cursor: pointer;
}
.btn-solid { background: var(--sage); color: #fff; }
.btn-solid:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.btn-line { background: transparent; color: var(--sage); }
.btn-line:hover { background: var(--sage); color: #fff; }
.nav .btn { padding: 8px 20px; min-height: 44px; color: #fff; }
.nav .btn:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.band { background: var(--paper-deep); }
.page-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 72px); padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(64px, 8vw, 104px); }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-text .stack > * + * { margin-top: 24px; }
.hero-figure { flex: 1 1 320px; max-width: 430px; margin: 0 auto; }
.painting img { border-radius: 2px; box-shadow: 0 1px 2px rgba(46,42,38,.08), 0 14px 34px rgba(46,42,38,.12); }
figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 44px; margin-top: 48px; }
.principles .stack > * + * { margin-top: 12px; }
.principles svg { width: 40px; height: 40px; }
.center { text-align: center; }

/* Split */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 64px); }
.split > .text { flex: 1 1 320px; min-width: 0; }
.split > .media { flex: 2 1 460px; min-width: 0; }
.trio { display: grid; grid-template-columns: 1fr 1.9fr 1fr; align-items: start; gap: 14px; }
.trio img { width: 100%; height: auto; border-radius: 2px; }

/* Lists */
.plain { list-style: none; padding: 0; margin: 0; }
.rows li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .yr { color: var(--muted); font-size: 15px; padding-top: 2px; }
@media (max-width: 560px) { .rows li { grid-template-columns: 1fr; } }
.areas { max-width: 760px; }
.areas li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(24px, 3.2vw, 30px); line-height: 1.25; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 28px 0 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.subhead { margin-top: 56px; margin-bottom: 20px; }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 20px; }
.gallery a { display: block; break-inside: avoid; margin-bottom: 20px; }
.gallery img { width: 100%; border-radius: 2px; }

.exhibit { background: var(--card); padding: clamp(28px, 4vw, 44px); border-radius: 6px; }

/* Form */
.contact { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); align-items: flex-start; }
.contact > * { flex: 1 1 340px; min-width: 0; }
.form { background: var(--card); padding: clamp(24px, 4vw, 40px); border-radius: 8px; display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid #B9AE9B; border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: 14px; color: var(--muted); font-weight: 400; }
.form .btn { align-self: flex-start; }
.hidden { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.nav a.btn[aria-current="page"] { color: #fff; text-decoration: none; }
.form label.consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 13px; line-height: 1.6; color: var(--muted); }
.form label.consent input { width: 22px; height: 22px; min-height: 0; flex: 0 0 22px; margin: 2px 0 0; padding: 0; accent-color: var(--sage); }
.alert { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; font-size: 15px; }
.signature { display: flex; align-items: center; gap: 18px; }
.signature img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: 0 0 88px; }
.areas.small li { font-size: clamp(20px, 2.4vw, 23px); }
.principles h3 { margin-bottom: 8px; }
#bireysel, #kurumsal { scroll-margin-top: 24px; }

/* Eser galerisi */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 28px; }
@media (max-width: 560px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
.work { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.work-frame { aspect-ratio: 4 / 5; background: var(--paper-deep); position: relative; display: block; }
.work-frame img { position: absolute; inset: 0; margin: auto; max-width: 84%; max-height: 84%; width: auto; height: auto; box-shadow: 0 1px 2px rgba(46,42,38,.10), 0 6px 18px rgba(46,42,38,.10); transition: transform .25s ease; }
.work:hover .work-frame img { transform: scale(1.02); }
.work-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work-title { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.work-year { font-size: 14px; color: var(--muted); flex-shrink: 0; }
@media (max-width: 560px) { .work-title { font-size: 17px; } .work-year { font-size: 13px; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #1F1C19; color: #F6F1E8; }
.lightbox::backdrop { background: #1F1C19; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; color: #CFC7B8; }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 0 64px; min-height: 0; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-info { padding: 16px 24px 24px; text-align: center; }
.lb-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); margin: 0; }
.lb-meta { margin: 4px 0 0; font-size: 15px; color: #CFC7B8; }
.lb-btn { background: transparent; border: 1px solid rgba(246,241,232,.35); color: #F6F1E8; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(246,241,232,.12); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 700px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } .lb-info { padding: 12px 72px 24px; } }
.lightbox :focus-visible { outline: 2px solid #F6F1E8; }

.lang-switch { font-size: 14px; }

/* Sergi broşürü — çevrilebilir kart */
.exhibit-split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: flex-start; }
.exhibit-split > .stack { flex: 1 1 380px; min-width: 0; }
.flip-wrap { flex: 0 1 340px; margin: 0 auto; width: 100%; }
.flip { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1800px; }
.flip-inner { display: block; position: relative; aspect-ratio: 1241 / 1755; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.1,.2,1); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px; box-shadow: 0 1px 2px rgba(46,42,38,.10), 0 14px 34px rgba(46,42,38,.16); }
.flip-back { transform: rotateY(180deg); }
.flip-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
