/* ==========================================================================
   Atelify tasarım sistemi — "Sessiz lüks"
   Bütün sayfaların ortak çekirdeği: fontlar, renk/ölçü değişkenleri, temel
   öğeler ve paylaşılan bileşenler (buton, form, header, footer, bildirimler).
   Sayfaya özel düzenler site.css'te (vitrin, login, yasal) durur.

   Sınıf adları JS'in ürettiği öğelerle uyumludur: .button, .button-primary,
   .button-secondary, .ghost-link (header-auth.js), .cookie-consent ve
   .version-notice (script.js), .reveal → .is-visible (script.js).
   ========================================================================== */

/* ---------- fontlar (assets/fonts, SIL OFL) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("./assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("./assets/fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url("./assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url("./assets/fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- değişkenler ---------- */
:root {
  /* renk */
  --paper: #f7f5f0;
  --paper-deep: #efebe3;
  --surface: #fbfaf7;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --muted: #8a8378;
  --line: rgba(28, 26, 23, 0.12);
  --line-strong: rgba(28, 26, 23, 0.26);
  --gold: #a3865a;

  --success: #4e6b4f;
  --success-bg: #e7ede5;
  --danger: #9b4a3c;
  --danger-bg: #f4e6e2;
  --info-bg: #ebe7df;

  --metal-gumus: linear-gradient(135deg, #f1f1ef, #b9b9b6);
  --metal-altin: linear-gradient(135deg, #f3e2b4, #c49a4e);
  --metal-rose: linear-gradient(135deg, #f3d6c8, #c38b74);

  /* yazı */
  --serif: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* ölçü */
  --radius: 2px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- tipografi ---------- */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 104px);
}

h2 {
  font-size: clamp(38px, 5vw, 72px);
}

h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.15;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--ink-soft);
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 36ch;
}

.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

/* ---------- butonlar ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: transparent;
  color: var(--ink);
}

.button-secondary {
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-deep);
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.button-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 11px;
}

.button .arrow {
  transition: transform 0.4s var(--ease);
}

.button:hover .arrow {
  transform: translateX(4px);
}

/* altı çizili metin bağlantısı */
.ghost-link,
.text-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
  cursor: pointer;
}

.ghost-link:hover,
.text-link:hover {
  background-size: 0 1px;
  background-position: right bottom;
}

.ghost-button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  cursor: pointer;
}

.ghost-button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.simple-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ---------- form alanları ---------- */
.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* ---------- durum mesajları ---------- */
.auth-message {
  padding: 12px 14px;
  border-left: 2px solid var(--ink-soft);
  background: var(--info-bg);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.auth-message[data-tone="success"] {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.auth-message[data-tone="error"] {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.auth-message[data-tone="warning"] {
  border-color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--info-bg);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-ink {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- portföy notu ---------- */
.site-note {
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-note strong {
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-logo {
  width: 20px;
  height: 20px;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-nav a {
  transition: color 0.25s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-actions .button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 11px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--line);
  padding: 28px 0 24px;
  font-size: 12px;
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
}

.site-footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-footer-brand .brand-mark {
  font-size: 20px;
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer nav a:hover {
  color: var(--ink);
}

/* ---------- çerez bandı (script.js) ---------- */
.cookie-consent {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: clamp(12px, 3vw, 28px);
  width: min(720px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(28, 26, 23, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-consent p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cookie-consent p a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 11px;
}

body.has-cookie-consent {
  padding-bottom: calc(var(--cookie-consent-offset, 0px) + clamp(12px, 3vw, 28px) + 12px);
}

/* ---------- yeni sürüm bildirimi (script.js) ---------- */
.version-notice {
  position: fixed;
  z-index: 1300;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 50px rgba(28, 26, 23, 0.2);
  font-size: 13px;
}

.version-notice p {
  display: grid;
  gap: 2px;
}

.version-notice span {
  color: rgba(247, 245, 240, 0.72);
}

.version-notice .button {
  min-height: 36px;
  padding: 0 14px;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

/* ---------- belirme (script.js .reveal → .is-visible) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
    height: auto;
    min-height: var(--header-h);
    padding: 10px 0;
  }

  /* bağlantılar ikinci satıra iner */
  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 24px;
    font-size: 13px;
  }

  .header-actions {
    gap: 16px;
  }

  .brand-mark {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }

  .button {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
