/*
  Olga Panina — site styles.
  Shared between index.html and posts/*.html
*/

:root {
    --bg: #f5f1ea;
    --bg-warm: #efe8dc;
    --ink: #0e1a2e;
    --ink-soft: #455068;
    --blue-deep: #0a2a6b;
    --blue-mid: #1f4a9a;
    --blue-pale: #6c8bc4;
    --accent: #c9a96e;
    --line: rgba(10, 42, 107, 0.15);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
  }
  .serif { font-family: 'Cormorant Garamond', serif; }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 22px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 241, 234, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--line);
  }
  nav .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--blue-deep);
  }
  nav ul { display: flex; gap: 36px; list-style: none; }
  nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--blue-deep); }
  .lang {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--ink-soft);
  }
  .lang a { color: var(--blue-deep); font-weight: 500; }
  .lang span { opacity: 0.4; margin: 0 6px; }

  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 80px 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
    position: relative;
  }
  .hero-rule {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 40px;
  }
  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(56px, 9vw, 128px);
    font-weight: 400;
    line-height: 1.0;
    color: var(--blue-deep);
    margin-bottom: 36px;
    letter-spacing: -2px;
    max-width: 1100px;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--blue-mid);
  }
  .hero .roles {
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 60px;
    font-weight: 400;
  }
  .hero .roles span { color: var(--accent); margin: 0 12px; }
  .hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    transition: opacity 0.3s;
  }
  .hero-scroll:hover { opacity: 1; }
  .hero-scroll::after {
    content: '';
    width: 1px;
    height: 32px;
    background: var(--ink-soft);
  }

  section { padding: 120px 80px; }
  .section-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
    position: relative;
    padding-top: 28px;
  }
  .section-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--accent);
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    color: var(--blue-deep);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
  }
  .section-intro {
    max-width: 560px;
    color: var(--ink-soft);
    font-size: 17px;
    margin-bottom: 64px;
  }

  .about {
    background: var(--blue-deep);
    color: var(--bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .about .section-label { color: var(--accent); }
  .about .section-title { color: var(--bg); }
  .about p {
    font-size: 18px;
    color: rgba(245, 241, 234, 0.85);
    margin-bottom: 16px;
  }

  .data {
    background: var(--bg);
    max-width: 720px;
  }
  .data-links {
    list-style: none;
    margin-top: 32px;
  }
  .data-links li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .data-links a {
    color: var(--blue-deep);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
  }
  .data-links .tag {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .art { background: var(--bg-warm); }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .artwork {
    cursor: pointer;
    transition: transform 0.4s;
  }
  .artwork:hover { transform: translateY(-6px); }
  .artwork-frame {
    aspect-ratio: 4/5;
    background: var(--blue-deep);
    border-radius: 2px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 42, 107, 0.2);
  }
  .artwork-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
  }
  .artwork:hover .artwork-frame img { transform: scale(1.03); }
  .artwork-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .artwork-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--blue-deep);
  }
  .artwork-info {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .photo { background: var(--bg); }
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 16px;
  }
  .photo-tile {
    background: var(--blue-deep);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s;
    position: relative;
  }
  .photo-tile:hover { transform: scale(1.01); }
  .photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
  }
  .photo-tile:hover img { transform: scale(1.04); }

  .blog { background: var(--bg-warm); }
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s;
  }
  .post-card:hover { transform: translateY(-6px); }
  .post-cover {
    aspect-ratio: 3/2;
    background: var(--blue-deep);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 42, 107, 0.15);
  }
  .post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
  }
  .post-card:hover .post-cover img { transform: scale(1.04); }
  .post-cover-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 2px;
  }
  .post-date {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }
  .post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--blue-deep);
    margin-bottom: 12px;
    line-height: 1.15;
    font-weight: 500;
  }
  .post-excerpt {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .post-read {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue-deep);
    font-weight: 500;
  }
  .post-full {
    grid-column: 1 / -1;
    max-width: 720px;
    margin: 0 auto;
    cursor: default;
  }
  .post-full .post-title {
    font-size: 40px;
    margin-bottom: 32px;
  }
  .post-body p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .post-body img {
    width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(10, 42, 107, 0.15);
  }

  footer {
    background: var(--blue-deep);
    color: var(--bg);
    padding: 80px 80px 40px;
    text-align: center;
  }
  footer h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 400;
  }
  footer p { color: rgba(245, 241, 234, 0.7); margin-bottom: 32px; }
  .social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
  }
  .social a {
    color: rgba(245, 241, 234, 0.7);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .social a:hover { color: var(--accent); }
  .copyright {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(245, 241, 234, 0.4);
    border-top: 1px solid rgba(245, 241, 234, 0.1);
    padding-top: 24px;
  }

  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    nav ul { display: none; }
    .about { grid-template-columns: 1fr; gap: 48px; padding-left: 24px; padding-right: 24px; }
    .hero { padding-left: 24px; padding-right: 24px; }
    section { padding: 80px 24px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 200px); }
    .blog-grid { grid-template-columns: 1fr; }
    footer { padding: 60px 24px 32px; }
    footer h2 { font-size: 32px; }
  }
