/*
Theme Name: Elisaveta Belobradova Redesign
Description: Responsive editorial theme for Elisaveta Belobradova.
Version: 1.2.0
Requires PHP: 7.4
Text Domain: ebelobradova-redesign
*/
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("fonts/SofiaSansCondensed.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}

:root{--ink:#25162d;--muted:#62556c;--plum:#48155c;--plum-deep:#2f0b3b;--paper:#ffffff;--white:#fff;--line:#e6dce9;--tint:#f4eef7;--display:"Sofia Sans Condensed","Sofia Sans",system-ui,sans-serif;--sans:"Sofia Sans",system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1.0625rem/1.6 var(--sans)}a{color:inherit}img{display:block;max-width:100%;height:auto}button,input,select{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #864da1;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2{font-family:var(--display);font-weight:800;line-height:1;letter-spacing:-.016em}h2{font-size:clamp(2.2rem,4vw,3.8rem)}h3{line-height:1.25}.wrap{width:min(100% - 5rem,1216px);margin-inline:auto}.skip{position:absolute;top:-100px;left:1rem;z-index:10;background:white;padding:.5rem}.skip:focus{top:1rem}.site-header{position:relative;z-index:2;border-bottom:1px solid var(--line);background:var(--paper)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.4rem;min-height:77px}.brand{display:inline-flex;align-items:center;text-decoration:none;font-weight:800;line-height:1.15;white-space:nowrap;font-size:1.12rem}.header-inner nav{display:flex;align-items:center;gap:clamp(.6rem,2.1vw,1.9rem);font-size:.92rem}.header-inner nav a{text-decoration:none;white-space:nowrap}.header-inner nav a:hover,.header-inner nav a[aria-current]{text-decoration:underline;text-underline-offset:.35em}.search-link{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%}.search-link svg{width:20px}.menu-toggle{display:none}.hero{display:grid;grid-template-columns:1fr .95fr;gap:clamp(2rem,6vw,6rem);align-items:center;padding-block:4.7rem 5.2rem}.hero h1{font-size:clamp(3.2rem,6.65vw,6.4rem);line-height:.96}.eyebrow{display:flex;align-items:center;gap:.65rem;margin-bottom:1.35rem;font-size:.83rem;font-weight:700;letter-spacing:.085em;text-transform:uppercase;color:var(--plum)}.eyebrow span{width:23px;border-block-start:2px solid currentColor}.lead{font-size:clamp(1.05rem,1.6vw,1.2rem);line-height:1.58;color:var(--muted);max-width:34rem;margin-top:1.6rem}.actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.9rem}.button{display:inline-flex;align-items:center;justify-content:center;min-height:47px;border:1px solid var(--plum);padding:.55rem 1.24rem;border-radius:5px;text-decoration:none;font-weight:650;font-size:.94rem}.primary{background:var(--plum);color:white}.primary:hover{background:#2f0b3b}.secondary{color:var(--plum)}.secondary:hover{background:var(--tint)}.hero-photo{position:relative;isolation:isolate;margin:0}.hero-photo img{width:100%;aspect-ratio:1.18;object-fit:cover;object-position:50% 42%;border-radius:7px;background:#e6d8ed}.topics{background:var(--tint);padding-block:3.55rem 4.25rem}.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.65rem}.topic-grid,.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem}.topic,.story a{display:block;text-decoration:none;background:var(--white);border:1px solid var(--line);height:100%;border-radius:6px;overflow:hidden}.topic img,.story img,.story-placeholder{display:block;width:100%;aspect-ratio:1.95;object-fit:cover;background:#e6d8ed}.topic div,.story a div{padding:1.08rem 1.25rem 1.25rem}.topic h3{font-family:var(--display);font-weight:800;font-size:clamp(1.25rem,2vw,1.7rem)}.topic p,.work-band p,.media-band p{margin-top:.55rem;color:var(--muted)}.topic:hover h3,.story a:hover h3{text-decoration:underline;text-underline-offset:.14em}.work-band,.media-band{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.5rem,7vw,7rem);padding-block:4.5rem}.work-band img,.media-band img{width:100%;aspect-ratio:1.7;object-fit:cover;border-radius:6px}.work-band .button,.media-band .button{margin-top:1.25rem}.news{border-block:1px solid var(--line);background:#f8f4fa;padding-block:3.5rem}.text-link{color:var(--plum);font-weight:650;text-underline-offset:.24em}.story h3{font-size:1.05rem;margin-top:.4rem}.story time,.page-head time{font-size:.9rem;color:var(--muted)}.footer{background:var(--plum-deep);color:#fff;padding-block:2.4rem}.footer-inner{display:flex;align-items:start;gap:2.2rem;justify-content:space-between}.footer nav{display:flex;flex-wrap:wrap;gap:.45rem 1.25rem;max-width:650px;font-size:.9rem}.footer nav a{text-underline-offset:.22em}.page-head{background:var(--tint);padding:2rem 0 2.8rem;border-bottom:1px solid var(--line)}.page-head h1{font-size:clamp(2.65rem,6vw,5.25rem);max-width:20ch;overflow-wrap:anywhere}.page-head time{display:block;margin-top:1rem}.crumb{display:flex;gap:.7rem;color:var(--muted);font-size:.9rem;margin-bottom:1.15rem}.crumb a{text-underline-offset:.2em}.prose{width:min(100% - 4rem,820px);margin:3rem auto 4.2rem;overflow-wrap:anywhere;display:flow-root}.prose h2,.prose h3{margin:1.7em 0 .65em;letter-spacing:-.025em}.prose h2{font-size:clamp(1.55rem,4vw,2.65rem)}.prose p,.prose ul,.prose ol,.prose figure,.prose blockquote,.prose table{margin:0 0 1.2em}.prose figure,.prose img{max-width:100%}.prose img{border-radius:4px}.prose p:empty,.prose figure:empty{display:none}.prose a{color:var(--plum);text-underline-offset:.2em}.prose figcaption{color:var(--muted);font-size:.9rem;margin-top:.55rem}.prose table{border-collapse:collapse}.prose td{border:1px solid var(--line);padding:.5rem}.prose .wp-block-columns{display:flex;gap:1.4rem}.prose .wp-block-column{flex:1;min-width:0}.prose iframe{width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:5px;background:var(--tint)}.videos{width:min(100% - 4rem,1040px)}.videos iframe+a{display:inline-block;margin:.25rem 0 .65rem}.archive-panel{width:min(100% - 5rem,1216px);margin:3rem auto 0}.archive-panel h2{margin-bottom:1rem}.archive-panel .story-grid{margin-bottom:2.5rem}.archive-links{columns:2;padding-left:1.4rem}.archive-links li{break-inside:avoid;padding:0 0 .45rem}.original-blog{border-top:1px solid var(--line)}.search-page{max-width:850px;padding-block:2.5rem 4rem}.search-page label{display:block;font-weight:650;margin-bottom:.3rem}.search-page input,.search-page select{background:white;border:1px solid #9e83aa;border-radius:4px;min-height:45px;padding:.45rem .7rem;width:100%;margin-bottom:1rem;color:var(--ink)}.search-page select{appearance:none;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='m3 3 6 6 6-6' fill='none' stroke='%23204e3b' stroke-width='2'/%3E%3C/svg%3E") right .7rem center no-repeat}.search-page ul{padding:0;list-style:none}.search-page li{padding:.85rem 0;border-top:1px solid var(--line)}.search-page li a{font-weight:700;text-underline-offset:.2em}.search-page li p,#count{color:var(--muted)}
@media(max-width:950px){.wrap,.archive-panel{width:calc(100% - 3rem)}.menu-toggle{display:block;background:transparent;border:1px solid var(--line);border-radius:4px;padding:.35rem .7rem;color:var(--ink)}.header-inner nav{display:none;position:absolute;inset:100% 0 auto;background:var(--paper);padding:1.15rem 1.5rem;box-shadow:0 10px 18px #25162d17}.header-inner nav.open{display:flex;flex-wrap:wrap}.hero{padding-block:3.6rem;gap:2rem}}
@media(max-width:650px){.wrap,.archive-panel,.prose{width:calc(100% - 2rem)}.header-inner{min-height:65px}.header-inner nav.open{align-items:flex-start;flex-direction:column;gap:.85rem}.hero,.work-band,.media-band{grid-template-columns:1fr;padding-block:2.5rem;gap:1.6rem}.hero-copy{max-width:34rem}.hero h1{font-size:clamp(2.7rem,12vw,4.6rem)}.hero-photo img{aspect-ratio:1.35}.topics,.news{padding-block:2.6rem}.topic-grid,.story-grid{grid-template-columns:1fr}.topic img,.story img,.story-placeholder{aspect-ratio:2.1}.section-head{align-items:start;flex-wrap:wrap}.footer-inner{flex-direction:column;gap:1.2rem}.prose .wp-block-columns{display:block}.archive-links{columns:1}}

.hero-band {
  background: linear-gradient(118deg, #21072b, #48155c 77%, #602b74);
  color: #fff;
}
.hero { padding-block: 4.1rem; }
.hero h1 { font-size: clamp(3.35rem, 8vw, 7.3rem); }
.hero .lead { color: #f0e2f5; }
.hero .eyebrow {
  color: #ead3f3;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: none;
  font-size: 1rem;
}
.hero .eyebrow a { text-underline-offset: .22em; }
.hero .primary { background: #fff; color: var(--plum-deep); border-color: #fff; }
.hero .primary:hover { background: #f1e2f6; border-color: #f1e2f6; }
.hero .secondary { color: #fff; border-color: #d7bcdf; }
.hero .secondary:hover { background: #ffffff19; }
.hero a:focus-visible { outline-color: #fff; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
.section-head h2, .page-head h1, .work-band h2, .media-band h2 { color: var(--plum); }
.topics { background: #fff; }
.news { background: var(--tint); }
.story h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 750; }
.topic h3 { color: var(--plum); }
.story-placeholder { background: var(--tint); }
.prose h3 { font-family: var(--display); font-size: 1.45rem; }

@media (max-width: 650px) {
  .hero { padding-block: 2rem 1.5rem; gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.95rem, 14vw, 5rem); }
  .hero .lead { margin-top: 1rem; }
  .hero .eyebrow { margin-bottom: .85rem; }
  .hero .actions { margin-top: 1.35rem; }
}

/* Section navigation and latest work */
.nav-priorities { position: relative; }
.nav-priorities summary { cursor: pointer; white-space: nowrap; }
.nav-priorities summary:hover,
.nav-priorities:has([aria-current]) summary {
  text-decoration: underline;
  text-underline-offset: .35em;
}
.priority-links {
  position: absolute;
  top: calc(100% + .55rem);
  left: -.7rem;
  display: grid;
  gap: .45rem;
  width: max-content;
  max-width: min(80vw, 22rem);
  padding: .8rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px #2f0b3b22;
}
.priority-links a { padding-block: .2rem; }
.updates {
  padding-block: 3rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.updates .section-head > a { color: var(--plum); text-underline-offset: .2em; }
.updates-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; }
.update-stack { display: grid; gap: 1rem; }
.update-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1.1rem 1.4rem;
}
.update-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.3rem, 3vw, 2.5rem);
}
.update-card h3 {
  color: var(--plum);
  font: 800 1.55rem/1.1 var(--display);
}
.update-feature h3 { font-size: clamp(2.2rem,4vw,3.8rem); max-width: 20ch; }
.update-card h3 a { text-decoration: none; }
.update-card h3 a:hover { text-decoration: underline; text-underline-offset: .13em; }
.update-meta { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.update-feature .button { margin-top: 1.3rem; }
.page-guide {
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--tint);
  border-radius: 7px;
  margin-bottom: 2rem;
}
.page-guide h2 { margin: 0 0 .55rem; font-size: 1.65rem; }
.page-guide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1.5rem;
  margin: 0;
  padding-inline-start: 1.2rem;
}
.prose [id] { scroll-margin-top: 1.2rem; }
.contact-page h2 { margin-top: 0; }
.contact-email { font-size: 1.18rem; font-weight: 700; }
@media (max-width: 1100px) and (min-width: 951px) {
  .header-inner nav { gap: .85rem; }
}
@media (max-width: 950px) {
  .priority-links { position: static; border: 0; box-shadow: none; padding: .4rem 0 0 1rem; }
}
@media (max-width: 650px) {
  .updates { padding-block: 2.25rem; }
  .updates-grid, .page-guide ul { grid-template-columns: 1fr; }
}

.media-section {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.social-links,
.social-links a {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.social-links svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}

.header-social {
  padding-inline-start: .65rem;
  border-inline-start: 1px solid var(--line);
  gap: .15rem;
}

.header-social a {
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--plum);
  border-radius: 50%;
}

.header-social a:hover,
.header-social a:focus-visible {
  background: var(--tint);
}

.footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(0, .65fr);
  gap: 1.5rem;
}

.footer .footer-inner nav {
  max-width: none;
}

.footer-contact,
.footer-social .social-links {
  display: grid;
  gap: .5rem;
  justify-items: start;
}

.footer-social {
  --social-icon-cutout: var(--plum-deep);
}

.footer-contact h2,
.footer-social h2 {
  margin: 0;
  color: inherit;
  font: 700 1rem var(--sans);
}

.footer-social h2 {
  margin-bottom: .5rem;
}

.footer-email {
  overflow-wrap: anywhere;
}

.contact-social {
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 1051px) {
  .header-inner nav {
    gap: clamp(.55rem, 1.15vw, 1.25rem);
  }
}

@media (min-width: 951px) and (max-width: 1050px) {
  .header-inner nav { gap: .55rem; }
  .header-inner { gap: .65rem; }
  .header-social { padding-inline-start: .25rem; }
  .header-social a { width: 1.7rem; }
}

@media (max-width: 950px) {
  .header-social {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-bar .site-header { top: 32px; }
.prose .wp-block-embed { max-width: 100%; }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.search-form label { display: grid; gap: .35rem; }
.search-form input { max-width: 100%; font: inherit; border: 1px solid var(--line); padding: .6rem; }
.story-placeholder { display: block; width: 100%; aspect-ratio: 1.7; background: var(--tint); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.ebel-video-gate {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  min-height: 10rem;
  padding: 1rem;
  text-align: center;
  background: var(--tint);
  border-radius: .4rem;
}
.ebel-video-gate p { margin: 0; }


.story-text-only { align-self: start; }
.story-text-only > a > div { padding-block: 1.3rem; }

.media-archive-inner { padding-block: clamp(1.75rem, 5vw, 4rem); }
.media-archive-intro { color: var(--muted); font-size: 1.125rem; margin-bottom: 1.5rem; }
.media-archive-intro p { margin: 0 0 .65rem; }
.media-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.media-video-card {
  min-width: 0;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.media-video-featured { grid-column: 1 / -1; max-width: 64rem; width: 100%; justify-self: center; }
.media-video-card iframe, .media-video-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  background: var(--plum-deep);
}
.media-video-copy { padding: clamp(1rem, 3vw, 1.55rem); }
.media-video-copy :is(h2,h3) { color: var(--plum); font-family: var(--display); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.15; margin: 0 0 .6rem; }
.media-video-featured h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); }
.media-video-copy p { margin: 0 0 .6rem; }
.media-video-copy a { color: var(--plum); text-underline-offset: .2em; }
.media-link-section { margin-top: clamp(2rem, 5vw, 4rem); }
.media-link-section > h2 { margin: 0 0 1rem; color: var(--plum); }
@media (max-width: 680px) {
  .media-video-grid { grid-template-columns: minmax(0, 1fr); }
}
