/* Başak Öğretmen — "Sınıf Defteri & Pano" tasarım sistemi (bkz. DESIGN.md) */
:root {
  --paper: #fbf6ea;
  --paper-2: #f4ecd8;
  --card: #fffdf8;
  --ink: #1f2a44;
  --ink-2: #4a5470;
  --ink-3: #6f7790;
  --grid: rgba(45, 127, 249, .08);
  --rule: rgba(47, 111, 208, .18);
  --line: #e6dcc4;

  --redpen: #ef3e36;
  --wheat: #ffbf1f;
  --wheat-2: #ffe37a;
  --leaf: #17935f;
  --leaf-2: #bff0d6;
  --sky: #2d7ff9;
  --sky-2: #cfe3ff;
  --plum: #8b5cf6;
  --plum-2: #e4d9ff;
  --rose: #ff8fbf;
  --tangerine: #ff7a1a;
  --teal: #12b5c9;
  --cork: #c69b6d;

  --g1: #ff6b35;
  --g2: #17935f;
  --g3: #8b5cf6;
  --g4: #0e9aa7;

  --chalk: #24423b;

  --r: 18px;
  --r-sm: 12px;
  --bw: 2.5px;
  --pop: 4px 4px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --soft: 0 14px 30px -18px rgba(31, 42, 68, .45);

  --f-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: hidden;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.hand { font-family: var(--f-hand); font-weight: 700; }

/* ============ Duyuru şeridi (yapışkan not bandı) ============ */
.announce {
  background: var(--wheat-2);
  border-bottom: var(--bw) solid var(--ink);
  font-weight: 700; font-size: 15px;
  padding: 9px 16px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  text-align: center;
}
.announce p { margin: 0; }
.announce a { color: var(--ink); }

/* ============ Üst menü ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.nav { display: flex; align-items: center; gap: 12px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--wheat); border: var(--bw) solid var(--ink); box-shadow: var(--pop-sm);
  display: grid; place-items: center; color: var(--ink);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 23px; }
.brand-tag { font-family: var(--f-hand); font-size: 19px; color: var(--redpen); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 8px 13px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15.5px;
  border-radius: 10px; transition: background .2s;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 Q 12 1 24 4 T 48 4 T 74 4 T 98 3' fill='none' stroke='%23d9412b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.nav-links .nav-cta a {
  margin-left: 8px; background: var(--wheat); border: var(--bw) solid var(--ink); box-shadow: var(--pop-sm);
  border-radius: 12px; padding: 7px 14px;
}
.nav-links .nav-cta a:hover { background: var(--wheat); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-links .nav-cta a.active::after { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px;
  border: var(--bw) solid var(--ink); background: var(--card); box-shadow: var(--pop-sm);
  place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--pop);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 17px; }
  .nav-links .nav-cta a { margin: 6px 0 0; justify-content: center; }
  .brand-tag { font-size: 17px; }
}

/* ============ Butonlar (çıkartma) ============ */
.btn {
  --bg: var(--card);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 11px 22px;
  background: var(--bg); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: var(--pop);
  font-family: var(--f-display); font-weight: 600; font-size: 18px; text-decoration: none; line-height: 1.1;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-wheat { --bg: var(--wheat); }
.btn-red { --bg: var(--redpen); color: #fff; }
.btn-leaf { --bg: var(--leaf); color: #fff; }
.btn-sky { --bg: var(--sky); color: #fff; }
.btn-ig { --bg: #f7d5e4; }
.btn-sm { min-height: 44px; padding: 8px 15px; font-size: 16px; box-shadow: var(--pop-sm); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }

/* ============ Karşılama: defter sayfası ============ */
.hero { padding: 44px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.notebook {
  position: relative; background: var(--card);
  border: var(--bw) solid var(--ink); border-radius: 6px 22px 22px 6px; box-shadow: var(--pop);
  padding: 44px 40px 40px 76px;
  background-image:
    linear-gradient(90deg, transparent 54px, rgba(217, 65, 43, .55) 54px, rgba(217, 65, 43, .55) 56px, transparent 56px),
    repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px);
  background-position: 0 0, 0 22px;
}
.notebook::before { /* spiral delikler */
  content: ''; position: absolute; left: 18px; top: 26px; bottom: 26px; width: 14px;
  background: radial-gradient(circle, var(--paper) 5px, var(--ink) 5.5px, var(--ink) 7px, transparent 7.5px) 0 0 / 14px 36px repeat-y;
}
.hero-date { font-family: var(--f-hand); font-size: 24px; color: var(--ink-3); margin-bottom: 6px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; margin-bottom: .35em; }
.hero h1 .name { position: relative; color: var(--redpen); white-space: nowrap; }
.hero h1 .name svg { position: absolute; left: 0; bottom: -.34em; width: 100%; height: .24em; }
.hero-text { font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-note {
  position: absolute; right: -16px; bottom: -26px; transform: rotate(3deg);
  font-family: var(--f-hand); font-size: 24px; color: var(--redpen); display: flex; align-items: center; gap: 6px;
  background: var(--wheat-2); padding: 6px 16px; border: 2px solid var(--ink); border-radius: 4px; box-shadow: var(--pop-sm);
}

.polaroid {
  position: relative; background: #fff; padding: 14px 14px 52px; border: var(--bw) solid var(--ink);
  box-shadow: var(--pop); transform: rotate(2.5deg); max-width: 380px; margin: 0 auto;
}
.polaroid .photo { aspect-ratio: 1; background: var(--sky-2); overflow: hidden; display: grid; place-items: center; border: 2px solid var(--ink); }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .photo svg { width: 70%; height: 70%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--f-hand); font-size: 28px; font-weight: 700; }
.tape {
  position: absolute; width: 110px; height: 30px; top: -16px; left: 50%; translate: -50% 0; rotate: -4deg;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .45) 0 6px, transparent 6px 12px),
    var(--tape, #f6d27a);
  opacity: .9; border-left: 2px dashed rgba(0, 0, 0, .08); border-right: 2px dashed rgba(0, 0, 0, .08);
}
.tape.t-rose { --tape: #ff9cc6; } .tape.t-sky { --tape: #8fc1ff; } .tape.t-leaf { --tape: #8fe3b5; }
.doodle { position: absolute; color: var(--ink); pointer-events: none; }
.hero-art { position: relative; padding: 24px; }
.hero-art .d1 { top: -6px; left: 0; width: 64px; color: var(--wheat); }
.hero-art .d2 { bottom: 4px; left: -6px; width: 70px; color: var(--sky); rotate: -12deg; }
.hero-art .d3 { top: 18px; right: -4px; width: 48px; color: var(--redpen); }

@media (max-width: 900px) {
  .hero { padding: 24px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 250px; margin: 0 auto; padding: 18px; }
  .notebook { padding: 32px 22px 36px 56px; background-image: linear-gradient(90deg, transparent 40px, rgba(217, 65, 43, .55) 40px, rgba(217, 65, 43, .55) 42px, transparent 42px), repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px); }
  .notebook::before { left: 12px; }
  .hero-note { right: 10px; font-size: 21px; }
}

/* ============ Bölümler ============ */
.section { padding: 64px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.kicker { font-family: var(--f-hand); font-size: 26px; color: var(--redpen); line-height: 1; display: inline-flex; align-items: center; gap: 6px; }
.kicker svg { width: 34px; height: 20px; }
.band { background: var(--paper-2); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }

/* ============ Polaroid kartlar (paylaşımlar) ============ */
.grid { display: grid; gap: 34px 26px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 4px; box-shadow: var(--pop);
  padding: 12px 12px 18px; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.grid > .card:nth-child(3n+1) { rotate: -1.2deg; }
.grid > .card:nth-child(3n+2) { rotate: .8deg; }
.grid > .card:nth-child(3n+3) { rotate: -.4deg; }
.card:hover { rotate: 0deg; transform: translate(-3px, -4px); box-shadow: 8px 9px 0 var(--ink); }
.card .tape { width: 84px; height: 24px; top: -13px; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--ink); background: var(--paper-2); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.card-ph svg { width: 34%; height: 34%; opacity: .9; }
.card-body { padding: 14px 6px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.2; margin: 0; }
.card-text { color: var(--ink-2); font-size: 15.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-3); font-weight: 700; }
.card-foot span { display: inline-flex; align-items: center; gap: 5px; }
.pinned-flag {
  position: absolute; top: 18px; left: -8px; z-index: 2; background: var(--redpen); color: #fff;
  font-weight: 800; font-size: 13px; padding: 4px 12px 4px 10px; border: 2px solid var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border: 2px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--paper);
}
.tag svg { width: 14px; height: 14px; }
.tag-duyuru { background: #ffc9c4; }
.tag-etkinlik { background: var(--leaf-2); }
.tag-materyal { background: var(--sky-2); }
.tag-paylasim { background: var(--wheat-2); }
.tag-g1 { background: #ffd2bd; } .tag-g2 { background: var(--leaf-2); } .tag-g3 { background: var(--plum-2); } .tag-g4 { background: #c9f0f5; }

/* Filtreler */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 34px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  min-height: 44px; padding: 8px 16px; border: var(--bw) solid var(--ink); border-radius: 999px;
  background: var(--card); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .15s;
}
.chip-btn:hover { background: var(--paper-2); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters .divider { width: 2px; align-self: stretch; background: var(--line); margin: 0 4px; }
.search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 48px;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 0 16px;
}
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 16px; }
.search:focus-within { box-shadow: 0 0 0 4px var(--sky-2); }

/* ============ Defter kapakları (sınıflar) ============ */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cover {
  --c: var(--g1);
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px 24px 22px 40px;
  background: var(--c); color: #fff; text-decoration: none;
  border: var(--bw) solid var(--ink); border-radius: 6px 18px 18px 6px; box-shadow: var(--pop);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  overflow: hidden;
}
.cover::before { /* cilt sırtı */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 18px;
  background: rgba(0, 0, 0, .22); border-right: 2px solid rgba(0, 0, 0, .25);
}
.cover::after { /* doku */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 12px 12px;
}
.cover:hover { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: 8px 9px 0 var(--ink); }
.cover.g2 { --c: var(--g2); } .cover.g3 { --c: var(--g3); }
.label {
  position: relative; z-index: 1; background: #fff; color: var(--ink); border: 2px solid var(--ink);
  border-radius: 12px; padding: 12px 16px 10px; margin: 12px 0 18px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--c);
}
.label .row { display: flex; align-items: baseline; gap: 8px; border-bottom: 1.5px dotted var(--ink-3); padding: 2px 0; }
.label .row:last-child { border-bottom: 0; }
.label small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); flex: none; }
.label .hand { font-size: 27px; line-height: 1.1; color: var(--sky); }
.cover .topics { position: relative; z-index: 1; font-weight: 700; font-size: 16px; line-height: 1.45; margin: 0; }
.cover .open {
  position: relative; z-index: 1; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 10px; font-family: var(--f-display); font-weight: 600;
}
.cover .big {
  position: absolute; right: 18px; bottom: 10px; z-index: 1; font-family: var(--f-display); font-weight: 700; font-size: 74px; line-height: 1;
  color: rgba(255, 255, 255, .9); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 2px var(--ink);
}
@media (max-width: 900px) { .covers { grid-template-columns: 1fr; } .cover { min-height: 0; } }

/* ============ Mantar pano (Instagram) ============ */
.cork {
  position: relative; padding: 38px 30px 34px;
  border: 12px solid #a8743f; border-radius: 10px; outline: var(--bw) solid var(--ink); outline-offset: 0;
  box-shadow: var(--pop), inset 0 0 40px rgba(80, 45, 10, .35);
  background-color: var(--cork);
  background-image:
    radial-gradient(rgba(90, 55, 20, .35) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 230, 190, .35) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
}
.cork-title {
  position: absolute; top: -26px; left: 50%; translate: -50% 0; rotate: -2deg; z-index: 2;
  background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--pop-sm);
  font-family: var(--f-hand); font-size: 30px; font-weight: 700; padding: 2px 22px; white-space: nowrap;
}
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.ig-item {
  position: relative; display: block; background: #fff; padding: 9px 9px 30px; color: var(--ink); text-decoration: none;
  box-shadow: 0 10px 18px -8px rgba(40, 20, 0, .6); transition: transform .2s var(--ease);
}
.ig-grid .ig-item:nth-child(4n+1) { rotate: -2deg; } .ig-grid .ig-item:nth-child(4n+2) { rotate: 1.5deg; }
.ig-grid .ig-item:nth-child(4n+3) { rotate: -.6deg; } .ig-grid .ig-item:nth-child(4n+4) { rotate: 2deg; }
.ig-item:hover { rotate: 0deg; transform: scale(1.04); z-index: 3; }
.ig-item::before { /* raptiye */
  content: ''; position: absolute; top: -8px; left: 50%; translate: -50% 0; width: 18px; height: 18px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 35%, #fff 0 2px, var(--pin, #d9412b) 3px); border: 2px solid var(--ink);
}
.ig-grid .ig-item:nth-child(3n+2)::before { --pin: #2f6fd0; } .ig-grid .ig-item:nth-child(3n+3)::before { --pin: #e9a931; }
.ig-item .ph { aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; }
.ig-item .cap { position: absolute; left: 10px; right: 10px; bottom: 5px; font-family: var(--f-hand); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.ig-item .kind { position: absolute; top: 16px; right: 16px; background: rgba(31, 42, 68, .75); color: #fff; border-radius: 8px; padding: 4px; display: grid; }
.ig-item .kind svg { width: 16px; height: 16px; }
.ig-embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 26px; align-items: start; }
.ig-embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.cork-foot { display: flex; justify-content: center; margin-top: 30px; }
.cork .empty { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
@media (max-width: 900px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .cork { padding: 34px 14px 26px; border-width: 9px; }
  .cork-title { font-size: 25px; }
}

/* ============ Mektup (Hakkımda) ============ */
.letter-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.letter {
  position: relative; background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--pop); border-radius: 4px;
  padding: 40px 40px 34px 84px; font-size: 18px; line-height: 36px;
  background-image:
    linear-gradient(90deg, transparent 60px, rgba(217, 65, 43, .5) 60px, rgba(217, 65, 43, .5) 62px, transparent 62px),
    repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px);
  background-position: 0 0, 0 4px;
}
.letter h2 { font-size: 36px; line-height: 36px; margin-bottom: 18px; }
.letter p { margin: 0 0 36px; color: var(--ink-2); }
.letter p:last-of-type { margin-bottom: 0; }
.signature { font-family: var(--f-hand); font-size: 32px; font-weight: 700; color: var(--sky); margin-top: 18px; display: block; text-align: right; }
@media (max-width: 900px) {
  .letter-wrap { grid-template-columns: 1fr; gap: 28px; }
  .letter-wrap .polaroid { max-width: 240px; }
  .letter { padding: 30px 20px 26px 54px; background-image: linear-gradient(90deg, transparent 36px, rgba(217, 65, 43, .5) 36px, rgba(217, 65, 43, .5) 38px, transparent 38px), repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px); }
}

/* ============ Yazı detayı ============ */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 36px 20px 80px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--ink-2); text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.sheet { position: relative; background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--pop); border-radius: 4px; padding: 44px 48px 40px; }
.sheet .tape { top: -15px; }
.sheet h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-3); font-weight: 700; font-size: 15px; margin-bottom: 26px; }
.meta .date { display: inline-flex; align-items: center; gap: 6px; }
.cover-img { margin: 0 0 28px; border: var(--bw) solid var(--ink); }
.lead { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.prose { font-size: 18.5px; }
.prose h2 { font-size: 30px; margin-top: 1.4em; }
.prose h3 { font-size: 24px; margin-top: 1.2em; }
.prose img { margin: 20px 0; border: var(--bw) solid var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--redpen); font-weight: 800; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; background: var(--wheat-2); border: 2px solid var(--ink); rotate: -.5deg; font-family: var(--f-hand); font-size: 24px; line-height: 1.35; }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 20px 0; border: var(--bw) solid var(--ink); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.attachment {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin: 30px 0 0;
  background: var(--sky-2); border: var(--bw) dashed var(--ink); border-radius: var(--r); text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.attachment:hover { background: #c4d9f8; }
.attachment .ai { width: 54px; height: 54px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); }
.attachment .ai svg { width: 28px; height: 28px; }
.attachment strong { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.attachment span { color: var(--ink-2); font-size: 15px; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 2px dashed var(--line); }
@media (max-width: 700px) { .sheet { padding: 32px 20px 28px; } }
@media print {
  .site-header, .site-footer, .announce, .share-row, .back { display: none !important; }
  body { background: #fff; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
}

/* ============ Sayfa başlığı ============ */
.page-head { padding: 44px 0 26px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 700; margin: 6px 0 10px; }
.page-head h1 .u { position: relative; display: inline-block; }
.page-head h1 .u svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .35em; color: var(--wheat); z-index: -1; }
.page-head p { color: var(--ink-2); font-size: 18.5px; max-width: 58ch; margin: 0 auto; }

/* ============ Durumlar ============ */
.empty { grid-column: 1 / -1; text-align: center; padding: 44px 20px; color: var(--ink-2); font-weight: 700; }
.empty .hand { display: block; font-size: 32px; color: var(--redpen); margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #fbf3e3 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px; border: 2px dashed var(--line); }
@keyframes sk { to { background-position: -200% 0; } }
.center { text-align: center; }
.mt { margin-top: 34px; }

/* ============ Kara tahta (alt bilgi) ============ */
.site-footer {
  position: relative; margin-top: 56px; color: #e9efe9;
  background: var(--chalk);
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px), radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .07), transparent 60%);
  background-size: 6px 6px, 100% 100%;
  border-top: 14px solid #8a5a2b; box-shadow: inset 0 6px 0 rgba(0, 0, 0, .15);
  padding: 46px 0 22px;
}
.site-footer::before { /* tebeşirlik */
  content: ''; position: absolute; top: -14px; left: 8%; width: 120px; height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, #f7f4ec 0 45px, transparent 45px 60px, #f2a7b3 60px 100px, transparent 100px);
  translate: 0 -7px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-family: var(--f-hand); font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer p { color: #c9d6cf; }
.site-footer a { color: #e9efe9; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.site-footer a:hover { color: var(--wheat-2); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.chalk-line { height: 3px; margin: 30px 0 18px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 18px, transparent 18px 26px); border-radius: 2px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: #b9c8c0; }
.footer-bottom .hand { font-size: 22px; color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ============ Oyun listesi (fiş kartları) ============ */
.player-name {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  max-width: 560px; margin: 0 auto 30px; padding: 14px 18px;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--pop-sm);
}
.player-name label { font-weight: 800; }
.player-name input {
  flex: 1 1 180px; min-height: 46px; border: 0; border-bottom: 2.5px dotted var(--ink); background: transparent;
  font-family: var(--f-hand); font-size: 30px; font-weight: 700; color: var(--sky); padding: 0 6px; outline: none;
}
.grade-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.grade-tab {
  --c: var(--ink);
  min-height: 50px; padding: 8px 20px; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--card);
  font-family: var(--f-display); font-weight: 600; font-size: 19px; box-shadow: var(--pop-sm);
  display: inline-flex; align-items: center; gap: 10px; transition: transform .15s;
}
.grade-tab .sw { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--ink); background: var(--c); }
.grade-tab[data-g="1"] { --c: var(--g1); } .grade-tab[data-g="2"] { --c: var(--g2); } .grade-tab[data-g="3"] { --c: var(--g3); } .grade-tab[data-g="4"] { --c: var(--g4); }
.grade-tab[aria-pressed="true"] { background: var(--c); color: #fff; }
.grade-tab[data-g="all"][aria-pressed="true"] { background: var(--ink); }
.subj-tabs { margin-top: -26px; gap: 8px; }
.subj-tabs .grade-tab { min-height: 44px; padding: 6px 14px; font-size: 16px; border-width: 2px; border-radius: 999px; }
.subj-tabs .grade-tab[aria-pressed="true"] { background: var(--sky); }
.subj-tabs .grade-tab .n { font-family: var(--f-body); font-size: 13px; font-weight: 800; opacity: .75; }
.games-empty { text-align: center; color: var(--ink-3); font-size: 18px; margin: 0 0 48px; }
@media (max-width: 560px) {
  .grade-tabs { gap: 8px; margin-bottom: 28px; }
  .grade-tab { padding: 6px 14px; font-size: 17px; min-height: 46px; }
  .subj-tabs { margin-top: -16px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 16px 8px; margin-left: -16px; margin-right: -16px; scrollbar-width: none; }
  .subj-tabs::-webkit-scrollbar { display: none; }
  .subj-tabs .grade-tab { flex: none; }
}

.grade-block { margin-bottom: 56px; }
.grade-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.grade-block-head .badge {
  width: 58px; height: 58px; border-radius: 50%; border: var(--bw) solid var(--ink); box-shadow: var(--pop-sm);
  display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 30px;
}
.grade-block-head h2 { margin: 0; font-size: 34px; }
.grade-block-head .hand { font-size: 23px; color: var(--ink-3); }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.game-card {
  --c: var(--g1);
  position: relative; display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 8px; box-shadow: var(--pop-sm);
  padding: 22px 18px 16px;
  background-image: linear-gradient(var(--redpen), var(--redpen)), repeating-linear-gradient(transparent 0 25px, var(--rule) 25px 26px);
  background-size: 100% 2px, 100% 100%; background-position: 0 14px, 0 14px; background-repeat: no-repeat, repeat;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.game-card:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 6px 7px 0 var(--ink); }
.game-card[data-g="2"] { --c: var(--g2); } .game-card[data-g="3"] { --c: var(--g3); } .game-card[data-g="4"] { --c: var(--g4); } .game-card[data-g=""] { --c: var(--sky); }
.game-card .by { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--wheat-2); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 8px; vertical-align: 1px; }
.glyph {
  flex: 0 0 78px; height: 78px; border-radius: 16px; border: var(--bw) solid var(--ink);
  display: grid; place-items: center; background: var(--c); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; text-align: center;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15);
}
.glyph.sm { font-size: 24px; }
.game-card h3 { font-size: 21px; margin: 0 0 3px; }
.game-card p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.game-card .subj { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--c); filter: brightness(.8); }
.game-card .earned { display: flex; gap: 2px; margin-top: 6px; }
.game-card .earned svg { width: 18px; height: 18px; }

/* Yıldız (çıkartma) */
.star-on { color: var(--wheat); } .star-off { color: #e6dcc4; }
.star-on path, .star-off path { stroke: var(--ink); stroke-width: 1.5; }

/* ============ Belirme ============ */
.reveal { opacity: 0; translate: 0 16px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
.hero h1 .name svg { color: var(--wheat); z-index: -1; }
.hero h1 .name { z-index: 0; display: inline-block; padding-bottom: .12em; }
.hero h1 { line-height: 1.12; }


/* =================== Renk ve neşe katmanı =================== */
/* Flama (sınıf süsü) */
.bunting {
  height: 26px; margin-bottom: -26px; position: relative; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='26' viewBox='0 0 210 26'%3E%3Cpath d='M0 2 Q105 8 210 2' fill='none' stroke='%231f2a44' stroke-width='1.5'/%3E%3Cg stroke='%231f2a44' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4 2.3 L26 3.4 L15 22Z' fill='%23ef3e36'/%3E%3Cpath d='M39 3.9 L61 4.9 L50 24Z' fill='%23ffbf1f'/%3E%3Cpath d='M74 4.9 L96 5.4 L85 25Z' fill='%2317935f'/%3E%3Cpath d='M109 5.4 L131 5.2 L120 25Z' fill='%232d7ff9'/%3E%3Cpath d='M144 4.8 L166 4.2 L155 24Z' fill='%238b5cf6'/%3E%3Cpath d='M179 3.7 L201 2.6 L190 22Z' fill='%23ff8fbf'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 210px 26px repeat-x;
  animation: sway 6s ease-in-out infinite;
}
@keyframes sway { 50% { background-position-y: 2px; } }
.site-header { border-bottom: 0; }
main { padding-top: 10px; }

/* Renkli bölüm bantları */
.band { background: #fff3c9; background-image: radial-gradient(rgba(255, 191, 31, .35) 2px, transparent 2.5px); background-size: 22px 22px; border-top: 0; border-bottom: 0; }
.band.blue { background-color: #e3efff; background-image: radial-gradient(rgba(45, 127, 249, .2) 2px, transparent 2.5px); }
.confetti-bg {
  background-image:
    radial-gradient(circle at 8% 20%, #ff8fbf 0 7px, transparent 8px),
    radial-gradient(circle at 92% 14%, #2d7ff9 0 6px, transparent 7px),
    radial-gradient(circle at 85% 82%, #ffbf1f 0 9px, transparent 10px),
    radial-gradient(circle at 4% 88%, #17935f 0 6px, transparent 7px),
    radial-gradient(circle at 48% 6%, #8b5cf6 0 5px, transparent 6px);
}
.section-head h2 .pop { color: var(--redpen); }
.kicker { color: var(--tangerine); }
.hero .notebook { background-color: #fff; }
.hero-text { color: var(--ink); }
.hero-note { background: #ffe37a; }
.btn-wheat { --bg: var(--wheat); }
.btn-sky { --bg: var(--sky); color: #fff; }
.btn-ig { --bg: linear-gradient(90deg, #ffd84d, #ff8fbf 50%, #b28cff); background: var(--bg); }
.grid > .card:nth-child(4n+1) .card-ph { background: #ffe37a !important; }
.grid > .card:nth-child(4n+2) .card-ph { background: #ffc9c4 !important; }
.grid > .card:nth-child(4n+3) .card-ph { background: #bff0d6 !important; }
.grid > .card:nth-child(4n+4) .card-ph { background: #cfe3ff !important; }
.card-title { color: var(--ink); }
.card:hover .card-title a { color: var(--sky); }
.files-badge { background: var(--wheat); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; }
.chip-btn[aria-pressed="true"] { background: var(--sky); border-color: var(--ink); }
.filter-group:last-of-type .chip-btn[aria-pressed="true"] { background: var(--tangerine); }
.page-head h1 { letter-spacing: .01em; }

/* Mobil alt menü */
.tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: var(--bw) solid var(--ink);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px -10px rgba(31, 42, 68, .35);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px;
    color: var(--ink-2); text-decoration: none; font-size: 12px; font-weight: 800; border-radius: 14px; transition: background .15s;
  }
  .tabbar a svg { width: 26px; height: 26px; color: var(--t); }
  .tabbar a.on { background: color-mix(in srgb, var(--t) 16%, #fff); color: var(--ink); }
  .tabbar a.on svg { stroke-width: 2.8; }
  .tabbar a:active { transform: scale(.95); }
  .site-footer { margin-bottom: 0; }
  .nav { min-height: 64px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 20px; }
}

/* Dosyalar */
.jump { display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 22px; padding: 8px 14px; background: var(--wheat-2); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 800; text-decoration: none; }
.files { margin-top: 34px; padding: 22px; background: #fff8de; border: var(--bw) dashed var(--ink); border-radius: var(--r); scroll-margin-top: 90px; }
.files-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.files-head h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin: 0; }
.files-head .count { background: var(--redpen); color: #fff; border-radius: 999px; font-size: 16px; padding: 0 10px; border: 2px solid var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 14px; margin-bottom: 14px; }
.g-item { margin: 0; background: #fff; border: var(--bw) solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: var(--pop-sm); }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); aspect-ratio: 3 / 4; }
.g-open img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.g-item figcaption { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-top: 2px solid var(--ink); }
.g-item figcaption span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-mini { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--wheat); border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); }
.dl-mini svg { width: 22px; height: 22px; }
.doc { background: #fff; border: var(--bw) solid var(--ink); border-radius: 14px; padding: 14px; box-shadow: var(--pop-sm); margin-bottom: 14px; }
.doc-row { display: flex; align-items: center; gap: 14px; }
.doc-ic { width: 56px; height: 64px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 6px 16px 6px 6px; background: var(--sky-2); font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.doc-ic.pdf { background: var(--redpen); color: #fff; }
.doc-info { min-width: 0; }
.doc-info strong { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.2; word-break: break-word; }
.doc-info small { color: var(--ink-3); font-weight: 700; }
.pdf-view { width: 100%; height: 640px; margin-top: 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper-2); }
.doc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.doc-actions .btn { width: 100%; }
@media (max-width: 420px) { .doc-actions { grid-template-columns: 1fr; } .files { padding: 14px; } }

/* Büyütme penceresi */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 24, 40, .94); display: flex; flex-direction: column; }
.lb-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; color: #fff; }
.lb-count { flex: 1; font-weight: 800; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-cap { color: #fff; text-align: center; margin: 0; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); font-weight: 700; }

/* Gökkuşağı başlık harfleri hafif zıplasın */
[data-rb] span { display: inline-block; transition: transform .2s var(--ease); }
[data-rb]:hover span:nth-child(odd) { transform: translateY(-3px) rotate(-4deg); }
[data-rb]:hover span:nth-child(even) { transform: translateY(2px) rotate(3deg); }
@media (prefers-reduced-motion: reduce) { .bunting { animation: none; } }
@media print { .tabbar, .bunting, .jump, .files-head button, .doc-actions, .pdf-view { display: none !important; } }

.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--sky); outline-offset: 4px; }
.card-dl {
  position: relative; z-index: 2; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--wheat); color: var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: var(--pop-sm);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.card-dl:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.card-dl:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .announce { font-size: 13.5px; padding: 7px 12px; }
  .hero h1 { font-size: 36px; }
  .hero-text { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 30px; }
  .notebook { padding-right: 18px; }
  .hero-note { display: none; }
}

@media (max-width: 700px) {
  .filters { gap: 10px; margin-bottom: 26px; }
  .filters .divider { display: none; }
  .filter-group {
    flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 40px); margin: 0 -20px; padding: 4px 20px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .filter-group::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; scroll-snap-align: start; }
  .search { flex-basis: 100%; }
}
.g-item figcaption span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }

/* ===== Öğretmen fotoğrafı: logo + portre ===== */
.brand-mark.photo { background: #fff; padding: 0; overflow: hidden; }
.brand-mark.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand { position: relative; }
.brand-badge {
  position: absolute; left: 32px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--wheat); border: 2px solid var(--ink); display: grid; place-items: center;
}
.brand-badge svg { width: 14px; height: 14px; }
.polaroid .photo.portrait { aspect-ratio: 4 / 5; }
.polaroid .photo img { object-position: 50% 18%; }
.hero-art .polaroid { max-width: 400px; }
.hero-art .polaroid figcaption { font-size: 30px; color: var(--ink); }
.hero-badges { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 8px; right: -18px; bottom: 76px; }
.hero-badge {
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--pop-sm);
  padding: 6px 12px; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.hero-badge b { font-family: var(--f-display); font-size: 22px; color: var(--redpen); line-height: 1; }
.hero-badge:nth-child(1) { rotate: 3deg; } .hero-badge:nth-child(2) { rotate: -2deg; background: var(--wheat-2); }
@media (max-width: 900px) {
  .hero-art { max-width: 300px; }
  .hero-badges { right: -10px; bottom: 60px; }
  .hero-badge { font-size: 12.5px; padding: 4px 9px; } .hero-badge b { font-size: 18px; }
}
