/* WordPress-only additions. site.css is the original sero.gr stylesheet, unchanged. */

/* Always reserve the scrollbar's space, so the menu doesn't jump sideways
   between long pages (Work, with a scrollbar) and short ones (About, Contact). */
html { scrollbar-gutter: stable; }

/* The closed mobile menu waits off-screen to the right; don't let phones scroll sideways to it.
   (clip, not hidden, so the sticky menu keeps working.) */
html, body { overflow-x: clip; }

/* Project names in the list: bigger (max = Customizer → Fonts & sizes → Project list item size) */
.s-list:not(.grid) .s-row-name { font-size: clamp(20px, 2.8vw, var(--sero-size-row)); }
@media (max-width: 680px) {
  .s-list:not(.grid) .s-row-name { font-size: 26px; }
  /* The base CSS asks for this gap but its margin reset cancels it; the view buttons touched the Location line */
  #sero-root .s-work-header { margin-top: 48px; }
}

/* Logo size (Customizer → Fonts & sizes) */
.s-nav .s-logo { font-size: var(--sero-size-logo, 15px); }

/* ───────── Pages you add (Pages → Add New) ─────────
   Light = About look (default). Dark = "Dark page" template, Contact look.
   #sero-root prefix: the base stylesheet resets every margin inside #sero-root. */
body.sero-tone-light { background: #F4F2ED; }
body.sero-tone-dark  { background: #0E0E0D; }

.sero-entry {
  --tx: #0E0E0D;  --soft: #666663;  --line: #E2DFD8;
  padding: 72px 0 96px;
  color: var(--tx);
}
.s-pg-contact .sero-entry { --tx: #F4F2ED; --soft: #999896; --line: #252523; }

#sero-root .sero-entry-title { max-width: 1000px; margin-bottom: 64px; }

.sero-entry-content {
  font-size: var(--sero-size-body);
  line-height: 1.8;
  color: var(--soft);
}
#sero-root .sero-entry-content > * { max-width: 720px; }
#sero-root .sero-entry-content > * + * { margin-top: 1.4em; }
#sero-root .sero-entry-content > .alignwide { max-width: 1100px; }
#sero-root .sero-entry-content > .alignfull { max-width: none; margin-left: -52px; margin-right: -52px; }
#sero-root .sero-entry-content > .alignfull img { border-radius: 0; width: 100%; }
#sero-root .sero-entry-content strong { color: var(--tx); font-weight: 500; }
#sero-root .sero-entry-content a { color: var(--tx); text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 3px; }
#sero-root .sero-entry-content a:hover { opacity: .6; }

#sero-root .sero-entry-content h2,
#sero-root .sero-entry-content h3 {
  font-family: var(--sero-font-heading);
  font-weight: 500;
  color: var(--tx);
}
#sero-root .sero-entry-content h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; margin-top: 2.2em; }
#sero-root .sero-entry-content h3 { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.02em; line-height: 1.2; margin-top: 2em; }
#sero-root .sero-entry-content h4,
#sero-root .sero-entry-content h5,
#sero-root .sero-entry-content h6 {
  font-size: var(--sero-size-label); font-weight: 400; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); margin-top: 2.4em;
}
#sero-root .sero-entry-content ul,
#sero-root .sero-entry-content ol { padding-left: 1.2em; }
#sero-root .sero-entry-content li + li { margin-top: .4em; }

#sero-root .sero-entry-content blockquote {
  border-left: .5px solid var(--tx);
  padding-left: 24px;
  margin-top: 2em;
  font-family: var(--sero-font-heading);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--tx);
}
#sero-root .sero-entry-content blockquote cite { display: block; margin-top: 12px; font-family: var(--sero-font-body); font-size: var(--sero-size-label); font-style: normal; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); }

#sero-root .sero-entry-content hr,
#sero-root .sero-entry-content .wp-block-separator { border: 0; height: .5px; background: var(--line); opacity: 1; margin-top: 3em; margin-bottom: 3em; }

#sero-root .sero-entry-content img,
#sero-root .sero-entry-content video { display: block; max-width: 100%; height: auto; border-radius: 2px; }
#sero-root .sero-entry-content figure { margin-top: 2.4em; }
#sero-root .sero-entry-content figcaption { margin-top: 10px; font-size: var(--sero-size-label); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); text-align: left; }
#sero-root .sero-entry-content .wp-block-gallery,
#sero-root .sero-entry-content .wp-block-columns { gap: 24px; }
#sero-root .sero-entry-content .wp-block-gallery figure { margin-top: 0; }

#sero-root .sero-entry-content .wp-block-button__link {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  border: .5px solid var(--tx);
  border-radius: 99px;
  background: transparent;
  color: var(--tx);
  font-size: var(--sero-size-label);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
#sero-root .sero-entry-content .wp-block-button__link:hover { background: var(--tx); color: var(--bg, #F4F2ED); opacity: 1; }
.s-pg-contact .sero-entry { --bg: #0E0E0D; }

@media (max-width: 680px) {
  .sero-entry { padding: 40px 0 64px; }
  #sero-root .sero-entry-title { margin-bottom: 40px; }
  #sero-root .sero-entry-content > .alignfull { margin-left: -24px; margin-right: -24px; }
}

/* Logged-in admin bar: draw it above the site (the site's root layer is z-index 99999),
   and keep the sticky nav and the project overlay below it */
#wpadminbar { z-index: 100000 !important; }
body.admin-bar .s-nav { top: 32px; }
body.admin-bar #s-overlay { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .s-nav { top: 46px; }
  body.admin-bar #s-overlay { top: 46px; }
}
@media (max-width: 600px) {
  /* Here the admin bar scrolls away with the page */
  body.admin-bar .s-nav { top: 0; }
}
