:root{
  --paper:#fdfcfa;
  --grey:#faf9f6;
  --alt:#eef3f8;
  --ink:#1c1c1c;
  --ink-soft:#666666;
  --accent:#3d6a94;
  --accent-soft:#e8f0f7;
  --line:#e2ded4;
  --line-alt:#dbe4ec;
  --serif:'Playfair Display', 'PT Serif', Georgia, serif;
  --hand:'Marck Script', cursive;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background-color:#f9f7f2;
  color:var(--ink);
  font-family:Arial, Helvetica, sans-serif;
  line-height:1.7;
  font-weight:400;
  position:relative;
}
body::before{
  content:"";
  position:fixed;
  top:-20px;left:-20px;right:-20px;bottom:-20px;
  background-image:url("bg-paper.jpg");
  background-size:1100px auto;
  background-repeat:repeat;
  opacity:.6;
  z-index:-1;
}
img{max-width:100%;display:block;}
a{color:var(--accent);}

.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 32px;
  border-bottom:3px double var(--ink);
  border-top:3px solid var(--accent);
  position:sticky;
  top:0;
  background:rgba(253,252,250,.94);
  backdrop-filter:blur(6px);
  z-index:10;
  gap:20px;
}
.site-header .name{
  font-family:var(--serif);
  font-weight:900;
  font-size:20px;
  text-decoration:none;
  color:var(--ink);
  letter-spacing:.01em;
}
.site-header .name .kicker{
  display:block;
  font-family:Arial, Helvetica, sans-serif;
  font-weight:700;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:2px;
}
.site-header nav{
  display:flex;
  gap:32px;
  align-items:center;
}
.site-header nav a{
  color:var(--ink-soft);
  text-decoration:none;
  font-size:14px;
  font-weight:400;
  padding-bottom:3px;
}
.site-header nav a:hover,
.site-header nav a.active{
  color:var(--accent);
  border-bottom:1px solid var(--accent);
}
.site-header nav a.nav-accent{
  color:var(--accent);
  font-weight:700;
  border-bottom:none;
}
.site-header nav a.nav-accent:hover,
.site-header nav a.nav-accent.active{
  border-bottom:1px solid var(--accent);
}

/* Hamburger button - hidden on desktop */
.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:30px;
  height:30px;
  padding:0;
  background:none;
  border:none;
  cursor:pointer;
  flex-shrink:0;
}
.menu-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--ink);
}

/* Quick links (mobile only) - hidden on desktop */
.header-quick-links{
  display:none;
}


section{
  max-width:860px;
  margin:0 auto;
  padding:80px 24px;
}
section.wide{max-width:none;border-top:3px double var(--line);border-bottom:3px double var(--line);}
section.wide .inner{max-width:860px;margin:0 auto;}

.img-ph{
  background:var(--grey);
  border:1px dashed #cfd5db;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink-soft);
  font-size:13px;
  text-align:center;
  min-height:180px;
}

h1,h2,h3{font-family:var(--serif);font-weight:700;margin:0 0 18px;letter-spacing:-.01em;}
h2{font-size:27px;padding-bottom:14px;border-bottom:3px solid var(--accent);display:inline-block;}
.link-block h2,
.plaque-hero h2,
#recognition h2,
#memory-final h2,
#events h2{display:block;}
#recognition h2,
#memory-final h2,
.link-block h2,
.plaque-hero h2{text-align:center;border-bottom:none;}
#recognition h2::after,
#memory-final h2::after,
.link-block h2::after,
.plaque-hero h2::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:var(--accent);
  margin:14px auto 0;
}
p{color:var(--ink-soft);}

.page-intro{
  text-align:center;
  padding-top:56px;
}
.page-intro .dates{
  color:var(--ink-soft);
  font-size:14px;
  margin-bottom:6px;
  letter-spacing:.03em;
}
.page-intro h1{font-size:clamp(26px,5vw,36px);}
.page-intro p.lede{font-size:16px;max-width:600px;margin:0 auto;color:var(--ink-soft);}

.card-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  margin-top:32px;
  background:var(--line);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.card{
  background:var(--paper);
  padding:32px 28px;
}
.card .tag{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--accent);
  font-weight:700;
  margin-bottom:10px;
}
.card h3{font-family:var(--serif);font-size:19px;margin-bottom:10px;}
.card p{margin:0 0 16px;font-size:14.5px;}
.card p:last-child{margin-bottom:0;}

.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  margin-top:12px;
}
.gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.link-block{
  text-align:center;
  padding:64px 24px;
}
.link-block h2{margin-bottom:12px;}
.link-block p{max-width:540px;margin:0 auto 24px;}

.btn{
  display:inline-block;
  border:1px solid var(--accent);
  color:var(--accent);
  text-decoration:none;
  padding:10px 28px;
  border-radius:2px;
  font-size:14px;
  font-weight:600;
}
.btn:hover{background:var(--accent);color:#fff;}

.world-list{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0 24px;
  margin-top:28px;
  border-top:1px solid var(--line);
}
.world-list div{
  border-bottom:1px solid var(--line);
  padding:20px 4px 22px;
  display:flex;
  flex-direction:column;
}
.world-list h3{
  font-size:14.5px;
  margin:0 0 12px;
  font-weight:700;
  line-height:1.4;
  min-height:4.2em;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}
.world-list p{font-size:14px;margin:0;color:var(--ink-soft);}

/* World memory carousel */
.world-carousel-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:none;
  padding:32px 24px 40px;
}
.world-carousel{
  display:flex;
  align-items:flex-start;
  gap:28px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:4px 2px 12px;
  flex:1;
  scrollbar-width:none;
}
.world-carousel::-webkit-scrollbar{display:none;}
.wc-card{
  flex:0 0 auto;
  scroll-snap-align:start;
  margin:0;
  max-width:300px;
}
.wc-imgwrap{
  height:220px;
  display:flex;
  align-items:flex-end;
}
.wc-card img{
  display:block;
  max-height:220px;
  width:auto;
  max-width:100%;
}
.wc-card figcaption{padding-top:12px;}
.wc-card h3{font-family:var(--serif);font-size:16px;margin:0 0 6px;}
.wc-card p{font-size:13.5px;margin:0;max-width:260px;}
.wc-arrow{
  flex-shrink:0;
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--accent);
  font-size:20px;
  cursor:pointer;
}
.wc-arrow:hover{background:var(--accent);color:#fff;}

footer{
  border-top:3px double var(--ink);
  text-align:center;
  padding:36px 24px;
  font-size:13px;
  color:var(--ink-soft);
}
.barcode{
  display:flex;
  justify-content:center;
  gap:2px;
  height:32px;
  margin:0 auto 12px;
  width:120px;
}
.barcode span{display:block;background:var(--ink);}
.barcode span:nth-child(1){width:2px;}
.barcode span:nth-child(2){width:1px;}
.barcode span:nth-child(3){width:3px;}
.barcode span:nth-child(4){width:1px;}
.barcode span:nth-child(5){width:2px;}
.barcode span:nth-child(6){width:1px;}
.barcode span:nth-child(7){width:2px;}
.barcode span:nth-child(8){width:3px;}
.barcode span:nth-child(9){width:1px;}
.barcode span:nth-child(10){width:2px;}
.barcode span:nth-child(11){width:1px;}
.barcode span:nth-child(12){width:3px;}
.barcode span:nth-child(13){width:2px;}
.barcode span:nth-child(14){width:1px;}

/* Archive page */
.pub-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:8px;
}
.pub-grid[hidden]{display:none;}
.pub-card{
  background:#fff;
  padding:24px 22px;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.pub-card:nth-child(3n+1){transform:rotate(-0.4deg);}
.pub-card:nth-child(3n+2){transform:rotate(0.3deg);}
.pub-card:nth-child(3n+3){transform:rotate(-0.2deg);}
.pub-card h3{font-family:var(--serif);}
.pub-card .year{
  font-size:12px;
  font-weight:700;
  color:var(--accent);
  text-transform:uppercase;
  margin-bottom:8px;
}
.pub-card h3{font-size:15.5px;margin-bottom:10px;}
.pub-card p{font-size:14px;margin:0 0 16px;flex-grow:1;}
.pub-card a{font-size:13px;color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent);align-self:flex-start;}
.pub-card a:hover{color:var(--ink);}

/* Plaque page */
.plaque-standalone-photo{
  width:100%;
  height:auto;
  max-width:520px;
  margin:0 auto;
  display:block;
}
.plaque-hero{
  text-align:center;
  padding-bottom:0;
}
.plaque-photo{
  max-width:420px;
  margin:24px auto 0;
}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin-top:32px;
  border-top:1px solid var(--line);
}
.steps div{text-align:center;padding:24px 16px;border-right:1px solid var(--line);}
.steps div:last-child{border-right:none;}
.steps .num{
  font-size:12px;
  color:var(--accent);
  font-weight:700;
  margin-bottom:8px;
  letter-spacing:.05em;
  text-transform:uppercase;
}

@media (max-width:820px){
  .card-row{grid-template-columns:1fr;}
  .gallery{grid-template-columns:1fr 1fr;}
  .pub-grid{grid-template-columns:1fr;}
  .world-list{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  .steps div{border-right:none;border-bottom:1px solid var(--line);}
}

/* Carousel */
.carousel{
  position:relative;
  overflow:hidden;
  background:var(--grey);
  align-self:stretch;
  height:auto;
}
.carousel-track{
  display:flex;
  transition:transform .4s ease;
  height:100%;
}
.carousel-track img{
  min-width:100%;
  height:100%;
  object-fit:cover;
}
.carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  color:var(--accent);
  width:34px;
  height:34px;
  border-radius:50%;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.carousel-arrow.left{left:10px;}
.carousel-arrow.right{right:10px;}
.carousel-arrow:hover{background:var(--accent);color:#fff;}
.carousel-dots{
  position:absolute;
  bottom:10px;
  left:0;right:0;
  display:flex;
  justify-content:center;
  gap:6px;
}
.carousel-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.7);
  border:1px solid var(--accent);
}
.carousel-dot.active{background:var(--accent);}

/* Full-width event cards (Nord-Ost / Beslan) */
.event-full{
  border-left:3px solid var(--accent);
  padding:8px 0 8px 24px;
  margin-top:32px;
  position:relative;
}
.event-full .tag{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--accent);
  font-weight:700;
  margin-bottom:8px;
}
.event-full h3{font-family:var(--serif);font-size:21px;margin-bottom:12px;}
.event-full p{font-size:15px;}

/* Year tabs (archive) */
.year-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 28px;
}
.year-tab{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink-soft);
  padding:8px 18px;
  font-size:14px;
  cursor:pointer;
  border-radius:2px;
  font-family:inherit;
}
.year-tab:hover{border-color:var(--accent);color:var(--accent);}
.year-tab.active{background:var(--accent);border-color:var(--accent);color:#fff;}

/* subtle floating accent shapes */
.page-intro{position:relative;}
.page-intro::after{
  content:"";
  position:absolute;
  top:8px;
  right:8%;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--accent-soft);
  animation:float 6s ease-in-out infinite;
}

#events, #career, #memory-final{position:relative;}

/* Overlapping newspaper stack decorations */
.stack-deco{
  position:absolute;
  width:200px;
  z-index:4;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.22));
  pointer-events:none;
}
.stack-career{right:-90px;bottom:-40px;left:auto;transform:rotate(8deg);}
.stack-archive{left:-70px;top:-30px;transform:rotate(6deg);}
.stack-archive-br{right:-70px;bottom:-40px;transform:rotate(-6deg);}
@media (max-width:1300px){
  .stack-deco{display:none;}
}
@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
}

/* Legal timeline (memory.html) */
.law-timeline{
  position:relative;
  margin-top:32px;
  padding-left:36px;
}
.law-timeline::before{
  content:"";
  position:absolute;
  left:5px;
  top:6px;
  bottom:6px;
  width:2px;
  background:var(--accent);
  opacity:.35;
}
.law-step{
  position:relative;
  padding-bottom:36px;
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease, transform .6s ease;
}
.law-step:last-child{padding-bottom:0;}
.law-step.is-visible{
  opacity:1;
  transform:translateY(0);
}
.law-step::before{
  content:"";
  position:absolute;
  left:-36px;
  top:4px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--accent);
  border:3px solid var(--paper);
  box-shadow:0 0 0 2px var(--accent);
}
.law-step h3{
  font-size:17px;
  margin:0 0 8px;
  font-weight:700;
}
.law-step p{margin:0;}
.law-step a{color:var(--accent);border-bottom:1px solid var(--accent);}

/* Support section (memory.html) */
.support-list{
  margin-top:8px;
}
.support-item{
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.support-item:first-child{padding-top:0;}
.support-item:last-child{border-bottom:none;padding-bottom:0;}
.support-item h3{font-size:17px;margin:0 0 8px;font-weight:700;}
.support-item p{margin:0;}

/* Final emotional block */
.memory-final-block p{
  line-height:1.85;
  font-size:15.5px;
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

/* ============================================
   MOBILE ADAPTATION
   ============================================ */

/* Tablet & small laptop */
@media (max-width:900px){
  .world-list{grid-template-columns:repeat(2,1fr);}
  .pub-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:820px){
  section{padding:52px 20px;}
  section.wide .inner{padding:0;}
  .link-block{padding:48px 20px;}

  h2{font-size:23px;padding-bottom:10px;}
  .page-intro{padding-top:40px;}
  .page-intro h1{font-size:clamp(24px,7vw,30px);}
  .page-intro p.lede{font-size:15px;}

  .site-header{
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:12px;
    padding:12px 16px;
    position:sticky;
  }
  .menu-toggle{display:flex;}
  .site-header .name{
    font-size:15px;
    text-align:left;
    flex:1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .site-header .name .kicker{display:none;}

  .site-header nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--paper);
    border-bottom:2px solid var(--ink);
    box-shadow:0 8px 16px rgba(0,0,0,.08);
    padding:6px 20px 16px;
  }
  .site-header nav.open{display:flex;}
  .site-header nav a{
    padding:12px 0;
    border-bottom:1px solid var(--line);
    font-size:16px;
  }
  .site-header nav a:hover,
  .site-header nav a.active{border-bottom:1px solid var(--line);}
  .site-header nav a.nav-accent{border-bottom:1px solid var(--line);}

  .header-quick-links{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
  }
  .header-quick-links a{
    font-size:12.5px;
    color:var(--ink-soft);
    text-decoration:none;
    white-space:nowrap;
  }
  .header-quick-links a.active{color:var(--ink);font-weight:700;}
  .header-quick-links a.nav-accent{
    color:#fff;
    background:var(--accent);
    padding:5px 10px;
    border-radius:2px;
    font-weight:700;
  }

  .card-row{grid-template-columns:1fr !important;}
  .card{padding:24px 20px;}
  .card-row-img{
    height:240px;
    min-height:0 !important;
    object-fit:contain !important;
    background:var(--grey);
  }

  /* Biography photo carousel: stacked under text, needs its own height; show full image, no cropping */
  .carousel{height:300px;background:var(--grey);}
  .carousel-track img{object-fit:contain;}

  .gallery{grid-template-columns:1fr 1fr;}

  .event-full{padding-left:18px;margin-top:26px;}
  .event-full h3{font-size:19px;}
  .event-full p{font-size:14.5px;}

  .world-list{grid-template-columns:repeat(2,1fr);gap:0 16px;}
  .world-list h3{font-size:14px;min-height:3.6em;}

  .world-carousel-wrap{padding:20px 8px 28px;gap:6px;}
  .wc-card{max-width:220px;}
  .wc-imgwrap{height:170px;}
  .wc-card img{max-height:170px;}
  .wc-arrow{width:32px;height:32px;font-size:17px;}

  .pub-grid{grid-template-columns:1fr;gap:14px;}
  .pub-card{padding:20px 18px;}
  .pub-card:nth-child(3n+1),
  .pub-card:nth-child(3n+2),
  .pub-card:nth-child(3n+3){transform:none;}

  .steps{grid-template-columns:1fr;}
  .steps div{border-right:none;border-bottom:1px solid var(--line);}

  .year-tabs{gap:6px;}
  .year-tab{padding:7px 14px;font-size:13px;}

  .law-timeline{padding-left:28px;}
  .law-step::before{left:-28px;}
  .law-step h3{font-size:15.5px;}
  .law-step p{font-size:14.5px;}

  .support-item h3{font-size:16px;}

  .memory-final-block p{font-size:15px;}

  footer{padding:26px 20px;font-size:12px;}
}

/* Small phones */
@media (max-width:480px){
  section{padding:40px 16px;}
  h1{font-size:24px;}
  h2{font-size:20px;}
  .page-intro .dates{font-size:13px;}

  .site-header{padding:10px 14px;gap:8px;}
  .site-header .name{font-size:14px;}
  .menu-toggle{width:26px;height:26px;}
  .header-quick-links{gap:6px;}
  .header-quick-links a{font-size:11.5px;}
  .header-quick-links a.nav-accent{padding:4px 8px;}

  .card{padding:20px 16px;}
  .card-row-img{height:200px;}
  .carousel{height:240px;}

  .world-list{grid-template-columns:1fr;gap:0;}
  .world-list h3{min-height:0;}

  .wc-card{max-width:190px;}
  .wc-imgwrap{height:150px;}
  .wc-card img{max-height:150px;}

  .pub-card h3{font-size:15px;}
  .pub-card p{font-size:13.5px;}

  .law-timeline{padding-left:24px;}
  .law-step::before{left:-24px;width:10px;height:10px;}

  .btn{padding:10px 22px;font-size:13.5px;}

  .memory-final-block p{font-size:14.5px;line-height:1.75;}
}

/* Feedback form */
.feedback-form{display:flex;flex-direction:column;gap:14px;}
.feedback-form label{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--ink-soft);
  font-weight:700;
}
.feedback-form textarea{
  width:100%;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
  font-size:15px;
  line-height:1.6;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:2px;
  padding:14px 16px;
  resize:vertical;
}
.feedback-form textarea:focus{outline:none;border-color:var(--accent);}
.feedback-form .btn{align-self:flex-start;cursor:pointer;font-family:inherit;}
.feedback-note{
  font-size:14px;
  color:var(--ink);
  margin:0;
  line-height:1.6;
  padding:14px 16px;
  background:var(--accent-soft);
  border-left:3px solid var(--accent);
}

/* Gallery page - masonry */
.masonry{
  column-count:3;
  column-gap:14px;
}
.masonry figure{
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  margin:0 0 14px;
  position:relative;
  overflow:hidden;
  background:var(--grey);
  cursor:pointer;
}
.masonry img{
  width:100%;
  display:block;
}
.masonry figcaption{
  position:absolute;
  left:0;right:0;bottom:0;
  background:linear-gradient(to top, rgba(20,20,20,.82), rgba(20,20,20,0));
  color:#fff;
  padding:26px 14px 12px;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.01em;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .25s ease, transform .25s ease;
  pointer-events:none;
}
.masonry figure:hover figcaption,
.masonry figure.tapped figcaption{
  opacity:1;
  transform:none;
}

@media (max-width:820px){
  .masonry{column-count:2;column-gap:10px;}
  .masonry figure{margin-bottom:10px;}
  .masonry figcaption{font-size:12.5px;padding:20px 10px 10px;}
}
@media (max-width:480px){
  .masonry{column-count:2;column-gap:8px;}
}

/* Person page - quotes */
.quote-block{
  border-top:1px solid var(--line);
  padding:28px 0;
}
.quote-block:last-child{border-bottom:1px solid var(--line);}
.quote-block blockquote{
  margin:0 0 12px;
  font-family:var(--serif);
  font-size:22px;
  font-weight:700;
  line-height:1.5;
  color:var(--ink);
  font-style:normal;
}
.quote-block blockquote::before{content:"«";}
.quote-block blockquote::after{content:"»";}
.quote-block cite{
  font-style:normal;
  font-size:13.5px;
  color:var(--ink-soft);
  letter-spacing:.02em;
}
@media (max-width:820px){
  .quote-block blockquote{font-size:19px;}
}
