/* Tatiana Fedorova portfolio. Plain CSS, no build step. */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --muted: #6b675f;
  --line: #e7e2da;
  --accent: #c4553a;
  --accent-soft: #f6e7e1;
  --radius: 14px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 245, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand .name { white-space: nowrap; }
.brand .dot { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s; }
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 18px 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: .95rem; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--ink); }

section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 46ch; color: var(--muted); margin: 0; }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.035); }
.card h3 { margin: 18px 0 4px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Placeholders for work samples still to be added */
.placeholder .thumb { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: repeating-linear-gradient(45deg, #fff, #fff 12px, #f6f3ee 12px, #f6f3ee 24px); border: 2px dashed #d6cfc4; color: var(--muted); text-align: center; padding: 20px; }
.placeholder .thumb img { width: 100%; height: 100%; object-fit: cover; }
.placeholder .thumb:has(img) { padding: 0; border-style: solid; }
.placeholder .thumb strong { color: var(--ink); font-weight: 600; }
.placeholder-note { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a39b8e; }

/* Services */
.services { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service { padding-top: 22px; border-top: 2px solid var(--ink); }
.service p { color: var(--muted); font-size: .95rem; }

/* Split block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Tools */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tools span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; }

/* About */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.about img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: .92rem; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { background: var(--ink); color: #f3efe9; }
.contact h2 { color: #fff; max-width: 18ch; }
.contact .muted { color: #b8b1a6; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 760px; gap: 24px; margin-top: 40px; }
.contact-links a { display: block; padding: 22px; border: 1px solid #3a3834; border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.contact-links a:hover { border-color: var(--accent); }
.contact-links small { display: block; color: #b8b1a6; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }

.site-footer { padding: 28px 0; font-size: .88rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Project pages */
.project-hero { padding: 72px 0 40px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--ink); }
.project-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; }
.gallery { display: grid; gap: 28px; padding: 24px 0 80px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.gallery figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.gallery.two { grid-template-columns: 1fr 1fr; align-items: start; }
.next-project { border-top: 1px solid var(--line); padding: 48px 0; }
.next-project a { text-decoration: none; font-family: var(--serif); font-size: 1.8rem; }
.next-project a:hover { color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 19, 17, .92); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 8px; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .split, .about { grid-template-columns: 1fr; gap: 36px; }
  .about img { max-width: 320px; }
  .contact-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: .9rem; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .nav a:nth-child(2) { display: none; }
  .hero { padding: 56px 0 48px; }
  .grid, .gallery.two, .service-grid, .facts { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 400px) {
  .brand { font-size: .95rem; }
  .nav { gap: 10px; }
  .nav a { font-size: .85rem; }
}
