:root {
  color-scheme: light;
  --ink: #102c3d;
  --muted: #4b6473;
  --brand: #168fbd;
  --accent: #0b6386;
  --wash: #f5f9fb;
  --blue-wash: #e7f3f9;
  --white: #fff;
  --line: #d7e6ee;
  --radius: 1.1rem;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--white);
}

.page-width { width: min(82rem, calc(100% - 6rem)); margin-inline: auto; }
.site-header { padding: 1.15rem 0; }
.header-inner, .footer-inner, .brand, nav {
  display: flex;
  align-items: center;
}

.header-inner, .footer-inner { justify-content: space-between; gap: 1rem; }
.brand { gap: .65rem; font-weight: 750; font-size: 1.12rem; text-decoration: none; }
.brand-icon {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--brand);
}
nav { gap: clamp(.9rem, 3vw, 2.2rem); flex-wrap: wrap; }
nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  padding: .5rem 0;
}
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }

.hero {
  min-height: clamp(31rem, 44vw, 39rem);
  display: flex;
  align-items: center;
  border-radius: calc(var(--radius) + .35rem);
  background:
    linear-gradient(94deg, #051a29fa 0%, #092435e8 24%, #0a283b99 51%, #163d5922 79%),
    #174b63 url("assets/kapak.jpg") center / cover no-repeat;
  color: var(--white);
}
.hero-inner { width: 100%; padding: clamp(2.4rem, 5.5vw, 4.9rem); }
.hero-eyebrow {
  margin-bottom: 1.15rem;
  color: #b8e9fb;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 5.85vw, 6.2rem);
  line-height: 1.01;
  letter-spacing: -.052em;
  font-weight: 400;
}
.hero h1 > span { display: block; }
.hero h1 > span:last-child { color: #b8e9fb; }
.hero-action {
  display: inline-block;
  margin-top: 1.7rem;
  padding: .87rem 1.2rem;
  border-radius: .55rem;
  background: #e0f4fd;
  color: #103a51;
  text-decoration: none;
  font-weight: 750;
}
.hero-action:hover { background: #fff; }
.hero-action:focus-visible { outline-color: #e0f4fd; }
.library, .process { scroll-margin-top: 1.5rem; }
.library { margin-top: clamp(2.8rem, 6.2vw, 5.25rem); }
.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-heading p {
  max-width: 45rem;
  margin-top: .6rem;
  color: var(--muted);
  line-height: 1.6;
}
.series-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr);
  align-items: start;
  gap: clamp(.9rem, 2vw, 1.4rem);
  margin-top: 1.4rem;
}
.series-player, .episode-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.lesson-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #081c29;
  object-fit: contain;
}
.lesson-video:focus-visible { outline-color: #a8e8fb; outline-offset: -3px; }
.lesson-details { padding: clamp(1rem, 2.6vw, 1.55rem); }
.lesson-order {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
}
.lesson-title {
  margin-top: .25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.lesson-feedback {
  margin-top: .65rem;
  color: var(--muted);
  line-height: 1.55;
}
.lesson-feedback:empty { margin-top: 0; }
.episode-panel-heading { padding: 1rem 1.05rem .85rem; }
.episode-panel-heading h4 { font-size: 1.12rem; line-height: 1.3; }
.episode-panel-heading p {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}
.episode-list {
  display: grid;
  gap: .35rem;
  max-height: clamp(18rem, 31vw, 32rem);
  margin: 0;
  padding: 0 .55rem .55rem;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: #a4bdca transparent;
}
.episode-button {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 3.35rem;
  padding: .5rem .7rem;
  border: 1px solid transparent;
  border-radius: .62rem;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.episode-button:hover { background: var(--blue-wash); }
.episode-button[aria-current="true"] {
  border-color: var(--accent);
  background: var(--blue-wash);
  box-shadow: inset 3px 0 var(--accent);
}
.episode-button:focus-visible { outline-offset: -3px; }
.episode-number {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: .38rem;
  background: var(--white);
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.episode-button[aria-current="true"] .episode-number {
  background: var(--accent);
  color: var(--white);
}
.episode-title { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.episode-duration {
  color: var(--muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.process {
  margin: clamp(2.7rem, 6vw, 5rem) 0;
  padding: clamp(1.25rem, 3.6vw, 2.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.process-list > li {
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--wash);
}
.project-name { font-weight: 700; }
.stage-code { color: var(--accent); font-size: .875rem; font-weight: 750; }
.process-list h3 { margin-top: .25rem; font-size: 1.13rem; }
.process-list p, .research-note { color: var(--muted); line-height: 1.55; }
.process-list p { margin-top: .4rem; }
.research-note { margin-top: 1rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.site-footer p { color: var(--muted); font-size: .9rem; }

@media (max-width: 62rem) {
  .page-width { width: calc(100% - 3rem); }
}

@media (max-width: 52rem) {
  .series-layout { grid-template-columns: minmax(0, 1fr); }
  .episode-list { max-height: none; overflow: visible; }
}

@media (max-width: 39rem) {
  .page-width { width: calc(100% - 2rem); }
  .site-header { padding: .85rem 0; }
  .brand { font-size: 1rem; gap: .45rem; }
  .brand-icon { width: 2.15rem; height: 2.15rem; }
  nav { gap: .35rem .9rem; }
  nav a { font-size: .9rem; }
  .hero {
    min-height: 29rem;
    background-position: 59% center;
    background-image:
      linear-gradient(98deg, #051a29f6 0%, #092435d7 58%, #0a283b75),
      url("assets/kapak.jpg");
  }
  .hero-inner { padding: 2.25rem clamp(1.15rem, 4.3vw, 2rem); }
  .hero h1 { font-size: clamp(2rem, 8.8vw, 3.9rem); }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 31rem) {
  .header-inner { align-items: start; flex-direction: column; gap: .45rem; }
  nav a { padding: .4rem 0; }
  .process-list { grid-template-columns: minmax(0, 1fr); }
}

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