/* selinkurt.com  - paper white + ink + indigo, academic-corporate */

:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #1C1F2E;
  --muted: #6B7080;
  --line: #E6E4DD;
  --accent: #4F46E5;
  --accent2: #0F766E;
  --grad: linear-gradient(100deg, #4F46E5 10%, #7C5CD9 45%, #0F766E 90%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 31, 46, 0.06);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html.dark {
  --paper: #14161F;
  --surface: #1C1F2E;
  --ink: #EAE9E4;
  --muted: #9A9EB0;
  --line: #2B2F40;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--ink); }

.theme {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  height: 34px;
  width: 38px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme:hover { color: var(--ink); border-color: var(--accent); }

/* hero */
.hero { padding: 84px 0 46px; }

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 26px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  font-size: 1.13rem;
  max-width: 620px;
  margin: 0 0 14px;
}

.intro2 { color: var(--muted); max-width: 620px; margin: 0 0 30px; }

.chips { display: flex; gap: 12px; flex-wrap: wrap; }

.chip {
  background: var(--accent);
  border: 0;
  display: inline-block;
  margin: 3px 6px 3px 0;
  border-radius: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.chip:hover { transform: translateY(-2px); filter: brightness(1.08); }

.chip.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.chip.quiet:hover { border-color: var(--accent); color: var(--accent); }

/* portrait */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
}

.portrait { display: flex; justify-content: center; }

.mono {
  align-items: center;
  background: var(--grad);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 600;
  height: 210px;
  justify-content: center;
  letter-spacing: 0.03em;
  width: 210px;
}

/* projects */
.projects-sec { padding: 40px 0 30px; }

.sec-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.sec-sub { color: var(--muted); margin: 0 0 30px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}



.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(28, 31, 46, 0.10);
}

.bar {
  align-items: center;
  background: color-mix(in srgb, var(--ink) 5%, var(--surface));
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  padding: 9px 14px;
}

.dots { display: flex; gap: 6px; }

.dots i {
  background: var(--line);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.dots i:first-child { background: #f2a05d; }
.dots i:nth-child(2) { background: #d9c66a; }
.dots i:last-child { background: #79b782; }

.bar-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.shot {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(110% 100% at 90% 20%, rgba(15, 118, 110, 0.10), transparent 55%);
  border-bottom: 1px solid var(--line);
  padding: 20px 18px;
  min-height: 150px;
}

html.dark .shot {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(124, 92, 217, 0.18), transparent 60%),
    radial-gradient(110% 100% at 90% 20%, rgba(15, 118, 110, 0.16), transparent 55%);
}

.shot code {
  color: var(--ink);
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre;
}

/* figure panels (z.ai framework-figure style) */
.fig {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  min-height: 178px;
  padding: 16px 16px 12px;
}

.figrow { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }

.node {
  background: color-mix(in srgb, var(--ink) 4%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 5px 9px;
  white-space: nowrap;
}

.node.strong {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent);
  font-weight: 600;
}

html.dark .node.strong { border-color: #3E4C8C; color: #A5B4FC; }

.node.dim { opacity: 0.55; text-decoration: line-through; }

.node.say { background: color-mix(in srgb, var(--accent2) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent2) 40%, var(--line)); color: var(--accent2); }

html.dark .node.say { color: #5EEAD4; }

.arr { color: var(--muted); font-family: var(--mono); font-size: 0.9rem; }

.figcap {
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  margin: auto 0 0;
  padding-top: 8px;
}

/* about page head with portrait */
.head-grid {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 170px;
}

.about-portrait { justify-content: flex-end; }

.page-head .mono { font-size: 2rem; height: 150px; width: 150px; }

.card-body { padding: 18px 20px 22px; }

.card-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.more {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-body h3 a:hover { color: var(--accent); }

html.dark .card-body h3 a:hover { color: #A5B4FC; }

/* repo link buttons in project cards */
.repo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }

.repo-btn {
  background: transparent;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.repo-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

html.dark .repo-btn:hover { color: #A5B4FC; border-color: #3E4C8C; }

html.dark .more { color: #A5B4FC; }

/* quote block */
.colophon { padding: 44px 0 70px; }

.q {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 auto 12px;
  max-width: 700px;
  text-align: center;
}

.qs {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
}

.footbar {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  justify-content: space-between;
}

.foot-links a { text-decoration: none; }

.foot-links a:hover { color: var(--accent); }

/* about page */
.page-head { padding: 70px 0 10px; }

.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

.prose { max-width: 680px; margin: 0 auto; padding: 10px 0 40px; }

.prose p { margin: 0 0 18px; }

.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 14px;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
  margin: 26px 0;
  padding: 6px 0 6px 22px;
}

.prose .cite { color: var(--muted); font-size: 0.88rem; }

.backlink { color: var(--muted); font-size: 0.88rem; text-decoration: none; }

.backlink:hover { color: var(--accent); }

/* journal */
.journal-list { padding: 20px 0 70px; }

.jentry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  padding: 22px 26px 20px;
  margin: 0 0 18px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jentry:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28, 31, 46, 0.09);
}

.jdate {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.jtitle {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.jteaser {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 10px;
  max-width: 640px;
}

/* reading pages: content column centered so the desktop is not half empty */
body.narrow .page-head { text-align: center; }

body.narrow .page-head .eyebrow { margin-bottom: 14px; }

body.narrow .page-head .intro,
body.narrow .page-head p { margin-left: auto; margin-right: auto; }

body.narrow .journal-list .wrap { max-width: 760px; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; justify-content: flex-start; }
  .mono { height: 150px; width: 150px; font-size: 2.2rem; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .head-grid { grid-template-columns: 1fr; }
  .about-portrait { order: -1; justify-content: flex-start; }
  .page-head .mono { height: 130px; width: 130px; font-size: 1.8rem; }
}

/* phones: top bar wraps to two rows so nothing overflows sideways */
@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 14px;
    height: auto;
    padding: 10px 0 8px;
  }

  .wordmark { white-space: nowrap; }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .nav a { font-size: 0.84rem; }

  .theme { margin-left: auto; }
}
