/*
Theme Name: Сергей Дудко — Горная живопись
Theme URI: https://sdudko.ru/
Author: Codex
Description: Лёгкая современная тема-портфолио для живописи Сергея Дудко.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: codex-sdudko
*/

:root {
  --paper: #f2efe8;
  --ink: #171a18;
  --muted: #656a65;
  --line: rgba(23, 26, 24, .15);
  --accent: #9c4529;
  --dark: #161b19;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 38px;
  border-bottom: 1px solid var(--line);
}
.site-brand { text-decoration: none; }
.site-brand strong { display: block; font-family: Georgia, serif; font-size: clamp(22px, 3vw, 34px); font-weight: 500; line-height: 1; }
.site-brand span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

.artist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  min-height: 56vh;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.artist-hero__copy { align-self: end; padding: clamp(54px, 8vw, 130px) 38px clamp(48px, 7vw, 104px); }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.artist-hero h1 { max-width: 820px; margin: 0; font-family: Georgia, serif; font-size: clamp(58px, 9vw, 138px); font-weight: 400; letter-spacing: -.055em; line-height: .86; }
.artist-hero__intro { max-width: 480px; margin: 34px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.artist-hero__aside { display: flex; align-items: flex-end; padding: 48px 38px; color: #fff; background: var(--dark); }
.artist-hero__aside p { max-width: 390px; margin: 0; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 40px); line-height: 1.25; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 120px) 38px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 72px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.section-heading a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; }

.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
.art-card { min-width: 0; }
.art-card a { text-decoration: none; }
.art-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd7cb; }
.art-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.art-card:hover .art-card__image img { transform: scale(1.025); }
.art-card h2, .art-card h3 { margin: 14px 0 0; font-family: Georgia, serif; font-size: clamp(19px, 2vw, 27px); font-weight: 400; line-height: 1.18; }

.content-shell { width: min(100% - 40px, 920px); margin: 0 auto; padding: clamp(58px, 8vw, 118px) 0; }
.content-shell--wide { width: min(100% - 40px, 1320px); }
.entry-kicker { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.entry-title { margin: 12px 0 42px; font-family: Georgia, serif; font-size: clamp(44px, 7vw, 92px); font-weight: 400; letter-spacing: -.04em; line-height: .96; }
.entry-media { margin: 0 auto 50px; background: var(--dark); }
.entry-media img { width: 100%; max-height: 78vh; object-fit: contain; }
.entry-content { font-family: Georgia, serif; font-size: clamp(18px, 2vw, 22px); }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 2.2em; line-height: 1.15; }
.entry-content blockquote { margin-top: 2em; margin-bottom: 2em; padding-left: 28px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.entry-content .wp-block-gallery { max-width: 1180px; }

.pagination { margin-top: 54px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--dark); }
.site-footer { display: flex; justify-content: space-between; gap: 30px; max-width: var(--max); margin: 0 auto; padding: 34px 38px 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; padding: 22px 20px; }
  .site-nav ul { justify-content: flex-end; gap: 8px 16px; }
  .artist-hero { grid-template-columns: 1fr; }
  .artist-hero__copy { padding-left: 20px; padding-right: 20px; }
  .artist-hero__aside { min-height: 240px; padding: 38px 20px; }
  .section { padding-left: 20px; padding-right: 20px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .site-header { display: block; }
  .site-nav { margin-top: 20px; }
  .site-nav ul { justify-content: flex-start; }
  .artist-hero h1 { font-size: clamp(56px, 20vw, 92px); }
  .section-heading { display: block; }
  .section-heading a { display: inline-block; margin-top: 18px; }
  .art-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer { display: block; padding-left: 20px; padding-right: 20px; }
}

