/* ---------------------------------------------------------------------------
   farukozdemir.com — brutalist atelier
   ink #0A0908 · panel #12100E · line #2A2520 · bone #F5F2EB · tan #C67D4E
   Zero radius. Single accent. Analog grain.
--------------------------------------------------------------------------- */

:root {
  --ink: #0a0908;
  --panel: #12100e;
  --line: #2a2520;
  --bone: #f5f2eb;
  --tan: #c67d4e;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  transition: opacity 0.22s ease;
}

body.lang-fading {
  opacity: 0.42;
}

/* Analog paper / leather grain --------------------------------------------- */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.035;
}

/* Typographic utilities ---------------------------------------------------- */
.mono-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.45);
}

/* Navigation --------------------------------------------------------------- */
.nav-link {
  position: relative;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.5);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--bone);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--tan);
}

/* Language switch — hard edges --------------------------------------------- */
.lang-btn {
  color: rgba(245, 242, 235, 0.5);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-toggle[data-active="tr"] .lang-btn[data-lang="tr"],
.lang-toggle[data-active="en"] .lang-btn[data-lang="en"] {
  background: var(--bone);
  color: var(--ink);
}

.lang-btn:hover {
  color: var(--bone);
}

.lang-toggle[data-active="tr"] .lang-btn[data-lang="tr"]:hover,
.lang-toggle[data-active="en"] .lang-btn[data-lang="en"]:hover {
  color: var(--ink);
}

/* Quick index -------------------------------------------------------------- */
.index-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  margin: 0 -0.75rem;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.index-row:last-child {
  border-bottom: 0;
}

.index-row:hover {
  background: var(--panel);
}

.index-row:hover .index-name,
.index-row:hover .index-arrow {
  color: var(--tan);
}

/* Editorial project rows --------------------------------------------------- */
.project-row {
  transition: background-color 0.3s ease;
}

.project-row:hover {
  background: var(--panel);
}

.project-row:hover .project-name,
.project-row:hover .project-arrow,
.project-row:hover .project-index {
  color: var(--tan);
}

/* Screen-capture reference plates behind the brand names ------------------- */
.project-name-cell {
  position: relative;
  isolation: isolate;
}

.project-name-cell::before {
  content: "";
  position: absolute;
  inset: -12px -16px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 1;
}

.project-name-cell::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -16px;
  width: 10px;
  height: 1px;
  background: var(--tan);
  pointer-events: none;
  z-index: 2;
}

.project-plate {
  position: absolute;
  inset: -12px -16px;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.25) brightness(0.7);
  opacity: 0.18;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.project-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0.42;
}

.project-row:hover .project-plate {
  opacity: 0.32;
}

.project-name {
  position: relative;
  z-index: 2;
}

/* Contact form — ink on paper ---------------------------------------------- */
.field-label {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.5);
}

.field {
  transition: border-color 0.2s ease;
}

.field::placeholder {
  color: rgba(245, 242, 235, 0.24);
}

.field:focus {
  border-bottom-color: var(--tan);
}

select.field option {
  background: var(--ink);
  color: var(--bone);
}

select.field:invalid {
  color: rgba(245, 242, 235, 0.3);
}

.form-status.is-success,
.form-status.is-error,
.form-status.is-pending {
  display: flex;
  border-left-style: solid;
  border-left-width: 2px;
}

.form-status.is-success {
  border-left-color: var(--tan);
  color: var(--tan);
}

.form-status.is-error {
  border-left-color: var(--tan);
  color: var(--tan);
}

.form-status.is-pending {
  border-left-color: var(--line);
  color: rgba(245, 242, 235, 0.55);
}

.submit-block {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 15rem;
  padding: 1.05rem 1.6rem;
  background: var(--bone);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.submit-block:hover {
  background: var(--tan);
  color: var(--ink);
}

.submit-block:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Focus -------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--tan);
  outline-offset: 3px;
}

/* Scroll reveal (opacity only — no movement) ------------------------------- */
.js .reveal {
  opacity: 0;
  transition: opacity 0.8s ease var(--reveal-delay, 0ms);
}

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

/* Scrollbar — square ------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid var(--ink);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tan);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
  }

  body.lang-fading {
    opacity: 1;
  }
}
