/* ==========================================================
   Vikivadi — public site
   Soft paper, ink near-black, valley green; Fraunces + Inter +
   JetBrains Mono + Caveat. Text-forward, no fake imagery.
   ========================================================== */

:root {
  --paper: #F7F4EC;
  --paper-2: #EFEBE0;
  --ink: #1F2420;
  --ink-soft: #5A5F58;
  --ink-faint: #9A9E96;
  --rule: #CFC9B8;
  --rule-soft: #E4DFD0;
  --green: #3F6B4A;
  --green-soft: #C9DAC2;
  --green-pale: #E8EFE1;
  --accent: #B04A2A;

  --font-hand: "Caveat", "Shadows Into Light", cursive;
  --font-display: "Fraunces", "Source Serif Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.015) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 0, transparent 50%);
  z-index: 1;
}

a { color: inherit; }

/* ---------- Top nav ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px dashed var(--rule);
  padding: 16px 40px;
  display: flex; align-items: baseline; gap: 28px;
}
.site-nav .logo {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav .logo .viki { color: var(--ink); }
.site-nav .logo .vadi { color: var(--green); }
.site-nav nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav nav a:hover { color: var(--ink); }
.site-nav .lang {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Section bands ---------- */

section.band {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 40px;
  position: relative; z-index: 2;
}
section.band.tight { padding: 56px 40px; }
section.band + section.band { border-top: 1px dashed var(--rule); }
.band-paper2 {
  background: var(--paper-2);
  border-color: rgb(236, 233, 225);
}

/* shared editorial atoms */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.kicker-soft { color: var(--ink-soft); }

/* ---------- Hero / manifesto ---------- */

.hero { padding-top: 100px; padding-bottom: 80px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  max-width: 900px;
  text-wrap: pretty;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lede {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 44px 0 0;
  text-wrap: pretty;
}
.hero .actions {
  display: flex; gap: 14px; margin-top: 36px;
  align-items: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
}
.btn-primary:hover { background: #2a312c; border-color: #2a312c; }
.btn-ghost {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.btn-ghost:hover { border-bottom-color: var(--ink); }
.hero .handnote {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--green);
  margin-left: 8px;
  opacity: 0.8;
}

/* ---------- "What we do" ---------- */

.section-head { max-width: 620px; }
.section-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
}
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.what-card .num {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.15em;
}
.what-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.what-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Roster ---------- */

.roster-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.roster-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.01em;
  margin: 0;
}
.roster-table {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.roster-row {
  display: grid;
  grid-template-columns: 40px 1fr 1.4fr 110px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px dotted var(--rule);
  font-size: 14px;
}
.roster-row:last-child { border-bottom: 0; }
.roster-row:hover { background: rgba(63, 107, 74, 0.04); }
.roster-row .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.roster-row .name { font-weight: 600; font-size: 15px; }
.roster-row .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}
.roster-row .url a { text-decoration: none; }
.roster-row .url a:hover { text-decoration: underline; }
.roster-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.roster-foot {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
}

/* ---------- Origin timeline ---------- */

.origin-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}
.origin-wrap h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.origin-wrap .intro {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.timeline {
  position: relative;
  padding-left: 28px;
}
.t-item { padding: 0 0 28px; position: relative; }
.t-item:last-child { padding-bottom: 0; }
.t-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -29px;
  top: 11px;
  bottom: -4px;
  border-left: 2px dotted var(--green);
}
.t-item::before {
  content: "";
  position: absolute;
  left: -35px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
  box-sizing: content-box;
  z-index: 1;
}
.t-item.now::before { background: var(--green); }
.t-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.1em;
}
.t-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-top: 4px;
  max-width: 520px;
  line-height: 1.35;
}
.t-desc {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 6px;
  max-width: 520px;
  line-height: 1.55;
}
.t-item.now .t-title { color: var(--green); }

/* ---------- Founders ---------- */

.founders-head { margin-bottom: 32px; }
.founders-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.01em;
  margin: 0;
}
.founders-head .sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 10px;
  max-width: 560px;
  line-height: 1.55;
}
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.founder {
  background: #FFFDF7;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  display: flex; gap: 18px;
}
.founder .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 1.5px solid var(--green);
  display: grid; place-items: center;
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--green);
  flex-shrink: 0;
}
.founder .meta .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.founder .meta .wiki {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  margin-top: 2px;
}
.founder .meta .bio {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.55;
}

/* ---------- Changelog / Günlük ---------- */

.log-head {
  margin-bottom: 24px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.log-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.01em;
  margin: 0;
}
.log-empty {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 56px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.log-empty-mark {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 4px;
}
.log-empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.log-empty p {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 420px;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}
.log-admin-link {
  text-align: center;
  margin-top: 32px;
}
.log-admin-link a {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}
.log-admin-link a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

footer.site {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  position: relative; z-index: 2;
}
footer.site .brand-col .logo {
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
footer.site .brand-col .logo .viki { color: var(--ink); }
footer.site .brand-col .logo .vadi { color: var(--green); }
footer.site .brand-col p {
  color: var(--ink-soft);
  font-size: 13px;
  max-width: 280px;
  margin: 12px 0 0;
  line-height: 1.6;
}
footer.site h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
  font-weight: 500;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
footer.site a:hover { color: var(--green); }
footer.site .colophon {
  grid-column: 1 / -1;
  border-top: 1px dotted var(--rule);
  padding-top: 24px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .site-nav nav { gap: 16px; }
  .site-nav nav a { font-size: 13px; }
}

@media (max-width: 860px) {
  body { font-size: 15px; }
  .site-nav { padding: 14px 20px; gap: 14px; flex-wrap: wrap; }
  .site-nav .logo { font-size: 24px; }
  .site-nav nav { gap: 14px; flex-wrap: wrap; margin-left: 0; width: 100%; }
  .site-nav nav a { font-size: 12.5px; }
  .site-nav .lang { display: none; }
  section.band { padding: 56px 24px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .hero .actions { flex-wrap: wrap; gap: 10px; }
  .hero .handnote { font-size: 17px; margin-left: 0; margin-top: 6px; flex-basis: 100%; }
  h2, .roster-head h2, .origin-wrap h2, .founders-head h2, .log-head h2 { font-size: 26px; }
  .what-grid, .founders-grid { grid-template-columns: 1fr; }
  .origin-wrap { grid-template-columns: 1fr; gap: 24px; }
  .roster-row { grid-template-columns: 28px 1fr 90px; gap: 12px; padding: 14px 0; }
  .roster-row .url { display: none; }
  .roster-row .name { font-size: 14.5px; }
  .roster-row .tag { font-size: 10px; }
  footer.site { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; line-height: 1.15; }
  .kicker { font-size: 11px; }
  h2, .roster-head h2, .origin-wrap h2, .founders-head h2, .log-head h2 { font-size: 22px; }
  section.band { padding: 48px 18px; }
  .site-nav { padding: 12px 16px; }
  .timeline { padding-left: 22px; }
  .t-item::before { left: -29px; }
  .t-item:not(:last-child)::after { left: -25px; }
  .t-title { font-size: 16px; }
  .roster-row { grid-template-columns: 22px 1fr 80px; gap: 10px; }
  .founder { padding: 18px; gap: 12px; }
  .founder .avatar { width: 44px; height: 44px; font-size: 22px; }
}
