:root {
  --mist: #E8EEEF;
  --paper: #FFFFFF;
  --ink: #13293B;
  --ink-soft: #54707E;
  --aegean: #0F5E73;
  --deep: #0B4454;
  --deep-soft: #9FC4CE;
  --signal: #C6402F;
  --line: #D5E0E2;
  --card-line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem 3rem;
}

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

a:focus-visible,
li:focus-visible {
  outline: 2px solid var(--aegean);
  outline-offset: 2px;
  border-radius: 2px;
}

.eyebrow,
.next-label,
.board-title,
.notes h3,
.source-links,
.duyuru-badge {
  font-family: "Barlow Condensed", "IBM Plex Sans", sans-serif;
}

.masthead {
  padding: 0.4rem 0 1.6rem;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aegean);
}

.source-links a {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration-color: var(--line, #b9cbd0);
}

.h1 {
  margin: 0.7rem 0 0.6rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

.h1-accent {
  color: var(--aegean);
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.duyuru {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  margin: 1.6rem 0 0;
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 3px;
}

.duyuru-badge {
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--signal);
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
}

.duyuru-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

.duyuru-body strong {
  font-weight: 600;
}

.duyuru-body strong::after {
  content: " — ";
  font-weight: 400;
}

.next-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 1.4rem;
}

.next-card {
  background: var(--deep);
  color: #fff;
  border-radius: 4px;
  padding: 1.3rem 1.5rem 1.25rem;
  border-top: 3px solid var(--signal);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.next-card:nth-child(2) {
  animation-delay: 70ms;
}

.next-label {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-soft);
}

.next-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.next-time {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.next-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--deep-soft);
  font-variant-numeric: tabular-nums;
}

.next-sub {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.day-board {
  margin-top: 2.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.7rem 1.8rem 1.4rem;
}

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.board-head h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.effective {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.board-title {
  margin: 0 0 0.8rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.times {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.7rem, 1fr));
  gap: 8px;
}

.times li {
  position: relative;
  text-align: center;
  padding: 0.5rem 0.3rem 0.45rem;
  background: #f6f9f9;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  animation: rise 0.4s cubic-bezier(0.2, 0.2, 0.2, 1) both;
  animation-delay: calc(var(--i) * 14ms);
}

.times .is-past {
  opacity: 0.35;
  border-style: dashed;
}

.times .is-next {
  border: 2px solid var(--signal);
  color: var(--signal);
  background: #fff;
}

.times .is-next::before {
  content: "SIRADAKİ";
  position: absolute;
  top: -0.62rem;
  right: -0.4rem;
  padding: 0.12rem 0.4rem;
  background: var(--signal);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transform: rotate(-4deg);
}

.times .ek {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.times .is-extra {
  border-style: dashed;
  border-color: var(--signal);
}

.board-empty {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.notes {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
}

.notes h3 {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aegean);
}

.notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.notes li + li {
  margin-top: 0.45rem;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 2px;
  background: var(--signal);
}

.site-foot {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.site-foot p {
  margin: 0;
}

.site-foot a {
  color: var(--aegean);
}

.state {
  margin: 1.4rem 0 0;
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 3px;
}

.state h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.state p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.state-warn {
  border: 1px solid #e3c9a8;
  background: #faf3e7;
  border-left: 3px solid #c98a2d;
  color: #6b4d16;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 3px;
}

.retry {
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .next-board,
  .board {
    grid-template-columns: 1fr;
  }

  .day-board {
    padding: 1.3rem 1.2rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .next-card,
  .times li {
    animation: none;
  }
}
