/* alperenkizilkulak.com
   One stylesheet, no frameworks, no web fonts, no scripts. It should still
   look right in ten years and load instantly on a phone on campus wifi. */

:root {
  --bg:      #070b10;
  --bg-2:    #0c121a;
  --panel:   #0f1721;
  --line:    #1c2735;
  --fg:      #e6edf3;
  --muted:   #8b9bab;
  --accent:  #34d399;   /* growth green — the one loud colour */
  --accent-2:#38bdf8;   /* data blue, used sparingly */
  --amber:   #fbbf24;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
          "Roboto Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

.mono { font-family: var(--mono); }

/* ── the grid behind everything ────────────────────────────────────────
   Two hairline gradients crossed, plus a soft green bloom at the top.
   Fixed, so content scrolls over a still field rather than a moving one. */
.field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* The fade at the bottom is a plain gradient LAYER rather than a
     mask-image: a mask on a full-viewport fixed element makes the compositor
     re-render the whole layer on every scroll, which is the kind of cost that
     lands on the phone somebody actually reads this on. Same picture, less
     work. */
  background:
    linear-gradient(180deg, rgba(7,11,16,0) 30%, var(--bg) 95%),
    radial-gradient(60rem 40rem at 50% -10%, rgba(52,211,153,.10), transparent 70%),
    radial-gradient(40rem 30rem at 90% 10%, rgba(56,189,248,.06), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 4.5rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 4.5rem 100%,
    var(--bg);
  opacity: .55;
}

/* ── top bar ───────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .85rem clamp(1rem, 5vw, 3.5rem);
  background: rgba(7,11,16,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark {
  color: var(--fg); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem;
}
.mark .mono {
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 7px; padding: .1rem .4rem; font-size: .78rem;
  letter-spacing: .06em;
}
.bar nav { display: flex; gap: 1.25rem; }
.bar nav a {
  color: var(--muted); text-decoration: none; font-size: .86rem;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.bar nav a:hover { color: var(--fg); border-bottom-color: var(--accent); }

main { max-width: 68rem; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3.5rem); }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero { padding: clamp(4rem, 13vh, 8rem) 0 clamp(3rem, 8vh, 5rem); }
.eyebrow {
  color: var(--accent); font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; margin: 0 0 1.4rem;
}
.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: .95; letter-spacing: -.035em; font-weight: 700;
  color: #fff;                 /* the fallback, and it must come FIRST */
}
/* A very slight vertical fade, so the name reads as printed rather than lit.
   Guarded: `color: transparent` with background-clip is how gradient text is
   done, and it is also how a name becomes INVISIBLE if the clip does not
   apply. The @supports means the transparent colour is only ever set on an
   engine that will paint the gradient in its place. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 {
    background: linear-gradient(180deg, #fff 25%, #9fb2c4 130%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.lede {
  max-width: 40rem; color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.16rem); margin: 0 0 2.2rem;
}
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .62rem 1.15rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fg); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #2b3d52; background: var(--bg-2); }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: #04140d;
  font-weight: 650;
}
.btn.primary:hover { background: #4ade9f; border-color: #4ade9f; }
.btn.ghost {
  color: var(--muted); background: transparent; border-style: dashed;
  cursor: not-allowed;
}
.btn.ghost:hover { transform: none; background: transparent; border-color: var(--line); }

/* ── section furniture ─────────────────────────────────────────────── */
.slab { padding: clamp(2.5rem, 7vh, 4.5rem) 0; border-top: 1px solid var(--line); }
.head { margin-bottom: 2rem; }
.head h2 {
  margin: 0 0 .4rem; font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  letter-spacing: -.02em; display: flex; align-items: baseline; gap: .8rem;
}
.head .num { color: var(--accent); font-size: .8rem; opacity: .8; }
.head .sub { margin: 0; color: var(--muted); font-size: .92rem; max-width: 42rem; }

/* ── tool cards ────────────────────────────────────────────────────── */
.grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
}
.tool {
  display: flex; flex-direction: column; gap: .7rem;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.3rem 1.4rem;
  position: relative; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
/* a hairline of colour along the top edge, lit on hover */
.tool::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .35; transition: opacity .15s ease;
}
.tool:hover { border-color: #2b3d52; transform: translateY(-2px); }
.tool:hover::before { opacity: 1; }
.toptool { display: flex; align-items: center; justify-content: space-between; }
.glyph { font-size: 1.5rem; line-height: 1; }
.tool h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.tool p { margin: 0; color: var(--muted); font-size: .88rem; }
.tool .btn { align-self: flex-start; margin-top: .35rem; }

.pill {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .07em;
  text-transform: uppercase; padding: .18rem .55rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.status-live { color: var(--accent); border-color: rgba(52,211,153,.45);
               background: rgba(52,211,153,.10); }
.status-dev  { color: var(--amber);  border-color: rgba(251,191,36,.45);
               background: rgba(251,191,36,.10); }
.status-idea { color: var(--accent-2); border-color: rgba(56,189,248,.35);
               background: rgba(56,189,248,.08); }

.facts { list-style: none; margin: .2rem 0 0; padding: 0;
         display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.facts li { color: var(--muted); font-size: .72rem; opacity: .85; }
.facts li::before { content: "· "; color: var(--accent); }

/* ── news feed ─────────────────────────────────────────────────────── */
.feed { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.4rem;
  padding: 1.15rem 0; border-top: 1px solid var(--line);
  position: relative;
}
.entry:first-child { border-top: 0; }
.entry time { color: var(--muted); font-size: .76rem; padding-top: .28rem; }
/* the dot on the timeline */
.entry time::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); margin-right: .6rem;
  vertical-align: middle; opacity: .75;
}
.entry h3 { margin: 0 0 .25rem; font-size: 1rem; letter-spacing: -.01em; }
.entry p { margin: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 34rem) {
  .entry { grid-template-columns: 1fr; gap: .35rem; }
  .entry time { padding-top: 0; }
}

/* ── about ─────────────────────────────────────────────────────────── */
.about { max-width: 42rem; }
.about p { color: var(--muted); }
.quiet { color: var(--muted); opacity: .7; font-size: .86rem; }

/* ── footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 2rem clamp(1rem, 5vw, 3.5rem) 3rem;
  max-width: 68rem; margin-left: auto; margin-right: auto;
}
footer p { margin: 0 0 .3rem; font-size: .8rem; color: var(--muted); }

/* ── keyboard users get a visible ring ─────────────────────────────── */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* ── if somebody's system asks for light, give them a readable one ─── */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fb; --bg-2: #eef2f6; --panel: #ffffff; --line: #dfe6ee;
    --fg: #0e1720; --muted: #5a6b7c; --accent: #0f9d6b; --accent-2: #0284c7;
  }
  .bar { background: rgba(247,249,251,.8); }
  /* The dark theme's fallback is WHITE, which would be invisible here, so the
     light fallback has to be restated before the gradient is re-applied under
     the same @supports guard. */
  .hero h1 { color: #0e1720; }
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .hero h1 {
      background: linear-gradient(180deg, #0e1720 30%, #55697c 130%);
      -webkit-background-clip: text; background-clip: text;
      color: transparent;
    }
  }
  .field { opacity: .35; }
  .btn.primary { color: #fff; }
}
