/* Fulya Okbay artist website
   Palette: off-white #F8F7F3, stone #D7D1C5, sage #6C7664, anthracite #262626 */

:root {
  --bg: #F8F7F3;
  --stone: #D7D1C5;
  --sage: #6C7664;
  --ink: #262626;
  --muted: #74705f;
  --hair: rgba(38, 38, 38, 0.14);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--stone); color: var(--ink); }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.page-title { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.01em; margin: 0 0 10px; }
.page-head { padding-block: clamp(48px, 8vh, 96px) clamp(28px, 4vh, 48px); }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; max-width: 34em; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 26px;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  color: var(--ink); opacity: .72; transition: opacity .25s var(--ease);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { opacity: 1; color: var(--ink); }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--ink); }

.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; }
.lang a, .lang button {
  all: unset; cursor: pointer; opacity: .45; padding: 2px; text-transform: uppercase; font: inherit; letter-spacing: inherit; color: var(--ink);
}
.lang a.is-active, .lang button.is-active { opacity: 1; }
.lang span { opacity: .4; }

.menu-btn { all: unset; display: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-btn::before { top: 2px; } .menu-btn span { top: 10px; } .menu-btn::after { top: 18px; }
body.nav-open .menu-btn::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .menu-btn span { opacity: 0; }
body.nav-open .menu-btn::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  /* backdrop-filter would make the header the containing block of the fixed nav overlay */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-btn { display: block; }
  .brand, .menu-btn { position: relative; z-index: 3; }
  .nav {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .nav a { font-size: 14px; letter-spacing: .28em; }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .site-header .wrap { position: relative; z-index: 2; }
  .lang { margin-top: 12px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); margin-top: clamp(64px, 10vh, 128px); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: baseline;
  padding-block: 32px 40px;
  font-size: 12px; color: var(--muted); letter-spacing: .04em;
}
.site-footer a { color: var(--ink); }
.site-footer .brand { font-size: 14px; }
.site-footer nav { display: flex; gap: 22px; }

/* ---------- Thread motif ---------- */
.motif { display: block; width: 100%; height: 72px; color: var(--sage); opacity: .7; margin-block: clamp(32px, 6vh, 72px); }

/* ---------- Home ---------- */
.hero { padding-block: clamp(16px, 3vh, 40px) 0; }
.hero-figure { margin: 0; }
.hero-media { display: flex; justify-content: center; align-items: center; max-height: 78vh; }
.hero-media img { max-height: 78vh; width: auto; max-width: 100%; box-shadow: 0 30px 60px -40px rgba(38,38,38,.35); }
.hero-caption {
  display: flex; justify-content: center; gap: 14px; align-items: baseline;
  margin-top: 22px; font-size: 12px; color: var(--muted); letter-spacing: .04em;
}
.hero-caption em { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.hero-caption a:hover em { color: var(--sage); }

.intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.intro-statement { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -.01em; max-width: 22em; }
.intro-aside { padding-top: 10px; display: grid; gap: 22px; }
.intro-aside .name { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.intro-aside .intro-text { max-width: 30em; color: var(--ink); }
.arrow-link { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.arrow-link::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.arrow-link:hover::after { width: 44px; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

.selected { margin-top: clamp(64px, 10vh, 120px); }
.selected-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.selected-head h2 { font-size: clamp(26px, 3vw, 36px); }

/* ---------- Works grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 40px; }
.filters a, .filters button {
  all: unset; cursor: pointer; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .5; padding-block: 4px; border-bottom: 1px solid transparent; transition: opacity .2s;
}
.filters a:hover, .filters a.is-active, .filters button:hover, .filters button.is-active { opacity: 1; color: var(--ink); }
.filters a.is-active, .filters button.is-active { border-bottom-color: var(--ink); }

.grid { columns: 3; column-gap: clamp(24px, 3vw, 48px); }
.grid figure { margin: 0 0 clamp(36px, 4vw, 64px); break-inside: avoid; }
.grid a { display: block; }
.grid img { width: 100%; background: var(--stone); transition: opacity .4s var(--ease); }
.grid a:hover img { opacity: .94; }
.grid figcaption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 12px;
  font-size: 12px; color: var(--muted); letter-spacing: .03em;
  transition: opacity .3s var(--ease);
}
.grid figcaption em { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
@media (hover: hover) {
  .grid figcaption { opacity: 0; }
  .grid figure:hover figcaption { opacity: 1; }
}
@media (max-width: 1000px) { .grid { columns: 2; } }
@media (max-width: 560px) { .grid { columns: 1; } }

/* ---------- Work detail ---------- */
.work { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 96px); padding-top: clamp(24px, 4vh, 48px); }
.work-media img { width: 100%; }
.work-meta { position: sticky; top: 110px; align-self: start; }
.work-meta h1 { font-size: clamp(30px, 3.4vw, 44px); font-style: italic; margin-bottom: 28px; }
.work-meta dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 13px; }
.work-meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.work-meta dd { margin: 0; }
.work-meta .arrow-link { margin-top: 36px; }
.work-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 8vh, 96px); padding-top: 24px; border-top: 1px solid var(--hair); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.work-nav a[aria-disabled="true"] { opacity: .3; pointer-events: none; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } .work-meta { position: static; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.about-portrait img { width: 100%; }
.about-portrait figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.about-text { max-width: 36em; }
.about-text h2 { font-size: 13px; font-family: var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; font-weight: 400; }


@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-portrait { max-width: 420px; } }

/* ---------- Exhibitions / CV lists ---------- */
.section { margin-top: clamp(40px, 7vh, 80px); }
.section > h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 20px; }
.list { border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px 32px; padding-block: 18px; border-bottom: 1px solid var(--hair); font-size: 15px;
}
.row .year { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; padding-top: 3px; }
.row .title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.row .title a { border-bottom: 1px solid var(--hair); }
.row .venue { color: var(--muted); padding-top: 3px; }
.row.cv { grid-template-columns: 72px 1fr; }
.list-empty { color: var(--muted); font-style: italic; padding-block: 18px; border-bottom: 1px solid var(--hair); }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row .venue { padding-top: 0; }
}
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px;
  border: 1px solid var(--ink); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--sage); border-color: var(--sage); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.contact-block { display: grid; gap: 28px; }
.contact-item .eyebrow { margin-bottom: 6px; }
.contact-item a.big { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.2; border-bottom: 1px solid var(--hair); }
.contact-item .plain { font-size: 17px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  all: unset; box-sizing: border-box; width: 100%; font: inherit; font-weight: 300; font-size: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ink);
  transition: border-color .25s;
}
.field select { cursor: pointer; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.form-note { font-size: 12px; color: var(--muted); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 20vh, 200px); }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 24px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .9s var(--ease) both; }
  .reveal:nth-child(2) { animation-delay: .08s; }
  .reveal:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Series sections (Works page) ---------- */
.series { margin-top: clamp(40px, 7vh, 88px); }
.series:first-child { margin-top: 0; }
.series-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.series-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.series-head h2 a:hover { color: var(--ink); }
.intro-statement { font-weight: 400; }
.series-text { max-width: 44em; margin-bottom: 36px; columns: 1; }
.series-text p { font-size: 15px; line-height: 1.75; color: var(--ink); }
@media (min-width: 1000px) { .series-text { max-width: none; columns: 2; column-gap: 48px; } .series-text p { break-inside: avoid; } }
.bio p { font-size: 17px; line-height: 1.7; margin-bottom: 1.3em; }
.bio p:first-child { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; }
.about-text .links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 8px; }
.row { grid-template-columns: 130px minmax(0, 1.4fr) minmax(0, 1fr); }
.row.cv { grid-template-columns: 130px 1fr; }
@media (max-width: 640px) { .row, .row.cv { grid-template-columns: 1fr; } }

/* ---------- Botanical subtitles ---------- */
.work-subtitle { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: -20px 0 28px; }
.grid figcaption em .sub { font-style: italic; font-size: 13px; color: var(--muted); margin-left: 6px; }
