
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Roman.woff2') format('woff2'),
       url('../fonts/HelveticaNeue-Roman.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2'),
       url('../fonts/HelveticaNeue-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:          #FAF4EB;
  --text:        #000000;
  --text-muted:  #666;
  --text-link:   #454545;

  --font-base: clamp(1.1rem, 1vw, 1.5rem);
  --font-lg:   clamp(1.4rem, 1vw, 1.8rem);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 500;
  scrollbar-width: none;          
  -ms-overflow-style: none;      
}
*::-webkit-scrollbar { display: none; }


body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


a:not(.project-link) {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-skip-ink: none;
  transition: color 0.5s ease;
}
a:not(.project-link):hover {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-color: var(--text-link);
  transition: none;              
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;              
  width: 40vw;
  height: 100vh;
  background: var(--bg);
  z-index: 10;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-header h1 {
  font-size: var(--font-base);
  line-height: 1.2;
}

/* Навигация */
.sidebar-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}
.menu-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem 1rem;
}
.menu-grid a {
  padding: 0.2em 0;
  white-space: nowrap;
  flex: 0 1 auto;
}

.email-mobile { display: none; }

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

/* ─── Время ───────────────────────────────────────────────────────────────── */
.live-time {
  white-space: nowrap;
  font-feature-settings: "tnum";  
}

/* ─── Основной контент ────────────────────────────────────────────────────── */
.main-content {
  margin-left: 40vw;
  padding: 2rem;
  position: relative;
  min-height: 100vh;
}

/* ─── Список проектов ─────────────────────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}

/* ─── Слайдер ─────────────────────────────────────────────────────────────── */
.slider {
  position: relative;
  display: block;
  width: 100%;
  user-select: none;
  touch-action: pan-y;
}
.slider:focus { outline: none; }

.slides { position: relative; width: 100%; }

.slide {
  display: none;
  max-width: 100%;
}
.slide.active { display: block; }

.slide img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

/* Точки (видны только на мобиле) */
.dots-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255 255 255 / 0.5);
  box-shadow: 0 0 2px rgba(0 0 0 / 0.3);
  transition: background 0.2s;
  pointer-events: auto;
}
.dot.active { background: #fff; }

/* ─── Стрелка-иконка ──────────────────────────────────────────────────────── */
.hook-arrow {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.2em;
  fill: currentColor;
  overflow: visible;
}

/* ─── Инфо под проектом ───────────────────────────────────────────────────── */
.project-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4ch;
  padding-top: 1rem;
}
.project-link {
  color: inherit;
  text-decoration: none;
  white-space: normal;
}
.project-desc {
  color: var(--text-muted);
}

/* ─── Футер страницы ──────────────────────────────────────────────────────── */
.page-footer {
  display: none;                
}

/* ─── Десктоп: копирайт в правом нижнем углу ─────────────────────────────── */
@media (min-width: 769px) {
  .main-content::after {
    content: '© 2026 Настя Юрьева';
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: var(--font-base);
    color: var(--text);
  }
}

/* ─── Мобила ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.5rem 1rem 0; 
  }

  .sidebar-nav { margin: 1.5rem 0 0; }

  .menu-grid { flex-wrap: wrap; }

  .email-mobile  { display: block; }
  .sidebar-footer { display: none; }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1rem;   
    flex: 1;                
    display: flex;
    flex-direction: column;
  }

  .projects-list { padding-bottom: 1rem; }

  .dots-container { display: flex; }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: auto;  
  }
}

/* ─── Страница «Инфо» ─────────────────────────────────────────────────────── */
.info-photo {
  display: block;
  max-width: 10rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.num {
  display: inline-block;
  width: 5em;
  text-align: left;
}

.manifest-text {
  margin-top: 49%;
  margin-bottom: 3rem;
  font-size: var(--font-base);
}

.manifest-text p { margin-bottom: 3rem; }

@media (max-width: 768px) {
  .manifest-text {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
}

/* ─── Страница «Архив» ────────────────────────────────────────────────────── */
.archive-masonry {
  column-count: 2;
  column-gap: 1rem;
  margin-bottom: 3rem;
}

.archive-masonry img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .archive-masonry {
    column-count: 1;
    margin-bottom: 1rem;
  }
}
