/* Kağıtsokağı — kagitsokagi.com */
:root {
  --green: #1F4D3A;
  --green-dark: #123326;
  --green-tint: #E6EBE7;
  --green-on-dark: #DCE8E1;
  --ink: #1D1D1D;
  --text: #2B2B2B;
  --text-2: #3A3A3A;
  --muted: #5C5C5C;
  --line: #DCE0DC;
  --line-2: #E3E6E3;
  --panel: #F3F5F3;
  --bar: #2B2B2B;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* top bar */
.topbar { background: var(--bar); color: #E6E6E6; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.topbar a { color: #E6E6E6; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.lang { display: flex; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 0 10px; font-weight: 600; font-size: 12px; color: #BDBDBD; }
.lang a[aria-current="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* header */
.site-header { border-bottom: 1px solid var(--line-2); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img { height: 40px; width: auto; }
.brand-name { font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--text); }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }

/* hero */
.hero { background: var(--panel); border-bottom: 1px solid var(--line-2); }
.hero .wrap { padding-top: 88px; padding-bottom: 88px; }
.hero-inner { max-width: 960px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 6px; margin-bottom: 28px; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px; }
.lead { font-size: 19px; line-height: 1.6; margin: 0 0 36px; max-width: 720px; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-weight: 600; text-decoration: none; border-radius: 4px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border: 1px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }

/* sections */
.section { padding: 104px 0; }
.section-alt { background: var(--panel); }
.section h2 { font-weight: 700; font-size: 40px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 48px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > h2 { flex: 1 1 300px; margin: 0; }
.split > .body { flex: 999 1 600px; min-width: 0; }
.about-lead { font-size: 22px; line-height: 1.55; margin: 0 0 24px; color: var(--ink); }
.body p { font-size: 17px; line-height: 1.7; margin: 0 0 20px; color: var(--text-2); }
.body p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 4px; padding: 28px 26px 32px; }
.card .no { font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 14px; }
.card h3 { font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0 0 12px; }
.card p { font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--text-2); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.principles h3 { font-weight: 600; font-size: 17px; margin: 0 0 8px; color: var(--green); }
.principles p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--text-2); }

/* projects */
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.projects-head h2 { margin: 0 0 12px; }
.projects-head p { font-size: 17px; line-height: 1.6; margin: 0; max-width: 620px; color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 500 15px/1 inherit; font-family: inherit; background: #fff; color: var(--text); border: 1px solid #C9CEC9; padding: 0 18px; min-height: 44px; cursor: pointer; border-radius: 999px; }
.filters button:hover { border-color: var(--green); }
.filters button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.project-list { border-top: 2px solid var(--bar); }
.project { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.project[hidden] { display: none; }
.project .years { flex: 0 0 120px; font-size: 15px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.project .main { flex: 999 1 480px; min-width: 0; }
.project h3 { font-weight: 700; font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.project .main p { font-size: 16px; line-height: 1.65; margin: 0; color: var(--text-2); max-width: 720px; }
.project .meta { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; margin: 0; }
.project .meta dt { display: inline; color: var(--muted); }
.project .meta dd { display: inline; margin: 0; }
.chip { align-self: flex-start; font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 3px; background: var(--green-tint); color: var(--green); }
.chip.dev { background: var(--green); color: #fff; }

/* contact */
.contact { background: var(--green); color: #fff; }
.contact .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: center; }
.contact .text { flex: 999 1 560px; min-width: 0; }
.contact h2 { color: #fff; font-weight: 700; font-size: 44px; letter-spacing: -0.015em; margin: 0 0 16px; }
.contact p { font-size: 18px; line-height: 1.6; margin: 0; max-width: 560px; color: var(--green-on-dark); }
.contact .side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.contact .btn { background: #fff; color: var(--green); align-self: flex-start; font-size: 18px; }
.contact .btn:hover { background: var(--green-tint); }
.contact address { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--green-on-dark); }

.site-footer { background: var(--bar); color: #BDBDBD; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 20px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 32px; margin-bottom: 32px; }
  .contact h2 { font-size: 34px; }
  .project .years { flex-basis: 100%; }
}

/* 404 */
.page-404 { min-height: 100vh; }
.logo-404 { margin-bottom: 40px; }
