@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@400;600;700&family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,600&display=swap");

:root {
  --stone: #ece8e1;
  --stone-deep: #e0dbd2;
  --espresso: #2d2622;
  --espresso-muted: #5c534c;
  --clay: #b44e38;
  --jade: #3d7770;
  --filter-active: #6656a9;
  --paper: #f5f2ec;
  --rule: rgba(45, 38, 34, 0.12);
  --shadow-stamp: rgba(45, 38, 34, 0.08);
  --focus-ring: #3d7770;
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-editorial: "Fraunces", Georgia, serif;
  --font-tabular: "Archivo", ui-monospace, monospace;
  --radius-sm: 2px;
  --radius-md: 4px;
  --max-width: 1380px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--espresso);
  background: var(--stone);
  background-image: linear-gradient(
      90deg,
      transparent 79px,
      var(--rule) 79px,
      var(--rule) 80px,
      transparent 80px
    ),
    linear-gradient(var(--stone-deep) 1px, transparent 1px);
  background-size: 100% 100%, 100% 28px;
}

img {
  max-width: 100%;
  height: auto;
}

.page-visual {
  margin-bottom: 1.75rem;
}

.page-visual figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--shadow-stamp);
}

.page-visual img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.02);
}

.page-visual--hero img {
  max-height: 380px;
}

.page-visual--compact img {
  max-height: 200px;
}

.page-visual figcaption {
  font-size: 0.72rem;
  color: var(--espresso-muted);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}

.page-head-with-visual {
  display: grid;
  grid-template-columns: 1fr min(36%, 420px);
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.page-head-with-visual .page-visual {
  margin-bottom: 0;
}

.page-head-with-visual .page-head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (max-width: 900px) {
  .page-head-with-visual {
    grid-template-columns: 1fr;
  }

  .page-head-with-visual .page-visual img {
    max-height: 220px;
  }
}

a {
  color: var(--jade);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--espresso);
  color: var(--paper);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.65rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--espresso);
  text-decoration: none;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--espresso-muted);
  letter-spacing: 0.02em;
}

.meta-strip {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--espresso-muted);
  text-align: right;
}

.age-notice {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--clay);
  color: var(--clay);
  font-weight: 600;
  margin-left: 0.5rem;
}

.index-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 -1px;
  padding-bottom: 0;
}

.index-tab {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--espresso-muted);
  text-decoration: none;
  background: var(--stone-deep);
  border: 1px solid var(--rule);
  border-bottom: none;
  margin-right: -1px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.index-tab::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 0.35rem;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(45, 38, 34, 0.15) 3px,
    rgba(45, 38, 34, 0.15) 6px
  );
  opacity: 0.6;
}

.index-tab:hover {
  color: var(--espresso);
  background: var(--paper);
}

.index-tab[aria-current="page"] {
  background: var(--stone);
  color: var(--espresso);
  font-weight: 600;
  z-index: 2;
  box-shadow: inset 0 2px 0 var(--clay);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.page-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--espresso-muted);
  font-size: 0.95rem;
}

.section {
  margin-bottom: 2.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso-muted);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--stone-deep) 100%);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.registry-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso-muted);
  padding: 0.5rem 0.65rem;
  border-bottom: 2px solid var(--espresso);
}

.registry-table td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.registry-row-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.registry-row-link:hover .row-title {
  color: var(--clay);
}

.row-title {
  font-weight: 600;
}

.row-meta {
  font-size: 0.78rem;
  color: var(--espresso-muted);
}

.tabular {
  font-family: var(--font-tabular);
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.status-dogrulandi {
  border-color: var(--jade);
  color: var(--jade);
}

.status-kismi {
  border-color: #a67c3a;
  color: #8a6528;
}

.status-eski {
  border-color: var(--espresso-muted);
  color: var(--espresso-muted);
}

.status-bekleniyor {
  border-color: var(--clay);
  color: var(--clay);
}

.status-kapsam {
  border-color: #888;
  color: #666;
  font-style: italic;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  min-width: 4.5rem;
  padding: 0.25rem 0.4rem;
  border: 1.5px double var(--espresso-muted);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 1px 1px 0 var(--shadow-stamp);
  transform: rotate(-0.8deg);
}

.stamp:nth-child(even) {
  transform: rotate(0.6deg);
}

.stamp-key {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  line-height: 1.2;
}

.stamp-val {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.25;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-panel {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--jade);
}

.stat-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso-muted);
}

.stat-number {
  font-family: var(--font-tabular);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--espresso);
}

.editor-note {
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, var(--paper) 0%, var(--stone-deep) 100%);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--clay);
}

.editor-note h2 {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.editor-note p {
  margin: 0;
  color: var(--espresso-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso-muted);
}

.filter-bar input,
.filter-bar select {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--rule);
  background: var(--stone);
  color: var(--espresso);
  min-width: 140px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--filter-active);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--rule);
  background: var(--stone);
  color: var(--espresso);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.filter-chip[aria-pressed="true"] {
  background: var(--filter-active);
  border-color: var(--filter-active);
  color: var(--paper);
}

.btn {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--espresso);
  background: var(--espresso);
  color: var(--paper);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn:hover {
  background: var(--clay);
  border-color: var(--clay);
}

.btn-secondary {
  background: transparent;
  color: var(--espresso);
}

.btn-secondary:hover {
  background: var(--stone-deep);
  border-color: var(--espresso);
  color: var(--espresso);
}

.sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}

.sheet-tab {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--stone-deep);
  border: 1px solid var(--rule);
  border-bottom: none;
  margin-right: -1px;
  cursor: pointer;
  color: var(--espresso-muted);
}

.sheet-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--espresso);
  box-shadow: inset 0 -2px 0 var(--jade);
}

.sheet-panel {
  display: none;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.sheet-panel[data-active="true"] {
  display: block;
}

.context-sheet {
  margin-top: 1.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.registry-sheet {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 2px 2px 0 var(--shadow-stamp);
}

.registry-sheet h3 {
  font-family: var(--font-editorial);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.88rem;
}

.compare-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 0.75rem;
}

.calendar-head {
  font-weight: 600;
  text-align: center;
  padding: 0.35rem;
  background: var(--stone-deep);
}

.calendar-day {
  min-height: 4.5rem;
  padding: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.calendar-day.is-rest {
  background: repeating-linear-gradient(
    -45deg,
    var(--stone-deep),
    var(--stone-deep) 4px,
    var(--paper) 4px,
    var(--paper) 8px
  );
}

.calendar-day .day-num {
  font-weight: 600;
  font-family: var(--font-tabular);
  font-variant-numeric: tabular-nums;
}

.calendar-match {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  line-height: 1.3;
  color: var(--jade);
  text-decoration: none;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--espresso-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.scenario-output {
  margin-top: 1.25rem;
}

.scenario-field {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.scenario-field h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.empty-state,
.loading-state {
  padding: 2rem;
  text-align: center;
  color: var(--espresso-muted);
  background: var(--paper);
  border: 1px dashed var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.5rem 1.25rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--espresso-muted);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--jade);
  background: var(--stone);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--espresso-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  body {
    background-image: none;
  }

  .registry-table thead {
    display: none;
  }

  .registry-table tr {
    display: block;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--paper);
    border: 1px solid var(--rule);
  }

  .registry-table td {
    display: block;
    border: none;
    padding: 0.25rem 0;
  }

  .registry-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--espresso-muted);
    margin-bottom: 0.15rem;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-tab {
    flex: 1 1 calc(50% - 2px);
    text-align: center;
    font-size: 0.72rem;
  }
}

:root{--stone:#e4dfd4;--stone-deep:#d8d2c6;--espresso:#1f1c18;--espresso-muted:#5a534c;--clay:#8b4438;--jade:#3a6b62;--paper:#f7f4ee;--font-ui:"Roboto Flex",system-ui,sans-serif;--font-editorial:"Spectral",Georgia,serif}
body{font-family:var(--font-ui)!important;background:var(--paper)!important;background-image:none!important;font-size:16px!important}
.page-title,.section-label{font-family:var(--font-editorial)!important;letter-spacing:-.02em!important}
.section-label{text-transform:none!important;font-size:1.35rem!important;color:var(--espresso)!important;font-weight:600!important}
.page-visual figure{box-shadow:none!important;border-radius:0!important}
.index-tab{font-weight:600!important}
.index-tab:hover,.index-tab[aria-current="page"]{background:var(--jade)!important;color:#fff!important;border-color:var(--jade)!important}
.registry-row-link:hover .row-title{color:var(--clay)!important}
.btn:hover,.btn-secondary:hover{opacity:.92!important}
