/* galtuntepe.com — personal site styles */
:root {
  --paper: #F3F2EE;
  --paper-2: #E9E7E0;
  --white: #FFFFFF;
  --ink: #121212;
  --ink-2: #2E2E2B;
  --muted: #4A4A45;
  --muted-2: #5A5A55;
  --line: #C9C6BC;
  --accent: #E8461E;
  --accent-text: #C2370F;
  --blue: #1F4FB8;
  --on-ink: #F3F2EE;
  --on-ink-muted: #B9B6AC;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--on-ink);
  font-family: var(--mono); font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { border-bottom: 2px solid var(--ink); }
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted-2); margin-bottom: 12px; }

/* underline that grows on hover */
.u {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease;
}
.u:hover, .u[aria-current="page"] { background-size: 100% 2px; color: var(--ink); }

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--ink); color: var(--on-ink);
  font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.02em;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 32px; font-family: var(--mono); font-size: 14px; }
.nav-links { display: flex; gap: 32px; }
.lang { display: flex; border: 2px solid var(--ink); font-size: 13px; }
.lang a { padding: 4px 10px; text-decoration: none; color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
}

/* ---------- hero ---------- */
.hero-top { padding-top: 72px; }
.meta-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted-2);
}
.meta-row a { color: var(--muted-2); }
.hello { margin: 48px 0 8px; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
.wave {
  display: inline-block; width: 16px; height: 16px; background: var(--accent); vertical-align: 2px;
  transform-origin: 50% 100%; animation: wave 2.6s ease-in-out infinite;
}
.giant {
  font-family: var(--display); font-stretch: 75%; font-weight: 900;
  font-size: clamp(76px, 15vw, 220px); line-height: .84; letter-spacing: -0.035em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.giant span { display: block; }
.giant .accent { color: var(--accent); }
.hero-body { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; padding-bottom: 80px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.role { min-height: 34px; margin-bottom: 24px; font-family: var(--mono); font-size: 22px; font-weight: 500; }
.role .prompt { color: var(--accent-text); }
.lead { max-width: 520px; font-size: 21px; line-height: 1.55; }
.lead strong { font-weight: 600; }
.more { margin-top: 28px; font-family: var(--mono); font-weight: 600; font-size: 16px; }
.caret {
  display: inline-block; width: .5em; height: 1em; margin-left: 3px; vertical-align: -0.12em;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}

/* ---------- code card ---------- */
.code-card { flex: 1 1 520px; min-width: 0; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.code-card figcaption {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px;
  border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 13px;
}
.code-card figcaption b { font-weight: 600; }
.code-card figcaption span { color: var(--muted-2); }
.code {
  margin: 0; padding: 18px 16px 22px 0; overflow-x: auto;
  font-family: var(--mono); font-size: 15px; line-height: 1.8; color: #3A3A36;
  counter-reset: ln;
}
.code code { display: block; font: inherit; }
.code .l { white-space: pre; }
.code .l::before {
  counter-increment: ln; content: counter(ln);
  display: inline-block; width: 48px; padding-right: 18px; text-align: right; color: #8F8C83;
}
.code .l.hidden { visibility: hidden; }
.code .l.in { animation: fadeIn .3s ease-out both; }
.k { color: var(--ink); font-weight: 600; }
.t { color: var(--blue); }
.s { color: var(--accent-text); }
.c { color: #6E6B63; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--on-ink); padding: 22px 0; overflow: hidden; border-bottom: 2px solid var(--ink); }
.marquee-track {
  display: flex; gap: 40px; width: max-content; animation: scroll 40s linear infinite;
  font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 40px;
  text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap;
}
.marquee-track li { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track li::after { content: ""; width: 14px; height: 14px; background: var(--accent); }

/* ---------- sections ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section.tint { background: var(--paper-2); }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .side { flex: 1 1 300px; min-width: 0; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.h2 {
  font-family: var(--display); font-stretch: 85%; font-weight: 800;
  font-size: clamp(38px, 4.6vw, 64px); line-height: .95; letter-spacing: -0.03em; text-transform: uppercase;
}
.h2.small { font-size: clamp(34px, 4vw, 56px); line-height: .98; max-width: 760px; margin-bottom: 48px; }

.rows { border-top: 2px solid var(--ink); }
.rows li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, padding-left .25s ease;
}
.rows li:hover { background-color: var(--paper-2); padding-left: 16px; }
.section.tint .rows li:hover { background-color: var(--paper); }
.rows .num { flex: 0 0 48px; font-family: var(--mono); font-size: 15px; color: var(--muted-2); transition: color .2s ease; }
.rows li:hover .num { color: var(--accent-text); }
.rows h3 { flex: 1 1 220px; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.2; }
.rows p { flex: 1 1 260px; color: var(--muted); }

/* request flow */
.flow { display: flex; flex-wrap: wrap; align-items: center; }
.node { flex: 0 0 auto; width: 180px; padding: 18px; border: 2px solid var(--ink); background: var(--white); }
.node small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.node b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.node.dark { background: var(--ink); color: var(--on-ink); }
.node.dark small { color: var(--on-ink-muted); }
.wire { position: relative; flex: 1 1 60px; min-width: 40px; height: 2px; background: var(--ink); }
.wire::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px;
  background: var(--accent); animation: move 3s steps(24) infinite;
}
.wire.w2::after { animation-delay: 1s; }
.wire.w3::after { animation-delay: 2s; }
.flow-note { margin-top: 28px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.flow-note b { color: var(--accent-text); font-weight: 600; }

.closing { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.closing .main { flex: 1 1 560px; min-width: 0; }
.statement { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-family: var(--mono); font-weight: 600; text-decoration: none; box-shadow: 6px 6px 0 var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--on-ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--accent); }

/* ---------- about page ---------- */
.page-title { padding-top: 64px; padding-bottom: 72px; }
.page-title .giant { margin-top: 40px; font-size: clamp(72px, 14vw, 200px); }
.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.about .main { flex: 999 1 560px; min-width: 0; }
.intro { margin-bottom: 32px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.02em; }
.mark { background: var(--accent); color: var(--ink); padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose { display: flex; flex-direction: column; gap: 22px; max-width: 680px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.json-card { flex: 1 1 360px; min-width: 0; }
.json-card .code { padding-left: 20px; font-size: 14.5px; line-height: 1.9; }
.json-card .code .l::before { content: none; }
.reach { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.reach p { flex: 1 1 520px; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; }
.reach a { font-family: var(--mono); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 2px solid var(--ink); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 24px; padding-bottom: 24px; font-family: var(--mono); font-size: 13px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink); }
.site-footer a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { padding-top: 96px; padding-bottom: 120px; }
.notfound p { margin: 24px 0 40px; font-size: 20px; max-width: 520px; }

/* ---------- animations ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes move { from { left: 0; } to { left: calc(100% - 12px); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-header .wrap { min-height: 60px; }
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .brand-name { font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav { gap: 4px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 2px solid var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 56px; padding: 0 16px; border-top: 1px solid var(--line); background-image: none; font-size: 16px; }
  .nav-links a[aria-current="page"] { color: var(--accent-text); }
  .lang a { display: inline-flex; align-items: center; min-height: 40px; }
  .hero-top { padding-top: 40px; }
  .hello { margin-top: 32px; font-size: 22px; }
  .giant { font-size: clamp(52px, 17.5vw, 110px); }
  .meta-row span:last-child { display: none; }
  .hero-body { gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .role { font-size: 17px; min-height: 28px; margin-bottom: 16px; }
  .lead { font-size: 18px; }
  .code-card { margin-right: 6px; box-shadow: 6px 6px 0 var(--ink); }
  .code { font-size: 12.5px; padding-top: 12px; padding-bottom: 16px; }
  .code .l::before { width: 34px; padding-right: 12px; }
  .marquee { padding: 16px 0; }
  .marquee-track { font-size: 28px; gap: 28px; }
  .marquee-track li { gap: 28px; }
  .marquee-track li::after { width: 10px; height: 10px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .split { gap: 28px; }
  .rows li { padding: 18px 0; }
  .rows h3 { font-size: 24px; }
  .flow { flex-direction: column; align-items: stretch; }
  .node { width: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .node b { margin-top: 0; font-size: 17px; }
  .wire { flex: 0 0 36px; width: 2px; height: 36px; min-width: 0; align-self: center; }
  .wire::after { top: 0; left: 50%; margin-top: 0; margin-left: -5px; width: 10px; height: 10px; animation-name: drop; animation-timing-function: steps(10); animation-duration: 2s; }
  .wire.w2::after { animation-delay: .66s; }
  .wire.w3::after { animation-delay: 1.33s; }
  .btn { width: 100%; }
  .page-title { padding-top: 40px; padding-bottom: 48px; }
  .page-title .giant { margin-top: 28px; }
  .reach { padding-top: 56px; padding-bottom: 56px; }
  .reach p { font-size: 22px; }
}
@keyframes drop { from { top: 0; } to { top: calc(100% - 10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
