/* Atlantik Döviz: klasik, serif ağırlıklı açık tema */

:root {
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --sheet: #fbf8f1;
  --ink: #1d1b18;
  --ink-2: #3e3a33;
  --muted: #72695b;
  --rule: #d5cab5;
  --rule-2: #e4dccb;
  --brand: #c69259;
  --gold: #8f622c;
  --up: #2d6a3b;
  --down: #9f3227;
  --wrap: 1180px;
  --gutter: 28px;
  --display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.num, .n, .rates td.n, .ledger .n { font-variant-numeric: lining-nums tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.framed picture { display: block; }
.faq { margin: 56px 0 0; max-width: 820px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--rule-2); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--display); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }
.sc { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(42px, 5.2vw, 66px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
h3 { font-size: 26px; line-height: 1.15; }
.overline { font-style: italic; color: var(--gold); font-size: 19px; margin: 0 0 10px; }
.dek { font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.more {
  display: inline-block; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--brand); padding-bottom: 2px; color: var(--ink);
}
.more::after { content: " →"; letter-spacing: 0; }
.more:hover { color: var(--gold); }
.note { font-style: italic; font-size: 15px; color: var(--muted); margin: 14px 0 0; max-width: 80ch; }

/* ---------- Üst şerit */
.topbar { font-size: 14px; color: var(--ink-2); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 38px; }
.topbar em { color: var(--muted); }
.topbar__r { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.topbar a { text-decoration: none; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.status.open { color: var(--up); }
.status.open::before { background: var(--up); }
.status.closed { color: var(--down); }
.status.closed::before { background: var(--down); }

/* ---------- Künye */
.masthead { text-align: center; padding: 30px 0 22px; }
.logo { display: inline-block; }
.logo img { height: 36px; width: auto; margin: 0 auto; }
.masthead__sub {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 12px 0 0; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.masthead__sub::before, .masthead__sub::after { content: ""; width: 44px; height: 1px; background: var(--brand); }

.nav { border-top: 1px solid var(--rule); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; justify-content: center; gap: 34px; }
.nav a {
  display: block; padding: 13px 0 11px; text-decoration: none;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav { position: relative; }
.nav__btn {
  display: none; width: 100%; align-items: center; justify-content: center; gap: 12px;
  padding: 13px var(--gutter); border: 0; background: none; cursor: pointer;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink);
}
.nav__ikon { display: inline-grid; gap: 4px; width: 20px; }
.nav__ikon i { display: block; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav.acik .nav__ikon i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.acik .nav__ikon i:nth-child(2) { opacity: 0; }
.nav.acik .nav__ikon i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Kur özeti şeridi */
.strip { background: var(--paper-2); font-size: 15px; }
.strip .wrap { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.strip__items { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.strip__items::-webkit-scrollbar { display: none; }
.strip__item { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 22px; white-space: nowrap; }
.strip__item:first-child { padding-left: 0; }
.strip__item b { font-size: 12.5px; letter-spacing: .1em; font-weight: 600; color: var(--muted); }
.strip__item .d { font-size: 11px; }
.strip__time { font-style: italic; color: var(--muted); font-size: 14px; white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Ana sayfa giriş */
.intro { padding: 64px 0 72px; }
.intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.intro__text p { max-width: 50ch; }
.intro__text .body { color: var(--ink-2); margin: 20px 0 28px; }
.intro__links { display: flex; flex-wrap: wrap; gap: 28px; }

/* ---------- Defter (kur panosu) */
.ledger { background: var(--sheet); border: 1px solid var(--rule); }
.ledger__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 26px 6px; }
.ledger__head h2 { font-size: 30px; }
.ledger__time { font-style: italic; color: var(--muted); font-size: 14px; }
.ledger__cols, .ledger__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 76px; gap: 16px; align-items: baseline; padding: 0 26px; }
.ledger__cols { padding-top: 10px; padding-bottom: 8px; }
.ledger__cols span:not(:first-child) { text-align: right; }
.ledger__row { padding-top: 15px; padding-bottom: 15px; border-top: 1px solid var(--rule-2); }
.ledger__row .who { display: flex; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; }
.ledger__row .who strong { font-weight: 500; font-size: 18px; }
.ledger__row .who small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ledger__row .n { text-align: right; font-size: 22px; padding: 0 4px; margin: 0 -4px; }
.ledger__row .chg { text-align: right; }
.ledger__foot { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 14px 26px 18px; border-top: 1px solid var(--rule-2); font-size: 14px; color: var(--muted); font-style: italic; }
.ledger__foot b { font-style: normal; color: var(--ink-2); font-weight: 600; }
.ledger__note { font-style: italic; font-size: 14.5px; color: var(--muted); margin: 12px 0 0; }

.code { flex: none; width: 40px; font-size: 12px; letter-spacing: .1em; font-weight: 600; color: var(--gold); }
.chg { font-size: 14px; white-space: nowrap; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }

.flash-up { animation: flashUp 1.6s ease-out; }
.flash-down { animation: flashDown 1.6s ease-out; }
@keyframes flashUp { from { background: #dcead6; } to { background: transparent; } }
@keyframes flashDown { from { background: #f1d9d3; } to { background: transparent; } }

/* ---------- Bölüm başlıkları ve üç sütun */
.band { padding: 64px 0; border-top: 1px solid var(--rule); }
.band__title { text-align: center; margin-bottom: 36px; }
.band__title h2 { display: inline-flex; align-items: center; gap: 18px; }
.band__title h2::before, .band__title h2::after { content: ""; width: 60px; height: 1px; background: var(--rule); }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols3 article { padding: 4px 34px 6px; }
.cols3 article:first-child { padding-left: 0; }
.cols3 article:last-child { padding-right: 0; }
.cols3 article + article { border-left: 1px solid var(--rule); }
.cols3 .roman { font-family: var(--display); color: var(--gold); font-size: 22px; display: block; margin-bottom: 6px; }
.cols3 h3 { font-size: 30px; margin-bottom: 10px; }
.cols3 h3 a { text-decoration: none; }
.cols3 h3 a:hover { color: var(--gold); }
.cols3 p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- Ziyaret / büro */
.visit__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.framed { margin: 0; padding: 10px; background: var(--sheet); border: 1px solid var(--rule); }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.12) saturate(.85); }
.framed figcaption { font-style: italic; font-size: 14px; color: var(--muted); padding: 10px 2px 0; }
address { font-style: normal; font-size: 18px; line-height: 1.6; margin: 16px 0 22px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 6px 0 14px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.hours td + td { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.hours tr.today td { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }

/* ---------- İç sayfa başlığı */
.page-head { padding: 52px 0 8px; }
.page-head .dek { max-width: 62ch; }
.page-head .meta { margin: 16px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 40px; padding-bottom: 76px; align-items: start; }
.aside-stack { display: grid; gap: 28px; position: sticky; top: 24px; }

/* ---------- Tablolar */
.rates { width: 100%; border-collapse: collapse; }
.rates th {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  text-align: right; padding: 4px 14px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.rates th:first-child, .rates td:first-child { text-align: left; padding-left: 0; }
.rates td { padding: 14px 14px; border-bottom: 1px solid var(--rule-2); text-align: right; vertical-align: middle; }
.rates tbody tr:hover { background: var(--paper-2); }
.rates .who { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.rates td.n { font-size: 18px; }
.rates td.n span { padding: 1px 4px; margin: 0 -4px; }
.rates td.sp { width: 116px; padding-right: 0; }
.rates th:last-child { padding-right: 0; }
.spark { display: block; width: 100px; height: 26px; margin-left: auto; overflow: visible; }
.spark path { fill: none; stroke-width: 1.3; stroke-linejoin: round; stroke: var(--muted); }
.spark.up path { stroke: var(--up); }
.spark.down path { stroke: var(--down); }
.state { padding: 28px 0; color: var(--muted); font-style: italic; text-align: center !important; }

/* ---------- Kutular (hesaplama, pariteler) */
.box { background: var(--sheet); border: 1px solid var(--rule); padding: 22px 24px 24px; }
.box h3 { font-size: 25px; margin-bottom: 2px; }
.box > p { margin: 0 0 18px; font-style: italic; color: var(--muted); font-size: 15px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; border: 1px solid var(--rule); border-radius: 0; background: #fffdf8;
  padding: 10px 12px; font-size: 18px; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.swap { width: 40px; height: 47px; margin-bottom: 14px; border: 1px solid var(--rule); background: #fffdf8; cursor: pointer; font-size: 17px; color: var(--ink-2); }
.swap:hover { border-color: var(--gold); color: var(--ink); }
.result { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.result output { display: block; font-family: var(--text); font-size: 32px; line-height: 1.15; margin: 4px 0 8px; font-variant-numeric: lining-nums tabular-nums; word-break: break-word; }
.result p { margin: 0; font-size: 14.5px; font-style: italic; color: var(--muted); }
.mini { width: 100%; border-collapse: collapse; font-size: 16px; }
.mini td { padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.mini td + td { text-align: right; font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }
.mini tr:last-child td { border-bottom: 0; }

/* ---------- Hakkımızda / iletişim / yasal */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; padding: 44px 0 20px; align-items: start; }
.about-grid .text p { color: var(--ink-2); font-size: 18px; margin: 0 0 16px; max-width: 58ch; }
.about-grid .text p:first-child::first-letter { font-family: var(--display); font-weight: 600; float: left; font-size: 70px; line-height: .8; padding: 6px 10px 0 0; color: var(--gold); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services li { padding: 22px 28px 22px 0; border-bottom: 1px solid var(--rule); }
.services li:nth-child(even) { padding: 22px 0 22px 28px; border-left: 1px solid var(--rule); }
.services h3 { font-size: 24px; margin-bottom: 6px; }
.services h3 span { color: var(--gold); margin-right: 10px; }
.services p { margin: 0; color: var(--ink-2); }
.facts { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
.facts th { text-align: left; font-weight: 400; width: 34%; padding: 10px 16px 10px 0; vertical-align: top; }
.facts td { padding: 10px 0; }
.facts tr { border-bottom: 1px solid var(--rule-2); }

.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 36px 0 0; }
.contact > div { padding: 26px 30px 30px 0; }
.contact > div + div { padding-left: 30px; border-left: 1px solid var(--rule); }
.contact h2 { font-size: 26px; margin-bottom: 12px; }
.contact .big { display: block; font-family: var(--display); font-size: 30px; text-decoration: none; line-height: 1.2; margin-bottom: 6px; }
.contact .big:hover { color: var(--gold); }
.contact p { margin: 0 0 14px; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }

.prose { max-width: 70ch; padding: 10px 0 76px; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose p { color: var(--ink-2); }

/* ---------- Alt bilgi */
.site-footer { background: var(--ink); color: #e9e2d3; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 28px; }
.site-footer img { height: 22px; width: auto; margin-bottom: 14px; }
.site-footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: #b6ab97; font-weight: 600; }
.site-footer p { margin: 0 0 8px; font-size: 15.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; font-size: 15.5px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brand); }
.site-footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid #3a362f; padding-top: 20px; margin-top: 8px; font-size: 13.5px; color: #a69d8c; font-style: italic; }
.site-footer .legal p { margin: 0; font-size: 13.5px; max-width: 90ch; }
.site-footer .legal p + p { margin-top: 6px; }
.site-footer .credit { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: #8d8473; opacity: .85; transition: opacity .2s; }
.site-footer .credit:hover { opacity: 1; text-decoration: none; }
.site-footer .credit img { height: 22px; width: auto; margin: 0; }

/* ---------- Duyarlı */
@media (max-width: 1000px) {
  .intro__grid, .visit__grid, .with-aside, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .aside-stack { position: static; }
  .cols3 { grid-template-columns: 1fr; }
  .cols3 article, .cols3 article:first-child, .cols3 article:last-child { padding: 24px 0 8px; }
  .cols3 article:first-child { padding-top: 0; }
  .cols3 article + article { border-left: 0; border-top: 1px solid var(--rule); }
  .rates .hide-md { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  .topbar em { display: none; }
  .topbar .wrap { justify-content: center; }
  .masthead { padding: 22px 0 16px; }
  .logo img { height: 28px; }
  .masthead__sub { letter-spacing: .24em; font-size: 11px; }
  .nav__btn { display: flex; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 10px;
    background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -20px rgba(29, 27, 24, .35);
  }
  .nav.acik ul { display: flex; }
  .nav li + li { border-top: 1px solid var(--rule-2); }
  .nav a { padding: 15px 0; font-size: 14px; text-align: center; }
  .strip .wrap { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .strip__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; overflow: visible; }
  .strip__item, .strip__item:first-child { padding: 0; gap: 5px; font-size: 13.5px; }
  .strip__item b { font-size: 11px; letter-spacing: .06em; }
  .strip__time { display: none; }
  .intro { padding: 40px 0 52px; }
  .dek { font-size: 19px; }
  .ledger__head, .ledger__cols, .ledger__row, .ledger__foot { padding-left: 16px; padding-right: 16px; }
  .ledger__cols, .ledger__row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .ledger__cols span:last-child, .ledger__row .chg { display: none; }
  .ledger__row .n { font-size: 19px; }
  .band { padding: 48px 0; }
  .band__title h2::before, .band__title h2::after { width: 24px; }
  .rates .hide-sm { display: none; }
  .rates td, .rates th { padding-left: 8px; padding-right: 8px; }
  .rates td.n { font-size: 16.5px; }
  .rates .who { gap: 8px; white-space: nowrap; }
  .rates .who span:last-child { font-size: 15px; line-height: 1.3; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(even) { padding: 20px 0; border-left: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact > div, .contact > div + div { padding: 22px 0; border-left: 0; }
  .contact > div + div { border-top: 1px solid var(--rule); }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 26px; }
  .pair { grid-template-columns: 1fr; }
  .swap { width: 100%; height: 38px; margin: -4px 0 10px; }
}
@media (max-width: 720px) {
  .rates--tcmb .who span:last-child { display: none; }
}
@media (max-width: 360px) {
  .rates .who span:last-child { display: none; }
  .rates td, .rates th { padding-left: 6px; padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .flash-up, .flash-down { animation: none; }
}
