:root{
  --bg:#eef2fb;
  --surface:#e4ebf9;
  --border:#cddaf0;
  --text:#131a2a;
  --muted:#5b6b85;
  --text-body:#33405a;
  --accent:#2563eb;
  --accent-soft-bg:#e2eafd;
  --accent-soft-text:#2050c2;
  --card-bg:#ffffff;
  --nav-hover-bg:#e2eafd;
  --nav-hover-text:#2050c2;
}

[data-theme="dark"]{
  --bg:#0c1220;
  --surface:#121a2c;
  --border:#233252;
  --text:#eef2fb;
  --muted:#93a3c2;
  --text-body:#c6d0e6;
  --accent:#60a5fa;
  --accent-soft-bg:rgba(96,165,250,0.16);
  --accent-soft-text:#9cc5fb;
  --card-bg:#121a2c;
  --nav-hover-bg:rgba(96,165,250,0.16);
  --nav-hover-text:#9cc5fb;
}

*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  transition:background .15s,color .15s;
}
a{color:var(--accent);text-decoration:none;}
a:hover{color:var(--accent);opacity:0.8;}
h1,h2,h3{margin:0;}
img{display:block;max-width:100%;}
button{font:inherit;cursor:pointer;}

.container{max-width:1240px;margin:0 auto;padding:0 24px;}
.container--narrow{max-width:900px;}

/* header */
.masthead{border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:50;}
.masthead__inner{max-width:1240px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.brandmark{font-weight:800;font-size:19px;letter-spacing:-0.01em;color:var(--text);flex-shrink:0;}
.brandmark:hover{opacity:1;}
.brandmark .brandmark__hl{color:var(--accent);}
.mainnav{display:flex;gap:4px;flex-wrap:wrap;}
.nav-link{font-size:14px;font-weight:600;padding:8px 12px;border-radius:999px;color:var(--text);}
.nav-link:hover{opacity:1;background:var(--nav-hover-bg);color:var(--nav-hover-text);}
.masthead__tools{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.lookup-form{display:flex;align-items:center;border:1px solid var(--border);border-radius:999px;overflow:hidden;height:40px;min-width:130px;flex:1;max-width:190px;}
.lookup-input{border:0;outline:0;flex:1;min-width:0;height:100%;padding:0 14px;font:inherit;font-size:14px;background:none;color:var(--text);}
.lookup-input::placeholder{color:var(--muted);}
.lookup-btn{border:0;background:var(--accent);color:#fff;width:40px;height:40px;flex-shrink:0;font-size:15px;}
.scheme-switch{display:flex;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--card-bg);color:var(--text);border-radius:999px;width:40px;height:40px;padding:0;font-size:16px;font-weight:600;white-space:nowrap;flex-shrink:0;}
.scheme-switch__label{display:none;}

.hamburger{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:var(--card-bg);padding:0;flex-shrink:0;}
.hamburger span{display:block;width:18px;height:2px;background:var(--text);border-radius:2px;transition:transform .2s ease,opacity .2s ease;}
.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width:860px){
  .hamburger{display:flex;order:2;}
  .brandmark{order:1;}
  .mainnav,.masthead__tools{
    display:none;
    order:3;
    flex-basis:100%;
    width:100%;
  }
  .masthead.menu-active .mainnav,
  .masthead.menu-active .masthead__tools{
    display:flex;
  }
  .mainnav{flex-direction:column;align-items:stretch;gap:4px;padding-top:8px;}
  .nav-link{padding:12px 16px;}
  .masthead__tools{flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--border);margin-top:8px;}
  .lookup-form{min-width:180px;max-width:none;}
  .scheme-switch{width:auto;padding:0 16px;font-size:13px;}
  .scheme-switch__label{display:inline;}
}

/* hero */
.hero{padding-top:32px;}
.hero__title{font-size:28px;line-height:1.25;margin-bottom:16px;font-weight:800;}
.hero__text{font-size:15px;line-height:1.7;color:var(--text-body);margin:0 0 14px 0;text-align:justify;}
.hero__text a{text-decoration:underline;}
.hero .lookup-form{max-width:360px;margin-top:8px;}
.heading-sm{font-size:20px;margin:0 0 12px 0;font-weight:800;}

.badge{display:inline-flex;align-items:center;gap:6px;background:var(--bg);border:1px solid var(--border);color:var(--text);font-weight:600;font-size:13px;padding:6px 14px;border-radius:999px;}
.badge--soft{background:var(--accent-soft-bg);color:var(--accent-soft-text);border:none;}
.badge--active{background:var(--accent);border-color:var(--accent);color:#fff;}
.badge--active:hover{color:#fff;opacity:0.9;}
.badge--soft:hover{color:var(--accent-soft-text);}
.badge-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px;}

/* models section */
.profiles-section{padding-top:48px;}
.profiles-section__title{font-size:22px;font-weight:800;margin:0 0 20px 0;}
.profiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:18px;align-items:start;}
.profile-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--card-bg);}
.profile-card:hover{box-shadow:0 8px 22px rgba(37,99,235,0.16);}
.profile-card__link{display:block;color:inherit;}
.profile-card__media{position:relative;aspect-ratio:1/1;background:var(--surface);}
.profile-card__name{margin:0;padding:12px 14px 4px;font-weight:700;font-size:14px;color:var(--text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.profile-card__tag{margin:0;padding:0 14px 12px;font-size:12px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}

/* post search results: masonry layout + multi-line captions */
.hits-grid{display:block;columns:170px 5;column-gap:18px;}
.hits-grid .profile-card{width:100%;break-inside:avoid;margin-bottom:18px;}
.hits-grid .profile-card__name{white-space:normal;line-height:1.4;height:75px;overflow:hidden;}

.media-blank{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--muted);font-size:12px;text-align:center;padding:8px;}

/* pages-nav */
.pages-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:36px;}
.pages-nav__btn{min-width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--border);color:var(--text);font-size:14px;}
.pages-nav__btn--active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700;}
.pages-nav__btn:hover{background:var(--nav-hover-bg);color:var(--nav-hover-text);opacity:1;}
.pages-nav__btn--active:hover{background:var(--accent);color:#fff;opacity:0.9;}
.pages-nav__dots{min-width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--muted);}

/* model profile */
.profile-hero{padding-top:32px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;}
.profile-hero__photo{width:140px;height:140px;border-radius:14px;overflow:hidden;border:1px solid var(--border);}
.profile-hero__name{font-size:26px;font-weight:800;margin:0 0 10px 0;}

/* posts grid (model page) */
.feed-section{padding-top:48px;}
.feed-grid{columns:280px 4;column-gap:20px;}
.post-tile{width:100%;break-inside:avoid;margin-bottom:20px;border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;background:var(--card-bg);}
.post-tile__media{width:160px;height:160px;margin:16px auto 0;border-radius:10px;overflow:hidden;background:var(--surface);}
.post-tile__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1;}
.post-tile__title{font-size:16px;font-weight:800;margin:0;text-align:left;}
.post-tile__title a{color:inherit;}
.post-tile__excerpt{font-size:13px;line-height:1.6;color:var(--text-body);margin:0;height:63px;overflow:hidden;}
.post-tile__excerpt *{margin:0;display:inline;}
.post-tile__footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:auto;padding-top:6px;}
.open-post-btn{display:inline-flex;align-items:center;gap:6px;background:var(--accent);color:#fff;font-weight:700;font-size:13px;padding:8px 16px;border-radius:999px;white-space:nowrap;flex-shrink:0;}
.open-post-btn:hover{opacity:0.9;color:#fff;}
.stamp{font-size:12px;color:var(--muted);font-style:italic;white-space:nowrap;}

/* post page */
.single-post__profile{padding-top:32px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;}
.single-post__photo{width:140px;height:140px;border-radius:14px;overflow:hidden;border:1px solid var(--border);}
.single-post__name{display:block;font-weight:800;font-size:16px;color:var(--text);}
.single-post__main{padding-top:28px;}
.single-post__title{font-size:26px;font-weight:800;margin:0 0 8px 0;}
.single-post__media{margin-top:22px;border:1px solid var(--border);border-radius:14px;padding:16px;text-align:center;display:flex;flex-direction:column;gap:14px;background:var(--card-bg);}
.single-post__img{border-radius:10px;overflow:hidden;background:var(--surface);}
.single-post__img img{width:100%;height:auto;}
.single-post__video{position:relative;background:#1a1a1a;border-radius:10px;overflow:hidden;padding-top:56.25%;}
.single-post__video__play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.single-post__video__circle{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;}
.single-post__video__triangle{width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:18px solid #fff;margin-left:4px;}
.single-post__video__label{position:absolute;bottom:10px;left:14px;color:rgba(255,255,255,0.6);font-size:12px;}

/* footer */
.site-end{border-top:1px solid var(--border);margin-top:64px;padding:36px 24px 44px;text-align:center;color:var(--muted);font-size:14px;}
.site-end p{margin:0;}
.site-end p + p{max-width:600px;margin:10px auto 0;line-height:1.6;}
.site-end__links{display:flex;justify-content:center;gap:18px;margin-top:16px;flex-wrap:wrap;}
.site-end__links a{color:var(--muted);text-decoration:underline;}

/* real photos filling the placeholder-shaped media boxes */
.profile-card__media img,
.post-tile__media img,
.profile-hero__photo img,
.single-post__photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* scroll-to-top button */
.jump-top-btn{
  position:fixed;
  right:28px;
  bottom:28px;
  width:52px;
  height:52px;
  border-radius:50%;
  border:2px solid #fff;
  background:var(--accent);
  color:#fff;
  font-size:24px;
  font-weight:800;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 20px rgba(37,99,235,0.45),0 2px 6px rgba(0,0,0,0.2);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px) scale(0.9);
  transition:opacity .2s ease,transform .2s ease,visibility .2s,box-shadow .2s ease;
  z-index:99999;
}
.jump-top-btn.is-active{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.jump-top-btn:hover{
  opacity:1;
  background:var(--accent);
  box-shadow:0 8px 26px rgba(37,99,235,0.6),0 3px 8px rgba(0,0,0,0.25);
  transform:translateY(-2px) scale(1.05);
}
