/*
Theme Name: Fatih Eren
Theme URI: https://cotoagency.com
Author: Coto Agency
Author URI: https://cotoagency.com
Description: Bilingual (TR / EN) academic blog theme for Assoc. Prof. Dr. Fatih Eren — blog, publications and about page, with a simplified, branded admin panel.
Version: 2.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fatiheren
*/

:root {
  --bg: #fdfcf8;
  --surface: #ffffff;
  --sand: #f4f1ea;
  --ink: #232323;
  --ink-2: #4b4a46;
  --muted: #8a877f;
  --rule: #e9e5dc;
  --coral: #e4572e;
  --coral-soft: #fde6dc;
  --blue: #2f6fdf;
  --dark: #1c1c1c;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --max: 1220px;
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 16px; top: 16px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
[hidden] { display: none !important; }

.eyebrow { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.eyebrow.light { color: #ff8a66; }
.hl { background: linear-gradient(transparent 60%, #ffcdb9 60%, #ffcdb9 92%, transparent 92%); padding: 0 .06em; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: .94rem; transition: background .2s, transform .2s; border: 0; cursor: pointer; }
.btn:hover { background: var(--coral); transform: translateY(-1px); }
.btn svg, .tlink svg { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover svg, .tlink:hover svg { transform: translateX(3px); }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); border-bottom: 2px solid var(--coral); padding-bottom: 2px; transition: color .2s; }
.tlink:hover { color: var(--coral); }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--coral); transform-origin: left; transform: scaleX(0); z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(253, 252, 248, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--rule); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand img { height: 48px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 9px 16px; border-radius: 99px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: .2s; }
.nav a:hover, .nav .current-menu-item a, .nav .current_page_item a { background: var(--sand); color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--sand); }
.lang-switch a { font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 99px; color: var(--muted); transition: .2s; }
.lang-switch a.on { background: var(--ink); color: #fff; }
.lang-switch a:not(.on):hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sand); border: 0; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.pill-label { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--rule); font-size: .86rem; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; }
.pill-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 26px; }
.hero-text { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; margin-bottom: 32px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 99px; background: var(--surface); border: 1px solid var(--rule); font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: .2s; }
.topic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--coral)); }
.topic:hover { border-color: var(--c); color: var(--ink); }
.topic.on { background: var(--c); border-color: var(--c); color: #fff; }
.topic.on::before { background: #fff; }

.hero-photo { position: relative; }
.photo-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; border-radius: 28px; background: var(--coral); z-index: -1; }
.hero-photo { isolation: isolate; }
.photo-tag { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; }
.photo-tag b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.01em; }
.photo-tag span { font-size: .8rem; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section.tight { padding: 40px 0 96px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 3/2; border-radius: var(--r); overflow: hidden; background: var(--sand); margin-bottom: 20px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; background:
  radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--c) 55%, transparent) 0 18%, transparent 19%),
  radial-gradient(circle at 85% 15%, transparent 0 30%, color-mix(in srgb, var(--c) 22%, transparent) 30.5% 31.5%, transparent 32%),
  color-mix(in srgb, var(--c) 14%, #fff); }
.card-media .ph span { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; color: var(--c); line-height: 1; }
.cat { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.card-title { font-size: 1.42rem; line-height: 1.15; margin-bottom: 10px; }
.card-title a { background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s; }
.card:hover .card-title a { background-size: 100% 2px; }
.card-excerpt { color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.meta { display: flex; gap: 14px; font-size: .84rem; color: var(--muted); margin-top: auto; }
.meta span::before { content: "·"; margin-right: 14px; }

.card.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 30px; padding: 18px; margin-bottom: 64px; }
.card.featured .card-media { aspect-ratio: 16/11; margin: 0; border-radius: 22px; }
.card.featured .card-body { padding: 20px 30px 20px 0; }
.card.featured .card-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.card.featured .card-excerpt { font-size: 1.08rem; }
.card.featured .card-media .ph span { font-size: 2.6rem; }

.empty { text-align: center; padding: 70px 30px; border: 1.5px dashed var(--rule); border-radius: 30px; background: var(--surface); }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); font-size: 1.6rem; margin-bottom: 18px; }
.empty h3 { font-size: 1.8rem; margin-bottom: 10px; }
.empty p { color: var(--ink-2); margin-bottom: 24px; }

/* About band */
.about-band { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; padding: 48px 52px; border-radius: 32px; background: var(--coral-soft); position: relative; overflow: hidden; }
.about-band::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(228, 87, 46, .12); pointer-events: none; }
.about-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; }
.about-text { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--ink); max-width: 620px; margin-bottom: 22px; }
.about-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.about-stats { display: grid; gap: 18px; position: relative; z-index: 1; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats b { font-family: var(--display); font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.about-stats span { font-size: .84rem; color: var(--ink-2); }
.about-stats.inline { display: flex; gap: 40px; margin-top: 30px; }

/* Publications */
.pub-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 26px; overflow: hidden; }
.pub { display: grid; grid-template-columns: 74px 1fr 190px; gap: 24px; align-items: start; padding: 24px 28px; border-bottom: 1px solid var(--rule); transition: background .2s; }
.pub:last-child { border-bottom: 0; }
.pub:hover { background: #fffaf6; }
.pub-year { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--muted); }
.pub h3 { font-family: var(--body); font-weight: 600; font-size: 1.04rem; letter-spacing: 0; line-height: 1.45; margin-bottom: 4px; }
.pub h3 a:hover { color: var(--coral); }
.pub-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.pub-meta em { color: var(--ink-2); }
.pub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.pub-type { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.pub-cites { font-size: .82rem; color: var(--muted); }
.pub-cites b { color: var(--ink); }
.pub-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pub-search { font: inherit; font-size: .95rem; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface); min-width: 300px; }
.pub-search:focus { outline: none; border-color: var(--ink); }
.pub-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* Page hero (blog, pages) */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; max-width: 900px; margin-bottom: 28px; }
.page-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 620px; }
.about-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; }
.photo-frame.small { aspect-ratio: 1; border-radius: 50%; max-width: 300px; justify-self: end; border: 8px solid var(--coral-soft); }
.search-form.big { display: flex; gap: 10px; max-width: 560px; }
.search-form.big input { flex: 1; font: inherit; padding: 13px 20px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface); }
.search-form.big button { padding: 13px 22px; border-radius: 99px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-weight: 600; }
.notfound { text-align: center; padding: 120px 0; }
.big404 { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: .9; color: var(--coral); letter-spacing: -.06em; }
.notfound h1 { margin: 10px auto 30px; }

/* Pagination */
.pager { margin-top: 60px; }
.pager .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--surface); border: 1px solid var(--rule); font-weight: 500; }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--ink); }

/* Article */
.article-head { text-align: center; padding: 64px 0 40px; }
.article-head .cat { margin-bottom: 18px; }
.article-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.dek { font-family: var(--serif); font-size: 1.35rem; color: var(--ink-2); line-height: 1.45; max-width: 640px; margin: 0 auto 28px; }
.byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline b { display: block; font-size: .95rem; }
.byline span { font-size: .85rem; color: var(--muted); }
.article-cover { margin: 0 auto 56px; max-width: 1080px; }
.article-cover img { border-radius: 26px; width: 100%; }

.prose { font-family: var(--serif); font-size: 1.28rem; line-height: 1.75; color: #2a2a28; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: var(--ink); }
.prose > h2, .prose > h3, .prose > h4 { margin-top: 1.8em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .6em; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c, var(--coral)); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--c, var(--coral)); }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--c, var(--coral)); font-size: 1.45rem; font-style: italic; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--body); font-size: .9rem; font-style: normal; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c, var(--coral)); }
.prose img, .prose figure img { border-radius: 18px; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--body); font-size: .86rem; color: var(--muted); text-align: center; margin-top: 10px; }
.prose .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
.prose code { font-size: .85em; background: var(--sand); padding: .15em .4em; border-radius: 6px; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.prose > p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 800; font-size: 4.2em; line-height: .82; margin: .06em .1em 0 0; color: var(--c, var(--coral)); }
.entry { padding-bottom: 96px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.tags a { font-size: .86rem; padding: 6px 13px; border-radius: 99px; background: var(--sand); color: var(--ink-2); }
.tags a:hover { background: var(--ink); color: #fff; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.share span { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.share a, .share button { font-size: .88rem; font-weight: 500; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface); cursor: pointer; color: var(--ink); transition: .2s; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 24px; margin: 48px 0 0; padding: 30px; border-radius: 24px; background: var(--sand); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.author-box .eyebrow { margin-bottom: 6px; }
.author-box h3 { font-size: 1.4rem; margin-bottom: 8px; }
.author-box p { color: var(--ink-2); font-size: .97rem; }
.related { background: var(--sand); margin-top: 96px; }

/* Comments */
.comments { margin-top: 56px; }
.comments-title { font-size: 1.6rem; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: .88rem; color: var(--muted); }
.comment-reply-title { font-family: var(--display); font-size: 1.4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--rule); background: var(--surface); }
.comment-form .submit { padding: 12px 22px; border-radius: 99px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-weight: 600; }
.comment-form .submit:hover { background: var(--coral); }

/* Footer */
.site-footer { background: var(--dark); color: #f3f1ec; padding: 100px 0 36px; border-radius: 40px 40px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; }
.site-footer h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.footer-lead { color: rgba(243, 241, 236, .7); font-size: 1.1rem; max-width: 460px; margin-bottom: 30px; }
.mail-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 99px; background: var(--coral); color: #fff; font-weight: 600; font-size: 1.05rem; transition: .2s; }
.mail-btn:hover { background: #fff; color: var(--ink); }
.mail-btn svg { width: 18px; height: 18px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 12px; }
.flabel { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 241, 236, .45); margin-bottom: 14px; }
.footer-cols p { color: rgba(243, 241, 236, .82); font-size: .95rem; }
.flinks { list-style: none; margin: 0; padding: 0; }
.flinks a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(243, 241, 236, .1); font-size: .95rem; color: rgba(243, 241, 236, .85); transition: color .2s; }
.flinks a span { color: rgba(243, 241, 236, .35); }
.flinks a:hover { color: #ff8a66; }
.footer-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: 90px; padding-top: 28px; border-top: 1px solid rgba(243, 241, 236, .1); }
.footer-logo img { height: 64px; width: auto; }
.footer-bottom small { color: rgba(243, 241, 236, .45); font-size: .82rem; }
.footer-bottom small a { color: rgba(243, 241, 236, .75); }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* WordPress alignment helpers */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }

/* Responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.featured { grid-template-columns: 1fr; gap: 10px; }
  .card.featured .card-body { padding: 16px 14px 18px; }
  .about-band { grid-template-columns: auto 1fr; }
  .about-stats { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 48px; }
  .prose .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 84px 0 auto; background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--rule); transform: translateY(-130%); transition: transform .35s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .burger { display: block; }
  .hero-grid, .about-hero-grid, .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 380px; }
  .photo-frame.small { justify-self: start; max-width: 200px; }
  .pub { grid-template-columns: 60px 1fr; }
  .pub-side { grid-column: 2; flex-direction: row; align-items: center; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--max)); }
  .header-in { height: 74px; }
  .nav { inset: 74px 0 auto; }
  .brand img { height: 42px; }
  .hero { padding-top: 40px; }
  .hero-photo::before { inset: 18px -10px -10px 18px; }
  .hero-photo { max-width: 290px; }
  .section { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; }
  .about-band { grid-template-columns: 1fr; padding: 34px 26px; gap: 26px; }
  .about-avatar { width: 110px; height: 110px; }
  .about-stats { grid-column: auto; gap: 28px; }
  .about-stats b { font-size: 2rem; }
  .pub { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .pub-side { grid-column: auto; }
  .pub-search { min-width: 0; width: 100%; }
  .prose { font-size: 1.15rem; }
  .author-box { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .site-footer { border-radius: 28px 28px 0 0; padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
