:root {
  color-scheme: dark;
  --background: #121713;
  --wall: #1a211b;
  --panel: #202920;
  --panel-hover: #242f25;
  --line: #354337;
  --line-light: #4a5c46;
  --text: #e4e7dc;
  --muted: #a5afa0;
  --quiet: #83907f;
  --sage: #aec39a;
  --brass: #c8b487;
  --white: #f2f1e7;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0, rgb(104 128 91 / 9%), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 89px, rgb(255 255 255 / 1%) 90px, transparent 91px),
    var(--background);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: var(--background);
  background: var(--sage);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site {
  width: min(1000px, calc(100% - 32px));
  margin: 28px auto;
  overflow: hidden;
  background: var(--wall);
  border: 1px solid #344034;
  border-top: 2px solid #718666;
  box-shadow: 0 22px 65px rgb(0 0 0 / 23%);
}

/* Üst bölüm */
.site-header {
  position: relative;
  padding: 24px clamp(19px, 3.8vw, 36px) 20px;
  background:
    linear-gradient(110deg, rgb(137 158 115 / 5%), transparent 54%),
    #1b221c;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  background: #202a21;
  border: 1px solid #53654d;
}

.brand-hatch {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border: 1.5px solid var(--sage);
  border-radius: 2px;
  transform: rotate(45deg);
}

.brand-hatch::before,
.brand-hatch::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 2px;
  background: var(--sage);
  content: "";
  transform: translate(-50%, -50%);
}

.brand-hatch::after {
  width: 2px;
  height: 17px;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-kicker {
  margin-bottom: 1px;
  color: var(--brass);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.5;
}

.brand-title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c3cdbd;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a span {
  color: var(--sage);
  transition: transform 160ms ease;
}

nav a:hover {
  color: var(--white);
}

nav a:hover span {
  transform: translate(2px, -2px);
}

.site-description {
  max-width: 680px;
  margin: 15px 0 0 56px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

/* Yol gösterici */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(19px, 3.8vw, 36px);
  color: var(--quiet);
  background: #161d17;
  border-bottom: 1px solid #2b382d;
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: #c2cdbb;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--sage);
}

.breadcrumbs span {
  color: var(--brass);
}

/* Rehber sayfaları */
.content {
  min-height: 360px;
  padding: clamp(22px, 4vw, 38px);
  overflow-wrap: anywhere;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.6%), transparent 1.5%, transparent 98.5%, rgb(0 0 0 / 7%)),
    var(--wall);
}

.content p {
  max-width: 790px;
  margin: 0 0 1.15rem;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  max-width: 790px;
  color: var(--white);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.content h1 {
  margin: 0 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.2vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.content h2 {
  margin: 34px 0 15px;
  padding-bottom: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.content h3 {
  margin: 27px 0 10px;
  font-size: 1.15rem;
}

.content h4 {
  margin: 21px 0 9px;
  font-size: 1.03rem;
}

.content ul,
.content ol {
  max-width: 790px;
  margin: 0 0 1.3rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.42rem;
  padding-left: 0.15rem;
}

.content li::marker {
  color: var(--brass);
}

.content a:not(.game-entry) {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: #75896b;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.content a:not(.game-entry):hover {
  color: #e0e8d5;
}

.content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(650px, 78vh);
  margin: 22px auto;
  object-fit: contain;
  background: #111611;
  border: 1px solid var(--line);
}

.content table {
  display: block;
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.content th,
.content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.content th {
  color: var(--white);
  background: #263127;
}

.content tr:nth-child(even) {
  background: rgb(255 255 255 / 2%);
}

.content blockquote {
  max-width: 790px;
  margin: 22px 0;
  padding: 13px 17px;
  color: var(--muted);
  background: #202820;
  border-left: 2px solid var(--brass);
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

.content code {
  padding: 2px 5px;
  color: #d9e4d0;
  background: #131914;
  border: 1px solid var(--line);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.content pre {
  max-width: 100%;
  padding: 15px;
  overflow-x: auto;
  background: #131914;
  border: 1px solid var(--line);
  line-height: 1.55;
}

.content pre code {
  padding: 0;
  background: transparent;
  border: 0;
  overflow-wrap: normal;
}

.content hr {
  max-width: 790px;
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Ana sayfa */
.welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 26px;
  min-height: 270px;
  padding: clamp(23px, 3.5vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgb(119 146 101 / 10%), transparent 64%),
    #202820;
  border: 1px solid #3c4b3a;
  animation: appear 420ms ease both;
}

.welcome::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--sage);
  content: "";
  opacity: 0.75;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--sage);
  border-radius: 50%;
  animation: light-breathe 4.5s ease-in-out infinite;
}

.content .welcome h1 {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.welcome h1 em {
  display: block;
  color: var(--sage);
  font-style: normal;
}

.welcome-description {
  max-width: 520px;
  margin: 0 !important;
  color: #b8c2b2;
  font-size: 0.93rem;
  line-height: 1.78;
}

.archive-core-art {
  display: block;
  width: min(100%, 218px);
  height: auto;
  justify-self: center;
  overflow: visible;
}

.signal-scan {
  transform-box: fill-box;
  transform-origin: center;
  animation: scan-sweep 5.4s ease-in-out infinite;
}

/* Arşiv listesi */
.archive {
  margin-top: 35px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 2px !important;
  color: var(--brass);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.content .section-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.section-description {
  margin: 0 0 2px !important;
  color: var(--quiet);
  font-size: 0.8rem;
  text-align: right;
}

.game-list {
  border-top: 1px solid #2d392e;
  border-bottom: 1px solid #2d392e;
}

.game-entry {
  position: relative;
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) 105px;
  align-items: center;
  gap: 17px;
  min-width: 0;
  min-height: 117px;
  padding: 17px 16px;
  color: var(--text) !important;
  background: transparent;
  border-bottom: 1px solid #2d392e;
  text-decoration: none !important;
  transition: background 180ms ease, padding-left 180ms ease;
}

.game-entry:last-child {
  border-bottom: 0;
}

.game-entry:hover {
  padding-left: 20px;
  background: rgb(168 193 149 / 4%);
}

.entry-emblem {
  display: grid;
  width: 48px;
  height: 50px;
  place-items: center;
  background: #202920;
  border: 1px solid #40513e;
  transition: border-color 180ms ease;
}

.game-entry:hover .entry-emblem {
  border-color: #7c916f;
}

.entry-icon {
  display: block;
  width: 31px;
  height: 31px;
  overflow: visible;
}

.entry-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.entry-category {
  margin-bottom: 3px;
  color: #a4b19b;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.entry-title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.entry-description {
  max-width: 650px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.entry-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #b5c4a8;
  font-size: 0.77rem;
  white-space: nowrap;
}

.entry-action b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--brass);
  border: 1px solid #40503e;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 180ms ease, border-color 180ms ease;
}

.game-entry:hover .entry-action b {
  border-color: #75896b;
  transform: translate(2px, -2px);
}

/* Arşiv ilkesi */
.archive-note {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 22px;
  padding: 3px 0 0 2px;
}

.note-mark {
  position: relative;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  background: var(--brass);
  transform: rotate(45deg);
}

.archive-note p {
  margin: 0 !important;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.archive-note strong {
  margin-right: 5px;
  color: #d8dfd0;
  font-weight: 650;
}

/* Alt bilgi */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(19px, 3.8vw, 36px);
  background: #151b16;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.73rem;
}

.footer-note {
  text-align: left;
}

/* Hareketler ve mobil görünüm */
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes light-breathe {
  0%, 100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes scan-sweep {
  0%, 100% {
    opacity: 0.28;
    transform: translateY(-27px);
  }

  50% {
    opacity: 0.9;
    transform: translateY(27px);
  }
}

@media (max-width: 760px) {
  .welcome {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 17px;
    min-height: 245px;
  }

  .archive-core-art {
    width: min(100%, 150px);
  }

  .game-entry {
    grid-template-columns: 45px minmax(0, 1fr) 88px;
    gap: 13px;
    padding-right: 10px;
    padding-left: 12px;
  }

  .game-entry:hover {
    padding-left: 15px;
  }

  .entry-emblem {
    width: 44px;
    height: 47px;
  }

  .entry-action {
    gap: 6px;
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  body {
    background-image:
      radial-gradient(ellipse at 50% 0, rgb(104 128 91 / 8%), transparent 55%),
      var(--background);
  }

  .site {
    width: calc(100% - 12px);
    margin: 6px auto;
  }

  .site-header {
    padding: 18px 15px 16px;
  }

  .header-inner {
    align-items: center;
    gap: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .brand-hatch {
    width: 23px;
    height: 23px;
  }

  .brand-hatch::before {
    width: 15px;
  }

  .brand-hatch::after {
    height: 15px;
  }

  .brand-kicker {
    font-size: 0.52rem;
    letter-spacing: 0.09em;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  nav {
    gap: 11px;
  }

  nav a {
    gap: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .site-description {
    margin: 11px 0 0 46px;
    font-size: 0.77rem;
    line-height: 1.55;
  }

  .breadcrumbs {
    gap: 8px;
    padding: 10px 15px;
    font-size: 0.73rem;
  }

  .content {
    min-height: 280px;
    padding: 15px 13px 22px;
  }

  .content h1 {
    margin-bottom: 20px;
    font-size: 1.85rem;
  }

  .content h2 {
    margin-top: 28px;
  }

  .welcome {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
    min-height: 0;
    padding: 22px 14px;
  }

  .eyebrow {
    gap: 7px;
    margin-bottom: 11px;
    font-size: 0.53rem;
    letter-spacing: 0.07em;
  }

  .content .welcome h1 {
    margin-bottom: 11px;
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    letter-spacing: -0.05em;
  }

  .welcome-description {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .archive-core-art {
    width: 76px;
    max-width: 100%;
  }

  .archive {
    margin-top: 27px;
  }

  .section-heading {
    align-items: end;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .section-kicker {
    font-size: 0.57rem;
  }

  .content .section-heading h2 {
    font-size: 1.4rem;
  }

  .section-description {
    max-width: 118px;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .game-entry {
    grid-template-columns: 37px minmax(0, 1fr) 22px;
    gap: 10px;
    min-height: 0;
    padding: 14px 3px;
  }

  .game-entry:hover {
    padding-left: 6px;
  }

  .entry-emblem {
    width: 36px;
    height: 43px;
  }

  .entry-title {
    font-size: 1.16rem;
  }

  .entry-category {
    font-size: 0.61rem;
  }

  .entry-description {
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .entry-action {
    justify-content: flex-end;
  }

  .entry-action > span {
    display: none;
  }

  .entry-action b {
    width: 21px;
    height: 21px;
  }

  .archive-note {
    gap: 10px;
    margin-top: 17px;
  }

  .archive-note p {
    font-size: 0.77rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px;
    font-size: 0.69rem;
  }

  .footer-note {
    text-align: left;
  }

  .content img {
    max-height: min(540px, 72vh);
    margin: 17px auto;
  }

  .content th,
  .content td {
    padding: 8px 9px;
  }
}

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

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