/* 2071.org.tr — the only stylesheet.
 *
 * Palette taken from the association's own logo (/2071-logo.png): an open book
 * with five figures in teal, orange, red, green and purple. Teal leads; the
 * other four appear only as the rule under each section heading.
 *
 * One light theme. Edit the variables before adding selectors.
 */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f3f7f9;
  --border:    #dfe8ec;
  --rule:      #c7d9e0;
  --fg:        #13272f;
  --fg-soft:   #3a535e;
  --muted:     #627a85;

  --teal:      #17788f;
  --teal-dark: #0d4f61;
  --teal-deep: #08323e;
  --teal-soft: #e4f1f5;

  --orange:    #f39200;
  --red:       #e2342c;
  --green:     #6fa800;
  --purple:    #9b4f96;

  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 64rem;     /* outer container */
  --prose: 38rem;     /* reading measure inside it */
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Base rule for every image. Without this a full-size photograph renders at
   its intrinsic width — the 1800px press-breakfast photo overflowed the text
   column and forced horizontal scrolling on the whole page. The gallery only
   escaped it because .galeri img sets width:100% explicitly. */
img {
  max-width: 100%;
  height: auto;
}

::selection { background: var(--teal-soft); color: var(--teal-dark); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: 0.75rem; z-index: 20;
  padding: 0.5rem 0.9rem; background: var(--teal); color: #fff;
  border-radius: 6px; font-size: 0.9rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header { position: relative; z-index: 10; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand img { display: block; flex: none; border-radius: 8px; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--teal-dark); }
.brand-full { font-size: 0.78rem; font-weight: 500; color: var(--muted); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.5rem; font-size: 0.97rem; font-weight: 600; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); border-bottom-color: var(--teal); }

/* The header sits over the hero photograph on the home page. */
.has-hero .site-header { position: absolute; inset: 0 0 auto; }
.has-hero .brand-text strong,
.has-hero .brand-full { color: #fff; }
.has-hero .brand-full { color: rgba(255,255,255,0.8); }
.has-hero .site-nav a { color: rgba(255,255,255,0.85); }
.has-hero .site-nav a:hover { color: #fff; }
.has-hero .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.plain .site-header { border-bottom: 1px solid var(--border); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; color: #fff; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(8,50,62,0.80) 0%, rgba(8,50,62,0.62) 45%, rgba(8,50,62,0.88) 100%),
    url("/hero.jpg");
  background-size: cover;
  background-position: center 38%;
}
.hero-inner { padding: 6.5rem 0 3.4rem; max-width: var(--shell); }
.hero-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero-lead {
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}
.hero-actions { margin: 1.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-block;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--teal-dark); }
.btn-primary:hover { background: var(--teal-soft); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

/* ── Main / prose ────────────────────────────────────────────────────────── */

main { padding-block: 3.25rem 4.5rem; }
main > * { max-width: var(--prose); }
main > :first-child { margin-top: 0; }

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.03em;
  color: var(--teal-dark);
}

h2 {
  margin: 3.2rem 0 1rem;
  font-size: 1.42rem; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--teal-dark);
}
h2::after {
  content: ""; display: block;
  width: 2.4rem; height: 4px; margin-top: 0.65rem;
  border-radius: 2px; background: var(--teal);
}
h2:nth-of-type(4n+1)::after { background: var(--orange); }
h2:nth-of-type(4n+2)::after { background: var(--green); }
h2:nth-of-type(4n+3)::after { background: var(--red); }
h2:nth-of-type(4n+4)::after { background: var(--purple); }

h3 { margin: 2rem 0 0.5rem; font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1.2rem; }

a { color: var(--teal); text-decoration: underline; text-underline-offset: 0.17em;
    text-decoration-color: #a5cbd6; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--rule); }
hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--rule); }

/* ── Pull quotes ─────────────────────────────────────────────────────────── */

blockquote {
  max-width: 46rem;
  margin: 2.4rem 0;
  padding: 0 0 0 2.6rem;
  position: relative;
  border: 0;
  font-size: clamp(1.14rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--teal-dark);
}
blockquote::before {
  content: "\201C";
  position: absolute; left: 0; top: -0.35em;
  font-size: 3.6rem; line-height: 1;
  color: var(--orange);
}
blockquote p:last-child { margin-bottom: 0; }

/* ── lede ────────────────────────────────────────────────────────────────── */

.lede {
  max-width: 44rem;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-soft);
}
.lede p:last-child { margin-bottom: 0; }

/* ── vurgu: a highlighted fact ───────────────────────────────────────────── */

.vurgu {
  max-width: 46rem;
  margin: 2.2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--teal-soft);
  border-left: 5px solid var(--teal);
  border-radius: 0 10px 10px 0;
  font-size: 1.08rem;
  color: var(--teal-dark);
}
.vurgu p:last-child { margin-bottom: 0; }
.vurgu strong { font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }

/* ── kurucular ───────────────────────────────────────────────────────────── */

.kurucular { max-width: var(--shell); }
/* Multi-column, NOT grid. In a grid, <dt> and <dd> are separate items flowing
   in document order, so an odd number of columns makes every name/role pair
   straddle a row boundary — roles end up under the wrong name and one name
   looks orphaned. Columns keep document order, and break-after/before:avoid
   keeps each name glued to its role. */
.kurucular dl {
  margin: 0;
  columns: 15rem 4;
  column-gap: 1.75rem;
}
.kurucular dt {
  font-weight: 700; font-size: 0.97rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
  break-after: avoid; break-inside: avoid;
  -webkit-column-break-after: avoid; -webkit-column-break-inside: avoid;
}
.kurucular dd {
  margin: 0 0 0.75rem; font-size: 0.87rem; line-height: 1.5; color: var(--muted);
  break-before: avoid; break-inside: avoid;
  -webkit-column-break-before: avoid; -webkit-column-break-inside: avoid;
}

/* ── belgeler ────────────────────────────────────────────────────────────── */

.belgeler { max-width: 44rem; }
.belgeler ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.belgeler li { margin: 0 0 0.6rem; }
.belgeler li a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-dark);
}
.belgeler li a:hover { border-color: var(--teal); background: var(--teal-soft); }
.belge-tur {
  display: inline-block; margin-left: 0.55rem;
  padding: 0.08rem 0.42rem;
  background: var(--teal); color: #fff;
  border-radius: 4px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em;
  vertical-align: 0.15em;
}

/* ── galeri + foto şerit ─────────────────────────────────────────────────── */

.galeri, .fotoserit {
  max-width: var(--shell);
  display: grid;
  gap: 0.8rem;
  margin: 1.8rem 0;
}
.galeri { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.fotoserit { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

/* Pandoc wraps consecutive images into a single <p>, which would otherwise be
   the grid's only child. display:contents promotes the links to grid items. */
.galeri > p, .fotoserit > p { display: contents; }

.galeri a, .fotoserit a {
  display: block; border-radius: 10px; overflow: hidden;
  background: var(--bg-alt); line-height: 0;
}
.galeri img, .fotoserit img {
  display: block; width: 100%; height: 11rem;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}
.galeri a:hover img, .fotoserit a:hover img { transform: scale(1.05); filter: saturate(1.1); }
.fotoserit img { height: 9.5rem; }

@media (prefers-reduced-motion: reduce) {
  .galeri img, .fotoserit img { transition: none; }
  .galeri a:hover img, .fotoserit a:hover img { transform: none; }
}

a.more { display: inline-block; font-weight: 700; text-decoration: none; }
a.more::after { content: " →"; }
a.more:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer { margin-top: 2rem; background: var(--teal-deep); color: rgba(255,255,255,0.78); }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding-block: 2.6rem;
  font-size: 0.93rem;
  line-height: 1.65;
}
.foot-grid h2 {
  margin: 0 0 0.5rem; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.foot-grid h2::after { display: none; }
.foot-grid p { margin: 0 0 0.3rem; }
.foot-grid a { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }
.foot-grid a:hover { text-decoration-color: #fff; }
.foot-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.foot-brand img { border-radius: 8px; background: #fff; flex: none; }
.foot-brand strong { display: block; color: #fff; font-size: 1rem; }
.foot-brand span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

@media (max-width: 34rem) {
  .header-inner { padding-block: 0.9rem; }
  .hero-inner { padding: 5.2rem 0 2.6rem; }
  .galeri img, .fotoserit img { height: 8.5rem; }
}
