/* Oğuz Kaan Pehlivan — site styles. No framework; fonts are self-hosted. */

@font-face {
  font-family: "Source Serif";
  src: url("fonts/source-serif-latin-ext.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  src: url("fonts/source-serif-latin.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif";
  src: url("fonts/source-serif-italic-latin-ext.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  src: url("fonts/source-serif-italic-latin.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --sunken: #f3f1ec;
  --ink: #1d2126;
  --ink-soft: #3a4048;
  --muted: #646c76;
  --line: #e5e1d8;
  --line-strong: #d4cec2;
  --accent: #7d1d2b;
  --accent-hover: #63141f;
  --accent-soft: #f6e9eb;
  --focus: #b4475a;
  --shadow: 0 1px 2px rgba(29, 33, 38, .05), 0 4px 16px rgba(29, 33, 38, .06);
  --serif: "Source Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --read: 720px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121417; --surface: #191c20; --sunken: #1f2328; --ink: #ebe8e2; --ink-soft: #cfcbc3;
    --muted: #a0a7b0; --line: #2b3036; --line-strong: #3a4047; --accent: #e3909b; --accent-hover: #f0aab3;
    --accent-soft: #2b1d20; --focus: #e3909b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121417; --surface: #191c20; --sunken: #1f2328; --ink: #ebe8e2; --ink-soft: #cfcbc3;
  --muted: #a0a7b0; --line: #2b3036; --line-strong: #3a4047; --accent: #e3909b; --accent-hover: #f0aab3;
  --accent-soft: #2b1d20; --focus: #e3909b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.65 var(--serif); font-optical-sizing: auto;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; font: 600 14px var(--sans); }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; flex: none;
  display: grid; place-items: center; font: 600 15px/1 var(--serif); letter-spacing: .02em;
}
:root[data-theme="dark"] .mark { color: #121417; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark { color: #121417; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 600 17px var(--serif); }
.brand-sub { font: 500 12px var(--sans); color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2px; font: 500 14.5px var(--sans); }
.nav a, .nav summary { color: var(--ink-soft); text-decoration: none; padding: 8px 11px; border-radius: 8px; cursor: pointer; display: block; white-space: nowrap; }
.nav a:hover, .nav summary:hover { color: var(--ink); background: var(--sunken); }
.nav a[aria-current="page"], .nav .has-current > summary { color: var(--accent); }
.nav details { position: relative; }
.nav summary { list-style: none; display: flex; align-items: center; gap: 5px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.nav details[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.menu a { padding: 9px 12px; }
.lang {
  display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font: 600 12.5px var(--sans); margin-left: 8px;
}
.lang a, .lang span { padding: 5px 11px; text-decoration: none; color: var(--muted); letter-spacing: .04em; }
.lang span[aria-current] { background: var(--ink); color: var(--paper); }
.lang a:hover { color: var(--ink); background: var(--sunken); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; color: var(--ink); cursor: pointer;
  font: 600 14px var(--sans); align-items: center; gap: 8px;
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 68px); overflow: auto;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav summary { padding: 12px 8px; font-size: 16px; }
  .nav details > summary { pointer-events: none; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 4px; }
  .nav summary::after { display: none; }
  .menu { position: static; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; background: none; }
  .nav details:not([open]) > .menu { display: block; }
  .lang { align-self: flex-start; margin: 12px 0 0 8px; }
  .brand-sub { display: none; }
}

/* ---------- page head ---------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--sunken), var(--paper)); }
.eyebrow { font: 600 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.page-head p.lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.crumbs { font: 500 13.5px var(--sans); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
main { padding-bottom: 72px; }
.section { padding: 56px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { font: 600 14.5px var(--sans); text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 60%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .hon { font-weight: 400; color: var(--muted); }
.roles { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 15px var(--sans); color: var(--ink-soft); }
.roles li { display: flex; align-items: center; gap: 8px; }
.roles li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero .intro { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.portrait { position: relative; justify-self: end; width: 100%; max-width: 400px; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 16px; box-shadow: var(--shadow); background: var(--sunken); }
.portrait::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--line-strong); border-radius: 16px; z-index: -1; }
.portrait figcaption { font: 500 13px var(--sans); color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { justify-self: start; max-width: min(300px, calc(100% - 16px)); order: -1; }
  .hero { padding-top: 40px; }
}

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9px; font: 600 14.5px/1.2 var(--sans);
  text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .btn.primary:hover { color: #121417; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .btn.primary:hover { color: #121417; } }
.btn.small { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .meta { font-weight: 500; opacity: .7; }

.profiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.profiles a {
  display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px var(--sans); color: var(--ink-soft); text-decoration: none;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.profiles a:hover { border-color: var(--accent); color: var(--accent); }
.profiles svg { width: 15px; height: 15px; }

/* ---------- home blocks ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font: 500 14px var(--sans); padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.glance a { background: var(--surface); padding: 20px 22px; text-decoration: none; color: var(--ink); display: block; }
.glance a:hover { background: var(--sunken); }
.glance strong { display: block; font: 600 2rem/1.1 var(--serif); color: var(--accent); }
.glance span { font: 500 14px var(--sans); color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.card img { width: 92px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.card .kind { font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 1.05rem; margin: 6px 0 6px; }
.card .venue { font: 500 13px/1.45 var(--sans); color: var(--muted); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.shelf a { text-decoration: none; color: var(--ink); }
.shelf img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; width: 100%; transition: transform .15s; }
.shelf a:hover img { transform: translateY(-3px); }
.shelf span { display: block; font: 600 14px/1.35 var(--sans); margin-top: 10px; }
.shelf small { display: block; font: 500 12.5px var(--sans); color: var(--muted); margin-top: 3px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-family: var(--sans); font-size: 15px; }
.aside-box h3 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li + li { margin-top: 12px; }
.aside-box .profiles li + li { margin-top: 0; }
.aside-box .yr { font-weight: 600; color: var(--accent); display: block; font-size: 13px; }

/* ---------- publication list ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 8px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input {
  width: 100%; font: 400 15px var(--sans); padding: 10px 14px 10px 38px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.count { font: 500 14px var(--sans); color: var(--muted); }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub .thumb { display: block; }
.pub .thumb img { width: 128px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .15s; }
.pub .thumb:hover img { transform: translateY(-2px); }
.pub .thumb.empty { width: 128px; aspect-ratio: 3 / 4; border-radius: 4px; border: 1px dashed var(--line-strong); }
.pub-meta { font: 500 13.5px/1.5 var(--sans); color: var(--muted); margin: 0 0 8px; }
.pub-meta .tag { display: inline-block; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 10px; }
.pub h2, .pub h3 { font-size: 1.32rem; margin: 0 0 6px; }
.pub h2 a, .pub h3 a { color: var(--ink); text-decoration: none; }
.pub h2 a:hover, .pub h3 a:hover { color: var(--accent); }
.orig { font-style: italic; color: var(--muted); margin: 0 0 12px; font-size: 1rem; }
.pub .summary { color: var(--ink-soft); font-size: 1.02rem; }
.pub .summary p:last-child { margin-bottom: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pub .btns { margin-top: 16px; }
.empty-note { font: 500 15px var(--sans); color: var(--muted); padding: 30px 0; display: none; }
@media (max-width: 640px) {
  .pub { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .pub .thumb img, .pub .thumb.empty { width: 76px; }
  .pub h2, .pub h3 { font-size: 1.12rem; }
  .pub .summary { grid-column: 1 / -1; }
}

/* ---------- detail / prose ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-top: 40px; }
.detail .cover { position: sticky; top: 100px; }
.detail .cover img { width: 100%; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.detail .cover .btns { flex-direction: column; }
.detail .cover .btn { justify-content: center; }
.facts { font: 400 14.5px/1.5 var(--sans); margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .detail .cover { position: static; max-width: 260px; order: -1; }
}
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.tagline { font: 600 14px var(--sans); color: var(--accent); letter-spacing: .02em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.tags { margin: 18px 0 8px; }
.tags .label { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 20px 0 24px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stats strong { display: block; font: 600 1.9rem/1.1 var(--serif); color: var(--accent); }
.stats span { font: 500 14px/1.4 var(--sans); color: var(--muted); }

/* timeline (scholarships & awards) */
.timeline { list-style: none; margin: 0 0 8px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline .yr { font: 600 13px var(--sans); color: var(--accent); letter-spacing: .04em; }
.timeline h3 { margin: 2px 0 2px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--muted); font: 500 15px var(--sans); }

/* CV cards */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
.doc img { width: 110px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.doc h2 { font-size: 1.2rem; }
.doc p { font: 500 14px var(--sans); color: var(--muted); }

/* blog */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.posts time { font: 600 13px var(--sans); color: var(--muted); letter-spacing: .03em; }
.posts h2 { font-size: 1.25rem; margin: 4px 0 6px; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--sunken); padding: 48px 0 32px; font: 400 15px/1.6 var(--sans); color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 600 12.5px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.foot-name { font: 600 19px var(--serif); color: var(--ink); margin-bottom: 6px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.theme-toggle { background: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-soft); font: 500 13px var(--sans); padding: 5px 10px; cursor: pointer; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .btns, .toolbar, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .pub { break-inside: avoid; }
}
