/* usnish.github.io main css */

/* accent bar */
body:before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #1f4e79;
  z-index: 10;
}

/* typography ######################################## */
* { margin: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Avenir Next', Avenir, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 16px;
  line-height: 1.65;
  color: #1f1f1f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: #1f4e79;
}
a:hover { color: #143556; text-decoration: underline; }
.content p a { text-decoration: underline; text-decoration-color: rgba(31, 78, 121, 0.4); text-underline-offset: 3px; }
.content p a:hover { text-decoration-color: currentColor; }
a:focus-visible, summary:focus-visible { outline: 2px solid #1f4e79; outline-offset: 3px; border-radius: 2px; }

h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; max-width: 65ch; }


img { border-radius: 6px; }

/* layout ######################################## */
.page {
  display: flex;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}

.sidebar {
  flex: 0 0 236px;
}

.content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 825px;
}

#logo a {
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
#logo a:hover { text-decoration: none; color: #1f4e79; }
.name-bn {
  margin-top: 4px;
  font-family: 'Noto Sans Bengali', 'Kohinoor Bangla', 'Bangla Sangam MN', 'Nirmala UI', 'Vrinda', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #6b6b6b;
}

ul.nav {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  text-transform: lowercase;
}
ul.nav li { margin: 0 0 4px; padding: 0; }
ul.nav a, .nav-dropdown summary {
  color: #6b6b6b;
  font-size: 15px;
}
ul.nav a:hover, .nav-dropdown summary:hover { color: #143556; text-decoration: none; }


/* cover photo ######################################## */
.cover {
  position: relative;
  margin: 32px 0 0;
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
}
.cover figcaption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* projects dropdown ################################ */
.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:after { content: " \25B8"; }
.nav-dropdown[open] > summary:after { content: " \25BE"; }
.nav-dropdown ul {
  list-style: none;
  margin: 4px 0 6px;
  padding-left: 12px;
}
.nav-dropdown ul a { font-size: 14px; }
.nav-dropdown ul li { line-height: 1.4; margin-bottom: 4px; }
.nav-dropdown .nav-dropdown ul { margin: 2px 0 4px; }

/* projects page ################################ */
.project { margin-bottom: 32px; }
.project-group { margin: 8px 0 32px; }
.project-group-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f1f1f;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.project h2 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  margin: 12px 0 6px;
}
.project-thumb {
  max-width: 100%;
  height: auto;
}
.project-meta {
  font-size: 14px;
  margin-top: 0;
}

/* small screens ######################################## */
@media (max-width: 760px) {
  .page {
    flex-direction: column;
    gap: 28px;
    padding: 36px 20px 48px;
  }
  .sidebar { flex: none; }
  ul.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
  ul.nav li { margin: 0; }
  ul.nav a, .nav-dropdown summary { display: inline-block; padding: 4px 0; }
  .cover { margin-top: 24px; }
}

